/* ==========================================================================
   ForeTune Teller Design System & Style Guide
   ========================================================================== */

:root {
    /* Layout Tokens */
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Light Theme Tokens - Warm Golf Clubhouse Matte Chalk */
    --light-ink: #f4f7f5;
    --light-panel: #ffffff;
    --light-panel-raised: #e9eee9;
    --light-line: rgba(22, 30, 26, 0.08);
    --light-text: #161e1a;
    --light-muted: rgba(22, 30, 26, 0.62);
    --light-accent: #1bbf72;        /* Elegant Grass Green */
    --light-accent-dim: rgba(27, 191, 114, 0.15);
    --light-orange: #e07b00;
    --light-bad: #d92b2b;
    --light-gradient-bg: radial-gradient(circle at top left, #eaf5f0 0%, #f4f7f5 60%);
    --light-gradient-panel: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(233, 238, 233, 0.9) 100%);
    --light-glow-shadow: 0 8px 30px rgba(27, 191, 114, 0.18);
    --light-dimple-color: rgba(27, 191, 114, 0.015);
    --light-glass: rgba(255, 255, 255, 0.7);
    --light-header: #0a0d0c;
    --light-spotlight: rgba(27, 191, 114, 0.06);

    /* Dark Theme Tokens - Obsidian & Cyber Emerald */
    --dark-ink: #06070a;
    --dark-panel: #0d0f17;
    --dark-panel-raised: #141724;
    --dark-line: rgba(255, 255, 255, 0.08);
    --dark-text: rgba(255, 255, 255, 0.94);
    --dark-muted: rgba(255, 255, 255, 0.62);
    --dark-accent: #2ef0a0;       /* Glowing Active Emerald Golf Green */
    --dark-accent-dim: rgba(46, 240, 160, 0.15);
    --dark-orange: #ff9500;       /* Warning Alert Orange */
    --dark-bad: #ff3b30;          /* Disarm Red */
    --dark-gradient-bg: radial-gradient(circle at top left, #122c22 0%, #06070a 60%);
    --dark-gradient-panel: linear-gradient(135deg, rgba(20, 23, 36, 0.8) 0%, rgba(13, 15, 23, 0.8) 100%);
    --dark-glow-shadow: 0 0 20px rgba(46, 240, 160, 0.35);
    --dark-dimple-color: rgba(255, 255, 255, 0.02);
    --dark-glass: rgba(13, 15, 23, 0.7);
    --dark-header: #ffffff;
    --dark-spotlight: rgba(46, 240, 160, 0.045);

    /* Active Variables (Dark Mode by Default) */
    --color-ink: var(--dark-ink);
    --color-panel: var(--dark-panel);
    --color-panel-raised: var(--dark-panel-raised);
    --color-line: var(--dark-line);
    --color-text: var(--dark-text);
    --color-muted: var(--dark-muted);
    --color-accent: var(--dark-accent);
    --color-accent-dim: var(--dark-accent-dim);
    --color-orange: var(--dark-orange);
    --color-bad: var(--dark-bad);
    --gradient-bg: var(--dark-gradient-bg);
    --gradient-panel: var(--dark-gradient-panel);
    --glow-shadow: var(--dark-glow-shadow);
    --dimple-color: var(--dark-dimple-color);
    --color-glass: var(--dark-glass);
    --color-header: var(--dark-header);
    --color-spotlight: var(--dark-spotlight);
    
    color-scheme: dark;
}

/* Automatic System Light Scheme Match */
@media (prefers-color-scheme: light) {
    :root {
        --color-ink: var(--light-ink);
        --color-panel: var(--light-panel);
        --color-panel-raised: var(--light-panel-raised);
        --color-line: var(--light-line);
        --color-text: var(--light-text);
        --color-muted: var(--light-muted);
        --color-accent: var(--light-accent);
        --color-accent-dim: var(--light-accent-dim);
        --color-orange: var(--light-orange);
        --color-bad: var(--light-bad);
        --gradient-bg: var(--light-gradient-bg);
        --gradient-panel: var(--light-gradient-panel);
        --glow-shadow: var(--light-glow-shadow);
        --dimple-color: var(--light-dimple-color);
        --color-glass: var(--light-glass);
        --color-header: var(--light-header);
        --color-spotlight: var(--light-spotlight);
        
        color-scheme: light;
    }
}

/* Explicit class-based overrides for manual toggle clicks */
.dark-theme {
    --color-ink: var(--dark-ink);
    --color-panel: var(--dark-panel);
    --color-panel-raised: var(--dark-panel-raised);
    --color-line: var(--dark-line);
    --color-text: var(--dark-text);
    --color-muted: var(--dark-muted);
    --color-accent: var(--dark-accent);
    --color-accent-dim: var(--dark-accent-dim);
    --color-orange: var(--dark-orange);
    --color-bad: var(--dark-bad);
    --gradient-bg: var(--dark-gradient-bg);
    --gradient-panel: var(--dark-gradient-panel);
    --glow-shadow: var(--dark-glow-shadow);
    --dimple-color: var(--dark-dimple-color);
    --color-glass: var(--dark-glass);
    --color-header: var(--dark-header);
    --color-spotlight: var(--dark-spotlight);
    
    color-scheme: dark;
}

.light-theme {
    --color-ink: var(--light-ink);
    --color-panel: var(--light-panel);
    --color-panel-raised: var(--light-panel-raised);
    --color-line: var(--light-line);
    --color-text: var(--light-text);
    --color-muted: var(--light-muted);
    --color-accent: var(--light-accent);
    --color-accent-dim: var(--light-accent-dim);
    --color-orange: var(--light-orange);
    --color-bad: var(--light-bad);
    --gradient-bg: var(--light-gradient-bg);
    --gradient-panel: var(--light-gradient-panel);
    --glow-shadow: var(--light-glow-shadow);
    --dimple-color: var(--light-dimple-color);
    --color-glass: var(--light-glass);
    --color-header: var(--light-header);
    --color-spotlight: var(--light-spotlight);
    
    color-scheme: light;
}

/* ==========================================================================
   Resets & Base Elements
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-ink);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background-color: var(--color-ink);
    background-image: var(--gradient-bg);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Global Utilities & Layout Layouts
   ========================================================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px auto;
}

.section-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    background: none;
    padding: 0;
    border: none;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--color-header);
    line-height: 1.1;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-muted);
}

.text-glow {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(46, 240, 160, 0.3);
}

.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-ink);
}
::-webkit-scrollbar-thumb {
    background: var(--color-panel-raised);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

.btn-secondary {
    background-color: var(--color-panel-raised);
    color: var(--color-header);
    border: 1px solid var(--color-line);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(6, 7, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-line);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1px;
}

.logo-fore {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(46, 240, 160, 0.45);
}

.logo-tune {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.05em;
    color: var(--color-header);
}

.logo-teller {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: var(--color-muted);
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
}

.nav-link:hover {
    color: var(--color-header);
}

.btn-nav {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
    background-color: var(--color-accent).opacity(0.1);
    border: 1px solid rgba(46, 240, 160, 0.2);
    color: var(--color-accent);
}

.btn-nav:hover {
    background-color: var(--color-accent);
    color: #000;
}

/* ==========================================================================
   Hero Showcase Section
   ========================================================================== */

.hero-section {
    padding: 140px 24px 80px 24px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero-pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    background: none;
    padding: 0;
    border: none;
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-header);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
}

.hero-trust {
    display: flex;
    gap: 24px;
    border-top: 1px solid var(--color-line);
    padding-top: 24px;
    width: 100%;
}

.trust-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--color-accent);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   The Interactive iPhone Pro Mockup
   ========================================================================== */

.iphone-container {
    width: 320px;
    height: 650px;
    background-color: #0b0c11;
    border-radius: 44px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7),
                0 0 0 10px #1e2029,
                0 0 0 12px #2f3240;
    position: relative;
    padding: 10px;
    overflow: hidden;
}

.iphone-notch {
    width: 110px;
    height: 24px;
    background-color: #000;
    border-radius: 12px;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background-color: #05060a;
    color: var(--color-text);
    border-radius: 36px;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 12px 12px 12px;
    scrollbar-width: none; /* Hide scrollbar for simulated view */
    
    /* Lock inside to Dark HUD mode regardless of light theme */
    --color-ink: var(--dark-ink);
    --color-panel: var(--dark-panel);
    --color-panel-raised: var(--dark-panel-raised);
    --color-line: var(--dark-line);
    --color-text: var(--dark-text);
    --color-muted: var(--dark-muted);
    --color-accent: var(--dark-accent);
    --color-accent-dim: var(--dark-accent-dim);
    --color-orange: var(--dark-orange);
    --color-bad: var(--dark-bad);
    --gradient-bg: var(--dark-gradient-bg);
    --gradient-panel: var(--dark-gradient-panel);
    --glow-shadow: var(--dark-glow-shadow);
    --dimple-color: var(--dark-dimple-color);
    --color-glass: var(--dark-glass);
    --color-header: var(--dark-header);
    --color-spotlight: var(--dark-spotlight);
}

.iphone-screen::-webkit-scrollbar {
    display: none;
}

/* Simulator View Elements */
.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.screen-brand {
    display: flex;
    flex-direction: column;
}

.brand-top {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 800;
    color: var(--color-header);
    letter-spacing: 0.1em;
}

.brand-sub {
    font-size: 7px;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.screen-menu-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--color-line);
    background-color: var(--color-panel-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--color-header);
}

/* Status Pills */
.screen-telemetry-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.screen-pill {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.screen-pill i {
    font-size: 9px;
    color: var(--color-muted);
}

.screen-pill.active {
    background-color: rgba(46, 240, 160, 0.04);
    border-color: rgba(46, 240, 160, 0.2);
}

.screen-pill.active i {
    color: var(--color-accent);
}

.pill-labels {
    display: flex;
    flex-direction: column;
}

.pill-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5px;
    font-weight: 800;
    color: var(--color-muted);
}

.pill-value {
    font-size: 7px;
    font-weight: 700;
    color: var(--color-header);
}

/* Screen Viewport & Spirit level */
.screen-viewport {
    height: 270px;
    background-color: rgba(20, 23, 36, 0.4);
    border: 1px solid var(--color-line);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewport-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.level-bullseye {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ring {
    border-radius: 50%;
    position: absolute;
}

.ring.outer {
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-line);
}

.ring.inner {
    width: 60%;
    height: 60%;
    border: 1px dashed rgba(46, 240, 160, 0.2);
}

.level-line {
    width: 55px;
    height: 1px;
    background-color: var(--color-line);
    position: absolute;
}

.level-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px var(--color-accent);
}

.level-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

/* Capturing Loaders */
.pulse-loader {
    font-size: 16px;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.tracking-txt {
    color: var(--color-muted);
}

.swing-impact-anim {
    font-size: 24px;
    color: var(--color-orange);
    margin-bottom: 6px;
    text-shadow: 0 0 10px var(--color-orange);
}

.flash-txt {
    color: var(--color-orange);
    animation: flash 0.3s infinite alternate;
}

@keyframes flash {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Screen Metrics Grid */
.screen-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.metric-card {
    background-color: rgba(13, 15, 23, 0.8);
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.m-hdr {
    display: flex;
    justify-content: space-between;
    font-family: 'JetBrains Mono', monospace;
    font-size: 5px;
    font-weight: 800;
    color: var(--color-muted);
}

.m-hdr i {
    opacity: 0.4;
}

.m-val {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--color-header);
}

.m-unit {
    font-size: 5px;
    font-weight: 700;
    color: var(--color-accent);
}

/* Telemetry Diagnostics Drawer */
.screen-telemetry-drawer {
    background-color: rgba(20, 23, 36, 0.9);
    border: 1px solid var(--color-line);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dr-left {
    display: flex;
    flex-direction: column;
}

.dr-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5px;
    font-weight: 800;
    color: var(--color-muted);
}

.dr-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px;
    font-weight: 800;
    color: var(--color-accent);
}

.dr-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.diagnostics-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4px;
    font-weight: 800;
    color: var(--color-accent);
    background: rgba(46, 240, 160, 0.08);
    padding: 2px 4px;
    border-radius: 3px;
}

.dr-right i {
    font-size: 7px;
    color: var(--color-accent);
}

.drawer-body {
    margin-top: 8px;
}

.telemetry-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.tel-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.tel-row i {
    font-size: 7px;
    width: 8px;
}

.tel-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tel-name {
    font-size: 5px;
    font-weight: 800;
    color: var(--color-header);
}

.tel-desc {
    font-size: 4px;
    color: var(--color-muted);
}

.tel-pts {
    font-size: 6px;
    font-weight: 700;
    color: var(--color-accent);
}

.text-emerald {
    color: var(--color-accent);
}

.drawer-insights {
    border-top: 1px solid var(--color-line);
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.insight-hdr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5px;
    font-weight: 800;
    color: var(--color-accent);
}

.insight-body {
    font-size: 5px;
    color: var(--color-muted);
    line-height: 1.4;
}

/* Phone Controls */
.screen-controls {
    display: flex;
    gap: 8px;
}

.btn-screen-arm {
    flex-grow: 1;
    background-color: var(--color-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-screen-arm.active {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--color-bad);
    border: 1px solid var(--color-bad);
}

.btn-screen-ar {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background-color: var(--color-panel-raised);
    border: 1px solid var(--color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-header);
    font-size: 11px;
}

/* ==========================================================================
   Feature Grid Section
   ========================================================================== */

.features-section {
    background-color: rgba(13, 15, 23, 0.4);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.features-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.feature-card {
    background: var(--gradient-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; }
.feature-card:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 3; } /* Tall Bento card */
.feature-card:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; }
.feature-card:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; } /* Wide Bento card */

@media (max-width: 1024px) {
    .feature-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 240, 160, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(46, 240, 160, 0.06);
    border: 1px solid rgba(46, 240, 160, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-header);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ==========================================================================
   The 63.8M Pipeline Visualization
   ========================================================================== */

.pipeline-section {
    position: relative;
    padding: 100px 0;
}

.pipeline-visual {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px auto;
    position: relative;
    z-index: 10;
}

.pipeline-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: var(--color-accent);
    filter: blur(140px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.pipeline-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.counter-number {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-header);
    text-shadow: 0 0 30px rgba(46, 240, 160, 0.25);
    font-family: 'Outfit', sans-serif;
}

.counter-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-top: 8px;
}

.pipeline-intro {
    font-size: 18px;
    color: var(--color-muted);
    line-height: 1.6;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.pipe-col {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-line);
    padding-left: 20px;
}

.pipe-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-header);
    margin-bottom: 8px;
}

.pipe-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.pipe-desc {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ==========================================================================
   The Science (Aerodynamics & Math)
   ========================================================================== */

.science-section {
    background-color: rgba(6, 7, 10, 0.6);
    border-top: 1px solid var(--color-line);
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.science-card {
    background-color: rgba(20, 23, 36, 0.4);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 32px;
}

.sci-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-header);
    margin-bottom: 12px;
}

.sci-card-desc {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.formula {
    background-color: #06070a;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--color-accent);
}

/* ==========================================================================
   Pricing Plans
   ========================================================================== */

.pricing-section {
    border-top: 1px solid var(--color-line);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.price-card {
    background: var(--gradient-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: var(--transition-smooth);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.price-card.popular {
    border: 2px solid var(--color-accent);
    box-shadow: 0 15px 40px -15px rgba(46, 240, 160, 0.15);
}

.card-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background-color: var(--color-accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 4px;
}

.price-title {
    font-size: 20px;
    color: var(--color-header);
    margin-bottom: 12px;
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-header);
    line-height: 1;
    margin-bottom: 16px;
}

.price-period {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 500;
}

.price-desc {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 32px;
    line-height: 1.5;
    min-height: 42px;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    font-size: 14px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features i {
    width: 16px;
    text-align: center;
}

.price-features .text-emerald {
    color: var(--color-accent);
}

.price-features .text-muted {
    color: var(--color-muted);
    opacity: 0.3;
}

.card-btn {
    width: 100%;
}

.pricing-lookup-note {
    text-align: center;
    background-color: rgba(20, 23, 36, 0.4);
    border: 1px dashed var(--color-line);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    max-width: 650px;
    margin: 0 auto;
}

.pricing-lookup-note p {
    font-size: 13px;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pricing-lookup-note strong {
    color: var(--color-accent);
}

/* ==========================================================================
   Sleek Footer
   ========================================================================== */

.site-footer {
    background-color: #030406;
    border-top: 1px solid var(--color-line);
    padding: 80px 24px 32px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 56px auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group h4 {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.link-group a {
    font-size: 14px;
    color: var(--color-muted);
}

.link-group a:hover {
    color: var(--color-header);
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--color-line);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: var(--color-muted);
}

/* ==========================================================================
   Responsive Grid Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-pitch {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .science-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .navbar {
        position: absolute;
    }
    
    .nav-menu {
        display: none; /* Mobile hamburger omitted for layout brevity */
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pipeline-grid {
        grid-template-columns: 1fr;
    }
    
    .pipe-col {
        border-left: none;
        border-top: 1px solid var(--color-line);
        padding-left: 0;
        padding-top: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Premium Golf Aesthetics & Custom Telemetry System
   ========================================================================== */

/* Golf Ball Dimple repeating background */
.dimple-bg {
    position: relative;
    overflow: hidden;
}

.dimple-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background-image: 
        radial-gradient(circle at 50% 50%, var(--dimple-color) 20%, transparent 20%),
        radial-gradient(circle at 0 0, var(--dimple-color) 20%, transparent 20%),
        radial-gradient(circle at 100% 0, var(--dimple-color) 20%, transparent 20%),
        radial-gradient(circle at 100% 100%, var(--dimple-color) 20%, transparent 20%),
        radial-gradient(circle at 0 100%, var(--dimple-color) 20%, transparent 20%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 7px, 7px 7px, 7px 7px, 7px 7px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

/* Dynamic Spotlight Cursor Glow */
.dimple-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--color-spotlight), transparent 60%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dimple-bg:hover::after {
    opacity: 1;
}

/* Ensure contents display above the dimple background layer */
.dimple-bg > * {
    position: relative;
    z-index: 3;
}

/* Topographic background contour styles */
.topo-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.topo-bg-overlay svg {
    width: 100%;
    height: 100%;
    opacity: 0.65;
}

.hero-section {
    position: relative;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.pipeline-section {
    position: relative;
}

.pipeline-visual, .pipeline-grid {
    position: relative;
    z-index: 2;
}

/* Hero Tagline highlight */
.hero-brand-highlight {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
}

.hero-brand-highlight .brand-fore {
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(46, 240, 160, 0.5);
}

.hero-brand-highlight .brand-tune {
    color: var(--color-header);
}

.hero-brand-highlight .brand-teller {
    font-family: 'Outfit', sans-serif;
    font-size: 34px;
    font-weight: 300;
    color: var(--color-muted);
    margin-left: 10px;
    letter-spacing: -0.01em;
}

/* Simulated App Header logo tags */
.sim-brand-fore {
    color: var(--color-accent);
    font-weight: 900;
}

.sim-brand-tune {
    color: var(--color-header);
    font-weight: 900;
}

.sim-brand-teller {
    font-family: 'Outfit', sans-serif;
    color: var(--color-muted);
    margin-left: 3px;
    font-size: 8px;
    font-weight: 300;
}

/* Custom SVG vectors formatting */
.telemetry-svg {
    width: 12px;
    height: 12px;
    color: var(--color-accent);
    vertical-align: middle;
}

.feature-svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
    display: block;
}

.sim-pill-svg {
    width: 10px;
    height: 10px;
    color: var(--color-muted);
    transition: var(--transition-smooth);
}

.screen-pill.active .sim-pill-svg {
    color: var(--color-accent);
    filter: drop-shadow(0 0 3px rgba(46, 240, 160, 0.4));
}

.drawer-row-svg {
    width: 8px;
    height: 8px;
    color: var(--color-accent);
}

.loading-spin-svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    animation: rotate-spin 1.5s linear infinite;
}

.impact-burst-svg {
    width: 28px;
    height: 28px;
    color: var(--color-orange);
    animation: pulse-burst 0.5s infinite alternate;
}

/* Micro animations & keyframes */
@keyframes rotate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-burst {
    from { transform: scale(0.85); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 8px var(--color-orange)); }
}

}

/* ==========================================================================
   Reimagined Interactive Elements
   ========================================================================== */

/* Shot profile selector styles */
.shot-selector-container {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    z-index: 20;
}

.selector-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.shot-pills {
    display: flex;
    gap: 4px;
    background-color: rgba(13, 15, 23, 0.85);
    border: 1px solid var(--color-line);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.shot-pill {
    background: none;
    border: none;
    outline: none;
    color: var(--color-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
}

.shot-pill:hover {
    color: var(--color-header);
    background-color: var(--color-panel-raised);
}

.shot-pill.active {
    background-color: var(--color-accent);
    color: #000;
    box-shadow: 0 0 15px rgba(46, 240, 160, 0.45);
}

/* Spotlight mouse glow backlights on glassmorphism cards */
.feature-card, .science-card, .price-card, .pricing-lookup-note {
    position: relative;
    overflow: hidden;
}

.feature-card::after, .science-card::after, .price-card::after, .pricing-lookup-note::after {
    content: "";
    position: absolute;
    top: var(--mouse-y, 0px);
    left: var(--mouse-x, 0px);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--color-spotlight) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-card:hover::after, .science-card:hover::after, .price-card:hover::after, .pricing-lookup-note:hover::after {
    opacity: 1;
}

/* Drifting topographic slow waves */
@keyframes topo-drift {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-12px) scale(1.03) rotate(0.5deg); }
    100% { transform: translateY(0) scale(1) rotate(0deg); }
}

.topo-bg-overlay svg {
    animation: topo-drift 22s ease-in-out infinite;
    transform-origin: center;
}

/* ==========================================================================
   Interactive Scrollytelling Section Styling
   ========================================================================== */

.scrollytelling-section {
    background-color: var(--color-ink);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    position: relative;
}

.scrolly-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    padding: 100px 24px;
}

.scrolly-sticky {
    position: sticky;
    top: 120px;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.visualizer-frame {
    width: 100%;
    max-width: 500px;
    height: 480px;
    background-color: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-shadow);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visualizer-topo {
    position: absolute;
    width: 90%;
    height: 90%;
    opacity: 0.25;
    pointer-events: none;
}

.visualizer-topo svg {
    width: 100%;
    height: 100%;
}

.schematic-container {
    width: 85%;
    height: 85%;
    position: relative;
    z-index: 5;
}

.schematic-container svg {
    width: 100%;
    height: 100%;
}

/* Schematic Animation Details */
.schematic-group {
    opacity: 0;
    transform: scale(0.95);
    transform-origin: center;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.schematic-group.active {
    opacity: 1;
    transform: scale(1);
}

#club-sweep-path {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#schematic-tracer {
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes impact-pulse {
    0% { transform: scale(0.6) translate(0, 0); opacity: 0.9; }
    100% { transform: scale(1.4) translate(-75px, -110px); opacity: 0; }
}

.impact-wave {
    transform-origin: 250px 375px;
    animation: impact-pulse 1.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

/* Telemetry overlay inside the frame */
.visualizer-overlay-stats {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: var(--gradient-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    z-index: 12;
    backdrop-filter: blur(10px);
}

.overlay-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.stat-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-header);
}

/* Scrollable Narrative styling */
.scrolly-narrative {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-bottom: 200px;
}

.narrative-step {
    padding: 40px;
    border-radius: var(--radius-md);
    background-color: transparent;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    opacity: 0.35;
    transform: translateX(10px);
}

.narrative-step.active {
    opacity: 1;
    transform: translateX(0);
    background-color: var(--color-panel);
    border-color: var(--color-line);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.step-num-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 12px;
}

.step-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-header);
    margin-bottom: 16px;
    line-height: 1.2;
}

.step-desc {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.step-metric-callout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-top: 1px solid var(--color-line);
    padding-top: 20px;
}

.cal-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-num {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--color-header);
    line-height: 1;
}

.cal-desc {
    font-size: 12px;
    color: var(--color-muted);
}

/* ==========================================================================
   Premium Top-500 Agency Visual Animations & Elements
   ========================================================================== */

/* Glassmorphic Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-color: var(--color-panel-raised);
    border: 1px solid var(--color-line);
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background-color: var(--color-panel);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent-dim);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Sun/Moon visibility rules */
.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

/* Set system preference light styling */
@media (prefers-color-scheme: light) {
    .sun-icon {
        opacity: 0;
        transform: rotate(-90deg) scale(0.3);
    }
    .moon-icon {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Explicit class-based rules override media query */
body.light-theme .sun-icon {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.3) !important;
}
body.light-theme .moon-icon {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}

body.dark-theme .sun-icon {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}
body.dark-theme .moon-icon {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.3) !important;
}

/* Premium Card Border Shimmer Animation */
@keyframes border-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.price-card.popular {
    position: relative;
}

.price-card.popular::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background: linear-gradient(90deg, var(--color-accent), #3cd070, var(--color-accent));
    background-size: 200% 200%;
    animation: border-shimmer 4s linear infinite;
    z-index: -1;
    opacity: 0.75;
}

/* Scroll-Driven Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle Interactive Floats for Hero & Callouts */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.iphone-container {
    animation: float 6s ease-in-out infinite;
}

.hero-brand-highlight {
    animation: float 8s ease-in-out infinite;
}

/* Telemetry Micro-pulse glow */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0px var(--color-accent-dim); }
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0px transparent; }
}

.screen-pill.active {
    animation: pulse-glow 2s infinite;
}

/* Light mode specific background grids adjustments */
body.light-theme .features-section {
    background-color: rgba(22, 30, 26, 0.02);
}
body.light-theme .science-section {
    background-color: var(--color-ink);
}
body.light-theme .formula {
    background-color: var(--color-panel-raised);
}
body.light-theme .topo-bg-overlay svg path {
    stroke: rgba(27, 191, 114, 0.04);
}
body.light-theme .navbar {
    background-color: rgba(244, 247, 245, 0.8);
}

/* ==========================================================================
   Interactive Comparison Table Section Styling
   ========================================================================== */

.comparison-section {
    background-color: var(--color-ink);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    padding: 100px 0;
    position: relative;
}

.comparison-table-wrapper {
    max-width: 1100px;
    margin: 40px auto 0 auto;
    overflow-x: auto;
    background-color: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-shadow);
    padding: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--color-muted);
    text-align: left;
    min-width: 800px;
}

.comparison-table th, 
.comparison-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--color-line);
}

.comparison-table th {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-header);
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}

.comparison-table td.feature-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--color-header);
}

.comparison-table .table-highlight {
    background-color: rgba(46, 240, 160, 0.02);
    border-left: 1px solid rgba(46, 240, 160, 0.15);
    border-right: 1px solid rgba(46, 240, 160, 0.15);
}

th.table-highlight {
    color: var(--color-accent) !important;
    border-top: 1px solid rgba(46, 240, 160, 0.15);
}

td.table-highlight.text-emerald {
    color: var(--color-accent) !important;
}

.comparison-table tr:hover {
    background-color: var(--color-panel-raised);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

body.light-theme .comparison-section {
    background-color: rgba(22, 30, 26, 0.02);
}
body.light-theme .comparison-table th {
    color: var(--color-ink);
}
body.light-theme .comparison-table tr:hover {
    background-color: rgba(22, 30, 26, 0.03);
}

body.light-theme .comparison-table .table-highlight {
    background-color: rgba(27, 191, 114, 0.03);
}


/* ==========================================================================
   AI Swing Coach Section Styling
   ========================================================================== */

.ai-coach-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    background-color: var(--color-ink);
}

.ai-coach-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.coach-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    margin-top: 60px;
    align-items: start;
}

@media (max-width: 968px) {
    .coach-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.coach-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coach-feature-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--gradient-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-line);
    transition: var(--transition-smooth);
}

.coach-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(46, 240, 160, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cf-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.cf-svg {
    width: 22px;
    height: 22px;
}

.cf-content {
    flex-grow: 1;
}

.cf-title {
    font-family: Outfit, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-header);
    margin-bottom: 8px;
}

.cf-desc {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Privacy Control Box Mockup */
.privacy-control-box {
    padding: 36px;
    background: var(--gradient-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.privacy-control-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
}

.pc-hdr {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.pc-intro {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 28px;
}

.pc-toggles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.pc-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-line);
}

.pc-toggle-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pct-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pct-name {
    font-family: Outfit, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-header);
}

.pct-desc {
    font-size: 11px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* iOS Style Switch */
.pct-switch {
    flex-shrink: 0;
    width: 48px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 1px solid var(--color-line);
}

.pct-switch.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.pct-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pct-switch.active .pct-knob {
    transform: translateX(20px);
}

.pc-footer-note {
    font-size: 11px;
    color: var(--color-muted);
    line-height: 1.6;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
}

body.light-theme .pct-switch {
    background: rgba(0, 0, 0, 0.08);
}
body.light-theme .pct-switch.active {
    background: var(--color-accent);
}
body.light-theme .pc-footer-note {
    background: rgba(22, 30, 26, 0.02);
}

/* ==========================================================================
   Total Premium Revamp Styles (Accuracy Gauges, Biometrics Pose, and 3D Range)
   ========================================================================== */

/* 1. Immersive Competitor Telemetry Dials */
.accuracy-gauges-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .accuracy-gauges-container {
        grid-template-columns: 1fr;
    }
}

.accuracy-gauge-card {
    background: var(--gradient-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gauge-title-group {
    width: 100%;
    margin-bottom: 24px;
}

.gauge-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--color-header);
    letter-spacing: -0.02em;
}

.gauge-subtitle {
    font-size: 13px;
    color: var(--color-muted);
}

.gauge-visual-box {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-track {
    stroke: rgba(255, 255, 255, 0.03);
}

body.light-theme .gauge-track {
    stroke: rgba(0, 0, 0, 0.04);
}

.gauge-glow-indicator {
    stroke: var(--color-accent);
    stroke-dasharray: 565; /* 2 * PI * r (90) */
    stroke-dashoffset: 565;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.gauge-needle {
    width: 4px;
    height: 90px;
    background: linear-gradient(to top, transparent, var(--color-accent));
    position: absolute;
    bottom: 50%;
    left: calc(50% - 2px);
    transform-origin: bottom center;
    border-radius: 2px;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.gauge-center-cap {
    width: 24px;
    height: 24px;
    background: var(--color-panel-raised);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: absolute;
    z-index: 12;
    box-shadow: 0 0 10px var(--color-accent-dim);
}

.gauge-digital-display {
    text-align: center;
    margin-top: 16px;
    z-index: 15;
}

.gauge-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 800;
    color: var(--color-header);
    line-height: 1.1;
}

.gauge-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--color-muted);
    font-weight: 700;
}

.competitor-toggles {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    width: 100%;
}

.comp-btn {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-line);
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

body.light-theme .comp-btn {
    background: rgba(0, 0, 0, 0.02);
}

.comp-btn.active {
    background: var(--color-accent-dim);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent-dim);
}

.comp-btn.active.worst {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    color: #ff3b30;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.15);
}

/* 2. Interactive Biometric joint Scanner */
.biometric-scanner-container {
    width: 100%;
    background: var(--gradient-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    position: relative;
    backdrop-filter: blur(25px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .biometric-scanner-container {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 32px;
    }
}

.skeleton-viewport {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 400px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-svg {
    width: 85%;
    height: 85%;
    z-index: 5;
}

.joint-pulse {
    fill: var(--color-accent);
    cursor: pointer;
    transition: fill 0.3s ease;
}

.joint-pulse:hover {
    fill: #ffffff;
}

.pulse-ring {
    stroke: var(--color-accent);
    stroke-width: 1.5;
    fill: none;
    transform-origin: center;
    animation: ring-ripple 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.joint-group:hover .pulse-ring {
    stroke: #ffffff;
}

@keyframes ring-ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.scanner-narratives {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scanner-card-callout {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
    transition: var(--transition-smooth);
    opacity: 0.5;
    transform: scale(0.98);
}

body.light-theme .scanner-card-callout {
    background: rgba(0, 0, 0, 0.01);
}

.scanner-card-callout.active {
    opacity: 1;
    transform: scale(1);
    background: var(--color-panel-raised);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px var(--color-accent-dim);
}

.scanner-card-callout:hover {
    opacity: 1;
    cursor: pointer;
}

.scanner-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: inline-block;
}

.scanner-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-header);
    margin-bottom: 8px;
}

.scanner-desc {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
}

/* 3. Immersive 3D golf range scrolly visualizer */
.canvas-range-viewport {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

#scrolly-range-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    z-index: 1;
}

.range-canvas-hud {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.hud-pill-indicator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(13, 15, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hud-pill-indicator.disarmed {
    color: #ff3b30;
    border-color: rgba(255, 59, 48, 0.2);
}
