/* ---------- Design tokens ----------
   Squadraft brand: azul #026FA7 + naranja #F97316 (matches app + logo).
   Morado #7C3AED reservado EXCLUSIVAMENTE para Squadraft Pro.
   Ver memory: project_brand_colors.md
--------------------------------------- */
:root {
    --bg-deep: #06090c;
    --bg-base: #0a0d11;
    --bg-elevated: #12171d;

    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #ededf0;
    --text-muted: #9aa0aa;
    --text-dim: #7d8492;

    /* Brand: naranja como acción principal, azul como acento secundario */
    --brand-orange: #f97316;        /* app _brandOrange */
    --brand-orange-soft: #fb923c;   /* orange-400 */
    --brand-orange-deep: #c2410c;   /* orange-700, bottom-of-gradient */
    --brand-orange-glow: rgba(249, 115, 22, 0.35);

    --brand-blue: #026fa7;          /* app _brandBlue */
    --brand-blue-soft: #38bdf8;     /* sky-400, para texto/iconos sobre dark */
    --brand-blue-deep: #0c4a6e;     /* sky-900 */
    --brand-blue-glow: rgba(2, 111, 167, 0.35);

    /* Pro (solo para bloque Pro) */
    --pro: #7c3aed;
    --pro-soft: #a78bfa;
    --pro-glow: rgba(124, 58, 237, 0.35);

    --link: var(--brand-orange-soft);
    --link-hover: #fdba74;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --easing: cubic-bezier(0.16, 1, 0.3, 1);
    --content-width: 1120px;

    /* Type roles: DM Sans for body/UI, Bricolage Grotesque for display */
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    background: var(--bg-base);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ---------- Ambient background: naranja + azul ---------- */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 700px at 12% -10%, rgba(249, 115, 22, 0.16), transparent 60%),
        radial-gradient(1000px 600px at 90% 10%, rgba(2, 111, 167, 0.20), transparent 60%),
        radial-gradient(900px 700px at 50% 110%, rgba(2, 111, 167, 0.10), transparent 60%),
        linear-gradient(180deg, #06090c 0%, #0a0d11 60%, #06090c 100%);
    pointer-events: none;
}

.bg-scene::before,
.bg-scene::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.30;
    animation: float 22s var(--easing) infinite alternate;
}

.bg-scene::before {
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, var(--brand-orange) 0%, transparent 60%);
}

.bg-scene::after {
    bottom: -160px;
    right: -100px;
    background: radial-gradient(circle, var(--brand-blue) 0%, transparent 60%);
    animation-duration: 28s;
    animation-delay: -8s;
}

@keyframes float {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(60px, -40px, 0) scale(1.05); }
    100% { transform: translate3d(-40px, 30px, 0) scale(0.95); }
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 0;
    background: rgba(10, 13, 17, 0.6);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.015em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-strong);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.brand-name { color: var(--text); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.2s var(--easing), border-color 0.2s var(--easing), background 0.2s var(--easing);
}

.lang-switch:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--text);
    --btn-border: var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.125rem;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s var(--easing), background 0.2s var(--easing), border-color 0.2s var(--easing), box-shadow 0.2s var(--easing);
}

.btn:hover {
    background: var(--surface-strong);
    border-color: var(--border-strong);
}

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

/* Unified focus ring — same branded orange for buttons and any focusable anchor */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-orange-soft);
    outline-offset: 3px;
    border-radius: inherit;
}

.btn-primary {
    --btn-fg: #ffffff;
    --btn-border: transparent;
    background: linear-gradient(180deg, var(--brand-orange-soft) 0%, var(--brand-orange) 55%, var(--brand-orange-deep) 100%);
    box-shadow:
        0 8px 24px -8px var(--brand-orange-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #fdba74 0%, var(--brand-orange-soft) 55%, var(--brand-orange) 100%);
    box-shadow:
        0 12px 32px -8px var(--brand-orange-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-primary[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.75;
    pointer-events: none;
}

.btn-lg { height: 52px; padding: 0.875rem 1.5rem; font-size: 1rem; }

.btn svg { width: 18px; height: 18px; }

/* Google Play "coming soon" badge */
.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.125rem 0.75rem 0.875rem;
    border-radius: 14px;
    background: #0a0d11;
    border: 1px solid var(--border-strong);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s var(--easing), background 0.2s var(--easing), transform 0.15s var(--easing);
}

.play-badge:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: #0d1218;
}

.play-badge:active { transform: translateY(1px); }

.play-badge .glyph {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.play-badge-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.play-badge-copy .over {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.play-badge-copy .name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange);
    box-shadow: 0 0 12px var(--brand-orange-glow);
    animation: pulse 2.4s var(--easing) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.025em;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--brand-orange);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.4vw, 2.375rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-note {
    color: var(--text-dim);
    font-size: 0.8125rem;
    max-width: 520px;
    margin: 0 auto;
}

.hero-note strong { color: var(--text-muted); font-weight: 500; }

/* ---------- Hero devices (product proof) ----------
   Real screenshots of the app framed as Android devices.
   Mobile: primary only, small and centered under the CTAs.
   Tablet: primary only, slightly larger.
   Desktop (≥1024): two-column hero — content left, staggered pair right.
--------------------------------------------------- */
.hero-devices {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    margin: 2.5rem auto 0;
    max-width: 280px;
}

.device {
    position: relative;
    margin: 0;
    width: 100%;
    padding: 8px;
    border-radius: 34px;
    background: #14181f;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.65),
        0 12px 30px -12px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(12px);
    animation: device-in 0.6s var(--easing) forwards;
}

.device-primary  { animation-delay: 0.10s; }
.device-secondary { animation-delay: 0.25s; }

.device-screen {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: var(--bg-base);
    aspect-ratio: 9 / 19.5;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

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

.device-label {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
    text-align: center;
}

/* Secondary device is hidden on mobile and tablet — appears only ≥1024px */
.device-secondary { display: none; }

@keyframes device-in {
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .hero-devices { max-width: 300px; margin-top: 3rem; }
}

@media (min-width: 1024px) {
    /* Two-column hero: content left, device composition right */
    .hero { padding: 6rem 0 5rem; }

    .hero .container {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 4rem;
        align-items: center;
        text-align: left;
        max-width: 1200px;
    }

    .hero .container > .eyebrow,
    .hero .container > .hero-title,
    .hero .container > .hero-tagline,
    .hero .container > .hero-sub,
    .hero .container > .hero-cta,
    .hero .container > .hero-note {
        grid-column: 1;
        justify-self: start;
    }

    .hero .container > .hero-sub,
    .hero .container > .hero-note { margin-left: 0; margin-right: 0; }

    .hero .container > .hero-cta { justify-content: flex-start; }

    /* Device composition: primary in front, secondary offset behind */
    .hero-devices {
        grid-column: 2;
        grid-row: 1 / span 6;
        display: block;
        justify-items: initial;
        position: relative;
        margin: 0;
        max-width: none;
        min-height: 620px;
    }

    .device-primary {
        position: relative;
        width: 76%;
        margin-left: 6%;
        z-index: 2;
    }

    .device-secondary {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: -1rem;
        width: 62%;
        z-index: 1;
        transform: rotate(4deg);
        opacity: 0.9;
    }

    /* Only primary carries the caption on desktop */
    .device-secondary .device-label { display: none; }

    .device-primary .device-label {
        text-align: left;
        padding-left: 6%;
    }

    /* Warm spotlight behind primary device — reads as "on the pitch under lights" */
    .device-primary::before {
        content: "";
        position: absolute;
        inset: -18% -12% -10% -18%;
        background: radial-gradient(closest-side, rgba(249, 115, 22, 0.28), transparent 70%);
        filter: blur(28px);
        z-index: -1;
        pointer-events: none;
    }

    /* Chalk-line pitch motif behind the whole device composition */
    .hero-devices::before {
        content: "";
        position: absolute;
        inset: -3rem -4rem;
        z-index: 0;
        background: url("/assets/pitch-motif.svg") center / contain no-repeat;
        opacity: 0.7;
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .hero-devices { min-height: 680px; }
}

/* ---------- Sections ---------- */
section { padding: 5rem 0; }

.section-header {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-tag {
    display: inline-block;
    color: var(--brand-blue-soft);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.625rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- Bento grid ---------- */
.bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
}

.bento-card {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.25s var(--easing), border-color 0.25s var(--easing), background 0.25s var(--easing);
}

.bento-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 0% 0%, rgba(2, 111, 167, 0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s var(--easing);
    pointer-events: none;
}

@media (hover: hover) {
    .bento-card:hover {
        border-color: var(--border-strong);
        background: var(--surface-strong);
        transform: translateY(-2px);
    }

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

/* Icon box: azul por default (feature normal) */
.bento-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(2, 111, 167, 0.10));
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--brand-blue-soft);
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -12px var(--brand-blue-glow);
}

.bento-card .icon svg { width: 22px; height: 22px; }

/* Cards con acento naranja (para variar el ritmo visual) */
.bento-card.accent-orange .icon {
    background: linear-gradient(180deg, rgba(251, 146, 60, 0.20), rgba(249, 115, 22, 0.10));
    border-color: rgba(251, 146, 60, 0.30);
    color: var(--brand-orange-soft);
    box-shadow: 0 8px 20px -12px var(--brand-orange-glow);
}

.bento-card.accent-orange::before {
    background: radial-gradient(600px 200px at 0% 0%, rgba(249, 115, 22, 0.10), transparent 60%);
}

.bento-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* Bento layout: 6 cards on a 6-col grid — feature card spans wider */
.bento .b1 { grid-column: span 3; }
.bento .b2 { grid-column: span 3; }
.bento .b3 { grid-column: span 2; }
.bento .b4 { grid-column: span 2; }
.bento .b5 { grid-column: span 2; }
.bento .b6 { grid-column: span 6; }

/* Wide Pro summary card — quieted; purple lives on the icon + chip only */
.bento .b6 .icon {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(167, 139, 250, 0.22);
    color: var(--pro-soft);
    box-shadow: none;
}

.bento .b6::before {
    background: radial-gradient(600px 220px at 0% 0%, rgba(124, 58, 237, 0.08), transparent 60%);
}

.bento .b6 p { max-width: 640px; }

.pro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: var(--pro-soft);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ---------- How it works ---------- */
.steps {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.step {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.30);
    color: var(--brand-orange-soft);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.step h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text);
}

.step p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    padding: 4.5rem 2rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 30% 0%, rgba(249, 115, 22, 0.18), transparent 60%),
        radial-gradient(500px 260px at 80% 100%, rgba(2, 111, 167, 0.20), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.final-cta p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.final-cta-support {
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.8125rem;
}

.final-cta-support a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    transition: color 0.2s var(--easing), text-decoration-color 0.2s var(--easing);
}

.final-cta-support a:hover {
    color: var(--brand-blue-soft);
    text-decoration-color: currentColor;
}

/* ---------- Footer ---------- */
footer {
    padding: 3rem 0 4rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.625rem; }

.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px; }

.footer-brand-name {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

.footer-copy { color: var(--text-dim); font-size: 0.8125rem; margin-top: 0.375rem; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s var(--easing);
}

.footer-nav a:hover { color: var(--brand-blue-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento .b1, .bento .b2 { grid-column: span 2; }
    .bento .b3, .bento .b4, .bento .b5 { grid-column: span 1; }
    .bento .b6 { grid-column: span 2; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    section { padding: 3.5rem 0; }
    .hero { padding: 3.5rem 0 2.5rem; }
    .bento { grid-template-columns: 1fr; }
    .bento .b1, .bento .b2, .bento .b3, .bento .b4, .bento .b5, .bento .b6 { grid-column: span 1; }
    .final-cta { padding: 3rem 1.5rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .bg-scene::before, .bg-scene::after { animation: none; }
}

/* ---------- Mobile perf + touch tuning ---------- */

/* Lighter ambient blobs on small viewports — halve size, halve blur, no animation */
@media (max-width: 767px) {
    .bg-scene::before, .bg-scene::after {
        width: 320px;
        height: 320px;
        filter: blur(48px);
        opacity: 0.22;
        animation: none;
    }
    .bg-scene::after { bottom: -80px; right: -60px; }
    .bg-scene::before { top: -60px; left: -40px; }
}

/* Nav CTA collapses to icon-only below 480px so the header stays uncluttered */
@media (max-width: 479px) {
    .btn-nav-cta { padding: 0 0.75rem; }
    .btn-nav-cta-label { display: none; }
    .btn-nav-cta svg { width: 20px; height: 20px; }
}

/* Bigger tap targets on touch: language switch hits the 44px WCAG floor */
@media (pointer: coarse) {
    .lang-switch { padding: 0.625rem 0.875rem; font-size: 0.875rem; }
}

/* Safe-area padding for notched phones — pushes nav and footer clear of the notch/home indicator */
@supports (padding: env(safe-area-inset-top)) {
    .nav { padding-top: max(1rem, env(safe-area-inset-top)); }
    .nav-inner {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    footer { padding-bottom: max(4rem, env(safe-area-inset-bottom) + 2rem); }
}

/* ---------- Selection ---------- */
::selection { background: rgba(249, 115, 22, 0.35); color: #fff; }
