:root {
    --bg-color: #050505;
    --accent-color: #00f0ff;
    /* Cyan accent */
    --accent-glow: rgba(0, 240, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #888888;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-color);
}

body {
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Background elements */
#starscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
    will-change: transform;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-content .logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.1s linear;
}

#loading-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    width: 0%;
    z-index: 1000;
}

/* Typography & Components */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.1;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn.primary {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn.lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.ghost-btn:hover, .ghost-btn:active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-glow);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, width, top, padding, background;
}

#navbar.scrolled {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 950px;
    max-width: 95vw;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.highlight {
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: 20%;
    left: 20%;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadePulse 2s infinite ease-in-out;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* Scroll Animation Section */
.scroll-animation {
    height: 400vh;
    /* Adjust for scroll duration */
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Annotation Cards */
.annotation-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    width: 350px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: transform, opacity;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(1) {
    top: 30%;
    left: 10%;
}

.card:nth-child(2) {
    top: 40%;
    right: 10%;
}

.card:nth-child(3) {
    top: 20%;
    left: 15%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.step-num {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Specs Section */
.specs-section {
    padding: 150px 2rem;
    background: #020202;
    position: relative;
    z-index: 20;
}

.specs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.spec-item h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    display: inline-block;
    background: linear-gradient(180deg, #fff, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: text-shadow 0.3s;
    will-change: text-shadow;
}

.spec-item h2.glowing {
    text-shadow: 0 0 30px var(--accent-glow);
    -webkit-text-fill-color: var(--accent-color);
}

.spec-item span {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--accent-color);
}

.spec-item p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 150px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: white;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA */
.cta-section {
    padding: 100px 2rem 150px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}

.cta-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(0, 240, 255, 0.05));
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px var(--accent-glow);
}

.cta-card h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}


/* Feature Grid (Restored) */
.features {
    padding: 100px 2rem;
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Pricing Calculator */
.pricing-calculator {
    padding: 100px 2rem;
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 50px;
}

@media (max-width: 900px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

.calculator-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calc-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-option:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}

.calc-option-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.calc-option-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.calc-checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-price {
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

/* Custom Checkbox */
.calc-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-secondary);
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.calc-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.calc-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: #000;
    font-size: 16px;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.calc-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calculator-summary {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--accent-glow);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.calculator-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.calc-total-display {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.calc-total-display .mo {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    text-shadow: none;
}

.calc-guarantee {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.full-width {
    width: 100%;
}


/* Global Footer */
footer {
    border-top: 1px solid var(--accent-glow);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 80px 2rem 40px;
    position: relative;
    z-index: 20;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand {
    max-width: 350px;
}

.brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content .logo {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
}

.links {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col a {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
    text-shadow: 0 0 8px var(--accent-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Global Mobile & Tablet Optimizations --- */
@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
    }
    #navbar.scrolled {
        width: 95vw;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Navbar styling for mobile */
    #navbar {
        position: absolute;
        padding: 1rem;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    #navbar.scrolled {
        position: absolute;
        width: 100%;
        top: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    
    /* Typography scaling */
    .hero {
        padding-top: 220px; /* Clear the stacked vertical mobile navbar */
        min-height: 100vh;
        padding-bottom: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 1.5rem auto 2.5rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }

    /* Annotation Cards in Scroll Video */
    .scroll-animation {
        height: 250vh !important; /* Shorter scroll height on mobile */
    }
    .sticky-container {
        height: 100vh;
    }
    #video-canvas {
        object-fit: cover;
    }
    .annotation-cards .card {
        width: 90%;
        max-width: 350px;
        left: 5% !important;
        right: auto !important;
        margin: 0 auto;
        padding: 1.5rem;
    }
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Specs Grid Stacking */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .spec-item h2 {
        font-size: 2.5rem;
    }
    
    /* Calculator adjustments */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .calculator-summary {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    .calculator-options {
        padding-right: 0;
    }
    
    /* Footer stacking */
    .footer-content {
        gap: 2.5rem;
    }
    .links {
        gap: 2rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Full mobile stacking */
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .spec-item {
        padding: 1.5rem;
    }
    .feature-card {
        padding: 1.5rem 1rem;
    }
    .cta-card {
        padding: 3rem 1.5rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Mobile Failsafe Helper */
#loader.loader-hidden { opacity: 0 !important; pointer-events: none !important; visibility: hidden; }
body.locked { overflow: hidden !important; }
