/* ========================================
   AI QR Scanner - Deep Space Holographic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Deep Space Background */
    --void-black: #050510;
    --deep-space: #0a0a1a;

    /* Neon Glow Effects */
    --neon-cyan: #00d4ff;
    --neon-blue: #0066ff;
    --neon-purple: #8b5cf6;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography - Apple System Fonts (SF Pro) */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;

    --section-padding: 100px;
    --container-max: 1200px;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--void-black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ========================================
   Background
   ======================================== */
.space-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 102, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        var(--void-black);
    z-index: -2;
}

.space-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.01) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: starTwinkle 4s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.4; }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.nav-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--neon-cyan); }

.nav-cta {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: var(--text-primary) !important;
    padding: 8px 18px;
    border-radius: 750px;
    font-weight: 600 !important;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    z-index: 999;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 15px; color: var(--text-secondary); padding: 10px 0; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 24px 60px;
    overflow: hidden;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    gap: 28px;
}

/* Main Scene */
.hologram-scene {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========================================
   QR Code - Close to Phone
   ======================================== */
.qr-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
    animation: qrFloat 4s ease-in-out infinite;
}

@keyframes qrFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.qr-container img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

/* Scan line */
.qr-scan {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: qrScan 2.5s ease-in-out infinite;
}

@keyframes qrScan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    95%, 100% { top: 100%; opacity: 0; }
}

/* ========================================
   3D Volumetric Spotlight - Trumpet Shape
   ======================================== */
.spotlight-3d {
    position: relative;
    width: 280px;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Outer volumetric glow - wide trumpet */
.spotlight-volumetric {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 130px;
    background: radial-gradient(
        ellipse 90% 60% at 50% 100%,
        rgba(0, 212, 255, 0.35) 0%,
        rgba(0, 212, 255, 0.12) 40%,
        transparent 70%
    );
    filter: blur(10px);
    animation: volumetricPulse 3s ease-in-out infinite;
}

@keyframes volumetricPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.03); }
}

/* Inner bright core - wider trumpet */
.spotlight-core {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 120px;
    background: linear-gradient(
        to top,
        rgba(0, 212, 255, 0.9) 0%,
        rgba(0, 212, 255, 0.5) 30%,
        rgba(255, 255, 255, 0.4) 60%,
        transparent 100%
    );
    clip-path: polygon(15% 100%, 85% 100%, 100% 0%, 0% 0%);
    filter: blur(4px);
}

/* Light rays - wider coverage */
.spotlight-rays {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 120px;
    background:
        conic-gradient(
            from 180deg at 50% 100%,
            transparent 160deg,
            rgba(0, 212, 255, 0.12) 168deg,
            rgba(255, 255, 255, 0.35) 180deg,
            rgba(0, 212, 255, 0.12) 192deg,
            transparent 200deg,
            transparent 345deg,
            rgba(0, 212, 255, 0.1) 352deg,
            rgba(255, 255, 255, 0.25) 360deg,
            rgba(0, 212, 255, 0.1) 368deg,
            transparent 375deg
        );
    mask-image: linear-gradient(to top, black 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 90%);
    animation: raysPulse 2s ease-in-out infinite;
}

@keyframes raysPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Floating light particles */
.spotlight-particles {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 90px;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: particleRise 2.5s ease-in infinite;
}

.particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.particle:nth-child(2) { left: 50%; animation-delay: 0.6s; }
.particle:nth-child(3) { left: 85%; animation-delay: 1.2s; }
.particle:nth-child(4) { left: 30%; animation-delay: 1.8s; }
.particle:nth-child(5) { left: 70%; animation-delay: 0.3s; }

@keyframes particleRise {
    0% { bottom: 0; opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1); }
    80% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; transform: scale(0.5); }
}

/* Screen glow on surface - phone light reflection */
.phone-glow-surface {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 50px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.4) 0%,
        rgba(0, 212, 255, 0.15) 40%,
        transparent 70%
    );
    filter: blur(12px);
    animation: surfaceGlow 3s ease-in-out infinite;
}

@keyframes surfaceGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ========================================
   Hero Text
   ======================================== */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 7vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.35s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

.title-line.accent {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 420px;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease 0.65s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Button */
.apple-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 750px;
    transition: all 0.2s;
    animation: fadeInUp 0.8s ease 0.8s forwards, btnGlow 2s ease-in-out infinite 1.8s;
    opacity: 0;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 35px rgba(0, 212, 255, 0.5); }
}

.apple-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 40px rgba(0, 212, 255, 0.5);
}

.cta-icon { width: 48px; height: 48px; }

.cta-text { display: flex; flex-direction: column; }

.cta-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cta-store {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: var(--section-padding) 24px;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.features-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--neon-cyan);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: var(--section-padding) 24px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.02) 50%, transparent 100%);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s;
}

.step:hover {
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.step-number {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    margin-top: 70px;
    flex-shrink: 0;
    position: relative;
}

.step-connector::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 140px 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 212, 255, 0.12) 0%, transparent 60%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.apple-cta-btn.large { padding: 18px 36px; }

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 60px 24px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand span {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--neon-cyan); }

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-container { flex-direction: column; align-items: center; }
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
        background: linear-gradient(180deg, var(--neon-blue), var(--neon-cyan));
    }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Hero - shorter on mobile */
    .hero { min-height: auto; padding: 80px 20px 50px; }
    .hero-center { gap: 20px; }
    .hologram-scene { height: 220px; max-width: 100%; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .qr-container { width: 120px; height: 120px; margin-bottom: 16px; }

    /* Spotlight scales down */
    .spotlight-3d { width: 200px; height: 100px; }
    .spotlight-volumetric { width: 200px; height: 95px; }
    .spotlight-core { width: 100px; height: 85px; }
    .spotlight-rays { width: 185px; height: 85px; }
    .phone-glow-surface { width: 250px; height: 35px; }

    /* Features - 2 columns on mobile */
    .features { padding: 60px 16px; }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .feature-card { padding: 20px 14px; border-radius: 16px; }
    .feature-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; }
    .feature-icon svg { width: 20px; height: 20px; }
    .feature-card h3 { font-size: 12px; }
    .feature-card p { font-size: 11px; line-height: 1.5; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 22px; margin-bottom: 10px; }
    .section-subtitle { font-size: 14px; }

    /* How It Works - compact steps */
    .how-it-works { padding: 60px 16px; }
    .steps-container { gap: 12px; }
    .step { padding: 24px 16px; border-radius: 16px; }
    .step-number { font-size: 32px; margin-bottom: 12px; }
    .step-content h3 { font-size: 13px; }
    .step-content p { font-size: 12px; }
    .step-connector { width: 2px; height: 24px; margin-top: 50px; }

    /* CTA Section - compact */
    .cta-section { padding: 80px 20px; }
    .cta-content h2 { font-size: 24px; }
    .cta-content p { font-size: 14px; margin-bottom: 28px; }

    /* Footer - 2 column links */
    .footer { padding: 40px 20px 30px; }
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .apple-cta-btn { padding: 12px 20px; }
    .apple-cta-btn.large { padding: 14px 24px; }
    .cta-icon { width: 40px; height: 40px; }
    .cta-store { font-size: 15px; }
    .hologram-scene { height: 180px; }
    .qr-container { width: 100px; height: 100px; }
    .spotlight-3d { width: 160px; height: 80px; }
    .spotlight-volumetric { width: 160px; height: 75px; }
    .spotlight-core { width: 80px; height: 70px; }
    .spotlight-rays { width: 150px; height: 70px; }
    .phone-glow-surface { width: 200px; height: 30px; }
    .features-grid { gap: 10px; }
    .feature-card { padding: 16px 12px; }
    .step { padding: 20px 14px; }
}

/* ========================================
   Scroll Animations
   ======================================== */
.feature-card, .step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible, .step.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }
.feature-card:nth-child(5) { transition-delay: 0.5s; }
.feature-card:nth-child(6) { transition-delay: 0.6s; }

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.25s; }
.step:nth-child(5) { transition-delay: 0.4s; }
