/* ============================================================
   证言 Testimony.ai — 产品展示网站样式
   设计风格：专业 · 科技感 · 可信赖
   ============================================================ */

:root {
    /* Primary Palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    /* Accent */
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;

    /* Warning / Safety */
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutrals */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #273449;
    --bg-elevated: #334155;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Borders */
    --border: rgba(148, 163, 184, 0.1);
    --border-light: rgba(148, 163, 184, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #6366f1 0%, #3b82f6 30%, #10b981 70%, #6366f1 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ============================================================
   Navigation
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.mobile-toggle {
    display: none;
    background: none;
    color: var(--text-primary);
    font-size: 24px;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 640px;
}

.hero-subtitle .highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-primary {
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.cta-arrow {
    transition: var(--transition-fast);
}

.cta-primary:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-secondary {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.cta-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

/* Hero Phone Mockup */
.hero-visual {
    flex: 0 0 380px;
    display: flex;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #2a2a3e,
        0 0 0 4px #1a1a2e,
        0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    background: #0a0a1a;
    border-radius: 24px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
}

.mock-calculator {
    width: 100%;
}

.mock-calc-display {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: right;
    font-size: 36px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Inter', monospace;
}

.mock-calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mock-calc-keys button {
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.mock-calc-keys button:hover {
    background: rgba(255,255,255,0.1);
}

.mock-calc-keys button.op {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

.mock-calc-keys button.eq {
    background: var(--primary);
    color: white;
}

.mock-calc-keys button.zero {
    grid-column: span 2;
    border-radius: 100px;
    aspect-ratio: auto;
}

.mock-disguise-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
}

/* ============================================================
   Demo Animation Section (replaces Video)
   ============================================================ */
.video-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.demo-animation-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

/* ---- Phone Frame ---- */
.demo-anim-phone {
    position: sticky;
    top: 100px;
}

.anim-phone-frame {
    width: 340px;
    height: 640px;
    background: #1a1a2e;
    border-radius: 44px;
    padding: 18px;
    margin: 0 auto;
    box-shadow:
        0 0 0 3px #2a2a3e,
        0 0 0 5px #1a1a2e,
        0 30px 80px rgba(0,0,0,0.5);
    position: relative;
}

.anim-phone-notch {
    width: 110px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.anim-phone-screen {
    background: #0a0a1a;
    border-radius: 30px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* ---- Scenes ---- */
.anim-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 16px 16px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.anim-scene.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.anim-scene.exit-left {
    opacity: 0;
    transform: translateX(-30px);
}

.anim-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 0 4px;
}

/* Scene 1: Calculator */
.anim-app-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 500;
}

.anim-calc-display {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: right;
    font-size: 34px;
    font-weight: 300;
    font-family: 'Inter', monospace;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.anim-calc-grid-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex: 1;
    align-content: center;
}

.anim-calc-grid-mini span {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.anim-calc-grid-mini span.wide {
    grid-column: span 2;
    border-radius: 50px;
    aspect-ratio: auto;
}

.anim-calc-grid-mini span.anim-glowing {
    background: rgba(99,102,241,0.2);
    color: var(--primary-light);
    animation: glowPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px var(--primary-glow);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px var(--primary-glow); }
    50% { box-shadow: 0 0 24px var(--primary-glow); }
}

/* Scene 2: Gesture */
.anim-gesture-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.anim-gesture-icon {
    font-size: 56px;
    animation: gestureTap 1.8s ease-in-out infinite;
}

@keyframes gestureTap {
    0%, 100% { transform: scale(1) translateY(0); opacity: 1; }
    30% { transform: scale(1.3) translateY(-10px); opacity: 0.8; }
    60% { transform: scale(0.95) translateY(0); opacity: 1; }
}

.anim-gesture-trail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    animation: trailSpin 3s linear infinite;
    opacity: 0.5;
}

@keyframes trailSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.anim-gesture-text {
    font-size: 16px;
    color: var(--primary-light);
    font-weight: 600;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Scene 3: PIN */
.anim-pin-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.anim-pin-icon {
    font-size: 44px;
}

.anim-pin-title {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.anim-pin-dots-row {
    display: flex;
    gap: 14px;
}

.anim-pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
    transition: all 0.3s ease;
}

.anim-pin-dot.filled {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.anim-pin-verified {
    font-size: 15px;
    color: var(--accent-light);
    font-weight: 600;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scene 4: Security Space */
.anim-space-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.anim-shield-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    animation: shieldPulse 2s ease-in-out infinite;
    position: absolute;
    top: 40%;
}

.anim-shield-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.anim-space-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
    margin-top: 60px;
}

.anim-space-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
}

.anim-check {
    padding: 10px 14px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: checkIn 0.5s ease forwards;
}

.anim-check:nth-child(1) { animation-delay: 0.2s; }
.anim-check:nth-child(2) { animation-delay: 0.5s; }
.anim-check:nth-child(3) { animation-delay: 0.8s; }
.anim-check:nth-child(4) { animation-delay: 1.1s; }

@keyframes checkIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scene 5: AI Interview */
.anim-interview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anim-interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.anim-safe-badge {
    font-size: 11px;
    font-weight: 400;
}

.anim-chat-bubbles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.anim-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.5;
    max-width: 85%;
    animation: bubbleIn 0.6s ease forwards;
    opacity: 0;
}

.anim-chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.anim-chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.anim-chat-bubble:nth-child(3) { animation-delay: 1.3s; }
.anim-chat-bubble:nth-child(4) { animation-delay: 1.8s; }

.anim-chat-bubble.ai {
    background: rgba(99,102,241,0.15);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.anim-chat-bubble.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scene 6: Evidence */
.anim-evidence-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.anim-evidence-icon {
    font-size: 56px;
    animation: float 3s ease-in-out infinite;
}

.anim-evidence-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
}

.anim-evidence-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
}

.anim-ev-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.anim-ev-item:nth-child(1) { animation-delay: 0.2s; }
.anim-ev-item:nth-child(2) { animation-delay: 0.5s; }
.anim-ev-item:nth-child(3) { animation-delay: 0.8s; }
.anim-ev-item:nth-child(4) { animation-delay: 1.1s; }

.anim-ev-item span:last-child {
    color: var(--accent-light);
    font-weight: 700;
}

/* Scene Caption */
.anim-scene-caption {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.anim-scene-caption strong {
    color: var(--primary-light);
}

/* ---- Right Info Panel ---- */
.demo-anim-info {
    padding-top: 10px;
}

.anim-scene-steps {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
    flex-wrap: wrap;
}

.anim-step-btn {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: none;
    outline: none;
    font-family: inherit;
}

.anim-step-btn:hover {
    background: var(--bg-elevated);
}

.anim-step-btn.active {
    background: rgba(99,102,241,0.1);
}

.anim-step-btn.active .anim-step-bar {
    width: 100%;
    background: var(--primary);
}

.anim-step-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-muted);
    transition: var(--transition);
}

.anim-step-btn.active .anim-step-num {
    color: var(--primary-light);
}

.anim-step-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.anim-step-btn.active .anim-step-label {
    color: var(--primary-light);
}

.anim-step-bar {
    width: 0;
    height: 3px;
    background: transparent;
    border-radius: 2px;
    transition: var(--transition);
}

.anim-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.anim-ctrl-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.anim-ctrl-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.anim-ctrl-btn.play {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.anim-ctrl-btn.play:hover {
    box-shadow: var(--shadow-glow);
}

.anim-scene-detail {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.anim-scene-detail h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.anim-scene-detail p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.anim-scene-detail p:last-child {
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .demo-animation-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-anim-phone {
        position: static;
    }

    .anim-phone-frame {
        width: 300px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    .anim-scene-steps {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .anim-step-btn {
        min-width: 70px;
        padding: 10px 6px;
    }

    .anim-phone-frame {
        width: 260px;
        height: 500px;
    }
}

/* ============================================================
   Problem Section
   ============================================================ */
.problem-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 12px;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   Features Section
   ============================================================ */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tags span {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   Workflow Section
   ============================================================ */
.workflow {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.workflow-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 80px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.step-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    position: absolute;
    right: -12px;
    top: 20px;
    font-size: 24px;
    color: var(--text-muted);
}

.workflow-step:last-child .step-arrow {
    display: none;
}

/* Dual Cards */
.workflow-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dual-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.dual-card:hover {
    border-color: var(--primary);
}

.student-card:hover {
    border-color: #6366f1;
}

.parent-card:hover {
    border-color: #10b981;
}

.dual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.dual-icon {
    font-size: 28px;
}

.dual-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.dual-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-item {
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.flow-connector {
    width: 2px;
    height: 16px;
    background: var(--border);
    margin: 0 auto;
}

/* ============================================================
   Tech Section
   ============================================================ */
.tech {
    padding: 120px 0;
}

.tech-stack {
    margin-bottom: 48px;
}

.tech-layer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.tech-layer:hover {
    background: var(--bg-card);
}

.layer-label {
    min-width: 140px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.layer-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
}

/* ============================================================
   Interactive Demo Section
   ============================================================ */
.demo {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.demo-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: start;
}

/* Phone Frame */
.demo-phone {
    position: sticky;
    top: 100px;
}

.demo-phone-frame {
    width: 320px;
    height: 620px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 16px;
    margin: 0 auto;
    box-shadow:
        0 0 0 2px #2a2a3e,
        0 0 0 4px #1a1a2e,
        0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
}

.demo-phone-notch {
    width: 100px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.demo-screen {
    background: #0a0a1a;
    border-radius: 28px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.demo-step {
    display: none;
    height: 100%;
    flex-direction: column;
    padding: 16px;
}

.demo-step.active {
    display: flex;
}

.demo-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    margin-bottom: 8px;
}

/* Demo: Calculator */
.demo-app-title {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.demo-calc-display {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    text-align: right;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 12px;
    font-family: 'Inter', monospace;
    overflow: hidden;
}

.demo-calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
    padding: 0 4px;
    align-content: center;
}

.d-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.d-btn:hover {
    background: rgba(255,255,255,0.12);
}

.d-btn.fn {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 18px;
}

.d-btn.op {
    background: rgba(99, 102, 241, 0.25);
    color: var(--primary-light);
    font-size: 22px;
}

.d-btn.eq {
    background: var(--primary);
    color: white;
    font-size: 24px;
}

.d-btn.zero-btn {
    grid-column: span 2;
    border-radius: 50px;
    aspect-ratio: auto;
    padding: 0;
}

.demo-hint {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.demo-trigger-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    transition: var(--transition);
}

.demo-trigger-btn:active {
    transform: scale(0.97);
}

/* Demo: PIN */
.pin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pin-icon {
    font-size: 40px;
}

.pin-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pin-dots {
    display: flex;
    gap: 12px;
}

.pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-elevated);
    transition: var(--transition-fast);
}

.pin-dot.filled {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.pin-dot.error {
    background: var(--danger);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 200px;
}

.p-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.p-btn:hover {
    background: rgba(255,255,255,0.1);
}

.p-btn.empty {
    background: transparent;
    pointer-events: none;
}

.p-btn.del {
    font-size: 18px;
}

.pin-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Demo: Mode Selection */
.mode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.mode-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.mode-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.mode-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mode-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.mode-card:hover {
    transform: translateY(-2px);
}

.mode-card.student:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.mode-card.parent:hover {
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.mode-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.mode-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.mode-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mode-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
}

/* Demo: Security Space */
.space-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.space-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.space-back {
    color: var(--primary-light);
    cursor: pointer;
    background: none;
}

.space-title {
    font-weight: 600;
}

.space-shield {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.shield-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    animation: shieldPulse 2s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); transform: scale(1); }
    50% { box-shadow: 0 0 40px var(--primary-glow); transform: scale(1.05); }
}

.shield-icon {
    position: absolute;
    font-size: 36px;
}

.space-container h3 {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.space-container > p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.space-checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    border-left: 3px solid var(--border);
    transition: var(--transition);
}

.check-item.done {
    color: var(--accent-light);
    border-left-color: var(--accent);
}

.space-enter-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    transition: var(--transition);
}

.space-enter-btn:hover {
    box-shadow: var(--shadow-glow);
}

/* Demo: Interview */
.interview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.interview-title {
    font-weight: 600;
}

.interview-status {
    font-size: 11px;
}

.interview-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.interview-chat::-webkit-scrollbar {
    width: 4px;
}
.interview-chat::-webkit-scrollbar-track {
    background: transparent;
}
.interview-chat::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.3);
    border-radius: 2px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-msg.user {
    flex-direction: row-reverse;
}

.msg-avatar {
    font-size: 20px;
    flex-shrink: 0;
}

.msg-bubble {
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.6;
    max-width: 85%;
}

.chat-msg.user .msg-bubble {
    background: var(--primary);
    color: white;
}

.interview-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.choice-btn {
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition-fast);
}

.choice-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

/* Demo: Evidence */
.evidence-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.evidence-icon {
    font-size: 56px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.evidence-container h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-light);
}

.evidence-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ev-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.ev-label {
    font-size: 12px;
    color: var(--text-muted);
}

.ev-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
}

.evidence-actions {
    width: 100%;
}

.ev-btn {
    width: 100%;
    padding: 12px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
}

.ev-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

/* Demo Info Side */
.demo-info {
    padding-top: 20px;
}

.demo-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
    min-width: 50px;
}

.progress-step.active {
    color: var(--primary-light);
}

.progress-step.completed {
    color: var(--accent-light);
}

.prog-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-elevated);
    transition: var(--transition);
}

.progress-step.active .prog-dot {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.progress-step.completed .prog-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.progress-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 20px;
}

.demo-description {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.demo-description h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.demo-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.demo-description p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Evidence Package Courtroom View
   ============================================================ */
.evidence-court {
    padding: 120px 0;
    background: var(--bg-primary);
}

.court-evidence-envelope {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.envelope-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(16,185,129,0.05));
    border-bottom: 2px solid var(--border);
}

.envelope-seal {
    font-size: 48px;
    filter: drop-shadow(0 0 10px rgba(99,102,241,0.3));
}

.envelope-title-group {
    flex: 1;
}

.envelope-title-group h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.envelope-id {
    font-size: 13px;
    color: var(--primary-light);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.envelope-badge {
    padding: 8px 18px;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
}

/* Evidence Layers */
.evidence-layer {
    border-bottom: 1px solid var(--border);
}

.evidence-layer:last-of-type {
    border-bottom: none;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 36px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.layer-header:hover {
    background: rgba(255,255,255,0.02);
}

.layer-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.layer-title-group {
    flex: 1;
    min-width: 0;
}

.layer-title-group h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.layer-hash {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.layer-toggle {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.evidence-layer.open .layer-toggle {
    transform: rotate(180deg);
}

.layer-body {
    display: none;
    padding: 0 36px 28px;
    animation: fadeInUp 0.4s ease;
}

.evidence-layer.open .layer-body {
    display: block;
}

/* Manifest Tree */
.manifest-tree {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 2.2;
}

.manifest-folder {
    color: var(--warning);
    font-weight: 700;
}

.manifest-file {
    color: var(--text-secondary);
    padding-left: 16px;
}

.mf-icon {
    margin-right: 8px;
}

.mf-hash {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
}

/* Recording Info */
.recording-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.rec-info-item {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ri-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ri-value {
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

.ri-value.hash {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
}

.recording-preview {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px;
}

.preview-frame {
    background: #000;
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.preview-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-play-btn:hover {
    transform: scale(1.1);
}

.preview-timeline {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.tl-bar {
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    width: 100%;
}

.tl-marker {
    position: absolute;
    top: -8px;
    font-size: 9px;
    color: var(--primary-light);
    transform: translateX(-50%);
    white-space: nowrap;
}

.tl-marker::before {
    content: '';
    display: block;
    width: 2px;
    height: 16px;
    background: var(--primary);
    margin: 0 auto 4px;
}

.preview-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Time Anchors */
.time-anchors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.time-source {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.time-source:hover {
    border-color: var(--primary);
}

.ts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ts-icon {
    font-size: 20px;
}

.ts-header h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.ts-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
    margin-bottom: 6px;
    word-break: break-all;
}

.ts-source {
    font-size: 11px;
    color: var(--text-muted);
}

.time-fusion-result {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.fusion-badge {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.fusion-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.fusion-detail span {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Hash Chain */
.hash-chain-visual {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0;
    margin-bottom: 20px;
}

.chain-block {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    min-width: 170px;
    flex-shrink: 0;
    transition: var(--transition);
}

.chain-block:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chain-block.genesis {
    border-color: var(--warning);
    background: rgba(245,158,11,0.05);
}

.chain-block.genesis .cb-header {
    color: var(--warning);
}

.cb-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-light);
}

.cb-prev {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
    word-break: break-all;
}

.cb-data {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.cb-hash {
    font-size: 10px;
    color: var(--accent-light);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.cb-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: 'Courier New', monospace;
}

.chain-arrow {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    padding: 20px 8px 0;
    font-weight: 700;
}

.chain-verify {
    background: rgba(16,185,129,0.06);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-md);
    padding: 18px 24px;
}

.verify-status {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.chain-verify p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Merkle Tree */
.merkle-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
}

.merkle-root, .merkle-level-2, .merkle-leaves {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.mr-node {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    min-width: 130px;
    transition: var(--transition);
}

.mr-node.root {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    border-width: 3px;
}

.mr-node.leaf {
    border-color: var(--accent);
    background: rgba(16,185,129,0.05);
}

.mr-hash {
    font-size: 9px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.merkle-lines {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: relative;
}

.ml-line {
    width: 2px;
    height: 24px;
    background: var(--primary);
    margin: 0 auto;
}

.merkle-proof-demo {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 8px;
}

.merkle-proof-demo h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.merkle-proof-demo p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.proof-path {
    background: #0a0a1a;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 10px 0;
    overflow-x: auto;
}

.proof-path code {
    font-size: 11px;
    color: var(--accent-light);
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.proof-note {
    color: var(--text-muted) !important;
    font-size: 12px !important;
}

/* Custody Log */
.custody-log {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.custody-log::-webkit-scrollbar {
    width: 4px;
}
.custody-log::-webkit-scrollbar-track {
    background: transparent;
}
.custody-log::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.3);
    border-radius: 2px;
}

.custody-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
    transition: var(--transition-fast);
    align-items: start;
}

.custody-entry:hover {
    border-left-color: var(--primary);
}

.ce-time {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
    font-weight: 600;
    padding-top: 2px;
}

.ce-event {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.ce-detail {
    font-size: 11px;
    color: var(--text-muted);
    grid-column: 2;
}

/* Integrity Report */
.integrity-report {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.ir-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ir-item.pass {
    border-left: 4px solid var(--accent);
}

.ir-item.fail {
    border-left: 4px solid var(--danger);
}

.ir-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.ir-content strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.ir-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.integrity-verdict {
    background: rgba(16,185,129,0.08);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
}

.verdict-stamp {
    display: inline-block;
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-light);
    padding: 12px 32px;
    border: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    transform: rotate(-3deg);
}

.integrity-verdict p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Encryption Grid */
.encryption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.enc-item {
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enc-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enc-value {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
}

.enc-note {
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.enc-note p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Court Submission */
.court-submission {
    padding: 32px 36px;
    border-top: 2px solid var(--border);
    background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(16,185,129,0.03));
}

.court-submission h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.submission-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.sub-option {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.sub-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.so-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.sub-option h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sub-option p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   Safety Section
   ============================================================ */
.safety {
    padding: 120px 0;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.safety-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
}

.safety-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.safety-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.1);
    position: absolute;
    top: 20px;
    right: 24px;
}

.safety-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.safety-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   Team Section
   ============================================================ */
.team {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.team-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.team-org {
    font-size: 12px;
    color: var(--text-muted);
}

.team-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-section > .section-container > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    position: relative;
}

.cta-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.qr-placeholder {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1e293b;
    font-size: 12px;
    text-align: center;
}

.qr-code {
    font-size: 40px;
}

.qr-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-tagline {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        flex: 0 0 auto;
        padding: 0 20px 40px;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 48px;
    }

    .demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .demo-phone {
        position: static;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 32px;
    }

    .step-arrow {
        display: none;
    }

    .workflow-dual {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Evidence Court Mobile */
    .envelope-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .layer-header {
        padding: 16px 20px;
    }

    .layer-body {
        padding: 0 20px 20px;
    }

    .hash-chain-visual {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .chain-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .custody-entry {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ce-detail {
        grid-column: 1;
    }

    .merkle-visual {
        transform: scale(0.85);
    }

    .submission-options {
        grid-template-columns: 1fr 1fr;
    }

    .court-submission {
        padding: 24px 20px;
    }

    .verdict-stamp {
        font-size: 20px;
        padding: 10px 24px;
    }
}

/* ============================================================
   Scroll Animations
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
