/* ================================================
   DANIEL FROST — PORTFOLIO
   visionOS Liquid Glass Design System
   ================================================ */

/* ----------------------------------------
   COMBINATION LOCK SCREEN
   ---------------------------------------- */
body.locked {
    overflow: hidden;
}

.lock-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lock-screen-exit {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

.lock-content {
    text-align: center;
}

/* Plate — brushed metal look, dark theme */
.combo-plate {
    position: relative;
    background: linear-gradient(145deg, #1a1a1e 0%, #0e0e10 50%, #18181c 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow:
        0 2px 30px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Screws */
.combo-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a2a2e, #111);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.combo-screw-tl { top: 10px; left: 10px; }
.combo-screw-tr { top: 10px; right: 10px; }
.combo-screw-bl { bottom: 10px; left: 10px; }
.combo-screw-br { bottom: 10px; right: 10px; }

/* Window — the cutout showing the reels */
.combo-window {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #08080a 0%, #0c0c0e 50%, #08080a 100%);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    box-shadow:
        inset 0 4px 12px rgba(0,0,0,0.8),
        inset 0 -4px 12px rgba(0,0,0,0.4);
    padding: 0 4px;
}

/* Each dial column */
.combo-dial {
    width: 64px;
    height: 80px;
    overflow: hidden;
    cursor: ns-resize;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

/* The reel strip of numbers */
.combo-reel {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.combo-reel span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 80px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

/* Divider lines between dials */
.combo-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* Top/bottom shadow mask on each dial for depth */
.combo-dial::before,
.combo-dial::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    z-index: 2;
    pointer-events: none;
}
.combo-dial::before {
    top: 0;
    background: linear-gradient(to bottom, #08080a, transparent);
}
.combo-dial::after {
    bottom: 0;
    background: linear-gradient(to top, #08080a, transparent);
}

body.locked .spatial-bg,
body.locked nav,
body.locked main,
body.locked footer {
    filter: blur(20px);
    pointer-events: none;
}

@media (max-width: 480px) {
    .combo-dial { width: 48px; height: 64px; }
    .combo-reel span { width: 48px; height: 64px; font-size: 32px; }
    .combo-plate { padding: 20px 16px; }
}

/* ----------------------------------------
   DESIGN TOKENS
   ---------------------------------------- */
:root {
    /* Colors — Dark Theme with Depth */
    --color-bg: #000000;
    --color-bg-elevated: #0a0a0a;
    --color-bg-card: rgba(255, 255, 255, 0.03);

    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-tertiary: rgba(255, 255, 255, 0.6);

    --color-accent: #2997ff;
    --color-accent-secondary: #64d2ff;
    --color-success: #30d158;
    --color-warning: #ffd60a;

    /* Glass Materials */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-blur: 40px;
    --glass-saturation: 180%;

    /* Shadows — Layered Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(41, 151, 255, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;

    /* Animation */
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

::selection {
    background: rgba(41, 151, 255, 0.3);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ----------------------------------------
   SPATIAL BACKGROUND
   ---------------------------------------- */
.spatial-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.depth-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.depth-far {
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.08) 0%, transparent 70%);
    animation-delay: 0s;
}

.depth-mid {
    width: 600px;
    height: 600px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    animation-delay: -7s;
}

.depth-near {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(100, 210, 255, 0.04) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ----------------------------------------
   NAVIGATION — LIQUID GLASS
   ---------------------------------------- */
.nav-glass {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-5);
    transition: all var(--duration-normal) var(--ease-out);
}

.nav-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-logo {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

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

.nav-cta {
    background: var(--color-text);
    color: var(--color-bg) !important;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

/* ---- MOBILE HAMBURGER MENU ---- */
.nav-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.nav-menu-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-menu-open span:nth-child(2) {
    opacity: 0;
}

.nav-menu-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: var(--space-4);
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        gap: var(--space-3);
    }

    .nav-links-open {
        display: flex;
    }

    .nav-link {
        font-size: 16px;
        padding: var(--space-2) 0;
    }

    .nav-cta {
        text-align: center;
        padding: var(--space-3) var(--space-5);
    }
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-10) var(--space-5);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.1s forwards;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-5);
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.25s forwards;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.4s forwards;
}

/* Hero Cards — Floating Glass */
.hero-cards {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-top: var(--space-7);
    opacity: 0;
    animation: heroReveal 1s var(--ease-out) 0.55s forwards;
}

.hero-card {
    perspective: 1000px;
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    min-width: 140px;
    transition: all var(--duration-normal) var(--ease-spring);
    transform-style: preserve-3d;
}

.hero-card:hover .card-glass {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    color: var(--color-text-secondary);
}

.card-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.card-meta {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

/* Staggered card animation — organic float with slight rotation */
.hero-card-1 .card-glass { animation: cardFloat1 7s ease-in-out infinite; }
.hero-card-2 .card-glass { animation: cardFloat2 8s ease-in-out 0.5s infinite; }
.hero-card-3 .card-glass { animation: cardFloat3 6.5s ease-in-out 1s infinite; }

@keyframes cardFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes cardFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
}

@keyframes cardFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.3deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-7);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1s forwards;
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.05em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-tertiary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { opacity: 0.2; transform: scaleY(0.8) translateY(0); }
    50% { opacity: 0.5; transform: scaleY(1.1) translateY(4px); }
    100% { opacity: 0.2; transform: scaleY(0.8) translateY(0); }
}

/* ----------------------------------------
   SECTIONS
   ---------------------------------------- */
.section {
    padding: var(--space-10) var(--space-5);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-9);
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ----------------------------------------
   CASE STUDIES
   ---------------------------------------- */
.case-study {
    margin-bottom: var(--space-10);
    padding: var(--space-8);
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.case-study:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-md);
}

.case-study-dark {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
}

.case-study-header {
    max-width: var(--content-width);
    margin: 0 auto var(--space-7);
}

.case-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.case-company {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-accent);
}

.case-year {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.case-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.case-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.case-rebrand {
    display: inline-block;
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-bottom: var(--space-3);
}

/* Flow Diagram */
.case-flow {
    margin: var(--space-8) 0;
    overflow-x: auto;
    padding: var(--space-4) 0;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    min-width: max-content;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    opacity: 0.5;
    transition: all var(--duration-normal) var(--ease-out);
}

.flow-step:hover,
.flow-step-active {
    opacity: 1;
}

.flow-device {
    width: 120px;
    height: 240px;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-spring);
}

.flow-step:hover .flow-device {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    border-radius: 18px;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
}

.wallet-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.wallet-card {
    width: 80%;
    height: 50px;
    background: linear-gradient(135deg, #f5f5f7 0%, #d1d1d6 100%);
    border-radius: 8px;
    margin-bottom: var(--space-3);
}

.wallet-action {
    font-size: 8px;
    color: var(--color-accent);
    font-weight: 500;
}

.imessage-screen {
    background: linear-gradient(180deg, #1c1c1e 0%, #0a0a0a 100%);
    justify-content: flex-end;
    padding-bottom: var(--space-4);
}

.message-bubble {
    background: var(--color-accent);
    border-radius: 12px;
    padding: var(--space-2);
    max-width: 90%;
}

.rich-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: var(--space-2);
}

.rich-link-preview {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: var(--space-1);
}

.rich-link-text {
    font-size: 7px;
    color: var(--color-text);
}

.lockscreen {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    padding-top: var(--space-5);
    justify-content: flex-start;
}

.notification {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--space-2);
    width: 90%;
}

.notif-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f5f5f7 0%, #d1d1d6 100%);
    border-radius: 6px;
}

.notif-title {
    font-size: 7px;
    font-weight: 600;
    color: var(--color-text);
}

.notif-body {
    font-size: 6px;
    color: var(--color-text-secondary);
}

.flow-connector {
    width: 60px;
    color: var(--color-text-tertiary);
}

.flow-label {
    font-size: 12px;
    color: var(--color-text);
    font-weight: 500;
}

/* Decisions Grid */
.case-decisions {
    margin: var(--space-8) 0;
}

.decisions-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-5);
}

.decisions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.decision-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    transition: all var(--duration-normal) var(--ease-out);
}

.decision-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.decision-icon {
    font-size: 24px;
    margin-bottom: var(--space-3);
}

.decision-card h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

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

/* Accessibility: Ensure decision card text meets WCAG AA */
.decision-card {
    background: rgba(0, 0, 0, 0.4);
}

.decision-card h5 {
    color: var(--color-text);
}

/* Outcome Stats */
.case-outcome {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-6);
}

.outcome-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* LoopCanvas Showcase */
.loopcanvas-showcase {
    margin: var(--space-7) 0;
}

.showcase-browser {
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.browser-content {
    aspect-ratio: 16/9;
    background: var(--color-bg);
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--color-accent);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
}

.showcase-cta:hover {
    background: #3aa3ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 30px rgba(41, 151, 255, 0.3);
}

/* ---- LOOPCANVAS APP MOCKUP ---- */
.lc-app-mockup {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 100%;
    min-height: 400px;
    background: #0a0a0a;
}

.lc-sidebar {
    background: #111;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.lc-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.lc-logo span {
    color: var(--color-accent);
}

.lc-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color 0.3s ease;
}

.lc-upload-zone:hover {
    border-color: var(--color-accent);
}

.lc-upload-icon {
    color: rgba(255, 255, 255, 0.55);
}

.lc-upload-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.lc-upload-sub {
    font-size: 10px;
    color: var(--color-text-tertiary);
}

.lc-mood-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.lc-mood {
    padding: 8px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lc-mood:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
}

.lc-mood-active {
    background: rgba(41, 151, 255, 0.1);
    color: var(--color-accent);
    font-weight: 500;
}

.lc-main {
    display: flex;
    flex-direction: column;
}

.lc-preview {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 280px;
}

.lc-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.2s ease;
}

.lc-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.lc-now-playing {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.lc-eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.lc-eq-bars span {
    width: 3px;
    background: var(--color-accent);
    border-radius: 1px;
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.lc-eq-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.lc-eq-bars span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.lc-eq-bars span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.lc-eq-bars span:nth-child(4) { height: 80%; animation-delay: 0.1s; }

@keyframes eqBounce {
    0% { height: 30%; }
    100% { height: 90%; }
}

.lc-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lc-control-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.lc-control-label strong {
    color: var(--color-text);
}

.lc-control-actions {
    display: flex;
    gap: var(--space-2);
}

.lc-btn-sm {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    cursor: default;
}

.lc-btn-primary-sm {
    background: var(--color-accent);
    color: white;
}

/* ═══════════════════════════════════════════════════════════ */
/* APP MOCKUP — Track Header, Waveform, Controls, Export     */
/* ═══════════════════════════════════════════════════════════ */
.lc-track-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lc-track-art {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    flex-shrink: 0;
}

.lc-track-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.lc-track-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-track-album {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}

.lc-analyzing {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #2997ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border: 1px solid rgba(41,151,255,0.2);
    border-radius: 10px;
    animation: lcPulse 2s ease-in-out infinite;
}

@keyframes lcPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.lc-waveform-bar {
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.lc-waveform-time {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255,255,255,0.25);
    margin-top: 4px;
    font-family: 'SF Mono', 'Menlo', monospace;
}

.lc-preview-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    padding: 5px 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
}

.lc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #30d158;
}

.lc-preview-score {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 4;
}

.lc-score-quality {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
}

.lc-score-value {
    font-size: 20px;
    font-weight: 800;
    color: #30d158;
    line-height: 1;
}

.lc-preview-tags {
    position: absolute;
    bottom: 40px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

.lc-preview-tags span {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
}

.lc-preview-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lc-slider-row {
    display: grid;
    grid-template-columns: 80px 1fr 56px 1fr;
    gap: 6px 12px;
    align-items: center;
    padding: 6px 16px;
}

.lc-slider-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-slider-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    position: relative;
}

.lc-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #2997ff, #5ac8fa);
    border-radius: 2px;
}

.lc-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.lc-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.lc-mood-indicator {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.lc-mood-indicator strong {
    color: var(--color-text);
}

.lc-actions {
    display: flex;
    gap: 8px;
}

.lc-btn-secondary {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    cursor: default;
}

.lc-btn-primary {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #30d158;
    border: none;
    border-radius: 8px;
    cursor: default;
}

.lc-export-tabs {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.lc-export-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.04);
    cursor: default;
}

.lc-export-tab:last-child { border-right: none; }

.lc-export-tab-active {
    color: var(--color-text);
    background: rgba(41,151,255,0.06);
}

.lc-export-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2997ff;
    margin-right: 4px;
    vertical-align: middle;
}

.lc-export-dim {
    color: rgba(255,255,255,0.25);
    font-size: 9px;
    margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════ */
/* GALLERY — Output portfolio cards below app mockup      */
/* ═══════════════════════════════════════════════════════ */
.lc-gallery {
    margin-top: 48px;
}

.lc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.lc-gallery-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.lc-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.lc-gallery-featured {
    border-color: rgba(41,151,255,0.15);
    box-shadow: 0 0 0 1px rgba(41,151,255,0.08);
}

.lc-gallery-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.lc-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.lc-gallery-card:hover .lc-gallery-img img {
    transform: scale(1.04);
}

.lc-gallery-info {
    padding: 16px 18px 18px;
}

.lc-gallery-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.lc-gallery-artist {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 10px;
}

.lc-gallery-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lc-gallery-tags span {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.02em;
}

/* Cinema frame with static image instead of video */
.cv-cinema-frame-img .cv-cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .lc-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .lc-gallery-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .lc-gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .lc-gallery-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════ */
/* CANVAS ENGINE LAYOUT — Two-panel: pipeline + output    */
/* ═══════════════════════════════════════════════════════ */
.cv-engine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    margin: var(--space-5) 0;
}

.cv-panel {
    background: rgba(0,0,0,0.4);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.cv-output-panel {
    background: #000;
    display: flex;
    flex-direction: column;
}

.cv-output-panel .cv-cinema-frame {
    flex: 1;
    min-height: 320px;
}

/* Emotional DNA bar */
.cv-emotion-bar {
    display: flex;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
    gap: 2px;
}

.cv-emo { border-radius: 2px; }
.cv-emo-1 { background: #2997ff; }
.cv-emo-2 { background: #5856d6; }
.cv-emo-3 { background: #007aff; }
.cv-emo-4 { background: #5ac8fa; }
.cv-emo-5 { background: #ff6b6b; }

@media (max-width: 768px) {
    .cv-engine-layout {
        grid-template-columns: 1fr;
    }
    .cv-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
}

/* Spotify-style album art */
.lc-spotify-art {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    flex-shrink: 0;
}

.lc-track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.lc-audio-album {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

/* Player progress bar */
.lc-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.lc-player-time {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lc-player-progress {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.lc-player-fill {
    width: 46%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), #30d158);
    border-radius: 2px;
}

/* Iteration Controls — sliders (uses grid definition above) */
.lc-iteration-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 10px var(--space-4);
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.lc-slider-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    position: relative;
}

.lc-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    opacity: 0.7;
}

.lc-slider-thumb {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Multi-platform export panel */
.lc-export-panel {
    padding: 8px var(--space-4) 10px;
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lc-export-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    cursor: default;
    transition: all 0.15s ease;
}

.lc-export-active {
    background: rgba(0,122,255,0.12);
    border-color: rgba(0,122,255,0.3);
    color: var(--color-accent);
}

.lc-export-icon {
    font-size: 11px;
}

.lc-export-name {
    font-weight: 600;
}

.lc-export-spec {
    font-size: 9px;
    opacity: 0.6;
}

.lc-export-extend {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 2px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 4px;
}

.lc-extend-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

.lc-extend-options {
    display: flex;
    gap: 4px;
}

.lc-extend-btn {
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    cursor: default;
}

.lc-extend-active {
    background: rgba(48,209,88,0.12);
    color: #30d158;
    border: 1px solid rgba(48,209,88,0.25);
}

/* Audio analysis bar — shows AI "listening" to track */
.lc-audio-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lc-audio-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lc-audio-icon {
    font-size: 14px;
    color: var(--color-accent);
}

.lc-audio-track {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.lc-audio-badge {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(41, 151, 255, 0.15);
    color: #2997ff;
    border-radius: 10px;
    font-weight: 600;
    animation: lcPulse 2s ease-in-out infinite;
}

/* Waveform visualization */
.lc-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.lc-waveform span {
    flex: 1;
    background: linear-gradient(to top, #2997ff, rgba(41, 151, 255, 0.3));
    border-radius: 2px;
    animation: lcWave 1.2s ease-in-out infinite;
}

.lc-waveform span:nth-child(odd) { animation-delay: 0s; height: 40%; }
.lc-waveform span:nth-child(even) { animation-delay: 0.15s; height: 70%; }
.lc-waveform span:nth-child(3n) { animation-delay: 0.3s; height: 100%; }
.lc-waveform span:nth-child(4n) { animation-delay: 0.1s; height: 55%; }
.lc-waveform span:nth-child(5n) { animation-delay: 0.25s; height: 85%; }
.lc-waveform span:nth-child(7n) { animation-delay: 0.05s; height: 60%; }

@keyframes lcWave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* Mood badge overlay — top left of video */
.lc-mood-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.lc-mood-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28ca42;
    animation: lcPulse 2s ease-in-out infinite;
}

/* AI generation overlay — top right */
.lc-gen-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    z-index: 2;
}

.lc-gen-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.lc-gen-quality {
    font-size: 18px;
    font-weight: 800;
    color: #28ca42;
    text-shadow: 0 0 20px rgba(40, 202, 66, 0.4);
}

/* Mood property tags — bottom of video */
.lc-mood-props {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.lc-mood-prop {
    font-size: 10px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

@media (max-width: 768px) {
    .lc-app-mockup {
        grid-template-columns: 1fr;
        min-height: 300px;
    }
    .lc-sidebar {
        display: none;
    }
}

/* Style Cards */
.style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.style-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: all var(--duration-normal) var(--ease-spring);
}

.style-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--glass-border-hover);
}

/* Abstract mood visuals — replace AI images */
.style-visual {
    aspect-ratio: 16/10;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
    overflow: hidden;
    position: relative;
}

.style-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* (duplicate removed — .lc-preview-video defined at line ~984 with position:absolute) */
/* lc-preview-video transition addition */
.lc-preview-video {
    transition: opacity 0.25s ease;
}

@keyframes svPulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.style-preview {
    display: none; /* hide old video previews */
}

.style-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.style-artist {
    display: block;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.style-tags span {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
}

/* Case Insight */
.case-insight {
    text-align: center;
    padding: var(--space-7) var(--space-5);
    margin-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

/* ----------------------------------------
   CANVAS EVOLUTION — Phase System
   ---------------------------------------- */
.canvas-arrow {
    color: var(--color-accent);
    font-weight: 300;
}

/* === HERO MOMENT — The "aha" that sells the product in 2 seconds === */
.lc-hero-moment {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 auto var(--space-7);
    max-width: 800px;
    padding: 0 var(--space-4);
}

.lc-hero-before {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    text-align: center;
}

.lc-hero-waveform-icon {
    opacity: 0.8;
}

.lc-hero-before-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

.lc-hero-before-track {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

.lc-hero-arrow-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.lc-hero-arrow-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 30%, rgba(48,209,88,0.4) 50%, rgba(255,255,255,0.15) 70%, transparent 100%);
}

.lc-hero-arrow-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lc-hero-after {
    flex: 0 0 260px;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.4),
        0 0 60px rgba(48,209,88,0.08),
        0 0 0 1px rgba(48,209,88,0.15);
}

.lc-hero-after-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-hero-after-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.lc-hero-after-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}

.lc-hero-after-quality {
    font-size: 12px;
    font-weight: 800;
    color: #30d158;
    text-shadow: 0 0 8px rgba(48,209,88,0.5);
}

@media (max-width: 640px) {
    .lc-hero-moment {
        flex-direction: column;
        gap: 0;
    }
    .lc-hero-before {
        flex: none;
        width: 100%;
    }
    .lc-hero-after {
        flex: none;
        width: 100%;
        aspect-ratio: 16/9;
    }
    .lc-hero-arrow-container {
        padding: 16px 0;
    }
    .lc-hero-arrow-line {
        width: 1px;
        height: 30px;
        background: linear-gradient(180deg, transparent 0%, rgba(48,209,88,0.4) 50%, transparent 100%);
    }
}

/* Phase Headers */
.canvas-phase {
    margin-bottom: var(--space-6);
}

.phase-header {
    margin-bottom: var(--space-5);
}

.phase-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-2);
}

.phase-tag-accent {
    color: var(--color-accent);
}

.phase-header h4 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.phase-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* Evolution Bridge — Transition between phases */
.canvas-evolution-bridge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-7) 0;
    padding: var(--space-5) 0;
}

.evolution-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.evolution-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    white-space: nowrap;
    font-style: italic;
}

/* Canvas Pipeline */
/* Input → Output frame */
.cv-io-frame {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.cv-io-in, .cv-io-out {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-io-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
}

.cv-io-in .cv-io-value {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}

.cv-io-out .cv-io-value {
    font-size: 13px;
    font-weight: 600;
    color: #30d158;
}

.cv-io-arrow {
    font-size: 20px;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ---- CANVAS DIRECTOR SHOWCASE ---- */
.cv-director-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: var(--space-6) 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

/* Left Panel — Pipeline Processing */
.cv-pipeline-panel {
    background: #0c0c0e;
    padding: 0;
}

.cv-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cv-dot-green {
    background: #30d158;
    box-shadow: 0 0 6px rgba(48, 209, 88, 0.5);
    animation: lcPulse 2s ease-in-out infinite;
}

.cv-panel-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.cv-panel-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    color: #f0a040;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: lcPulse 2s ease-in-out infinite;
}

/* Pipeline Steps */
.cv-pipeline-steps {
    padding: 16px 0;
}

.cv-step {
    display: flex;
    gap: 14px;
    padding: 12px 20px;
    position: relative;
    transition: background 0.2s ease;
}

.cv-step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cv-step::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 34px;
    bottom: -12px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.cv-step:last-child::before {
    display: none;
}

.cv-step-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cv-step-done .cv-step-indicator {
    background: rgba(48, 209, 88, 0.15);
}

.cv-step-done .cv-step-name {
    color: rgba(255, 255, 255, 0.5);
}

.cv-step-done .cv-step-meta {
    color: rgba(255, 255, 255, 0.3);
}

.cv-indicator-pulse {
    background: rgba(41, 151, 255, 0.2);
    position: relative;
}

.cv-pulse-ring {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2997ff;
    animation: cvStepPulse 1.5s ease-in-out infinite;
}

@keyframes cvStepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(41, 151, 255, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(41, 151, 255, 0); }
}

.cv-indicator-pending {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
}

.cv-step-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cv-step-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cv-step-tag {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}

.cv-tag-accent {
    background: rgba(41, 151, 255, 0.12);
    color: #2997ff;
}

.cv-step-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.4;
}

.cv-step-meta strong {
    color: #2997ff;
}

.cv-step-active .cv-step-name {
    color: white;
}

.cv-step-active .cv-step-meta {
    color: rgba(255, 255, 255, 0.5);
}

.cv-step-active::before {
    background: rgba(41, 151, 255, 0.2);
}

.cv-step-pending .cv-step-name {
    color: rgba(255, 255, 255, 0.25);
}

.cv-step-pending .cv-step-tag {
    opacity: 0.4;
}

/* Emotional DNA bar */
.cv-dna-bar {
    display: flex;
    gap: 2px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.cv-dna-seg {
    border-radius: 3px;
    min-width: 0;
}

/* Director Match */
.cv-director-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(41, 151, 255, 0.06);
    border: 1px solid rgba(41, 151, 255, 0.12);
    border-radius: 8px;
}

.cv-match-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.cv-match-score {
    font-size: 11px;
    font-weight: 600;
    color: #30d158;
}

.cv-match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.cv-match-tags span {
    font-size: 10px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

.cv-director-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.cv-match-pct {
    font-size: 11px;
    font-weight: 600;
    color: #30d158;
    margin-left: auto;
}

.cv-director-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cv-trait {
    font-size: 10px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Right Panel — Director Cinema Preview */
.cv-director-panel {
    background: #0c0c0e;
    display: flex;
    flex-direction: column;
}

.cv-director-cinema {
    flex: 1;
    position: relative;
}

.cv-cinema-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}

/* Cinema video */
.cv-cinema-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keep old grade classes for any remaining usage */
.cv-grade-lubezki {
    filter: saturate(0.7) contrast(1.4) brightness(0.75) sepia(0.08);
}

.cv-grade-warm {
    filter: saturate(1.1) contrast(1.4) brightness(0.75) sepia(0.45) hue-rotate(-15deg);
    object-position: center 30%;
}

/* Tarkovsky color grade: cold, muted, atmospheric — desaturated with blue shift */
.cv-grade-tarkovsky {
    filter: saturate(0.35) contrast(1.3) brightness(0.7) hue-rotate(20deg) sepia(0.15);
}

/* Comparison card images */
.cv-compare-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cv-cinema-grain {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    mix-blend-mode: overlay;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cinematic vignette — darkened edges for theatrical feel */
.cv-cinema-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Comparison card vignette */
.cv-compare-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Render progress bar */
.cv-render-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.cv-render-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #2997ff, #30d158);
    border-radius: 0 2px 2px 0;
    animation: cvRenderProgress 6s ease-in-out infinite;
}

@keyframes cvRenderProgress {
    0% { width: 55%; }
    50% { width: 68%; }
    100% { width: 55%; }
}

.cv-cinema-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-cinema-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-cinema-timestamp {
    font-size: 10px;
    font-family: 'SF Mono', 'Menlo', monospace;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.cv-cinema-score {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 4;
}

.cv-score-num {
    font-size: 28px;
    font-weight: 800;
    color: #30d158;
    line-height: 1;
    text-shadow: 0 0 30px rgba(48, 209, 88, 0.4);
}

.cv-score-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.cv-cinema-meta {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

.cv-meta-tag {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Philosophy Compact (below cinema) */
.cv-philosophy-compact {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-philosophy-line {
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    line-height: 1.5;
}

.cv-rules-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-rule {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.cv-rule-yes {
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.15);
}

.cv-rule-no {
    background: rgba(255, 69, 58, 0.08);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.12);
}

/* === Architecture Pipeline — clean horizontal flow === */
.cv-architecture {
    display: flex;
    align-items: center;
    gap: 0;
    margin: var(--space-5) 0 var(--space-6);
    padding: 24px 0;
}

.cv-arch-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
}

.cv-arch-step-accent {
    background: rgba(48,209,88,0.04);
    border-color: rgba(48,209,88,0.12);
}

.cv-arch-icon {
    color: rgba(255,255,255,0.4);
}

.cv-arch-step-accent .cv-arch-icon {
    color: #30d158;
}

.cv-arch-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: -0.01em;
}

.cv-arch-detail {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

.cv-arch-arrow {
    flex-shrink: 0;
    padding: 0 8px;
    font-size: 16px;
    color: rgba(255,255,255,0.12);
}

/* Philosophy Hero Quote */
.cv-philosophy-hero {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    margin: var(--space-5) 0;
}

.cv-philosophy-quote {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cv-philosophy-sub {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Concept Flow — Phase 1 steps */
.lc-concept-flow {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto var(--space-5);
}

.lc-flow-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
}

.lc-flow-step-accent {
    background: rgba(0,122,255,0.04);
    border-color: rgba(0,122,255,0.12);
}

.lc-flow-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.lc-flow-step-accent .lc-flow-number {
    background: rgba(0,122,255,0.15);
    color: var(--color-accent);
}

.lc-flow-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-flow-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.lc-flow-detail {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
}

.lc-flow-connector {
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cv-architecture {
        flex-direction: column;
        gap: 8px;
    }
    .cv-arch-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
    .lc-concept-flow {
        flex-direction: column;
    }
    .lc-flow-connector {
        width: 1px;
        height: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* MOOD SHOWCASE — Visual grid of cinematic mood options              */
/* ═══════════════════════════════════════════════════════════════════ */
.lc-mood-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: var(--space-5) 0;
}

.lc-mood-card {
    position: relative;
    aspect-ratio: 9 / 14;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s var(--ease-out);
    transform: translateY(0);
}

.lc-mood-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.lc-mood-card.lc-mood-active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 16px 48px rgba(41, 151, 255, 0.2);
}

.lc-mood-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-mood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 14px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.lc-mood-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .lc-mood-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .lc-mood-card {
        aspect-ratio: 9 / 12;
    }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* SPOTIFY CANVAS PREVIEW — iPhone-style device frame                 */
/* ═══════════════════════════════════════════════════════════════════ */
.lc-spotify-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: var(--space-5) auto;
}

.lc-spotify-device {
    width: 200px;
    height: 400px;
    border-radius: 32px;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lc-spotify-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 22px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.lc-spotify-screen {
    position: absolute;
    inset: 3px;
    border-radius: 29px;
    overflow: hidden;
}

.lc-spotify-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lc-spotify-ui {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.lc-spotify-track {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lc-spotify-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.lc-spotify-artist {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.lc-spotify-controls {
    color: rgba(255, 255, 255, 0.7);
}

.lc-spotify-caption {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lc-spotify-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1DB954;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lc-spotify-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════ */
/* CINEMA HERO — The full-bleed cinematic showcase for Canvas output  */
/* ═══════════════════════════════════════════════════════════════════ */
.cv-cinema-hero {
    margin: var(--space-5) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cv-cinema-hero .cv-cinema-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 9 / 14;
    overflow: hidden;
    border-radius: var(--radius-xl, 20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 120px rgba(200, 140, 50, 0.06);
}

.cv-cinema-hero .cv-cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-cinema-hero .cv-cinema-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
    z-index: 2;
}

.cv-cinema-hero .cv-cinema-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cv-cinema-hero .cv-cinema-score {
    font-size: 28px;
    font-weight: 800;
    color: #30d158;
    line-height: 1;
    text-shadow: 0 0 40px rgba(48, 209, 88, 0.5);
    position: static;
}

.cv-cinema-score-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
}

.cv-cinema-caption {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* DIRECTOR VISUAL GRID — Side-by-side video comparison cards         */
/* ═══════════════════════════════════════════════════════════════════ */
.cv-director-visual-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.cv-director-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-out);
    cursor: pointer;
}

.cv-director-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cv-director-warm {
    background: linear-gradient(145deg, rgba(200, 140, 50, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
    border-color: rgba(200, 140, 50, 0.1);
}

.cv-director-warm:hover {
    border-color: rgba(200, 140, 50, 0.25);
}

.cv-director-cool {
    background: linear-gradient(145deg, rgba(80, 120, 180, 0.06) 0%, rgba(0, 0, 0, 0) 100%);
    border-color: rgba(80, 120, 180, 0.1);
}

.cv-director-cool:hover {
    border-color: rgba(80, 120, 180, 0.25);
}

.cv-director-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 12;
    overflow: hidden;
}

.cv-director-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-director-video-grain {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cv-director-info {
    padding: 20px;
}

.cv-director-name-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cv-director-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.02em;
}

.cv-director-score {
    font-size: 20px;
    font-weight: 800;
    color: #30d158;
    line-height: 1;
}

.cv-director-motto {
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
    line-height: 1.4;
}

.cv-director-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv-director-tags span {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-director-warm .cv-director-tags span {
    background: rgba(200, 140, 50, 0.08);
    color: rgba(200, 140, 50, 0.7);
    border-color: rgba(200, 140, 50, 0.12);
}

.cv-director-cool .cv-director-tags span {
    background: rgba(80, 120, 180, 0.08);
    color: rgba(80, 120, 180, 0.7);
    border-color: rgba(80, 120, 180, 0.12);
}

.cv-director-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 640px) {
    .cv-director-visual-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cv-director-vs {
        padding: 8px 0;
    }
    .cv-cinema-hero .cv-cinema-frame {
        max-height: 400px;
    }
}

/* Director Comparison Section */
.cv-director-compare {
    margin: var(--space-6) 0;
}

.cv-compare-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.cv-compare-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cv-compare-grid {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ---- Director Philosophy Grid ---- */
.cv-philosophy-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
}

.cv-phil-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s var(--ease-out);
}

.cv-phil-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.cv-phil-warm {
    background: linear-gradient(145deg, rgba(200, 140, 50, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(200, 140, 50, 0.12);
}

.cv-phil-warm:hover { border-color: rgba(200, 140, 50, 0.25); }

.cv-phil-cold {
    background: linear-gradient(145deg, rgba(80, 120, 180, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(80, 120, 180, 0.12);
}

.cv-phil-cold:hover { border-color: rgba(80, 120, 180, 0.25); }

.cv-phil-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cv-phil-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.cv-phil-score {
    font-size: 22px;
    font-weight: 800;
    color: #30d158;
}

.cv-phil-motto {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-phil-rules {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cv-phil-rule {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.cv-phil-icon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cv-phil-yes { background: #30d158; }
.cv-phil-no { background: #ff453a; }

.cv-phil-params {
    display: flex;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cv-phil-params span {
    font-size: 10px;
    font-family: 'SF Mono', 'Menlo', monospace;
    color: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.cv-phil-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.cv-phil-vs {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Scope Grid */
.canvas-scope {
    margin-top: var(--space-6);
    text-align: center;
}

.canvas-scope-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-5);
}

.canvas-scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.scope-item {
    text-align: center;
}

.scope-number {
    display: block;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: var(--space-1);
}

.scope-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.4;
}

/* Canvas Responsive */
@media (max-width: 768px) {
    .cv-director-showcase {
        grid-template-columns: 1fr;
    }

    .cv-cinema-frame {
        min-height: 200px;
    }

    .cv-philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .cv-phil-divider {
        display: none;
    }

    .canvas-scope-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4) var(--space-3);
    }

    .canvas-evolution-bridge {
        margin: var(--space-5) 0;
    }
}

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

    .cv-director-traits {
        display: none;
    }

    .cv-phil-card {
        padding: 20px 16px;
    }
}

/* Shipped Features Grid */
/* ----------------------------------------
   FEATURE SHOWCASE — Interactive Blocks
   ---------------------------------------- */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin: var(--space-7) 0;
}

.feature-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: border-color var(--duration-normal) var(--ease-out);
}

.feature-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-block-header {
    margin-bottom: var(--space-6);
    max-width: 600px;
}

.feature-block-header .feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.feature-block-header h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-3) 0;
}

.feature-block-header .feature-description {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- CARD REISSUE INTERACTIVE ---- */
.reissue-interactive {
    margin-top: var(--space-4);
}

.reissue-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: var(--space-4) 0;
    -webkit-overflow-scrolling: touch;
}

.reissue-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s var(--ease-out);
    flex-shrink: 0;
}

.reissue-step:hover {
    opacity: 0.7;
}

.reissue-step-active {
    opacity: 1 !important;
}

.reissue-step-active .reissue-device {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(41, 151, 255, 0.12);
    transform: scale(1.04);
}

.reissue-device {
    width: 130px;
    height: 190px;
    background: #111;
    border-radius: 20px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
}

.reissue-step:hover .reissue-device {
    transform: scale(1.03);
}

.reissue-screen {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Notify screen */
.reissue-screen-notify {
    background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
    gap: var(--space-3);
}

.notif-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
}

.notif-icon-apple {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    flex-shrink: 0;
}

.notif-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.notif-title {
    font-size: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.notif-body {
    font-size: 7px;
    color: var(--color-text-secondary);
}

.reissue-card-preview {
    flex: 1;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.card-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 45%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 55%,
        transparent 70%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Confirm screen */
.reissue-screen-confirm {
    background: linear-gradient(180deg, #0d1f33 0%, #0a1520 100%);
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.confirm-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.confirm-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.confirm-label {
    font-size: 8px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.confirm-value {
    font-size: 10px;
    color: var(--color-text-secondary);
}

.confirm-btn {
    background: var(--color-accent);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 8px;
    margin-top: var(--space-2);
}

/* Track screen */
.reissue-screen-track {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.track-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-warning);
}

.track-progress {
    width: 80%;
}

.track-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.track-fill {
    width: 65%;
    height: 100%;
    background: var(--color-warning);
    border-radius: 2px;
    animation: trackPulse 2s ease-in-out infinite;
}

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

.track-eta {
    font-size: 10px;
    color: var(--color-text-secondary);
}

/* Activate screen */
.reissue-screen-activate {
    background: linear-gradient(180deg, #0d2618 0%, #0a1a10 100%);
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.activate-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-success);
}

.activate-sub {
    font-size: 8px;
    color: var(--color-text-tertiary);
}

/* Reissue connectors */
.reissue-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-left: var(--space-2);
    padding-right: var(--space-2);
}

.connector-line {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
}

.connector-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    border: 3px solid transparent;
    border-left: 5px solid rgba(255, 255, 255, 0.12);
}

/* Reissue step labels */
.reissue-step .step-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.step-detail {
    font-size: 10px;
    color: var(--color-text-tertiary);
}

/* Reissue insight */
.reissue-insight {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border-left: 2px solid var(--color-accent);
}

.insight-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: var(--space-2);
}

.reissue-insight p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- FAMILY SHARING INTERACTIVE ---- */
.family-interactive {
    margin-top: var(--space-4);
}

.family-onboarding {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
    align-items: start;
}

.onboarding-surface {
    display: flex;
    justify-content: center;
}

.onboarding-device {
    width: 220px;
    height: 420px;
    background: #111;
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s var(--ease-spring);
}

.onboarding-device:hover {
    transform: scale(1.02);
}

.onboarding-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 26px;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.onboard-logo {
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}

.apple-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 30%, #6c63ff 60%, #48d1cc 100%);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.onboard-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: var(--space-1);
    text-align: center;
}

.onboard-subtitle {
    font-size: 9px;
    color: #666;
    text-align: center;
    line-height: 1.4;
    margin-bottom: var(--space-4);
    padding: 0 var(--space-2);
}

.onboard-roles {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
    flex: 1;
}

.role-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    background: rgba(0, 0, 0, 0.03);
    border: 1.5px solid transparent;
}

.role-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

.role-item-active {
    background: rgba(41, 151, 255, 0.08) !important;
    border-color: var(--color-accent);
}

.role-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.role-icon-coowner {
    background: linear-gradient(135deg, #4A90D9 0%, #357ABD 100%);
}

.role-icon-participant {
    background: linear-gradient(135deg, #5AC8FA 0%, #34AADC 100%);
}

.role-icon-credit {
    background: linear-gradient(135deg, #4CD964 0%, #2DB84D 100%);
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.role-name {
    font-size: 10px;
    font-weight: 600;
    color: #1a1a1a;
}

.role-desc {
    font-size: 7.5px;
    color: #888;
    line-height: 1.3;
}

.onboard-cta {
    width: 100%;
    padding: 10px;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    margin-top: var(--space-3);
}

/* Iceberg Panel */
.iceberg-panel {
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.iceberg-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.iceberg-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.iceberg-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-2) 0 0 0;
    transition: all 0.3s var(--ease-out);
}

.iceberg-layers {
    flex: 1;
    position: relative;
}

.iceberg-content {
    display: none;
    flex-direction: column;
    gap: var(--space-3);
}

.iceberg-content.active {
    display: flex;
    animation: icebergFadeIn 0.4s var(--ease-out);
}

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

.iceberg-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    transition: background 0.3s var(--ease-out);
}

.iceberg-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.iceberg-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.4;
    flex-shrink: 0;
    padding-top: 1px;
}

.iceberg-item p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
}

.iceberg-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.iceberg-footer p {
    font-size: 13px;
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* ---- RESPONSIVE: FEATURE SHOWCASE ---- */
@media (max-width: 768px) {
    .family-onboarding {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .reissue-timeline {
        gap: 0;
        justify-content: flex-start;
        padding-left: var(--space-4);
    }

    .feature-block {
        padding: var(--space-4);
    }

    .onboarding-device {
        width: 200px;
        height: 380px;
    }
}

/* Interactive Flow - Boarding Pass */
.interactive-flow {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-xl);
}

.flow-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    text-align: center;
}

.flow-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.boarding-pass-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    overflow-x: auto;
    padding: var(--space-4) 0;
}

.pass-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    opacity: 0.5;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.pass-state:hover,
.pass-state-active {
    opacity: 1;
}

.pass-state-active .pass-device {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(41, 151, 255, 0.15);
    transform: scale(1.02);
}

.pass-device {
    width: 140px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) var(--ease-spring);
}

.pass-state:hover .pass-device {
    transform: scale(1.05);
}

.pass-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1c3a5f 0%, #0d1f33 100%);
    border-radius: 14px;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    overflow: hidden;
}

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

.pass-airline {
    font-size: 8px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pass-flight {
    font-size: 8px;
    color: var(--color-text-secondary);
}

.pass-status {
    font-size: 7px;
    color: var(--color-accent);
    font-weight: 600;
}

.pass-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
}

.pass-city {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.pass-arrow {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.pass-detail-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pass-label {
    font-size: 7px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.pass-value {
    font-size: 10px;
    color: var(--color-text);
    font-weight: 500;
}

.pass-detail-secondary {
    font-size: 7px;
    color: var(--color-text-tertiary);
    text-align: center;
}

.pass-cta {
    margin-top: auto;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 9px;
    font-weight: 600;
    padding: 6px;
    border-radius: 8px;
    text-align: center;
}

/* Gate state */
.pass-screen-gate {
    background: linear-gradient(180deg, #0d3320 0%, #0a1f15 100%);
    align-items: center;
    justify-content: center;
}

.pass-qr {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 4px;
    margin-bottom: var(--space-2);
}

.pass-gate-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gate-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.gate-time {
    font-size: 9px;
    color: var(--color-text-secondary);
}

.pass-seat {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-2);
}

.seat-label {
    font-size: 8px;
    color: var(--color-text-tertiary);
}

.seat-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

/* Inflight state */
.pass-screen-inflight {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    align-items: center;
    justify-content: center;
}

.inflight-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-success);
    margin-bottom: var(--space-2);
}

.inflight-progress {
    width: 80%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: var(--space-3);
    overflow: hidden;
}

.progress-bar {
    width: 60%;
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
}

.inflight-details {
    display: flex;
    gap: var(--space-4);
}

.inflight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.inflight-label {
    font-size: 7px;
    color: var(--color-text-tertiary);
}

.inflight-value {
    font-size: 10px;
    color: var(--color-text);
    font-weight: 500;
}

.state-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.state-time {
    font-size: 10px;
    color: var(--color-text-tertiary);
}

.state-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

.boarding-pass-flow .flow-connector {
    width: 40px;
    flex-shrink: 0;
}

/* ---- SEMANTIC BOARDING PASS FEATURES (iOS 26) ---- */
.semantic-features {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-3);
    overflow-x: auto;
    padding: var(--space-4) 0;
    -webkit-overflow-scrolling: touch;
}

.semantic-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.4s var(--ease-out);
    flex-shrink: 0;
}

.semantic-feature:hover {
    opacity: 0.7;
}

.semantic-feature-active {
    opacity: 1 !important;
}

.semantic-feature-active .semantic-device {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(41, 151, 255, 0.12);
    transform: scale(1.04);
}

.semantic-device {
    width: 140px;
    height: 210px;
    background: #111;
    border-radius: 20px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-spring);
}

.semantic-feature:hover .semantic-device {
    transform: scale(1.03);
}

.semantic-screen {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    padding: var(--space-2) var(--space-2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: var(--space-2);
}

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

.sem-airline {
    font-size: 7px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sem-flight {
    font-size: 7px;
    color: var(--color-text-secondary);
}

.sem-badge {
    font-size: 6px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.sem-badge-live {
    background: #ff3b30;
    color: white;
    animation: livePulse 2s ease-in-out infinite;
}

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

.sem-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-1) 0;
}

.sem-city {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.sem-arrow {
    font-size: 10px;
    color: var(--color-text-tertiary);
}

.sem-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.sem-label {
    font-size: 7px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.sem-value {
    font-size: 9px;
    color: var(--color-text);
    font-weight: 500;
}

/* Live Activities screen */
.semantic-screen-live {
    background: linear-gradient(180deg, #1c3a5f 0%, #0d1f33 100%);
}

.sem-live-update {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    padding: 6px 8px;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

.live-text {
    font-size: 8px;
    font-weight: 600;
    color: #ff6961;
}

.sem-dynamic-island {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #000;
    border-radius: 20px;
    padding: 4px 10px;
    margin-top: auto;
    align-self: center;
}

.di-dot {
    width: 4px;
    height: 4px;
    background: var(--color-success);
    border-radius: 50%;
}

.di-text {
    font-size: 6px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Security badges screen */
.semantic-screen-security {
    background: linear-gradient(180deg, #0d3320 0%, #0a1f15 100%);
    align-items: center;
}

.sem-qr {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 4px;
}

.sem-security-badges {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-1);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 600;
}

.badge-precheck {
    background: rgba(52, 199, 89, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.badge-clear {
    background: rgba(41, 151, 255, 0.2);
    color: var(--color-accent);
    border: 1px solid rgba(41, 151, 255, 0.3);
}

.badge-icon {
    font-size: 7px;
}

.badge-text {
    font-size: 6px;
    letter-spacing: 0.03em;
}

/* Deep actions screen */
.semantic-screen-actions {
    background: linear-gradient(180deg, #2a1a3e 0%, #1a0f2e 100%);
}

.sem-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    flex: 1;
}

.sem-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 4px;
    transition: background 0.2s ease;
}

.sem-action:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-icon {
    font-size: 14px;
}

.action-text {
    font-size: 6.5px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.sem-detail-small {
    text-align: center;
}

.sem-detail-small span {
    font-size: 7px;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Share screen */
.semantic-screen-share {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.sem-share-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.share-bubble {
    background: rgba(41, 151, 255, 0.12);
    border: 1px solid rgba(41, 151, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.share-mini-pass {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mini-route {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-text);
}

.mini-time {
    font-size: 7px;
    color: var(--color-text-secondary);
}

.share-status {
    font-size: 7px;
    color: var(--color-success);
    font-weight: 600;
}

.share-recipient {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: auto;
    text-align: center;
}

.recipient-label {
    font-size: 8px;
    color: var(--color-accent);
    font-weight: 500;
}

.recipient-note {
    font-size: 7px;
    color: var(--color-text-tertiary);
}

/* Semantic feature labels */
.semantic-label {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 140px;
}

.semantic-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.semantic-desc {
    font-size: 10px;
    color: var(--color-text-tertiary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .semantic-features {
        justify-content: flex-start;
        padding-left: var(--space-4);
    }
}

.case-insight blockquote {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.case-insight p {
    max-width: 500px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* ----------------------------------------
   DIVE INTERACTIVE CASE STUDY
   ---------------------------------------- */

/* Problem Visualization */
.dive-problem-viz {
    margin: var(--space-7) 0;
}

.problem-headline {
    text-align: center;
    margin-bottom: var(--space-6);
}

.problem-tag,
.solution-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.problem-headline h4,
.solution-header h4 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: var(--color-text);
}

/* Chaos Visualization - Floating Items */
.chaos-visualization {
    position: relative;
    height: 280px;
    margin: var(--space-6) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chaos-center {
    text-align: center;
    z-index: 2;
}

.excavator-emoji {
    font-size: 64px;
    animation: digAnimation 2s ease-in-out infinite;
}

@keyframes digAnimation {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.chaos-center p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: var(--space-2);
}

.floating-chaos {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.chaos-item {
    position: absolute;
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    animation: chaosFloat 6s ease-in-out infinite;
}

.chaos-1 { top: 10%; left: 5%; animation-delay: 0s; }
.chaos-2 { top: 5%; right: 10%; animation-delay: 1s; }
.chaos-3 { top: 40%; left: 0%; animation-delay: 2s; }
.chaos-4 { top: 35%; right: 0%; animation-delay: 0.5s; }
.chaos-5 { bottom: 15%; left: 10%; animation-delay: 1.5s; }
.chaos-6 { bottom: 10%; right: 5%; animation-delay: 2.5s; }

@keyframes chaosFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    75% { transform: translateY(8px) rotate(-1deg); }
}

/* Research Cards */
.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.research-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--duration-normal) var(--ease-out);
}

.research-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.research-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.research-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8cd9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.research-meta {
    display: flex;
    flex-direction: column;
}

.research-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.research-handle {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

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

/* Solution Section — Transition Moment */
.dive-solution {
    text-align: center;
    padding: var(--space-8) 0 var(--space-7);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-6);
    position: relative;
}

.dive-solution-transition {
    margin-bottom: var(--space-5);
}

.transition-arrow {
    display: inline-block;
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

.solution-header {
    margin-bottom: var(--space-4);
}

.solution-description {
    max-width: 640px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Value Props Row */
.dive-value-props {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-5);
}

.dive-value {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.dive-value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(41, 151, 255, 0.1);
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Dive Story Sections */
.dive-story {
    text-align: center;
    margin: var(--space-7) 0 var(--space-5);
}

.dive-story-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.dive-story-header h4 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--space-2);
}

/* Epilogue */
.dive-epilogue {
    max-width: 600px;
    margin: 0 auto var(--space-6);
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-align: center;
}

@media (max-width: 768px) {
    .dive-value-props {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
}

/* Dive Product UI Showcase */
.dive-product-ui {
    margin: var(--space-7) 0;
}

.product-ui-header {
    text-align: center;
    margin-bottom: var(--space-5);
}

.product-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2);
}

.product-ui-header h4 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    color: var(--color-text);
}

.product-ui-desc {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin-top: var(--space-2);
}

/* ---- DIVE DEMO: Interactive iMessage → Thread Animation ---- */
/* ================================================
   DIVE — CINEMATIC PHONE DEMO
   ================================================ */

.dv-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0 32px;
}

/* Ambient glow behind phone */
.dv-stage-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(248, 180, 120, 0.12) 0%, rgba(167, 139, 250, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: dvGlowBreathe 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes dvGlowBreathe {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Label above phone */
.dv-stage-label {
    margin-bottom: 20px;
    z-index: 1;
}

.dv-stage-step {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    font-weight: 600;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    transition: all 0.5s ease;
}

.dv-stage.dv-opened .dv-stage-step {
    background: rgba(248, 180, 120, 0.08);
    border-color: rgba(248, 180, 120, 0.15);
    color: #f8b478;
}

/* === THE DEVICE === */
.dv-device {
    width: 375px;
    border-radius: 48px;
    background: #000;
    padding: 6px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
}

.dv-stage.dv-opened .dv-device {
    box-shadow:
        0 50px 100px rgba(248, 180, 120, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(248, 180, 120, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Dynamic Island */
.dv-island {
    width: 126px;
    height: 36px;
    background: #000;
    border-radius: 20px;
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Status bar */
.dv-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px 0;
    position: relative;
    z-index: 5;
}

.dv-status-time {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.dv-status-icons {
    display: flex;
    gap: 5px;
    font-size: 10px;
    color: #1a1a1a;
    font-weight: 700;
}

.dv-signal, .dv-wifi, .dv-battery { font-size: 9px; }

/* Screen */
.dv-screen {
    border-radius: 42px;
    overflow: hidden;
    background: #f2f2f7;
    position: relative;
}

/* Home indicator */
.dv-home-bar {
    width: 134px;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    margin: 8px auto 10px;
}

/* === iMessage STATE === */
.dv-s-imsg {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.dv-stage.dv-opened .dv-s-imsg {
    display: none;
}

.dv-imsg-nav {
    display: flex;
    align-items: center;
    padding: 44px 16px 10px;
    background: rgba(242, 242, 247, 0.95);
    backdrop-filter: blur(20px);
}

.dv-imsg-back {
    font-size: 24px;
    color: #007aff;
    font-weight: 300;
    width: 40px;
}

.dv-imsg-contact {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.dv-imsg-contact span {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.dv-imsg-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dv-contact-circle {
    background: linear-gradient(135deg, #5856d6, #af52de);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.dv-imsg-cam {
    width: 40px;
    text-align: right;
    color: #007aff;
    font-size: 20px;
}

/* Chat messages */
.dv-imsg-chat {
    padding: 10px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 440px;
}

.dv-imsg-ts {
    text-align: center;
    font-size: 10px;
    color: #8e8e93;
    margin-bottom: 6px;
}

.dv-msg {
    max-width: 80%;
    font-size: 15px;
    line-height: 1.35;
    padding: 9px 14px;
    opacity: 0;
    animation: dvMsgIn 0.3s ease both;
}

.dv-msg-in {
    align-self: flex-start;
    background: #e5e5ea;
    color: #1a1a1a;
    border-radius: 18px 18px 18px 6px;
}

.dv-msg-out {
    align-self: flex-end;
    background: #007aff;
    color: white;
    border-radius: 18px 18px 6px 18px;
}

.dv-msg-rich {
    background: none;
    padding: 0;
    border-radius: 16px;
    overflow: visible;
    max-width: 88%;
}

/* Staggered message entrance */
.dv-msg-1 { animation-delay: 0.1s; }
.dv-msg-2 { animation-delay: 0.4s; }
.dv-msg-3 { animation-delay: 0.9s; }
.dv-msg-4 { animation-delay: 1.6s; }
.dv-msg-5 { animation-delay: 2.0s; }

@keyframes dvMsgIn {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === RICH PREVIEW CARD — Apple magic: gradient hero + content depth === */
.dv-rich {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.06),
        0 8px 24px rgba(0,0,0,0.12),
        0 0 0 0.5px rgba(0,0,0,0.04);
    animation: dvCardGlow 4s ease-in-out infinite;
}

@keyframes dvCardGlow {
    0%, 100% {
        box-shadow:
            0 1px 3px rgba(0,0,0,0.06),
            0 8px 24px rgba(0,0,0,0.12),
            0 0 0 0.5px rgba(0,0,0,0.04),
            0 0 20px rgba(139,92,246,0.06);
    }
    50% {
        box-shadow:
            0 1px 3px rgba(0,0,0,0.06),
            0 8px 24px rgba(0,0,0,0.12),
            0 0 0 0.5px rgba(0,0,0,0.04),
            0 0 30px rgba(139,92,246,0.12),
            0 0 60px rgba(251,146,60,0.06);
    }
}

.dv-rich:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.1),
        0 20px 48px rgba(0,0,0,0.15),
        0 0 0 0.5px rgba(0,0,0,0.06),
        0 0 40px rgba(139,92,246,0.15);
    animation: none;
}

.dv-rich:active {
    transform: scale(0.97);
    transition-duration: 0.15s;
}

/* === Hero — rich gradient like Apple Wallet card === */
.dv-rich-hero {
    position: relative;
    padding: 16px 16px 14px;
    overflow: hidden;
}

.dv-rich-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(251, 146, 60, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 10%, rgba(139, 92, 246, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #1e1145 0%, #0f172a 35%, #1a1040 70%, #251548 100%);
    animation: dvHeroBgShift 8s ease-in-out infinite;
}

@keyframes dvHeroBgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Shimmer sweep over hero */
.dv-rich-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 80%
    );
    animation: dvShimmerSweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dvShimmerSweep {
    0% { transform: translateX(-100%); }
    50%, 100% { transform: translateX(100%); }
}

/* Subtle noise texture */
.dv-rich-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.dv-rich-hero-content {
    position: relative;
    z-index: 1;
}

.dv-rich-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dv-rich-app {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dv-rich-logo {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: linear-gradient(145deg, #fb923c 0%, #e460d1 35%, #a855f7 60%, #7c5bf0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 3px 12px rgba(168, 85, 247, 0.4),
        0 1px 4px rgba(251, 146, 60, 0.3),
        0 0 0 1px rgba(255,255,255,0.15),
        inset 0 1px 1px rgba(255,255,255,0.25);
    animation: dvLogoPulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.dv-rich-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes dvLogoPulse {
    0%, 100% {
        box-shadow:
            0 3px 12px rgba(168, 85, 247, 0.4),
            0 1px 4px rgba(251, 146, 60, 0.3),
            0 0 0 1px rgba(255,255,255,0.15),
            inset 0 1px 1px rgba(255,255,255,0.25);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(168, 85, 247, 0.55),
            0 2px 8px rgba(251, 146, 60, 0.4),
            0 0 0 1.5px rgba(255,255,255,0.2),
            inset 0 1px 1px rgba(255,255,255,0.3);
    }
}

.dv-rich-hero-votes {
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 7px;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.dv-rich-hero-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 6px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.15);
}

.dv-rich-hero-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.dv-rich-hero-pieces {
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.dv-rich-hero-dot {
    color: rgba(255,255,255,0.2);
}

.dv-rich-hero-by {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* === Body — content list with glass feel === */
.dv-rich-body {
    padding: 6px 10px 4px;
    background: #fff;
}

.dv-rp {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.15s ease;
}

.dv-rp:last-of-type {
    border-bottom: none;
}

.dv-rp-color {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 0.5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-rp-color svg {
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.dv-rp-logo-text {
    font-size: 9px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.dv-rp-color-yt {
    border-radius: 9px;
    overflow: hidden;
}

.dv-rp-color-yt svg {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.dv-rp-info {
    flex: 1;
    min-width: 0;
}

.dv-rp-title {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.dv-rp-src {
    display: block;
    font-size: 10px;
    color: #8e8e93;
    margin-top: 1px;
}

.dv-rp-votes {
    font-size: 10px;
    font-weight: 700;
    color: #30d158;
    flex-shrink: 0;
}

/* Footer row */
.dv-rp-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 4px 3px;
    font-size: 11px;
    color: #8e8e93;
}

/* === CTA — glowing blue === */
.dv-rich-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 11px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.03) 0%, rgba(0, 122, 255, 0.07) 100%);
    border-top: 1px solid rgba(0, 122, 255, 0.1);
    font-size: 12.5px;
    font-weight: 700;
    color: #007aff;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}

.dv-rich-cta-text {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dv-rich-cta-arrow {
    font-size: 14px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 400;
}

.dv-rich:hover .dv-rich-cta-arrow {
    transform: translateX(4px);
}

.dv-rich:hover .dv-rich-cta {
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.06) 0%, rgba(0, 122, 255, 0.12) 100%);
}

/* === THREAD STATE === */
.dv-s-thread {
    display: none;
    min-height: 560px;
}

.dv-stage.dv-opened .dv-s-thread {
    display: block;
    animation: dvScreenReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dvScreenReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dv-thread-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 16px 10px;
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(20px);
}

.dv-thread-back {
    font-size: 15px;
    color: #e8935a;
    font-weight: 500;
    cursor: pointer;
}

.dv-thread-share {
    font-size: 14px;
    color: #e8935a;
    font-weight: 600;
}

.dv-thread-scroll {
    background: linear-gradient(175deg, #fffaf5, #fef0e0 30%, #f5eefa 70%, #f0eefb);
    padding: 16px 16px 24px;
}

.dv-thread-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.15;
    opacity: 0;
}

.dv-stage.dv-opened .dv-thread-hero-title {
    animation: dvSlideUp 0.5s ease 0.15s both;
}

.dv-thread-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    opacity: 0;
}

.dv-stage.dv-opened .dv-thread-meta {
    animation: dvSlideUp 0.5s ease 0.25s both;
}

.dv-thread-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dv-creator-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8b478, #a78bfa);
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-creator-logo {
    padding: 0;
    overflow: hidden;
    background: #111;
}

.dv-creator-logo svg {
    width: 100%;
    height: 100%;
}

.dv-creator-info {
    display: flex;
    flex-direction: column;
}

.dv-creator-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.dv-creator-handle {
    font-size: 11px;
    color: #8e8e93;
}

.dv-thread-votes {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(48, 209, 88, 0.1);
    border-radius: 100px;
}

.dv-vote-count {
    font-size: 18px;
    font-weight: 800;
    color: #30d158;
}

.dv-vote-arrow {
    color: #30d158;
    font-size: 12px;
}

.dv-thread-tags-row {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
}

.dv-stage.dv-opened .dv-thread-tags-row {
    animation: dvSlideUp 0.5s ease 0.3s both;
}

.dv-tt {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(232, 147, 90, 0.1);
    color: #c47a3a;
    border-radius: 100px;
    font-weight: 600;
}

/* Thread content cards */
.dv-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dv-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    opacity: 0;
    transform: translateY(20px);
}

.dv-stage.dv-opened .dv-card-1 { animation: dvCardSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both; }
.dv-stage.dv-opened .dv-card-2 { animation: dvCardSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }
.dv-stage.dv-opened .dv-card-3 { animation: dvCardSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both; }
.dv-stage.dv-opened .dv-card-4 { animation: dvCardSlide 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both; }

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

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

.dv-card-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-card-img svg {
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.dv-card-logo-text {
    font-size: 12px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.dv-card-logo-yc {
    font-size: 16px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
}

.dv-card-img-yt {
    border-radius: 10px;
    overflow: hidden;
}

.dv-card-img-yt svg {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.dv-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dv-card-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8e8e93;
}

.dv-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dv-card-source {
    font-size: 11px;
    color: #aeaeb2;
}

.dv-card-engagement {
    flex-shrink: 0;
}

.dv-card-votes {
    font-size: 12px;
    font-weight: 700;
    color: #30d158;
}

/* Note card variant */
.dv-card-note {
    background: rgba(248, 220, 160, 0.2);
    border-color: rgba(248, 200, 100, 0.12);
    padding: 14px;
}

.dv-note-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 180, 120, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.dv-note-text {
    font-size: 13px;
    line-height: 1.5;
    color: #4a3f2f;
    font-style: italic;
    margin: 0;
}

/* Thread footer */
.dv-thread-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 12px;
    color: #8e8e93;
    opacity: 0;
}

.dv-stage.dv-opened .dv-thread-footer {
    animation: dvSlideUp 0.4s ease 1s both;
}

.dv-tf-comments { font-weight: 500; }
.dv-tf-save { color: #e8935a; font-weight: 600; cursor: pointer; }

/* CTA below phone */
.dv-stage-cta {
    margin-top: 24px;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.dv-cta-tap {
    font-size: 13px;
    color: var(--color-text-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

.dv-cta-tap:hover {
    color: var(--color-text-secondary);
    border-color: rgba(255, 255, 255, 0.12);
}

.dv-stage.dv-opened .dv-cta-tap {
    color: #e8935a;
    border-color: rgba(232, 147, 90, 0.2);
}

/* Status bar color change in thread mode */
.dv-stage.dv-opened .dv-status-time,
.dv-stage.dv-opened .dv-status-icons {
    color: #4a3a2a;
}

.dv-deepdive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.dv-dd-reverse {
    direction: rtl;
}

.dv-dd-reverse > * {
    direction: ltr;
}

.dv-dd-text h4 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

.dv-dd-text p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* Deep-dive scenes */
.dv-dd-scene {
    display: flex;
    justify-content: center;
}

/* Save Anywhere scene: browser with highlight */
.dv-dd-browser {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.dv-dd-browser-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #f0f0f0;
}

.dv-dd-browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.dv-dd-browser-bar span:first-child { background: #ff5f57; }
.dv-dd-browser-bar span:nth-child(2) { background: #ffbd2e; }
.dv-dd-browser-bar span:nth-child(3) { background: #28ca42; }

.dv-dd-browser-content {
    padding: 20px;
}

.dv-dd-article-line {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dv-dd-line-short {
    width: 65%;
}

.dv-dd-selected-text {
    background: rgba(41, 151, 255, 0.15);
    border-left: 3px solid #2997ff;
    padding: 10px 14px;
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
    position: relative;
}

.dv-dd-save-popup {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dv-dd-extension-badge {
    position: absolute;
    top: -8px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

/* iMessage sharing scene */
.dv-dd-imsg-frame {
    width: 100%;
    max-width: 320px;
    padding: 24px 20px;
    background: #f2f2f7;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dv-dd-imsg-received {
    align-self: flex-start;
    background: #e5e5ea;
    color: #1a1a1a;
    padding: 10px 16px;
    border-radius: 18px 18px 18px 4px;
    font-size: 13px;
    max-width: 80%;
}

.dv-dd-imsg-sent {
    align-self: flex-end;
    max-width: 85%;
}

.dv-dd-imsg-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.dv-dd-imsg-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    padding: 14px 16px 4px;
}

.dv-dd-imsg-items {
    display: block;
    font-size: 11px;
    color: #888;
    padding: 0 16px 10px;
}

.dv-dd-imsg-brand {
    display: block;
    font-size: 11px;
    color: #666;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef3e8, #ecdff5);
    border-top: 1px solid #eee;
}

.dv-dd-imsg-brand strong {
    color: #1a1a1a;
}

.dv-dd-imsg-status {
    align-self: flex-end;
    font-size: 10px;
    color: #888;
}

/* Tag visualization scene */
.dv-dd-tag-viz {
    width: 100%;
    max-width: 340px;
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-dd-tag-center {
    padding: 10px 24px;
    background: rgba(41, 151, 255, 0.12);
    border: 1px solid rgba(41, 151, 255, 0.25);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    color: #2997ff;
    position: relative;
    z-index: 2;
}

.dv-dd-tag-node {
    position: absolute;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-weight: 500;
    z-index: 2;
}

.dv-dd-node-1 { top: 10%; left: 10%; }
.dv-dd-node-2 { top: 15%; right: 5%; }
.dv-dd-node-3 { bottom: 10%; left: 15%; }
.dv-dd-node-4 { bottom: 15%; right: 10%; }

.dv-dd-tag-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Dive demo responsive */
@media (max-width: 768px) {
    .dv-device {
        width: 320px;
        border-radius: 40px;
    }

    .dv-island {
        width: 110px;
        height: 30px;
    }

    .dv-screen {
        border-radius: 34px;
    }

    .dv-stage-glow {
        width: 360px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .dv-device {
        width: 290px;
        border-radius: 36px;
    }

    .dv-screen {
        border-radius: 30px;
    }

    .dv-thread-hero-title {
        font-size: 22px;
    }

    .dv-rich-title {
        font-size: 15px;
    }

    .dv-msg {
        font-size: 14px;
    }
}

/* ----------------------------------------
   DIVE APP REPLICA — Interactive Frame
   ---------------------------------------- */

/* App Frame Container */
.dive-app-frame {
    background: #fef3e8;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(200, 160, 120, 0.15);
    box-shadow: 0 24px 80px rgba(180, 120, 60, 0.12), 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Tab Navigation */
/* Browser chrome — sells the "real product" feel */
.dv-browser-chrome {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 14px 0;
    background: #2a2a2a;
    overflow: hidden;
}

.dv-browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.dv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dv-dot-red { background: #ff5f57; }
.dv-dot-yellow { background: #ffbd2e; }
.dv-dot-green { background: #28ca42; }

.dv-browser-tabs {
    display: flex;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dv-browser-tab {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dv-browser-tab-active {
    background: #3a3a3a;
    color: rgba(255, 255, 255, 0.85);
}

.dv-browser-url {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #3a3a3a;
    margin: 0 14px 0;
    border-radius: 6px;
    font-size: 12px;
}

.dv-url-icon {
    font-size: 10px;
}

.dv-url-text {
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-mono);
    font-size: 11px;
}

.dive-app-tabs {
    display: flex;
    gap: 0;
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 var(--space-4);
}

.dive-tab {
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
    position: relative;
}

.dive-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
}

.dive-tab-active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* View Container */
.dive-view {
    display: none;
    animation: dvFadeIn 0.4s ease;
}

.dive-view-active {
    display: block;
}

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

/* ---- VIEW 1: THREAD VIEW — Premium product replica ---- */
.dv-app {
    display: grid;
    grid-template-columns: 200px 1fr 260px;
    min-height: 500px;
    background: linear-gradient(145deg, #fef3e8 0%, #fce0c4 25%, #f5d0b3 50%, #ecdff5 75%, #f0eefb 100%);
    color: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Ambient glow orbs — Dive's signature warm aesthetic */
.dv-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    animation: dvOrbFloat 8s ease-in-out infinite;
}
.dv-orb-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(248, 180, 120, 0.8) 0%, transparent 70%);
    top: -60px;
    left: 200px;
    animation-delay: 0s;
}
.dv-orb-2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(200, 162, 220, 0.7) 0%, transparent 70%);
    bottom: -30px;
    left: 40%;
    animation-delay: -3s;
}
.dv-orb-3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(168, 216, 234, 0.6) 0%, transparent 70%);
    top: 40px;
    right: 60px;
    animation-delay: -5s;
}
@keyframes dvOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -8px) scale(1.05); }
    66% { transform: translate(-6px, 6px) scale(0.97); }
}

/* Left Sidebar — Thread list matching real product */
.dv-sidebar {
    background: #fafaf8;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.dv-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dv-sidebar-x {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.35);
    cursor: default;
}

.dv-sidebar-signout {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: default;
}

.dv-thread-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dv-thread-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    cursor: default;
    transition: background 0.15s ease;
    border-left: 3px solid transparent;
}

.dv-thread-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.dv-thread-item-active {
    background: rgba(0, 0, 0, 0.04);
    border-left-color: #1a1a1a;
}

.dv-thread-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dv-thread-time {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.35);
}

.dv-sidebar-brand {
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.08);
    letter-spacing: -0.03em;
    font-family: 'Georgia', serif;
}

.dv-sidebar-add {
    margin: 0 16px 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    cursor: default;
}

/* Main Content — Warm gradient with orb glow bleeding through */
.dv-main {
    padding: 0 var(--space-5) var(--space-5);
    overflow: hidden;
    z-index: 1;
}

.dv-thread-header {
    margin-bottom: var(--space-4);
}

/* Top bar — Delete, Public, Share */
.dv-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 0;
    margin-bottom: var(--space-2);
    justify-content: flex-end;
}

.dv-topbar-action {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    cursor: default;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
}

.dv-topbar-btn {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    padding: 5px 16px;
    border-radius: 6px;
    cursor: default;
}

.dv-thread-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 var(--space-3) 0;
    letter-spacing: -0.02em;
    font-family: 'Georgia', serif;
    line-height: 1.15;
}

.dv-thread-tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.dv-tag {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-full);
    color: rgba(0, 0, 0, 0.4);
}

/* Knowledge Cards */
.dv-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: default;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.dv-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Article card with thumbnail — horizontal layout */
.dv-card-row {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    align-items: flex-start;
}

.dv-card-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.dv-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.dv-card-body {
    padding: var(--space-3) var(--space-4);
    min-width: 0;
}

.dv-card-row .dv-card-body {
    padding: 0;
    flex: 1;
    min-width: 0;
}

.dv-card-body h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.35;
}

.dv-card-content {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dv-card-text .dv-card-body {
    padding: var(--space-3) var(--space-4);
}

.dv-card-text .dv-card-content {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    -webkit-line-clamp: 3;
}

.dv-card-source {
    display: block;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

/* Right Panel — Collected snippets with + buttons */
.dv-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: 1;
}

.dv-panel-card {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dv-panel-card:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dv-panel-card-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
}

.dv-panel-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dv-panel-card-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dv-panel-card-desc {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.4);
}

.dv-panel-card-src {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.3);
}

.dv-panel-add {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: var(--font-sans);
}

.dv-panel-add:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
}

/* Card social engagement — upvotes, comments, new note */
.dv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.dv-card-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dv-vote {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    cursor: default;
}

.dv-vote-down {
    color: rgba(0, 0, 0, 0.2);
}

.dv-comment {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.35);
    cursor: default;
}

.dv-card-action {
    font-size: 11px;
    color: #1a1a1a;
    font-weight: 500;
    cursor: default;
}

/* ---- VIEW 2: PROFILE — Social Layer ---- */
.dv-profile-view {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 500px;
    background: linear-gradient(145deg, #f8f5f2 0%, #fef3e8 40%, #ecdff5 100%);
    position: relative;
    overflow: hidden;
}

.dv-profile-sidebar {
    background: #fafaf8;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-4) 0;
    gap: var(--space-4);
    z-index: 1;
}

.dv-profile-sidebar-menu {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.5);
    cursor: default;
}

.dv-profile-content {
    padding: var(--space-5) var(--space-6);
    z-index: 1;
}

.dv-profile-header {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    margin-bottom: var(--space-5);
}

.dv-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #666;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.dv-profile-info {
    flex: 1;
}

.dv-profile-name {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: 'Georgia', serif;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2px;
}

.dv-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 4px;
}

.dv-profile-handle {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-2);
}

.dv-profile-stats {
    display: flex;
    gap: var(--space-4);
    font-size: 13px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-2);
}

.dv-profile-stats strong {
    color: #1a1a1a;
    font-weight: 700;
}

.dv-profile-bio {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
}

.dv-profile-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.dv-profile-share {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 5px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    cursor: default;
}

.dv-profile-more {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* Profile tabs */
.dv-profile-tabs {
    display: flex;
    gap: var(--space-6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: var(--space-5);
}

.dv-profile-tab {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.35);
    padding-bottom: var(--space-3);
    cursor: default;
    border-bottom: 2px solid transparent;
}

.dv-profile-tab-active {
    color: #1a1a1a;
    font-weight: 600;
    border-bottom-color: #1a1a1a;
}

/* Thread grid — 2x2 layout like real app */
.dv-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.dv-profile-thread {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: var(--space-5);
    position: relative;
    transition: all 0.2s ease;
    cursor: default;
}

.dv-profile-thread:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.dv-profile-thread h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 var(--space-3) 0;
    font-family: 'Georgia', serif;
    letter-spacing: -0.01em;
    padding-right: 30px;
}

.dv-thread-privacy {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 14px;
    opacity: 0.4;
}

.dv-thread-engagement {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
}

.dv-thread-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: auto;
}

.dv-thread-tag {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    color: rgba(0, 0, 0, 0.45);
}

/* ---- VIEW 3: CHROME EXTENSION — SAVE ANYWHERE ---- */
.dv-ext-landing {
    background: linear-gradient(160deg, #fef3e8 0%, #fce0c4 30%, #f5d0b3 55%, #ecdff5 80%, #f0eefb 100%);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-6) var(--space-5);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.dv-ext-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
}

.dv-ext-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(248, 180, 120, 0.6) 0%, transparent 70%);
    top: -80px;
    right: 10%;
}

.dv-ext-orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200, 162, 220, 0.5) 0%, transparent 70%);
    bottom: -40px;
    left: 20%;
}

.dv-ext-headline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.dv-ext-subhead {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
    margin: 0 0 var(--space-5);
    position: relative;
    z-index: 1;
}

/* Three capture methods side by side */
.dv-ext-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-4);
}

.dv-ext-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.dv-ext-method-scene {
    width: 100%;
    aspect-ratio: 0.85;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.dv-ext-method-scene:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.dv-ext-method-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
}

/* Text highlight scene */
.dv-ext-faux-text {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.25);
    margin-bottom: 4px;
}

.dv-ext-selected-text {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    background: rgba(41, 151, 255, 0.12);
    padding: 8px 10px;
    border-radius: 4px;
}

.dv-ext-save-tooltip {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-30%);
    background: #1a1a1a;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 2;
}

.dv-ext-save-plus {
    color: #2997ff;
    font-size: 14px;
    font-weight: 700;
}

/* Video scene */
.dv-ext-video-scene {
    padding: 0;
    justify-content: flex-start;
}

.dv-ext-video-thumb {
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #5b7fa0 0%, #8ab0c8 40%, #c4d6b0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dv-ext-video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
}

.dv-ext-play-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    z-index: 1;
}

.dv-ext-dive-badge {
    position: absolute;
    top: 12px;
    left: 60%;
    width: 32px;
    height: 32px;
    background: #7c3aed;
    border-radius: 50%;
    color: white;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.dv-ext-trim-bar {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dv-ext-trim-label {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
}

.dv-ext-trim-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv-ext-time {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-family: var(--font-mono);
    color: #333;
}

.dv-ext-dash {
    color: rgba(0, 0, 0, 0.3);
}

.dv-ext-apply {
    font-size: 11px;
    padding: 4px 12px;
    background: #2997ff;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    margin-left: auto;
}

/* Right-click context menu scene */
.dv-ext-ctx-scene {
    padding: 0;
    justify-content: flex-start;
}

.dv-ext-image-preview {
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #e040a0 0%, #ff6090 30%, #40e0d0 60%, #a040ff 100%);
    position: relative;
}

.dv-ext-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(255,255,255,0.3));
}

.dv-ext-context-menu {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    min-width: 140px;
    z-index: 2;
}

.dv-ext-ctx-item {
    display: block;
    padding: 6px 14px;
    font-size: 12px;
    color: #333;
}

.dv-ext-ctx-dim {
    color: rgba(0, 0, 0, 0.3);
}

.dv-ext-ctx-highlight {
    background: rgba(41, 151, 255, 0.06);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv-ext-ctx-plus {
    color: #2997ff;
    font-size: 14px;
    font-weight: 700;
}

/* Back to Dive flow */
.dv-ext-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.dv-ext-flow-arrow {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.2);
    animation: dvFlowPulse 2s ease-in-out infinite;
}

@keyframes dvFlowPulse {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(4px); opacity: 1; }
}

.dv-ext-back-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dv-ext-flow-desc {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .dv-ext-methods {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto var(--space-4);
    }

    .dv-ext-headline {
        font-size: 24px;
    }
}

/* ---- VIEW 4: SEARCH & TAGS — BIDIRECTIONAL LINKING ---- */
.dv-search-showcase {
    padding: var(--space-4);
}

.dv-search-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-4);
    align-items: start;
}

/* Tag deep-dive page */
.dv-tag-page {
    background: linear-gradient(145deg, #fef3e8 0%, #fce0c4 40%, #ecdff5 100%);
    border-radius: 14px;
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}

.dv-tag-header {
    margin-bottom: var(--space-4);
}

.dv-tag-breadcrumb {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv-tag-home { cursor: pointer; }
.dv-tag-home:hover { color: #2997ff; }

.dv-tag-current {
    color: #2997ff;
    font-weight: 600;
}

.dv-tag-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 var(--space-2);
}

.dv-tag-stats {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    display: flex;
    gap: 8px;
}

.dv-tag-related {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.dv-tag-label {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

.dv-tag-pill {
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(41, 151, 255, 0.08);
    border: 1px solid rgba(41, 151, 255, 0.15);
    border-radius: 20px;
    color: #2997ff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dv-tag-pill:hover {
    background: rgba(41, 151, 255, 0.15);
}

.dv-tag-results {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-tag-result {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: var(--space-3) var(--space-4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dv-tag-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dv-tag-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.dv-tag-author {
    font-size: 12px;
    font-weight: 600;
    color: #2997ff;
}

.dv-tag-thread-name {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.4);
}

.dv-tag-result p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 8px;
}

.dv-tag-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.dv-tag-result-meta .dv-tag-src {
    color: rgba(0, 0, 0, 0.35);
}

.dv-tag-result-meta .dv-vote {
    color: rgba(0, 0, 0, 0.5);
}

.dv-tag-result-meta .dv-comment {
    color: rgba(0, 0, 0, 0.4);
}

/* Search sidebar */
.dv-search-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dv-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.dv-search-icon { font-size: 14px; }

.dv-search-placeholder {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* Visibility controls */
.dv-visibility-section,
.dv-share-section {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.dv-vis-label,
.dv-share-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}

.dv-vis-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dv-vis-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dv-vis-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dv-vis-active {
    background: rgba(41, 151, 255, 0.08);
    border: 1px solid rgba(41, 151, 255, 0.2);
}

.dv-vis-icon { font-size: 16px; }

.dv-vis-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dv-vis-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.dv-vis-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Share section */
.dv-share-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: var(--space-3);
}

.dv-share-link span:first-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dv-copy-btn {
    font-size: 11px;
    font-weight: 600;
    color: #2997ff;
    cursor: pointer;
    flex-shrink: 0;
    padding-left: 8px;
}

.dv-share-people {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv-share-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(41, 151, 255, 0.15);
    color: #2997ff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-share-add {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.dv-share-add:hover {
    border-color: rgba(41, 151, 255, 0.3);
    color: #2997ff;
}

/* Responsive for new views */
@media (max-width: 900px) {
    .dv-capture-layout,
    .dv-search-layout {
        grid-template-columns: 1fr;
    }
}

/* ---- VIEW 2 (legacy): CAPTURE UX ---- */
.dv-capture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    padding: var(--space-6);
}

.dv-capture-card {
    text-align: center;
}

.dv-capture-card h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-4) 0 var(--space-2) 0;
}

.dv-capture-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* Capture Scenes */
.dv-capture-scene {
    height: 220px;
    background: #fafafa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.dv-capture-card:hover .dv-capture-scene {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Highlight Scene */
.dv-webpage {
    width: 85%;
    padding: var(--space-4);
    position: relative;
}

.dv-page-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dv-textline {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
}

.dv-textline.dv-selected {
    background: rgba(41, 151, 255, 0.2);
    height: auto;
    padding: 4px 8px;
    border-radius: 4px;
}

.dv-textline.dv-selected span {
    font-size: 10px;
    color: #333;
    line-height: 1.4;
}

.dv-save-popup {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: #1a1a1a;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: dvPopupPulse 2s ease-in-out infinite;
}

.dv-save-icon {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 14px;
}

@keyframes dvPopupPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Video Scene */
.dv-video-scene {
    width: 85%;
    padding: var(--space-3);
}

.dv-vid-player {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-vid-img {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #b08060 0%, #d4b896 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-vid-play {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #333;
}

.dv-vid-trim {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.dv-vid-trim > span {
    font-weight: 600;
    color: #444;
}

.dv-vid-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dv-time-input {
    width: 52px;
    padding: 4px 6px;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    color: #333;
    text-align: center;
    font-family: var(--font-mono);
}

.dv-dash {
    color: #999;
}

.dv-apply-btn {
    padding: 4px 12px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    font-family: var(--font-sans);
}

/* Context Menu Scene */
.dv-context-scene {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv-ctx-menu {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
}

.dv-ctx-item {
    padding: 10px 16px;
    font-size: 12px;
    color: #333;
    cursor: default;
    transition: background 0.15s;
}

.dv-ctx-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dv-ctx-dim {
    color: #aaa;
}

.dv-ctx-save {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(41, 151, 255, 0.06);
    font-weight: 600;
    color: #333;
}

.dv-ctx-plus {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 14px;
}

/* ---- VIEW 3: ONBOARDING ---- */
.dv-onboard-showcase {
    padding: var(--space-5);
}

.dv-onboard-app {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-5);
    align-items: start;
}

/* Onboarding App Mockup */
.dv-ob-app {
    background: linear-gradient(135deg, #fdf0e6 0%, #eee8f5 50%, #e8f0fd 100%);
    border-radius: 12px;
    overflow: hidden;
    min-height: 340px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.dv-ob-topbar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dv-ob-menu {
    font-size: 18px;
    color: #333;
    cursor: default;
}

.dv-ob-actions {
    display: flex;
    gap: var(--space-2);
    margin-left: auto;
}

.dv-ob-btn-outline {
    font-size: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    color: #666;
    cursor: default;
}

.dv-ob-btn-primary {
    font-size: 12px;
    padding: 5px 16px;
    background: var(--color-accent);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: default;
}

.dv-ob-search {
    font-size: 12px;
    color: #999;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    flex: 1;
    max-width: 200px;
}

.dv-ob-content {
    padding: var(--space-6) var(--space-7);
    position: relative;
}

.dv-ob-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 var(--space-3) 0;
}

.dv-ob-tag {
    display: inline-block;
    font-size: 13px;
    color: var(--color-accent);
    cursor: default;
}

/* Onboarding Tooltip */
.dv-ob-tooltip {
    position: relative;
    margin-top: var(--space-5);
    max-width: 300px;
    animation: dvTooltipBounce 3s ease-in-out infinite;
}

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

.dv-tooltip-arrow {
    position: absolute;
    top: -8px;
    left: 24px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
    z-index: 0;
}

.dv-tooltip-body {
    position: relative;
    background: white;
    border-radius: 14px;
    padding: var(--space-4) var(--space-5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1;
}

.dv-tooltip-step {
    font-size: 12px;
    color: #999;
    margin-bottom: var(--space-2);
}

.dv-tooltip-num {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
}

.dv-tooltip-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.dv-accent {
    color: var(--color-accent);
    font-weight: 600;
}

.dv-tooltip-skip {
    display: inline-block;
    font-size: 12px;
    color: #bbb;
    margin-top: var(--space-2);
    cursor: default;
}

/* Onboarding Steps */
.dv-ob-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

.dv-ob-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dv-ob-step:hover {
    opacity: 0.75;
    border-color: rgba(255, 255, 255, 0.1);
}

.dv-ob-step-active {
    opacity: 1 !important;
    border-color: var(--color-accent);
    background: rgba(41, 151, 255, 0.08);
    box-shadow: 0 0 20px rgba(41, 151, 255, 0.08);
}

.dv-ob-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dv-ob-step-active .dv-ob-step-num {
    background: var(--color-accent);
    color: white;
}

.dv-ob-step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dv-ob-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.dv-ob-step-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- VIEW 4: DESIGN SYSTEM ---- */
.dv-system-showcase {
    padding: var(--space-5);
}

.dv-sys-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.dv-sys-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: var(--space-5);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}

.dv-sys-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.dv-sys-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

/* Typography Card */
.dv-sys-type {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dv-sys-type span {
    display: block;
    line-height: 1.3;
}

/* Colors Card */
.dv-sys-colors {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-color-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.dv-color-chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s var(--ease-spring);
}

.dv-color-chip:hover {
    transform: scale(1.2);
}

.dv-color-row div:last-child {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.dv-color-row strong {
    color: var(--color-text);
    font-weight: 600;
}

.dv-color-use {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* Glow Card */
.dv-sys-glow-card {
    /* spans full width on 2-col grid */
}

.dv-sys-glows {
    display: flex;
    gap: var(--space-4);
}

.dv-glow-item {
    flex: 1;
    text-align: center;
}

.dv-glow {
    width: 100%;
    aspect-ratio: 1.5;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    transition: filter 0.3s ease;
}

.dv-glow:hover {
    filter: blur(3px) brightness(1.2);
}

.dv-glow-warm {
    background: radial-gradient(circle at 50% 50%, rgba(212, 167, 106, 0.6) 0%, rgba(212, 167, 106, 0.1) 60%, transparent 100%);
}

.dv-glow-cool {
    background: radial-gradient(circle at 50% 50%, rgba(41, 151, 255, 0.4) 0%, rgba(100, 210, 255, 0.1) 60%, transparent 100%);
}

.dv-glow-neutral {
    background: radial-gradient(circle at 50% 50%, rgba(200, 200, 210, 0.5) 0%, rgba(200, 200, 210, 0.1) 60%, transparent 100%);
}

.dv-glow-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

/* Component Specs Card */
.dv-sys-specs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-spec-component {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dv-spec-tooltip {
    background: white;
    color: #333;
    border-radius: 14px;
    padding: var(--space-4) var(--space-5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dv-spec-arrow {
    position: absolute;
    top: -6px;
    left: 24px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.dv-spec-body .dv-spec-step {
    font-size: 12px;
    color: #999;
    margin-bottom: var(--space-2);
}

.dv-spec-num {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
}

.dv-spec-body p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.dv-spec-skip {
    display: inline-block;
    font-size: 12px;
    color: #bbb;
    margin-top: var(--space-2);
}

.dv-spec-measures {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.dv-measure {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.dv-measure-val {
    color: #ff6b6b;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Responsive — Dive App Replica */
@media (max-width: 900px) {
    .dv-app {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .dv-sidebar,
    .dv-panel {
        display: none;
    }

    .dv-profile-view {
        grid-template-columns: 1fr;
    }

    .dv-profile-sidebar {
        display: none;
    }

    .dv-profile-grid {
        grid-template-columns: 1fr;
    }

    .dv-capture-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .dv-onboard-app {
        grid-template-columns: 1fr;
    }

    .dv-ob-steps {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: var(--space-3);
    }

    .dv-ob-step {
        flex-shrink: 0;
        min-width: 200px;
    }

    .dv-sys-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dive-app-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dive-tab {
        padding: 12px 16px;
        font-size: 12px;
        white-space: nowrap;
    }

    .dv-capture-scene {
        height: 180px;
    }

    .dv-ob-app {
        min-height: 280px;
    }

    .dv-ob-content {
        padding: var(--space-4);
    }

    .dv-ob-title {
        font-size: 22px;
    }
}

/* Very small screens — hide browser chrome decoration */
@media (max-width: 480px) {
    .dv-browser-chrome,
    .dv-browser-url {
        display: none;
    }
}

/* Traction Stats */
.dive-traction {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.traction-stat {
    text-align: center;
}

.traction-number {
    display: block;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.traction-label {
    font-size: 13px;
    color: var(--color-text-tertiary);
    max-width: 200px;
    line-height: 1.4;
}

/* Testimonial Wall */
.testimonial-wall {
    margin: var(--space-7) 0;
}

.testimonial-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-5);
    text-align: center;
}

.testimonial-scroll {
    overflow: hidden;
    padding: var(--space-2) 0;
    scrollbar-width: none;
}

.testimonial-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-track {
    display: flex;
    gap: var(--space-4);
    width: max-content;
    animation: testimonialScroll 30s linear infinite;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 300px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--duration-normal) var(--ease-out);
}

/* Override animate-on-scroll for cards inside the auto-scrolling track */
.testimonial-track .testimonial-card {
    opacity: 1 !important;
    transform: none !important;
}

.testimonial-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.testimonial-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    font-style: italic;
}

.testimonial-author {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 500;
}

/* Learnings - Updated */
/* Dive Ending — Emotional climax */
.dive-ending {
    margin-top: var(--space-8);
    position: relative;
}

.dive-ending-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-accent));
    margin: 0 auto var(--space-6);
}

.dive-ending-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-7);
}

.dive-ending-headline {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--color-text), rgba(255, 255, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dive-ending-body {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.dive-takeaways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.dive-takeaway {
    padding: var(--space-5);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.dive-takeaway:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.takeaway-icon {
    font-size: 24px;
    margin-bottom: var(--space-3);
    opacity: 0.7;
}

.dive-takeaway h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.dive-takeaway p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .dive-takeaways {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .research-cards {
        grid-template-columns: 1fr;
    }

    .chaos-item {
        font-size: 11px;
        padding: var(--space-1) var(--space-2);
    }

    .dive-traction {
        gap: var(--space-6);
    }

    .testimonial-card {
        flex: 0 0 260px;
    }
}

/* ----------------------------------------
   DESIGN SYSTEM SHOWCASE
   ---------------------------------------- */
/* ================================================
   APPROACH SECTION
   ================================================ */
.section-approach {
    background: linear-gradient(180deg, transparent 0%, rgba(41, 151, 255, 0.015) 50%, transparent 100%);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.approach-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: border-color 0.3s ease;
}

.approach-card:hover {
    border-color: var(--glass-border-hover);
}

.approach-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    display: block;
    margin-bottom: var(--space-2);
}

.approach-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-5);
    color: var(--color-text);
}

/* Process loop */
.approach-loop {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.loop-step {
    flex: 1;
    padding: var(--space-4);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
}

.loop-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.loop-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.loop-step p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.loop-step p em {
    color: var(--color-text);
    font-style: italic;
}

.loop-arrow {
    display: flex;
    align-items: center;
    padding: 0 var(--space-2);
    font-size: 18px;
    color: var(--color-text-tertiary);
    padding-top: 36px;
    flex-shrink: 0;
}

/* Beliefs */
.belief-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.belief {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.belief:last-child {
    border-bottom: none;
}

.belief-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
    margin-top: 7px;
}

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

.belief p strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Stack */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.stack-item {
    padding: var(--space-3) var(--space-4);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
}

.stack-category {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 4px;
}

.stack-tools {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.stack-note {
    font-size: 13px;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* Layout: beliefs + stack side by side */
@media (min-width: 769px) {
    .approach-grid {
        grid-template-columns: 1fr 1fr;
    }

    .approach-card-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .approach-loop {
        flex-direction: column;
        gap: var(--space-2);
    }

    .loop-arrow {
        padding: 0;
        padding-left: 36px;
        font-size: 14px;
        transform: rotate(90deg);
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep btn styles for other uses */
.btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

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

.btn-primary:hover {
    background: #3aa3ff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--color-text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.principle h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.principle p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ----------------------------------------
   ABOUT
   ---------------------------------------- */
.section-about {
    border-top: 1px solid var(--glass-border);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6);
    align-items: start;
}

.about-story h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-5);
}

.about-lead {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

.about-story p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.about-stat {
    text-align: center;
}

.about-stat .stat-number {
    font-size: 36px;
}

/* ----------------------------------------
   FLIGHTY PASSPORT VISUALIZATION
   ---------------------------------------- */
.flighty-passport {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5);
    background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.passport-globe {
    flex-shrink: 0;
    position: relative;
}

.globe-container {
    width: 160px;
    height: 160px;
    position: relative;
}

.globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2840 50%, #061620 100%);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset -20px -20px 60px rgba(0, 0, 0, 0.5),
        inset 10px 10px 40px rgba(100, 180, 255, 0.1),
        0 0 60px rgba(41, 151, 255, 0.2);
    animation: globeRotate 30s linear infinite;
}

@keyframes globeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.globe-grid {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(100, 180, 255, 0.1) 20px,
            rgba(100, 180, 255, 0.1) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(100, 180, 255, 0.1) 20px,
            rgba(100, 180, 255, 0.1) 21px
        );
    opacity: 0.5;
}

.flight-routes {
    position: absolute;
    inset: 10%;
    animation: globeRotate 30s linear infinite reverse;
}

.routes-svg {
    width: 100%;
    height: 100%;
}

.route {
    fill: none;
    stroke: #64d2ff;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.8;
    filter: drop-shadow(0 0 3px rgba(100, 210, 255, 0.8));
}

.route-1 { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawRoute 3s ease-out forwards; }
.route-2 { stroke-dasharray: 180; stroke-dashoffset: 180; animation: drawRoute 3s 0.5s ease-out forwards; }
.route-3 { stroke-dasharray: 190; stroke-dashoffset: 190; animation: drawRoute 3s 1s ease-out forwards; }
.route-4 { stroke-dasharray: 160; stroke-dashoffset: 160; animation: drawRoute 3s 1.5s ease-out forwards; }
.route-5 { stroke-dasharray: 170; stroke-dashoffset: 170; animation: drawRoute 3s 2s ease-out forwards; }

@keyframes drawRoute {
    to { stroke-dashoffset: 0; }
}

.globe-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.globe-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.passport-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.passport-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.passport-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.passport-name {
    display: flex;
    flex-direction: column;
}

.passport-name .name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
}

.passport-name .subtitle {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

.passport-tabs {
    display: flex;
    gap: var(--space-2);
}

.passport-tabs .tab {
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.passport-tabs .tab:hover {
    color: var(--color-text-secondary);
}

.passport-tabs .tab-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
}

.passport-stats-card {
    background: linear-gradient(135deg, #4a3a8c 0%, #2d2259 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.passport-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.passport-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

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

.passport-stat-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.passport-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

.passport-stat-featured .passport-stat-value {
    font-size: 17px;
    background: linear-gradient(90deg, #64d2ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.passport-stat-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .flighty-passport {
        flex-direction: column;
    }

    .globe-container {
        width: 160px;
        height: 160px;
    }

    .passport-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
    padding: var(--space-10) var(--space-5) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto var(--space-8);
}

.footer-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
}

.footer-link {
    font-size: 15px;
    color: var(--color-text-secondary);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
    color: var(--color-text);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg);
}

.footer-bottom {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero reveal — subtle scale + fade for premium feel */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll animations — staggered reveal with varied directions */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Varied entrance directions for visual interest */
.animate-on-scroll.animate-from-left {
    transform: translateX(-40px);
}
.animate-on-scroll.animate-from-right {
    transform: translateX(40px);
}
.animate-on-scroll.animate-from-left.visible,
.animate-on-scroll.animate-from-right.visible {
    transform: translateX(0);
}

/* Scale-up entrance for cards */
.animate-on-scroll.animate-scale {
    transform: scale(0.95) translateY(20px);
}
.animate-on-scroll.animate-scale.visible {
    transform: scale(1) translateY(0);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 768px) {
    .hero-cards {
        flex-direction: column;
        align-items: center;
    }

    .flow-container {
        flex-direction: column;
    }

    .flow-connector {
        transform: rotate(90deg);
        width: 40px;
    }

    .decisions-grid,
    .style-cards,
    .dive-vision,
    .about-content {
        grid-template-columns: 1fr;
    }

    .case-outcome,
    .dive-stats {
        flex-wrap: wrap;
        gap: var(--space-5);
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
    }

    /* Traction stats — wrap on mobile */
    .dive-traction {
        flex-wrap: wrap;
        gap: var(--space-5) var(--space-6);
        padding: var(--space-5);
    }

    /* Research cards — single column */
    .research-cards {
        grid-template-columns: 1fr;
    }

    /* Chaos visualization — reduce height, contain floats */
    .chaos-visualization {
        height: 220px;
    }

    .floating-chaos {
        transform: scale(0.75);
    }

    /* Learning items — full width */
    .learning-item {
        padding: var(--space-4);
    }

    /* Interactive flow boarding pass — scale for mobile */
    .semantic-features {
        gap: var(--space-2);
    }

    .semantic-device {
        width: 120px;
        height: 180px;
    }

    .semantic-label {
        max-width: 120px;
    }

    .semantic-name {
        font-size: 11px;
    }

    .semantic-desc {
        font-size: 9px;
    }

    /* Reissue timeline — horizontal scroll */
    .reissue-timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-3);
    }

    .reissue-step {
        flex-shrink: 0;
    }

    .reissue-device {
        width: 100px;
        height: 160px;
    }

    /* Family sharing — stack vertically */
    .family-onboarding {
        flex-direction: column;
    }

    .iceberg-panel {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Footer links */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }

    /* Case study padding */
    .case-study {
        padding: var(--space-5) var(--space-4);
    }

    .section {
        padding: var(--space-7) var(--space-4);
    }

    .hero {
        padding: var(--space-10) var(--space-4) var(--space-7);
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .hero-subtitle {
        font-size: 15px;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .flighty-passport {
        max-width: 100%;
    }

    .decisions-grid {
        grid-template-columns: 1fr;
    }

    .reissue-timeline {
        gap: var(--space-3);
    }
}

/* Small phone */
@media (max-width: 480px) {
    .semantic-features {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: var(--space-3) 0;
    }

    .semantic-device {
        width: 100px;
        height: 150px;
        border-radius: 14px;
    }

    .reissue-device {
        width: 85px;
        height: 140px;
    }

    .passport-stats-grid {
        grid-template-columns: 1fr;
    }

    .globe-container {
        width: 120px;
        height: 120px;
    }

    .hero-cards {
        gap: var(--space-3);
    }

    .hero-card {
        width: 100%;
        max-width: 260px;
    }

    .style-cards {
        gap: var(--space-3);
    }

    .case-insight {
        padding: var(--space-5) var(--space-3);
    }
}

/* ----------------------------------------
   CURSOR EFFECTS (OPTIONAL)
   ---------------------------------------- */
@media (hover: hover) {
    .hero-card,
    .decision-card,
    .style-card,
    .demo-card {
        cursor: pointer;
    }
}

/* ----------------------------------------
   ENHANCED VISIONOS EFFECTS
   ---------------------------------------- */

/* Liquid glass shine effect */
.card-glass::before,
.case-study::before,
.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent 100%
    );
    border-radius: inherit;
    opacity: 0.5;
}

.card-glass,
.case-study,
.approach-card {
    position: relative;
}

/* Inner shadow for depth */
.card-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Subtle noise texture for glass realism - DISABLED for accessibility */
/* The noise overlay was reducing contrast below WCAG standards */
/*
.nav-glass,
.card-glass,
.case-study,
.about-stats {
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-blend-mode: overlay;
    background-size: 100px 100px;
}
*/

/* Enhanced glow on hover */
.hero-card:hover .card-glass {
    box-shadow:
        var(--shadow-lg),
        0 0 80px rgba(41, 151, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Smooth text rendering */
.hero-title,
.case-title,
.section-title {
    text-rendering: optimizeLegibility;
}

/* Active state for flow steps */
.flow-step-active .flow-device {
    box-shadow:
        var(--shadow-md),
        0 0 40px rgba(41, 151, 255, 0.15);
}

.flow-connector.connector-active svg path {
    stroke: var(--color-accent);
    opacity: 1;
}




/* Stat number animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.6s var(--ease-out) forwards;
}

/* Nav glass enhanced */
.nav-glass {
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.1);
}

.nav-scrolled {
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
}

/* Focus states for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.hero-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ----------------------------------------
   CURSOR-TRACKING GLOW (Stripe-style)
   ---------------------------------------- */
.case-study {
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
}

.case-study::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--glow-x) var(--glow-y),
        rgba(41, 151, 255, 0.06) 0%,
        transparent 60%
    );
    opacity: var(--glow-opacity);
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.case-study:hover::after {
    opacity: 1;
}

/* Ensure case study children stay above glow */
.case-study > * {
    position: relative;
    z-index: 1;
}

/* ----------------------------------------
   ANIMATED REISSUE CONNECTORS
   ---------------------------------------- */
.reissue-step-active ~ .reissue-connector .connector-line,
.reissue-step-active ~ .reissue-connector .connector-line::after {
    background: var(--color-accent);
    border-left-color: var(--color-accent);
    transition: all 0.5s var(--ease-out);
}

/* ----------------------------------------
   ACTIVE NAV SECTION INDICATOR
   ---------------------------------------- */
.nav-link {
    position: relative;
}

.nav-link.nav-link-active {
    color: var(--color-text);
}

.nav-link.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: fadeIn 0.3s var(--ease-out);
}

/* ----------------------------------------
   STYLE CARD VIDEO PLAY OVERLAY
   ---------------------------------------- */
.style-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-card:hover .style-preview::after {
    opacity: 1;
}

/* ----------------------------------------
   TESTIMONIAL AUTO-SCROLL
   ---------------------------------------- */
@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 4 - 16px * 4)); }
}

/* ----------------------------------------
   PREFERS REDUCED MOTION
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

    .testimonial-track {
        animation: none;
    }
}

/* ----------------------------------------
   GPU ACCELERATION HINTS
   ---------------------------------------- */
.depth-layer,
.hero-card .card-glass,
.reissue-device,
.semantic-device,
.onboarding-device,
.globe {
    will-change: transform;
}

.animate-on-scroll {
    will-change: opacity, transform;
}

/* Print styles */
@media print {
    .spatial-bg,
    .nav-glass,
    .scroll-indicator {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
