/* ═══════════════════════════════════════════════════════════════════════════
   PRISM STUDIO - PREMIUM SALES PAGE DESIGN SYSTEM
   Version: NEXUS-SOTA-2025
   Design Philosophy: Glassmorphism + Cyber Brutalism + Premium Elegance
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ─────────────────────────────────────────────────────────────────────────── */
:root {
    /* Core Colors */
    --bg-void: #020204;
    --bg-deep: #050507;
    --bg-surface: #0a0a0f;
    --bg-elevated: #12121a;
    --bg-card: rgba(18, 18, 26, 0.6);

    /* Text Hierarchy */
    --text-primary: #f4f4f7;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Accent Palette */
    --accent-core: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.5);
    --accent-subtle: rgba(0, 240, 255, 0.15);
    --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #00a8ff 100%);

    /* Danger/Urgency */
    --danger: #ff2a6d;
    --danger-glow: rgba(255, 42, 109, 0.4);

    /* Borders & Dividers */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 240, 255, 0.3);
    --border-hover: rgba(0, 240, 255, 0.5);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Shadows */
    --shadow-glow-sm: 0 0 20px var(--accent-glow);
    --shadow-glow-md: 0 0 40px var(--accent-glow);
    --shadow-glow-lg: 0 0 60px var(--accent-glow), 0 0 120px rgba(0, 240, 255, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-primary);
    --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-accent);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 160, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(139, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--accent-core);
    color: var(--bg-void);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ─────────────────────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: white;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 60ch;
    text-wrap: pretty;
}

.lead {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: white;
    font-weight: 500;
    line-height: 1.4;
    text-wrap: balance;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.875em;
    letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT SYSTEM
   ─────────────────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Elegant section dividers */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--border-primary) 20%,
            var(--border-accent) 50%,
            var(--border-primary) 80%,
            transparent 100%);
}

section:last-of-type::after {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
   ─────────────────────────────────────────────────────────────────────────── */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 2, 4, 0.75);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.nav-logo {
    height: auto;
    width: auto;
    max-height: 48px;
    object-fit: contain;
}

.nav-logo:hover {
    opacity: 0.9;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--accent-subtle);
    color: var(--accent-core);
    border: 1px solid var(--accent-core);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.08em;
    border-radius: 4px;
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-core);
    transition: left var(--duration-normal) var(--ease-out-expo);
    z-index: -1;
}

.btn-sm:hover {
    color: var(--bg-void);
    box-shadow: var(--shadow-glow-sm);
}

.btn-sm:hover::before {
    left: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ─────────────────────────────────────────────────────────────────────────── */
.hero {
    padding-top: calc(var(--space-4xl) + 60px);
    /* Account for nav */
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse 50% 80% at 50% 20%,
            rgba(0, 240, 255, 0.08) 0%,
            transparent 70%);
    pointer-events: none;
}

/* Hero status badge */
.hero .mono.highlight-cyan {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: var(--space-lg);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px transparent;
    }

    50% {
        box-shadow: 0 0 25px var(--accent-subtle);
    }
}

.hero h1 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.hero .lead {
    text-align: center;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

/* Hero CTA area */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.hero-cta .mono {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Hero image showcase */
.hero-image-container {
    margin-top: var(--space-3xl);
    perspective: 2000px;
    width: 100%;
    max-width: 1100px;
}

.hero-screenshot {
    width: 100%;
    border-radius: 16px;
    box-shadow:
        0 30px 100px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px var(--border-primary),
        0 0 100px var(--accent-subtle),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotateX(8deg) translateY(0);
    transition: all var(--duration-slow) var(--ease-out-expo);
    border: 1px solid var(--border-accent);
}

.hero-screenshot:hover {
    transform: rotateX(0deg) translateY(-10px);
    box-shadow:
        0 50px 140px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px var(--border-hover),
        0 0 140px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    background: var(--accent-gradient);
    color: var(--bg-void);
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow:
        var(--shadow-glow-md),
        0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        var(--shadow-glow-lg),
        0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CARDS
   ─────────────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--space-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
}

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

/* Feature cards in grid */
.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .grid-2x2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-2x2 .card {
    text-align: left;
}

.grid-2x2 .card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-core);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.grid-2x2 .card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Feature images */
.feature-img-container {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-deep);
    aspect-ratio: 16 / 10;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.card:hover .feature-img {
    transform: scale(1.08);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TEXT SECTIONS
   ─────────────────────────────────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.uppercase {
    text-transform: uppercase;
}

/* Accent text */
.highlight-cyan {
    color: var(--accent-core);
    text-shadow: 0 0 30px var(--accent-glow);
}

.highlight-danger {
    color: var(--danger);
    text-shadow: 0 0 30px var(--danger-glow);
}

/* Big statement text */
.statement-large {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    display: block;
    margin: var(--space-lg) 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Problem checklist */
.checklist-card {
    margin: var(--space-xl) auto;
    max-width: 500px;
    border-left: 4px solid var(--danger);
    background: rgba(255, 42, 109, 0.05);
    border-radius: 0 12px 12px 0;
    text-align: left;
    padding: var(--space-lg);
}

.checklist-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist-card li {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.checklist-card li:last-child {
    border-bottom: none;
    color: var(--danger);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   OFFER SECTION
   ─────────────────────────────────────────────────────────────────────────── */
#offer {
    background: linear-gradient(180deg,
            var(--bg-void) 0%,
            rgba(0, 240, 255, 0.03) 50%,
            var(--bg-void) 100%);
    padding-top: calc(var(--space-4xl) + 2rem);
    padding-bottom: calc(var(--space-4xl) + 2rem);
}

.offer-card {
    max-width: 560px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-2xl);
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
    box-shadow:
        var(--shadow-glow-md),
        0 20px 60px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.offer-card h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-core);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
}

.offer-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 1rem;
    color: var(--text-primary);
}

.offer-list li:last-child {
    border-bottom: none;
}

.offer-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-core);
    border-radius: 50%;
    color: var(--accent-core);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.offer-price {
    text-align: center;
    margin: var(--space-xl) 0;
}

.offer-price .price {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    color: white;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.offer-price .price-note {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.offer-card .btn-primary {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.1rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GUARANTEE SECTION
   ─────────────────────────────────────────────────────────────────────────── */
section:has(h3:first-child) {
    padding: var(--space-3xl) 0;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-core);
    margin-bottom: var(--space-md);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────────────────────── */
footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-primary);
    text-align: center;
    background: var(--bg-deep);
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 auto;
    max-width: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ─────────────────────────────────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   INSTRUCTION PAGE STYLES
   ─────────────────────────────────────────────────────────────────────────── */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

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

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-core);
    line-height: 1;
    opacity: 0.4;
    font-family: var(--font-mono);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.code-block {
    background: var(--bg-void);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: var(--space-md);
    font-family: var(--font-mono);
    color: var(--accent-core);
    font-size: 0.95rem;
    margin: var(--space-sm) 0;
    overflow-x: auto;
}

.code-comment {
    color: var(--text-tertiary);
    display: block;
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
}

.warning-box {
    border-left: 4px solid var(--danger);
    background: rgba(255, 42, 109, 0.08);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border-radius: 0 8px 8px 0;
}

.warning-box p {
    color: var(--text-primary);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NOTEBOOKLM PIPELINE SECTION
   ─────────────────────────────────────────────────────────────────────────── */
.pipeline-section {
    background: linear-gradient(180deg,
            rgba(0, 240, 255, 0.02) 0%,
            var(--bg-void) 50%,
            rgba(0, 240, 255, 0.02) 100%);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pipeline-item {
    display: grid;
    grid-template-columns: 140px 40px 1fr;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-card);
}

.pipeline-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.pipeline-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    flex-shrink: 0;
}

.pipeline-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.pipeline-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-core);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pipeline-sublabel {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--accent-core);
    text-shadow: 0 0 20px var(--accent-glow);
    flex-shrink: 0;
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

.pipeline-dest {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* Mobile adjustments for pipeline */
@media (max-width: 600px) {
    .pipeline-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        padding: var(--space-md);
        gap: var(--space-xs);
    }

    .pipeline-source {
        min-width: auto;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        animation: arrow-pulse-mobile 2s ease-in-out infinite;
    }

    @keyframes arrow-pulse-mobile {

        0%,
        100% {
            opacity: 0.6;
            transform: rotate(90deg) translateX(0);
        }

        50% {
            opacity: 1;
            transform: rotate(90deg) translateX(4px);
        }
    }

    .pipeline-dest {
        text-align: center;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   CUSTOM GRID LAYOUTS
   ─────────────────────────────────────────────────────────────────────────── */
.submission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.gamification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL MOBILE OVERFLOW PREVENTION
   ─────────────────────────────────────────────────────────────────────────── */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ─────────────────────────────────────────────────────────────────────────── */

/* Tablet breakpoint */
@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
        --space-4xl: 5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--space-3xl) + 60px);
        padding-bottom: var(--space-2xl);
    }

    .hero-screenshot {
        transform: none;
    }

    .hero-screenshot:hover {
        transform: translateY(-5px);
    }

    .btn-primary {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .offer-card {
        padding: var(--space-lg);
    }

    .nav-logo {
        max-height: 36px;
    }

    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    /* Force grids to single column */
    .grid-2x2,
    .grid-3col,
    .submission-grid,
    .gamification-grid {
        grid-template-columns: 1fr;
    }

    /* Center all text content */
    .text-center p,
    .text-center .lead {
        text-align: center;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .container-nav {
        gap: var(--space-xs);
    }

    .nav-logo {
        max-height: 32px;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
    }

    /* Hero section mobile fixes */
    .hero {
        padding-top: calc(var(--space-2xl) + 80px);
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding: 0 0.5rem;
        line-height: 1.25;
    }

    .hero h1 .highlight-danger {
        display: block;
        margin-top: 0.25rem;
    }

    .hero .mono.highlight-cyan {
        font-size: 0.6rem;
        padding: 0.4rem 0.6rem;
        max-width: 100%;
        text-align: center;
    }

    .hero .lead {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-cta .mono {
        font-size: 0.65rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    /* Ensure text doesn't overflow */
    h1,
    h2,
    h3,
    p,
    .lead,
    .statement-large {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .statement-large {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    /* Pipeline items stack properly */
    .pipeline-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pipeline-source {
        min-width: auto;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .pipeline-dest {
        text-align: center;
    }

    /* Offer list fits on mobile */
    .offer-list li {
        font-size: 0.9rem;
    }

    .offer-list li::before {
        flex-shrink: 0;
    }

    /* Checklist fits on mobile */
    .checklist-card li {
        font-size: 0.8rem;
    }
}