/* ==========================================================================
   1. CORE LAYOUT & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #0b0b0c;
    --text-light: #f4f4f6;
    --text-muted: #8e8e93;
    --accent-color: #ffffff;
    --border-color: #242427;
    --card-bg: #121214;
    --font-sans: 'Inter', sans-serif;
    --border-current: var(--border-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
    z-index: 3000;
    pointer-events: none;
}

body::before {
    left: 7.5%;
}

body::after {
    right: 7.5%;
}

body::before {
    left: 7.5%;
}

body::after {
    right: 7.5%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* ==========================================================================
   2. CUSTOM UI CURSOR ENGINE
   ========================================================================== */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    position: fixed;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 1000000 !important;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: fixed;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 999999 !important;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

body.cursor-hover .custom-cursor-follower {
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   3. NAVIGATION & GLOBAL LAYOUT
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    width: 85%;
    left: 7.5%;
    background-color: rgba(11, 11, 12, 0.05);
    backdrop-filter: blur(20px);
    z-index: 2000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    color: inherit;
    text-decoration: none;
}

.logo span {
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    z-index: 3001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 0.5rem;
    padding: 0.75rem 1.25rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav button:hover,
nav button.active {
    color: var(--accent-color);
}

.page-view {
    display: none;
    opacity: 0;
    width: 95%;
    margin: 0 auto;
    padding-top: 90px;
}

.page-view.active-view {
    display: block;
    opacity: 1;
}

footer {
    width: 85%;
    margin: 0 auto;
    padding: 6rem 0;
    color: var(--text-muted);
}

footer .container {
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   4. GLOBAL UI COMPONENTS & UTILITIES
   ========================================================================== */
.grid-section {
    padding: 6rem 0;
}

.theme-light-trigger {
    background-color: #f4f4f6 !important;
    color: #0b0b0c !important;
    --border-current: #e1e1e6;
    --accent-color: #0b0b0c;
    --text-muted: #62626a;
}

.theme-light-trigger .cta-btn {
    background-color: #0b0b0c;
    color: #f4f4f6;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 4rem;
    display: block;
}

.section-label-mini {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    padding: 1.4rem 3rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    border: none;
    text-align: center;
}

.cta-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.bordered {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.1rem 0.4rem;
    margin: 0 0.2rem;
    white-space: nowrap;
    font-weight: 500;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)),
        linear-gradient(to right, var(--bc1, #00d084), var(--bc2, #0096c7));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.text-center-bounds {
    text-align: center;
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.hero {
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

.hero h1 span {
    color: #ffffff !important;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: center;
}

/* ==========================================================================
   6. FEATURES GRID
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--border-current);
}

.feature-card {
    padding: 4rem 2.5rem;
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   7. INTERACTIVE SCRUBBER MODULE
   ========================================================================== */
.scrubber-section {
    position: relative;
    width: 100%;
    padding: 4rem 0;
}

.scrubber-text-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.scrubber-text-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.scrubber-viewport {
    position: relative;
    height: 280px;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
}

.scrubber-labels {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    z-index: 80;
    pointer-events: none;
}

.label-row-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    height: 42px;
    display: flex;
    align-items: center;
}

.scrubber-tracks-window {
    position: relative;
    width: 100%;
    height: 100%;
}

.needle-axis {
    position: absolute;
    left: 0%;
    top: 50%;
    height: 300px;
    width: 2px;
    z-index: 100;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.needle-head {
    transform: translateY(-8px);
    animation: shake 2.5s infinite ease-in-out;
}

.needle-line {
    width: 2px;
    height: 100%;
    background-color: #ffffff;
}

.master-track-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    width: 100%;
    padding-left: 1.5rem;
}

.track-row {
    display: flex;
    gap: 0.8rem;
    height: 42px;
    align-items: center;
}

.colored-overlay {
    z-index: 40;
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
}

.pill {
    padding: 0.5rem 1.4rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}

.dark-purple {
    background: #15131a;
    color: #4b4659;
    border-color: #201d26;
}

.dark-orange {
    background: #17120f;
    color: #594333;
    border-color: #241c17;
}

.dark-blue {
    background: #0f1317;
    color: #324454;
    border-color: #161c21;
}

.dark-gold {
    background: #141310;
    color: #4d4633;
    border-color: #211f19;
}

.colored-overlay .pill {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.light-purple {
    background: radial-gradient(circle at 65% 20%, #7f56d9 0%, #3b1772 45%, #0b0b0c 85%);
    color: #ffffff;
    border-color: rgba(155, 123, 242, 0.5);
}

.light-orange {
    background: radial-gradient(circle at 65% 20%, #f15a24 0%, #7c2d12 45%, #0b0b0c 85%);
    color: #ffffff;
    border-color: rgba(255, 126, 82, 0.5);
}

.light-blue {
    background: radial-gradient(circle at 65% 20%, #0071e3 0%, #0c4a6e 45%, #0b0b0c 85%);
    color: #ffffff;
    border-color: rgba(66, 158, 255, 0.5);
}

.light-gold {
    background: radial-gradient(circle at 65% 20%, #e0aa3e 0%, #451a03 45%, #0b0b0c 85%);
    color: #ffffff;
    border-color: rgba(255, 208, 102, 0.4) !important;
}

/* ==========================================================================
   8. CASE STUDY CAROUSEL & CARDS
   ========================================================================== */
.cases-carousel-viewport {
    width: 100%;
    overflow: hidden !important;
    position: relative;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.cases-carousel-track {
    display: flex !important;
    gap: 2rem !important;
    width: max-content !important;
    padding: 0 0.5rem;
    will-change: transform;
}

.cases-carousel-viewport .case-card {
    width: calc((1200px - 4rem) / 3) !important;
    flex-shrink: 0 !important;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    padding-right: 0.5rem;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.case-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: transparent;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.case-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#grainy-noise);
    mix-blend-mode: overlay;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.case-meta-premium {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    font-weight: 600;
    display: block;
    margin-bottom: 1.5rem;
}

.case-card h3 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.case-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-stats-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    margin-top: auto;
}

.case-stats-premium .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.case-stats-premium .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   9. CASE BLUEPRINT MODAL (DRAWERS)
   ========================================================================== */
.blueprint-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 9, 0.96);
    backdrop-filter: blur(30px);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blueprint-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.blueprint-modal-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 1050px;
    height: 100%;
    background: #0a0a0c;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blueprint-modal-overlay.is-active .blueprint-modal-container {
    transform: translateX(0);
}

.blueprint-close-trigger {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    top: 2rem;
    right: 3rem;
    padding: 0.8rem 1.6rem;
    border-radius: 100px;
    z-index: 10;
    transition: background 0.3s, border-color 0.3s, transform 0.2s ease;
}

.blueprint-close-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.blueprint-scroll-content {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.blueprint-scroll-content::-webkit-scrollbar {
    width: 4px;
}

.blueprint-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.blueprint-graphic-header {
    padding: 6rem 4rem 4rem 4rem;
    position: relative;
}

.header-education {
    background: radial-gradient(circle at 100% 0%, rgba(0, 150, 199, 0.25) 0%, transparent 60%), #0a0a0c;
}

.header-awesome {
    background: radial-gradient(circle at 100% 0%, rgba(114, 9, 183, 0.25) 0%, transparent 60%), #0a0a0c;
}

.header-anesi {
    background: radial-gradient(circle at 100% 0%, rgba(247, 127, 0, 0.22) 0%, transparent 60%), #0a0a0c;
}

.header-brooklyn {
    background: radial-gradient(circle at 100% 0%, rgba(46, 196, 182, 0.22) 0%, transparent 60%), #0a0a0c;
}

.blueprint-tag {
    font-family: monospace;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 1rem;
}

.blueprint-hero-title {
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.04em;
    max-width: 800px;
}

.blueprint-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 4rem;
    padding: 4rem;
    flex-grow: 1;
}

.blueprint-main-track {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.blueprint-section-block {
    display: flex;
    flex-direction: column;
}

.section-badge-node {
    font-family: monospace;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.section-badge-node::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.blueprint-narrative-text {
    color: rgba(244, 244, 246, 0.85);
    line-height: 1.75;
    font-size: 1.15rem;
    font-weight: 400;
}

.blueprint-tech-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
}

.blueprint-tech-list li {
    list-style: none;
    font-size: 1.05rem;
    color: rgba(244, 244, 246, 0.8);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.blueprint-tech-list li::before {
    content: "→";
    color: var(--text-muted);
    margin-right: 1rem;
    font-weight: 600;
}

.blueprint-side-track {
    display: flex;
    flex-direction: column;
}

.sidebar-matrix-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.2rem;
    position: sticky;
    top: 2rem;
}

.matrix-label {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blueprint-prime-metric {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
    margin-bottom: 2.5rem;
}

.matrix-data-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.matrix-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.matrix-row .m-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.matrix-row .m-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ==========================================================================
   10. BENEFITS SECTION
   ========================================================================== */
.benefits-title {
    font-size: 4.8rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-title em {
    font-family: serif;
    font-style: italic;
    font-weight: 300;
}

.benefits-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 5rem auto;
    line-height: 1.5;
}

.benefits-carousel-viewport {
    width: 100%;
    overflow: hidden !important;
    position: relative;
    padding: 1rem 0;
}

.benefits-carousel-track {
    display: flex !important;
    gap: 2.5rem !important;
    width: max-content !important;
    padding: 0 0.5rem;
    will-change: transform;
}

.benefits-carousel-viewport .benefit-card {
    width: calc((1212px - 5rem) / 3) !important;
    flex-shrink: 0 !important;
}

.benefit-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.icon-wrapper {
    color: var(--accent-color);
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto 2rem auto !important;
}

.icon-wrapper svg {
    display: block !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

.benefit-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.benefit-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0.2) 0%, rgba(11, 11, 12, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

.benefit-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: url(#grainy-noise);
    mix-blend-mode: overlay;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   11. FAQ SECTION
   ========================================================================== */
.faq-item {
    border-bottom: 1px solid var(--border-current);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 2rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.faq-answer p {
    padding-bottom: 2rem;
}

/* ==========================================================================
   12. PRICING ENGINE & 3D SYSTEM
   ========================================================================== */
.pricing-hero {
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.pricing-main-title {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-light);
}

.pricing-main-title em {
    font-family: serif;
    font-style: italic;
    font-weight: 300;
    color: var(--text-muted);
}

.pricing-split-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    padding-bottom: 4rem;
    max-width: 85%;
}

.pricing-card-box {
    flex: 1;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.pricing-card-box.left-box {
    flex: 0.7;
    max-width: 440px;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 380px;
    padding-top: 100px;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 80%), var(--card-bg);
    overflow: visible !important;
    z-index: 2;
}

.pricing-card-box.right-box {
    flex: 1.3;
    max-width: 800px;
    background-color: #030303;
    position: relative;
    overflow: hidden;
}

.sway-wrapper {
    position: absolute;
    top: 0%;
    left: -8%;
    width: 75%;
    perspective: 1000px;
    will-change: transform;
    z-index: 999;
    pointer-events: none;
}

.sway-wrapper.bottom-right-overflow {
    position: absolute;
    bottom: 0;
    right: 0;
    top: auto;
    left: auto;
    width: 380px;
    transform: translate(50%, 50%);
    perspective: 1000px;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

.osc-membership-card {
    width: 120%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    animation: continuousSway 7s infinite ease-in-out;
}

.osc-click-logo {
    width: 70%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    transform-style: preserve-3d;
    opacity: 0.85;
    animation: continuousSway 5s infinite ease-in-out;
}

.guarantee-text-block {
    margin: 0.5rem 0 1.5rem 0;
}

.guarantee-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.2rem 0;
}

.guarantee-sub {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin: 0;
}

.left-box-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.start-today-pill {
    display: inline-block;
    background-color: #1a1a1e;
    border: 1px solid #2d2d31;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
}

.left-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.pricing-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.2rem;
}

.tier-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.pause-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.price-block {
    margin-bottom: 1.2rem;
}

.promo-badge {
    display: inline-block;
    background-color: #1a1a1e;
    color: #ff55bb;
    border: 1px solid #ff55bb;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.current-price {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.current-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.2rem;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
}

.included-header-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.pricing-bullets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pricing-bullets-grid li {
    font-size: 0.80rem;
    color: #b5b5bc;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
}

.bullet-arrow {
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-action-footer {
    width: 100%;
}

.pricing-submit-btn {
    width: auto;
    min-width: 160px;
    background-color: var(--text-light);
    color: var(--bg-dark);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.pricing-submit-btn:hover {
    background-color: #ffffff;
    transform: scale(1.015);
}

.footer-arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.pricing-submit-btn:hover .footer-arrow-icon {
    transform: translateX(3px);
}

/* Wide Premium Card Logic */
.pricing-card-wide {
    background: linear-gradient(135deg, #1e1b4b 10%, #2e1065 30%, #090514 60%) !important;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    width: 100%;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -15px rgba(147, 51, 234, 0.25), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.pricing-badge-wrapper .pill {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.price-strike {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-bottom: 0.2rem;
}

.price-actual {
    font-size: 3.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.price-actual span {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-columns-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4.5rem;
}

.policy-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.policy-card h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 0.6rem;
}

.policy-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.features-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.features-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.5;
}

.check-icon {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

/* ==========================================================================
   13. FLUID BACKGROUNDS & ANIMATIONS
   ========================================================================== */
.fluid-bg-1 {
    background:
        radial-gradient(circle at 15% 15%, #2ec4b6 0%, rgba(46, 196, 182, 0) 55%),
        /* A rich violet that bridges the gap between dark background and teal */
        radial-gradient(circle at 85% 35%, #7209b7 0%, rgba(114, 9, 183, 0) 60%),
        radial-gradient(circle at 50% 85%, #206a5d 0%, rgba(32, 106, 93, 0) 50%),
        #020605;
}

.fluid-bg-2 {
    background:
        radial-gradient(circle at 10% 30%, #0096c7 0%, rgba(0, 150, 199, 0) 55%),
        /* A bright turquoise/cyan that gives a sharp, clean glow */
        radial-gradient(circle at 75% 15%, #00f5d4 0%, rgba(0, 245, 212, 0) 70%),
        radial-gradient(circle at 50% 85%, #0077b6 0%, rgba(0, 119, 182, 0) 50%),
        #01060f;
}

.fluid-bg-3 {
    background:
        radial-gradient(circle at 80% 20%, #f77f00 0%, rgba(247, 127, 0, 0) 50%),
        radial-gradient(circle at 20% 60%, #fcbf49 0%, rgba(252, 191, 73, 0) 60%),
        radial-gradient(circle at 70% 90%, #d62828 0%, rgba(214, 40, 40, 0) 45%),
        #0d0600;
    /* Darkened base */
}

.fluid-bg-4 {
    background:
        radial-gradient(circle at 30% 15%, #7209b7 0%, rgba(114, 9, 183, 0) 50%),
        radial-gradient(circle at 85% 50%, #f72585 0%, rgba(247, 37, 133, 0) 55%),
        radial-gradient(circle at 10% 80%, #3f37c9 0%, rgba(63, 55, 201, 0) 50%),
        #090012;
    /* Darkened base */
}

.fluid-bg-5 {
    background:
        radial-gradient(circle at 70% 25%, #e63946 0%, rgba(230, 57, 70, 0) 55%),
        radial-gradient(circle at 25% 45%, #457b9d 0%, rgba(69, 123, 157, 0) 65%),
        radial-gradient(circle at 50% 85%, #1d3557 0%, rgba(29, 53, 87, 0) 50%),
        #050a12;
    /* Darkened base */
}

.fluid-bg-3 {
    background:
        radial-gradient(circle at 80% 20%, #f77f00 0%, rgba(247, 127, 0, 0) 50%),
        radial-gradient(circle at 20% 60%, #fcbf49 0%, rgba(252, 191, 73, 0) 60%),
        radial-gradient(circle at 70% 90%, #d62828 0%, rgba(214, 40, 40, 0) 45%),
        #0d0600;
    /* Darkened base */
}

.fluid-bg-4 {
    background:
        radial-gradient(circle at 30% 15%, #7209b7 0%, rgba(114, 9, 183, 0) 50%),
        radial-gradient(circle at 85% 50%, #f72585 0%, rgba(247, 37, 133, 0) 55%),
        radial-gradient(circle at 10% 80%, #3f37c9 0%, rgba(63, 55, 201, 0) 50%),
        #090012;
    /* Darkened base */
}

.fluid-bg-5 {
    background:
        radial-gradient(circle at 70% 25%, #e63946 0%, rgba(230, 57, 70, 0) 55%),
        radial-gradient(circle at 25% 45%, #457b9d 0%, rgba(69, 123, 157, 0) 65%),
        radial-gradient(circle at 50% 85%, #1d3557 0%, rgba(29, 53, 87, 0) 50%),
        #050a12;
    /* Darkened base */
}

@keyframes shake {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(3deg);
    }
}

@keyframes continuousSway {
    0% {
        transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg) translateY(0px);
    }

    25% {
        transform: rotateY(-6deg) rotateX(11deg) rotateZ(-1deg) translateY(-6px);
    }

    50% {
        transform: rotateY(-15deg) rotateX(5deg) rotateZ(-4deg) translateY(-2px);
    }

    75% {
        transform: rotateY(-8deg) rotateX(10deg) rotateZ(-2deg) translateY(-5px);
    }

    100% {
        transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg) translateY(0px);
    }
}

/* ==========================================================================
   14. RESPONSIVE OVERRIDES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1400px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1300px) {

    .cases-carousel-viewport .case-card,
    .benefits-carousel-viewport .benefit-card {
        width: calc((100vw - 6rem - 5rem) / 3) !important;
    }
}

@media (max-width: 1240px) {
    .cases-carousel-viewport .case-card {
        width: calc((100vw - 4rem - 6rem) / 3) !important;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2050;
    }

    body.nav-open nav {
        right: 0;
    }

    nav button {
        margin: 0.25rem 0 !important;
        padding: 1.25rem 2.5rem;
        font-size: 1.8rem;
    }

    body.nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Scrubber Mobile Center-Focus Layout */
    .scrubber-section {
        display: block;
    }

    .scrubber-text-header h1,
    .scrubber-text-header h2 {
        font-size: 1.8rem;
    }

    .scrubber-viewport {
        grid-template-columns: 1fr;
        height: 420px !important;
        /* Fixed height to provide a stable coordinate space */
        padding-left: 0;
        padding-right: 0;
        overflow: visible;
    }

    .scrubber-labels,
    .scrubber-tracks-window {
        grid-area: 1 / 1;
    }

    .scrubberViewportBounds {
        width: 100%;
    }

    .scrubber-labels {
        z-index: 90;
        padding-left: 1.5rem;
        transform: translateY(-30px);
    }

    .label-row-title {
        font-size: 0.6rem;
    }

    .scrubber-tracks-window {
        /* Keep your existing horizontal scroll behaviors */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* FIX: Lock the vertical axis completely */
        overflow-y: hidden !important;
        /* FIX: Explicitly tell mobile browsers to only track left/right touch gestures */
        touch-action: pan-x !important;
    }

    .scrubber-tracks-window::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .master-track-content {
        width: max-content !important;
        padding: 0 50vw;
        /* Allows the start and end of the track to reach the center needle */
    }

    .needle-axis {
        position: sticky !important;
        left: 50% !important;
        top: 200% !important;
        /* Pushed down further to ensure the face sits correctly over the tracks */
        height: 320px !important;
        /* Increased height to prevent the needle from appearing shrunk on mobile */
        top: 50% !important;
        /* Centered vertically within the 420px viewport */
        top: 65% !important;
        /* Tall enough to clear tracks and labels */
        transform: translate(-50%, -50%) !important;
        z-index: 100;
        justify-content: flex-start !important;
        /* Pins the face/head to the top of the axis */
        margin-top: 200px;
    }

    .needle-line {
        height: auto !important;
        flex: 1;
        /* Allow the line to fill the remaining height below the face */
        width: 2px;
        background-color: #ffffff;
    }

    .pricing-main-title {
        font-size: 2.5rem;
    }

    .pricing-split-container {
        flex-direction: column;
        align-items: center;
        padding-left: 0%;
        padding-right: 0%;
        margin-top: 4rem;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .left-box h2 {
        font-size: 1.6rem;
    }

    .pricing-card-box {
        width: 100%;
    }

    .pricing-card-box,
    .pricing-card-box.left-box,
    .pricing-card-box.right-box {
        max-width: 600px;
    }

    .left-box {
        min-height: 320px;
        padding-top: 110px;
    }

    /* Specific fix for the top-left membership card on mobile */
    .pricing-card-box.left-box .sway-wrapper:not(.bottom-right-overflow) {
        top: -12%;
        left: -5%;
        width: 80%;
    }

    /* Specific fix for the bottom-right accent on mobile */
    .sway-wrapper.bottom-right-overflow {
        bottom: 0;
        right: 0;
        top: auto;
        left: auto;
        width: 280px;
        transform: translate(50%, 50%);
    }

    .pricing-bullets-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-title {
        font-size: 3.5rem;
    }

    .blueprint-hero-title {
        font-size: 2.2rem;
    }

    .blueprint-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }

    .blueprint-modal-container {
        padding: 2rem 1rem;
    }

    .pricing-card-wide {
        padding: 2.5rem 2rem;
    }

    .pricing-header-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .pricing-header-row .header-right {
        text-align: left;
    }

    .pricing-columns-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 900px) {

    .cases-carousel-viewport .case-card,
    .benefits-carousel-viewport .benefit-card {
        width: calc(100vw - 6rem) !important;
    }
}

@media (max-width: 768px) {
    .pricing-grid-layout {
        flex-direction: column !important;
        gap: 2.5rem !important;
    }

    .pricing-box {
        padding: 2rem !important;
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: 320px;
    }
}
