/* ===================================================================
   PixoBuild — Design System
   Task 1: CSS Custom Properties, Reset, Base Styles, Nav
   =================================================================== */

/* ===== Design Tokens ===== */
:root {
    --bg-primary: #0f1119;
    --bg-secondary: #1a1d29;
    --bg-card: #1e2233;
    --bg-card-hover: #252a3d;
    --text-primary: #f0f2f8;
    --text-secondary: #9ca3b8;
    --text-muted: #6b7280;
    --accent-blue: #3b82f6;
    --accent-cyan: #22d3ee;
    --accent-purple: #8b5cf6;
    --accent-blue-glow: rgba(59, 130, 246, 0.15);
    --accent-cyan-glow: rgba(34, 211, 238, 0.1);
    --accent-purple-glow: rgba(139, 92, 246, 0.1);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(59, 130, 246, 0.3);
    --glass-bg: rgba(30, 34, 51, 0.6);
    --glass-blur: blur(20px);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 36px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

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

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Gradient Text Utility ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section Shared Styles ===== */
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 56px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    padding: 5px 16px;
    margin-bottom: 12px;
}

/* ===== Scroll Animation ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.20s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.30s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================================================
   Announcement Banner
   =================================================================== */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    padding: 10px 0;
    text-align: center;
}

.announcement-bar p {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.announcement-bar a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-bar a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================================================
   Navigation
   =================================================================== */
.nav {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 25, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.nav.scrolled {
    background: rgba(15, 17, 25, 0.92);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    transition: opacity var(--transition-fast);
}

.nav-brand:hover {
    color: var(--text-primary);
    opacity: 0.85;
}

.nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    flex-shrink: 0;
}

.nav-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Subtle underline on non-btn nav links */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent-blue);
    color: #fff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast),
                transform var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.btn:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.84rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ===================================================================
   Legal Pages (preserved from prior design — used by privacy/terms)
   =================================================================== */
.legal-page {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.legal-content .legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 1.7;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.legal-content th {
    text-align: left;
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.legal-content td {
    padding: 10px 16px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content .disclaimer-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.legal-content .disclaimer-box p {
    margin-bottom: 0;
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero {
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Dot-grid background + glow orbs */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 70%);
    pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-bg::before {
    width: 600px;
    height: 600px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
}

.hero-bg::after {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -60px;
    background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 70%);
}

/* Grid layout */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Copy */
.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-blue);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 100px;
    line-height: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

/* ===== Phone Mockup ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-glow {
    position: absolute;
    width: 340px;
    height: 480px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
        rgba(59,130,246,0.2) 0%,
        rgba(34,211,238,0.08) 40%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 36px;
    padding: 8px;
    position: relative;
    z-index: 1;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 0 0 1px rgba(0,0,0,0.3),
        0 24px 60px rgba(0,0,0,0.45),
        0 0 80px rgba(59,130,246,0.08);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Status bar */
.phone-status-bar {
    display: flex;
    justify-content: center;
    padding: 10px 16px 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Header */
.phone-header {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 6px 0 10px;
    letter-spacing: -0.01em;
}

/* Viewfinder */
.phone-viewfinder {
    flex: 1;
    margin: 0 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Brick grid */
.brick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    padding: 16px;
    z-index: 1;
}

.brick {
    width: 24px;
    height: 14px;
    background: var(--brick-color);
    border-radius: 3px;
    opacity: 0;
    transform: scale(0.6);
    animation: brickFadeIn 0.4s ease-out forwards;
    animation-delay: var(--delay);
    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Scan line */
.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px 4px rgba(34,211,238,0.35), 0 0 40px 8px rgba(34,211,238,0.12);
    animation: scanSweep 3s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* Progress */
.phone-progress {
    padding: 12px 16px 8px;
}

.phone-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.phone-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.phone-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 4px;
    animation: progressFill 2s ease-out 0.5s forwards;
}

/* Tab bar */
.phone-tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 20px 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.tab-icon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5px;
    opacity: 0.35;
}

.tab-dot {
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: var(--text-secondary);
}

.tab-line {
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-secondary);
    grid-column: span 2;
}

.tab-line.short {
    width: 6px;
}

.tab-scan-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -22px;
    box-shadow:
        0 4px 20px rgba(59,130,246,0.4),
        0 0 40px rgba(34,211,238,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ===== Hero Keyframes ===== */
@keyframes brickFadeIn {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scanSweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 73%; }
}

/* ===================================================================
   Demo Flow — How It Works (Task 3)
   =================================================================== */

/* Section wrapper */
.demo-flow {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Subtle background texture */
.demo-flow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.6;
}

.demo-flow-header {
    margin-bottom: 72px;
}

/* Steps column */
.demo-steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Individual step — 2 col grid */
.demo-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Reverse column order for zigzag */
.demo-step-reverse {
    direction: rtl;
}
.demo-step-reverse > * {
    direction: ltr;
}

/* Connector between steps */
.demo-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    margin: 16px 0;
}

.connector-line {
    width: 2px;
    height: 48px;
    border-radius: 2px;
}

.demo-connector--blue-cyan .connector-line {
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-cyan));
}

.demo-connector--cyan-purple .connector-line {
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.connector-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.demo-connector--blue-cyan .connector-node {
    background: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(34,211,238,0.5);
}

.demo-connector--cyan-purple .connector-node {
    background: var(--accent-purple);
    box-shadow: 0 0 12px rgba(139,92,246,0.5);
}

/* Visual column (holds phone or voxel) */
.demo-step-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Copy column */
.demo-step-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-step-copy--right {
    text-align: right;
    align-items: flex-end;
}

/* Step badge */
.step-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 14px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 100px;
    line-height: 1.6;
}

.step-badge--blue {
    color: var(--accent-blue);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
}

.step-badge--cyan {
    color: var(--accent-cyan);
    background: rgba(34,211,238,0.08);
    border: 1px solid rgba(34,211,238,0.22);
}

.step-badge--purple {
    color: var(--accent-purple);
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.25);
}

.demo-step-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
}

.demo-step-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
}

.demo-step-copy--right .demo-step-desc {
    margin-left: auto;
}

/* Feature chips */
.step-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.step-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-step-copy--right .step-feature {
    flex-direction: row-reverse;
}

.sf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-feature--blue .sf-dot  { background: var(--accent-blue); box-shadow: 0 0 6px rgba(59,130,246,0.6); }
.step-feature--cyan .sf-dot  { background: var(--accent-cyan); box-shadow: 0 0 6px rgba(34,211,238,0.6); }
.step-feature--purple .sf-dot { background: var(--accent-purple); box-shadow: 0 0 6px rgba(139,92,246,0.6); }

/* ===================================================================
   Phone Frame — Small (200×400)
   =================================================================== */
.phone-frame-sm {
    width: 200px;
    height: 400px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    padding: 6px;
    position: relative;
    z-index: 1;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 0 0 1px rgba(0,0,0,0.3),
        0 20px 50px rgba(0,0,0,0.45),
        0 0 60px rgba(59,130,246,0.06);
}

.phone-screen-sm {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Glow halo behind small phones and voxel */
.step-phone-glow {
    position: absolute;
    width: 240px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.step-phone-glow--blue   { background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%); }
.step-phone-glow--cyan   { background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%); }
.step-phone-glow--purple { background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%); }

/* ===================================================================
   Step 1 — Capture Viewfinder
   =================================================================== */
.capture-viewfinder {
    flex: 1;
    margin: 0 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Corner bracket marks */
.vf-corner {
    position: absolute;
    width: 14px;
    height: 14px;
}

.vf-corner--tl { top: 8px; left: 8px; border-top: 2px solid var(--accent-blue); border-left: 2px solid var(--accent-blue); border-radius: 2px 0 0 0; }
.vf-corner--tr { top: 8px; right: 8px; border-top: 2px solid var(--accent-blue); border-right: 2px solid var(--accent-blue); border-radius: 0 2px 0 0; }
.vf-corner--bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--accent-blue); border-left: 2px solid var(--accent-blue); border-radius: 0 0 0 2px; }
.vf-corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--accent-blue); border-right: 2px solid var(--accent-blue); border-radius: 0 0 2px 0; }

/* Subject silhouette inside viewfinder */
.capture-subject {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 70px;
    height: 60px;
    z-index: 1;
}

.capture-subject-inner {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.cs-block {
    border-radius: 3px;
    background: rgba(59,130,246,0.3);
    border: 1px solid rgba(59,130,246,0.5);
}
.cs-block--1 { width: 16px; height: 24px; }
.cs-block--2 { width: 16px; height: 38px; }
.cs-block--3 { width: 16px; height: 28px; }

/* Capture counter */
.capture-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px 2px;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.capture-icon { font-size: 0.65rem; }

.capture-label strong {
    color: var(--accent-blue);
}

/* Angle dot track */
.angle-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px 10px 6px;
    justify-content: center;
}

.angle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.angle-dot.filled {
    background: var(--accent-blue);
    box-shadow: 0 0 4px rgba(59,130,246,0.6);
}

/* ===================================================================
   Step 2 — Voxel Model Visual
   =================================================================== */
.voxel-visual {
    background: rgba(15,17,25,0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px 16px;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 20px 50px rgba(0,0,0,0.4),
        0 0 60px rgba(34,211,238,0.05);
}

.voxel-label-top {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    opacity: 0.8;
}

.voxel-label-bottom {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.voxel-label-bottom strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Scene container provides perspective */
.voxel-scene {
    width: 180px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}

/* Grid of voxels — isometric-ish transform */
.voxel-grid {
    position: relative;
    width: 120px;
    height: 120px;
    transform: perspective(600px) rotateX(25deg) rotateY(-25deg);
    transform-style: preserve-3d;
    animation: voxelRotate 12s linear infinite;
}

@keyframes voxelRotate {
    0%   { transform: perspective(600px) rotateX(25deg) rotateY(-25deg); }
    50%  { transform: perspective(600px) rotateX(25deg) rotateY(25deg); }
    100% { transform: perspective(600px) rotateX(25deg) rotateY(-25deg); }
}

/* Individual voxel brick */
.voxel {
    position: absolute;
    width: 22px;
    height: 12px;
    background: var(--vc);
    border-radius: 2px;
    /* Isometric positioning via custom props */
    left: calc(var(--vx) * 26px + var(--vy) * 4px);
    top: calc(var(--vy) * 26px - var(--vz) * 16px);
    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.22),
        2px 4px 8px rgba(0,0,0,0.35);
    transform: translateZ(calc(var(--vz) * 1px));
}

/* ===================================================================
   Step 3 — Build Viewport
   =================================================================== */
.build-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px 6px;
    border-bottom: 1px solid var(--border-color);
}

.build-step-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-purple);
    letter-spacing: 0.02em;
}

.build-header-actions {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

/* Build 3D viewport area */
.build-viewport {
    flex: 1;
    margin: 4px 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scene containing placed + ghost bricks */
.build-scene {
    position: relative;
    width: 100px;
    height: 90px;
}

/* Individual build brick */
.build-brick {
    position: absolute;
    width: 18px;
    height: 10px;
    border-radius: 2px;
    left: var(--bx);
    top: var(--by);
    animation: buildBrickIn 0.35s ease-out both;
    animation-delay: var(--bd);
}

.build-brick.placed {
    background: var(--bc);
    box-shadow:
        inset 0 -1.5px 0 rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 2px 6px rgba(0,0,0,0.3);
}

/* Ghost (next to place) bricks */
.build-brick.ghost {
    background: transparent;
    border: 1.5px dashed var(--bc);
    opacity: 0.6;
    animation: ghostPulse 1.8s ease-in-out infinite;
}

@keyframes buildBrickIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ghostPulse {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 0.85; }
}

/* Rotation hint overlay */
.build-rotate-hint {
    position: absolute;
    bottom: 6px;
    right: 7px;
    font-size: 0.52rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.7;
}

/* Progress slider */
.build-slider-wrap {
    padding: 6px 12px 4px;
}

.build-slider-track {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    position: relative;
    margin-bottom: 3px;
}

.build-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 43.75%; /* 14/32 */
    background: linear-gradient(90deg, var(--accent-purple), #a78bfa);
    border-radius: 4px;
}

.build-slider-thumb {
    position: absolute;
    top: 50%;
    left: 43.75%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(139,92,246,0.6);
}

.build-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Purple variant of scan button */
.tab-scan-btn--purple {
    background: linear-gradient(135deg, var(--accent-purple), #a78bfa);
    box-shadow:
        0 4px 20px rgba(139,92,246,0.4),
        0 0 40px rgba(139,92,246,0.15),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* ===================================================================
   Features Bento Grid — Task 4
   =================================================================== */

.features {
    padding: 100px 0;
}

.features-header {
    margin-bottom: 56px;
}

/* ── Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ── Base tile ── */
.bento-tile {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition:
        transform var(--transition-medium),
        border-color var(--transition-medium),
        box-shadow var(--transition-medium);
}

.bento-tile:hover {
    transform: translateY(-3px);
    border-color: var(--border-color-hover);
    box-shadow:
        0 12px 40px rgba(59, 130, 246, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Wide hero tile ── */
.bento-wide {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 48px;
}

.bento-wide-visual {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bento-wide-text {
    flex: 0 0 60%;
}

/* ── Icon container ── */
.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-blue-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.bento-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.bento-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Pipeline visual ── */
.pipeline-visual {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pipeline-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pipeline-icon--blue {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.pipeline-icon--cyan {
    background: var(--accent-cyan-glow);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.pipeline-icon--purple {
    background: var(--accent-purple-glow);
    color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.pipeline-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pipeline-arrow {
    display: flex;
    align-items: center;
    opacity: 0.75;
    flex-shrink: 0;
}

.pipeline-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

/* ===================================================================
   Difficulty Levels Section
   Task 5
   =================================================================== */
.difficulty {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Subtle ambient noise background */
.difficulty::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(34, 197, 94, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.difficulty-header {
    margin-bottom: 56px;
}

/* ── Grid ── */
.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* ── Card Base ── */
.difficulty-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform var(--transition-medium), border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.difficulty-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* ── Featured Card ── */
.difficulty-card-featured {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.15),
        0 8px 32px rgba(59, 130, 246, 0.18),
        0 24px 64px rgba(0, 0, 0, 0.4);
}

.difficulty-card-featured:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 12px 48px rgba(59, 130, 246, 0.24),
        0 28px 72px rgba(0, 0, 0, 0.45);
}

.difficulty-featured-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ── Badge pill ── */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    width: fit-content;
}

.difficulty-badge--junior {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-badge--standard {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.difficulty-badge--master {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ── Visual container ── */
.difficulty-visual {
    position: relative;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    aspect-ratio: 1 / 0.9;
    justify-content: center;
    overflow: hidden;
}

.difficulty-visual--junior {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    box-shadow: inset 0 0 40px rgba(34, 197, 94, 0.05), 0 0 24px rgba(34, 197, 94, 0.08);
}

.difficulty-visual--standard {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: inset 0 0 40px rgba(59, 130, 246, 0.06), 0 0 28px rgba(59, 130, 246, 0.12);
}

.difficulty-visual--master {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: inset 0 0 40px rgba(139, 92, 246, 0.05), 0 0 24px rgba(139, 92, 246, 0.08);
}

.difficulty-visual-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Brick grids ── */
.difficulty-bricks {
    display: grid;
    gap: 4px;
}

.difficulty-bricks-junior {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.difficulty-bricks-standard {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.difficulty-bricks-master {
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

/* ── Individual brick ── */
.dbrick {
    background: var(--dc, #3b82f6);
    border-radius: 3px;
    position: relative;
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

/* Brick stud nub */
.dbrick::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dc, #3b82f6);
    filter: brightness(1.2);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Size variants for each grid */
.difficulty-bricks-junior .dbrick {
    width: 28px;
    height: 22px;
}

.difficulty-bricks-junior .dbrick::before {
    width: 10px;
    height: 10px;
    top: 10%;
}

.difficulty-bricks-standard .dbrick {
    width: 20px;
    height: 16px;
}

.difficulty-bricks-standard .dbrick::before {
    width: 7px;
    height: 7px;
    top: 10%;
}

.difficulty-bricks-master .dbrick {
    width: 14px;
    height: 11px;
}

.difficulty-bricks-master .dbrick::before {
    width: 5px;
    height: 5px;
    top: 8%;
}

/* ── Stats row ── */
.difficulty-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 8px;
    justify-content: space-around;
}

.difficulty-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.difficulty-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--border-color);
    flex-shrink: 0;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Description ── */
.difficulty-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===================================================================
   Use Cases Gallery — Task 6
   =================================================================== */

/* ── Section wrapper ── */
.use-cases {
    padding: 100px 0;
    position: relative;
}

/* Subtle background accent — low-intensity gradient wash */
.use-cases::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 20% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Section header ── */
.use-cases-header {
    margin-bottom: 56px;
}

/* ── Grid ── */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Card ── */
.use-case-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
    /* Contain inner 3D transforms */
    isolation: isolate;
}

.use-case-card:hover {
    transform: scale(1.03);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ── Visual area — gradient placeholder ── */
.use-case-visual {
    position: absolute;
    inset: 0;
    background: var(--uc-gradient);
    /* When a real <img> is swapped in, this gradient becomes
       a fallback behind it — just add object-fit: cover to the img */
}

/* Decorative mosaic pattern layered on the gradient */
.uc-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-size: 28px 28px;
}

/* Brick-stud texture via repeating-conic-gradient */
.uc-pattern--toys {
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.6) 3px, transparent 4px);
    background-size: 20px 20px;
}

.uc-pattern--buildings {
    background-image:
        linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
    background-size: 24px 24px;
}

.uc-pattern--portraits {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.5) 2px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.3) 2px, transparent 3px);
    background-size: 18px 18px;
}

.uc-pattern--vehicles {
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.15) 0px,
            rgba(255,255,255,0.15) 2px,
            transparent 2px,
            transparent 14px
        );
}

.uc-pattern--sculptures {
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.4) 4px, transparent 5px);
    background-size: 22px 22px;
}

.uc-pattern--custom {
    background-image:
        conic-gradient(
            from 0deg at 50% 50%,
            rgba(255,255,255,0.1) 0deg,
            rgba(255,255,255,0.3) 90deg,
            rgba(255,255,255,0.1) 180deg,
            rgba(255,255,255,0.3) 270deg,
            rgba(255,255,255,0.1) 360deg
        );
    background-size: 32px 32px;
}

/* ── Text overlay ── */
.use-case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 22px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.4) 55%,
        transparent 100%
    );
    transition: transform 0.3s ease;
}

.use-case-card:hover .use-case-overlay {
    transform: translateY(-4px);
}

/* ── Card text ── */
.use-case-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.25;
}

.use-case-tagline {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin: 0;
}

/* ===================================================================
   Coming Soon — Roadmap Teaser
   =================================================================== */

.coming-soon {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Subtle diagonal noise texture behind everything */
.coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(255, 255, 255, 0.012) 60px,
            rgba(255, 255, 255, 0.012) 61px
        );
    pointer-events: none;
}

/* Section header */
.coming-soon-header {
    text-align: center;
    margin-bottom: 56px;
}

.coming-soon-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* 3-column grid */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Glassmorphism card — muted, dashed border at rest */
.coming-soon-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    opacity: 0.8;
    position: relative;
    transition:
        opacity 250ms ease-out,
        border-color 250ms ease-out,
        box-shadow 250ms ease-out,
        transform 250ms ease-out;
    cursor: default;
}

/* Top row: icon left, badge right */
.coming-soon-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}

/* Icon container — 48px, muted accent colour */
.coming-soon-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 250ms ease-out;
}

/* Pill badge */
.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    margin-top: 2px;
    transition:
        color 250ms ease-out,
        border-color 250ms ease-out,
        background 250ms ease-out;
}

.coming-soon-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.3;
}

.coming-soon-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Hover — full opacity, solid border, subtle glow */
.coming-soon-card:hover {
    opacity: 1;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(59, 130, 246, 0.06);
    transform: translateY(-4px);
}

.coming-soon-card:hover .coming-soon-icon {
    color: var(--text-secondary);
}

.coming-soon-card:hover .coming-soon-badge {
    color: rgba(155, 163, 184, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* animate-on-scroll stagger */
.coming-soon-card.animate-on-scroll {
    transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* ===================================================================
   Download CTA Section
   =================================================================== */
.download {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.download-inner {
    position: relative;
    z-index: 1;
}

.download-inner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-inner > p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.app-store-badge svg {
    width: 180px;
    height: 60px;
    display: block;
    transition: transform 0.2s ease;
}

.app-store-badge:hover svg {
    transform: scale(1.05);
}

.download-note {
    color: var(--text-muted, rgba(155, 163, 184, 0.7));
    font-size: 0.82rem;
    margin: 0;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 60px;
    justify-content: flex-end;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-muted, rgba(155, 163, 184, 0.6));
    margin: 0 0 4px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-top: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom p {
    color: var(--text-muted, rgba(155, 163, 184, 0.6));
    font-size: 0.82rem;
    margin: 0;
}

.footer-disclaimer {
    max-width: 700px;
    margin: 0 auto !important;
}

.footer-attribution a {
    color: var(--text-muted, rgba(155, 163, 184, 0.6));
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-attribution a:hover {
    color: var(--accent-blue, #3b82f6);
}

/* ===================================================================
   Mobile Responsive — Nav + Hero
   =================================================================== */
@media (max-width: 768px) {
    .nav-links a:not(.btn) {
        display: none;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
    }

    .hero-visual {
        order: -1;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .phone-glow {
        width: 260px;
        height: 360px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .brick {
        width: 18px;
        height: 11px;
    }

    .brick-grid {
        padding: 10px;
        gap: 2px;
    }

    .tab-scan-btn {
        width: 40px;
        height: 40px;
        margin-top: -18px;
    }

    .tab-scan-btn svg {
        width: 18px;
        height: 18px;
    }

    /* ── Demo Flow Mobile ── */
    .demo-flow {
        padding: 72px 0;
    }

    .demo-flow-header {
        margin-bottom: 48px;
    }

    /* Single column — visual above text */
    .demo-step,
    .demo-step.demo-step-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        direction: ltr;
    }

    /* Visual always on top */
    .demo-step-visual {
        order: -1;
    }

    /* Reset right-align copy for step 2 */
    .demo-step-copy--right {
        text-align: left;
        align-items: flex-start;
    }

    .demo-step-copy--right .demo-step-desc {
        margin-left: 0;
    }

    .demo-step-copy--right .step-feature {
        flex-direction: row;
    }

    /* Smaller connectors */
    .connector-line {
        height: 28px;
    }

    /* Center text */
    .demo-step-copy {
        align-items: center;
        text-align: center;
    }

    .demo-step-desc {
        max-width: 420px;
        margin: 0 auto;
    }

    .step-features {
        align-items: center;
    }

    .step-badge {
        align-self: center;
    }

    .demo-step-title {
        font-size: 1.4rem;
    }

    /* ── Features Bento Mobile ── */
    .features {
        padding: 72px 0;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        flex-direction: column;
        gap: 32px;
    }

    .bento-wide-visual {
        flex: 0 0 auto;
        width: 100%;
    }

    .bento-wide-text {
        flex: 0 0 auto;
        width: 100%;
    }

    .pipeline-visual {
        gap: 4px;
    }

    .pipeline-icon {
        width: 44px;
        height: 44px;
    }

    /* ── Difficulty Levels Mobile ── */
    .difficulty {
        padding: 72px 0;
    }

    .difficulty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .difficulty-card-featured {
        transform: scale(1);
    }

    .difficulty-card-featured:hover {
        transform: translateY(-4px);
    }

    .difficulty-featured-tag {
        top: -12px;
    }

    .difficulty-bricks-junior .dbrick {
        width: 24px;
        height: 19px;
    }

    .difficulty-bricks-standard .dbrick {
        width: 18px;
        height: 14px;
    }

    .difficulty-bricks-master .dbrick {
        width: 12px;
        height: 10px;
    }

    .stat-value {
        font-size: 0.95rem;
    }

    /* ── Use Cases Gallery Mobile (2-column) ── */
    .use-cases {
        padding: 72px 0;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* ── Coming Soon Mobile (single column) ── */
    .coming-soon {
        padding: 72px 0;
    }

    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── Download CTA Mobile ── */
    .download-inner h2 {
        font-size: 1.8rem;
    }

    /* ── Footer Mobile (single column, centered) ── */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 12px;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
    }

    .footer-col {
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* ── Use Cases Gallery Small Mobile (1-column) ── */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
