:root {
    /* Antigravity Design System - Deep Space Palette */
    --bg-main: #03050C;
    --bg-surface: #0A0D18;
    --bg-surface-elevated: #121726;
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    /* Branding */
    --primary: #7B4DFF; /* Electric Purple */
    --primary-light: #9D7AFF;
    --primary-glow: rgba(123, 77, 255, 0.4);
    
    --accent-gold: #FFD700;
    --accent-cyan: #00F2FF;
    
    /* Semantic */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-bright: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(10, 13, 24, 0.7);
    
    /* Layout */
    --max-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Space Noise Overlay — very subtle, avoid darkening hero */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow {
    max-width: 800px;
}

/* ─── COMPONENTS ─── */

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-bounce);
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: var(--transition-bounce);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-bright);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 12px;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(123, 77, 255, 0.1);
    border: 1px solid rgba(123, 77, 255, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

/* ─── NAVIGATION ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(3, 5, 12, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.logo img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 12px var(--primary-glow));
}

#text-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: white; 
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 991px) {
    .nav-links { display: none; }
}

/* ─── HERO SECTION ─── */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Scroll Story Hero */
.hero-story {
    height: 400vh; /* Smooth scroll depth for 90 high-res frames */
    position: relative;
    background: #0a0a12;
}

.story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.story-container {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.story-phrases {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-phrase {
    position: absolute;
    width: 100%;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.story-phrase.active {
    opacity: 1;
    transform: translateY(0);
}

/* Story Navigation Dots */
.story-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.nav-dot.active {
    background: var(--primary-light);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary-glow);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Clean render — no heavy filters for performance */
    opacity: 0.85;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    /* Minimal edge vignette only — keep video crisp and visible */
    background:
        radial-gradient(circle at center,
            transparent 50%,
            rgba(10, 10, 18, 0.4) 100%);
    z-index: 1;
}

.hero-visual-placeholder {
    height: 400px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 5rem;
}

.stat-item {
    padding: 2rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── SECTIONS ─── */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(123, 77, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

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

/* Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.plan-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.plan-tier {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.plan-price {
    margin-bottom: 2.5rem;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 0.25rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.plan-features i {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(123, 77, 255, 0.15);
    background: linear-gradient(180deg, rgba(123, 77, 255, 0.05) 0%, rgba(10, 13, 24, 0.7) 100%);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Additional Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.service-card {
    padding: 2rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.service-price {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.15rem;
}

.service-price span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* FAQ */
.faq-accordion {
    display: grid;
    gap: 1rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-base);
}

.faq-question i {
    transition: var(--transition-base);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    padding: 0 2rem;
    transition: all 0.5s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ─── CONTACT FORM ─── */
.form-wrapper {
    padding: 4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(123, 77, 255, 0.05);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.check-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition-base);
}

.check-container input {
    width: auto;
}

.check-container:hover {
    border-color: var(--border-glass-bright);
}

.check-container:has(input:checked) {
    border-color: var(--primary);
    color: white;
}

.form-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.form-feedback i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

/* ─── FOOTER ─── */
.footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-glass);
    background: #010206;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.social-icon:hover {
    color: var(--primary-light);
    border-color: var(--primary);
}

.footer h4 {
    margin-bottom: 1.5rem;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-nav-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ─── ANIMATIONS ─── */
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123, 77, 255, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(123, 77, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123, 77, 255, 0); }
}

@keyframes spaceFloat {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0); }
}

@keyframes glowBreath {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 0.8; transform: scale(1.1); }
}

/* Fade In Classes */
.fade-in { opacity: 0; transition: all 1s ease; }
.fade-in.visible { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.slide-in-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s ease; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }

.slide-in-right { opacity: 0; transform: translateX(40px); transition: all 0.8s ease; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 991px) {
    .hero-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-wrapper { padding: 2.5rem 1.5rem; }
    .logo img { height: 42px; }
    #text-logo { font-size: 1.35rem; }
}
