/* ============================================================
   alamov.dev — custom theme over UIkit
   Dark black base · accent purple #EAB8E4 · futuristic minimal
   ============================================================ */

:root {
    --bg: #050507;
    --bg-soft: #0b0b10;
    --surface: #101016;
    --surface-2: #15151d;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f3f7;
    --muted: #9a99a8;
    --muted-2: #6f6e7d;
    --accent: #eab8e4;
    --accent-strong: #f3cdee;
    --accent-dim: rgba(234, 184, 228, 0.14);
    --accent-line: rgba(234, 184, 228, 0.35);
    --radius: 18px;
    --radius-lg: 26px;
    --maxw: 1240px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
    --bg: #f7f6fb;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1eef8;
    --line: rgba(20, 16, 26, 0.10);
    --line-strong: rgba(20, 16, 26, 0.16);
    --text: #17131f;
    --muted: #5c596b;
    --muted-2: #8a8798;
    --accent: #b14fa0;
    --accent-strong: #9a3f8b;
    --accent-dim: rgba(177, 79, 160, 0.10);
    --accent-line: rgba(177, 79, 160, 0.30);
}
:root[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(to right, rgba(20,16,26,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(20,16,26,0.04) 1px, transparent 1px);
}
:root[data-theme="light"] .bg-glow { opacity: 0.35; }
:root[data-theme="light"] .nav-bar { background: rgba(247, 246, 251, 0.75); }
:root[data-theme="light"] .nav-active .nav-bar { background: rgba(255, 255, 255, 0.92); }
:root[data-theme="light"] ::selection { background: var(--accent); color: #fff; }
:root[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.94); }
:root[data-theme="light"] .field,
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .chip { background: rgba(20, 16, 26, 0.03); }

/* Smooth color transition when switching themes */
body,
h1, h2, h3, h4, h5, p, span, a, li,
.nav-bar, .card, .step, .stat-box, .hero-stat, .chip, .field,
.svc-icon, .footer, .cta-panel, .toast, .stat-num, .logo-text {
    transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

::selection { background: var(--accent); color: #14101a; }

a { color: var(--text); transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0;
}

.uk-container-large { max-width: var(--maxw); }

.accent { color: var(--accent); }

/* ---------- Background atmosphere ---------- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
}
.bg-glow--1 {
    width: 620px; height: 620px;
    top: -260px; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(234,184,228,0.30), transparent 70%);
}
.bg-glow--2 {
    width: 520px; height: 520px;
    top: 40%; right: -200px;
    background: radial-gradient(circle, rgba(127,90,240,0.16), transparent 70%);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav-bar {
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
    border-bottom: 1px solid transparent;
    background: rgba(5, 5, 7, 0.75);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.nav-active .nav-bar {
    background: rgba(7, 7, 10, 0.94);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
}
.nav-bar .uk-navbar { min-height: 76px; }

.uk-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px;
}
.logo-mark img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.logo-dot { color: var(--accent); }

.nav-links { gap: 6px; }
.nav-links a {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 500;
    text-transform: none;
    padding: 0 14px;
    min-height: 76px;
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 18px; }
.btn-ghost.nav-cta:hover {
    background: var(--accent);
    color: #160f17;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 34px -8px rgba(234, 184, 228, 0.6), 0 0 0 1px rgba(234, 184, 228, 0.25);
}
.nav-burger { color: var(--text); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    position: relative;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover {
    border-color: var(--accent-line);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.theme-toggle:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.theme-toggle__thumb {
    position: relative;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle__icon {
    position: absolute;
    inset: 0;
    margin: auto;
    color: var(--accent);
    transition: transform .45s var(--ease), opacity .35s var(--ease);
}
/* Dark mode: show moon, hide sun */
.theme-toggle__icon--moon { transform: rotate(0deg) scale(1); opacity: 1; }
.theme-toggle__icon--sun { transform: rotate(-90deg) scale(0.4); opacity: 0; }
/* Light mode: show sun, hide moon */
:root[data-theme="light"] .theme-toggle__icon--moon { transform: rotate(90deg) scale(0.4); opacity: 0; }
:root[data-theme="light"] .theme-toggle__icon--sun { transform: rotate(0deg) scale(1); opacity: 1; }

/* ---------- Language toggle ---------- */
/* Even 8px rhythm between theme, lang and CTA buttons (override UIkit nav gap) */
.uk-navbar-right { gap: 8px; }
.uk-navbar-right > * { margin-left: 0 !important; margin-right: 0 !important; }
.lang-toggle {
    position: relative;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.lang-toggle:hover {
    border-color: var(--accent-line);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.lang-toggle:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.lang-toggle__icon {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.lang-toggle__icon.is-spin { animation: langGlobeSpin .6s var(--ease); }
@keyframes langGlobeSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(0.78); }
    100% { transform: rotate(360deg) scale(1); }
}

@media (max-width: 419px) {
    .theme-toggle { width: 38px; height: 38px; }
    .lang-toggle { width: 38px; height: 38px; }
}

/* ---------- Footer toggle dock (mobile only) ---------- */
.footer-toggles { display: none; }
@media (max-width: 639px) {
    .footer-toggles {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-top: 44px;
    }
    .footer-toggles + .footer-bottom { margin-top: 28px; }
}

/* ---------- Language text change animation ---------- */
.lang-flip {
    animation: langFlip .55s var(--ease) both;
    animation-delay: var(--lang-delay, 0ms);
}
@keyframes langFlip {
    0%   { opacity: 0; filter: blur(7px); transform: translateY(9px); }
    60%  { filter: blur(0); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ---------- Theme switch animation (circular reveal) ---------- */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

@media (prefers-reduced-motion: reduce) {
    body, h1, h2, h3, h4, h5, p, span, a, li,
    .nav-bar, .card, .step, .stat-box, .hero-stat,
    .chip, .field, .svc-icon, .footer, .cta-panel, .toast,
    .stat-num, .logo-text, .theme-toggle__icon { transition: none; }
    .lang-flip, .lang-toggle__icon.is-spin { animation: none; }
}

@media (max-width: 959px) {
    .nav-links { display: none; }
    .nav-cta { margin-left: 0; margin-right: 6px; }
}
@media (max-width: 419px) {
    .nav-cta { padding: 0 16px; font-size: 0.88rem; }
}
@media (min-width: 960px) {
    .nav-burger { display: none; }
}

/* ---------- Buttons ---------- */
.uk-button {
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 0.95rem;
    padding: 0 24px;
    line-height: 46px;
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-accent {
    background: var(--accent);
    color: #160f17;
    box-shadow: 0 8px 30px -8px rgba(234,184,228,0.45);
}
.btn-accent:hover {
    background: var(--accent-strong);
    color: #160f17;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(234,184,228,0.6);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent-line);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.arrow { display: inline-block; margin-left: 8px; transition: transform .25s var(--ease); }
.uk-button:hover .arrow { transform: translateX(4px); }

/* Approach CTA: keep consistent top gap (Chrome collapses inline gap otherwise) */
.approach-cta { margin-top: 10px; }

/* ============================================================
   HERO
   ============================================================ */
/* hero + marquee occupy exactly the first screen (minus the 76px nav) */
.hero-screen {
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    display: flex;
    flex-direction: column;
}
.hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    text-align: center;
}
.hero-inner { max-width: 940px; margin: 0 auto; width: 100%; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    text-transform: uppercase;
}
/* code-style animated eyebrow: We < verb > */
.eyebrow--code {
    text-transform: none;
    letter-spacing: 0;
    gap: 8px;
    padding: 6px 16px;
}
.eyebrow-we {
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
}
.code-frag {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1;
}
.code-bracket { color: var(--muted-2); }
.type-word {
    color: var(--accent);
    margin: 0 1px;
    white-space: pre;
}
.type-caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-left: 1px;
    background: var(--accent);
    border-radius: 1px;
    vertical-align: middle;
    animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(234,184,228,0.6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234,184,228,0.55); }
    70% { box-shadow: 0 0 0 10px rgba(234,184,228,0); }
    100% { box-shadow: 0 0 0 0 rgba(234,184,228,0); }
}

.hero-title {
    margin-top: 28px;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 600;
}
.hero-sub {
    margin: 26px auto 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
}
.hero-actions {
    margin-top: 38px;
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.hero-stats {
    margin-top: 48px;
    display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.hero-stat {
    flex: 1 1 200px;
    max-width: 260px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    text-align: left;
}
.hero-stat__num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 600;
    color: var(--accent);
}
.hero-stat__label { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: inline-flex; align-items: center; gap: 26px;
    animation: scroll-x 38s linear infinite;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    color: var(--muted);
}
.marquee-track span { font-weight: 500; }
.marquee-track .sep { color: var(--accent); }
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); }

.section-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.kicker {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.06rem; }

/* ============================================================
   CARDS / SERVICES
   ============================================================ */
.card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 32px 30px;
    height: 100%;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.card::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(234,184,228,0.12), transparent 60%);
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-line);
    background: var(--surface-2);
}
.card:hover::before { opacity: 1; }

.svc-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-line);
    margin-bottom: 22px;
}
.svc-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 0.97rem; margin: 0 0 20px; }
.svc-tag {
    display: inline-block;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    color: var(--muted-2);
    padding-top: 14px;
    border-top: 1px solid var(--line);
    width: 100%;
    font-family: 'Space Grotesk', sans-serif;
}
.svc-card--cta {
    background: linear-gradient(150deg, var(--accent-dim), rgba(255,255,255,0.02));
    border-color: var(--accent-line);
    display: flex; flex-direction: column; justify-content: center;
}
.svc-card--cta h3 { color: var(--text); }
.svc-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.02rem;
}

/* ============================================================
   APPROACH / STEPS
   ============================================================ */
.steps { margin-top: 0; }
.step {
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    height: 100%;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.step-no {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.step h4 { font-size: 1.18rem; font-weight: 600; margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ============================================================
   ABOUT / FEATURES / STATS
   ============================================================ */
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 12px;
    color: var(--text);
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
}
.feature-list li span[uk-icon] { color: var(--accent); flex: none; margin-top: 2px; }

.stat-grid { margin-top: 0; }
.stat-box {
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    height: 100%;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.stat-box:hover { border-color: var(--accent-line); background: var(--surface-2); }
.stat-num {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem; font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.stat-label { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 12px; }

/* ============================================================
   STACK CHIPS
   ============================================================ */
.stack-row {
    display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: center;
    max-width: 920px; margin: 0 auto;
}
.chip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    color: var(--muted);
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.chip:hover {
    color: var(--text);
    border-color: var(--accent-line);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.cta-panel {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
    padding: 64px 8%;
    overflow: hidden;
    text-align: center;
}
.cta-glow {
    position: absolute;
    width: 600px; height: 600px;
    top: -50%; left: 50%; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(234,184,228,0.22), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}
.cta-content { position: relative; max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 600; margin-top: 14px; }
.cta-lead { color: var(--muted); margin: 18px 0 34px; font-size: 1.05rem; }

.cta-form { text-align: left; }
.field {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    height: 50px;
    padding: 0 16px;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
textarea.field { height: auto; padding: 14px 16px; resize: vertical; min-height: 104px; max-height: 320px; }
select.field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a93a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
select.field:invalid { color: var(--muted-2); }
select.field option { color: var(--text); background: var(--surface-2); }
.field::placeholder { color: var(--muted-2); }
.field:focus {
    outline: none;
    border-color: var(--accent-line);
    background: rgba(234,184,228,0.05);
}
.cta-or { text-align: center; color: var(--muted); margin-top: 22px; font-size: 0.92rem; }
.cta-or a { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    padding: 72px 0 32px;
    background: var(--bg-soft);
}

/* Force the footer top into a single 4-column row on desktop (override UIkit grid widths) */
@media (min-width: 960px) {
    .footer-top { flex-wrap: nowrap; align-items: flex-start; }
    .footer-top > * { width: auto; flex: 1 1 0; min-width: 0; }
    .footer-top > :first-child { flex: 1.7 1 0; }   /* brand column a touch wider */
    .footer-top > :last-child  { flex: 1.3 1 0; }   /* contact column a touch wider */
}

.footer-logo { margin-bottom: 18px; }
.footer-blurb { color: var(--muted); font-size: 0.94rem; max-width: 300px; }
.footer-head {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted-2);
    margin-bottom: 18px;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { color: var(--muted); font-size: 0.95rem; }
.footer-list a:hover { color: var(--accent); }
.footer-mail {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; color: var(--text);
    margin-bottom: 18px;
}
.footer-mail:hover { color: var(--accent); }
.footer-mail--sub {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: -8px;
}
.footer-mail--sub:hover { color: var(--accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social__svg svg { display: block; }
.footer-social a {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    transition: all .25s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

.footer-bottom {
    margin-top: 56px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
    color: var(--muted-2);
    font-size: 0.86rem;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--accent); }

/* Hide the floating reCAPTCHA badge — the required attribution is shown
   inline below the contact form instead (see .cta-recaptcha). */
.grecaptcha-badge { visibility: hidden; }

.cta-recaptcha {
    margin: 0 0 14px !important;
    font-size: 0.74rem !important;
    line-height: 1.5;
    color: var(--muted-2);
}
.cta-recaptcha a { color: var(--muted-2); text-decoration: underline; }
.cta-recaptcha a:hover { color: var(--accent); }

/* ============================================================
   TOASTS (custom, top-right)
   ============================================================ */
.toast-wrap {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(14, 14, 20, 0.92);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    box-shadow: 0 20px 55px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.toast.is-in { transform: translateX(0); opacity: 1; }
.toast.is-out { transform: translateX(120%); opacity: 0; }

.toast__icon {
    flex: none;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent-line);
}
.toast__body { padding-top: 3px; }
.toast__body b { font-weight: 600; }

.toast--warning { border-left-color: #f0c36d; }
.toast--warning .toast__icon { color: #f0c36d; background: rgba(240, 195, 109, 0.14); border-color: rgba(240, 195, 109, 0.4); }
.toast--danger { border-left-color: #f28a8a; }
.toast--danger .toast__icon { color: #f28a8a; background: rgba(242, 138, 138, 0.14); border-color: rgba(242, 138, 138, 0.4); }

@media (prefers-reduced-motion: reduce) {
    .toast { transition: opacity .2s linear; transform: none; }
    .toast.is-out { transform: none; }
}

/* ---------- Offcanvas ---------- */
.offcanvas-bar { background: var(--bg-soft); border-left: 1px solid var(--line); }
.offcanvas-nav a { color: var(--text); font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; }
.offcanvas-nav a:hover { color: var(--accent); }

/* ============================================================
   LEGAL MODALS (Privacy / Terms)
   ============================================================ */
.legal-modal {
    background: rgba(5, 5, 7, 0.72);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.legal-modal .legal-dialog {
    width: min(760px, 100%);
    padding: 0;
    overflow: hidden;
    color: var(--text);
    background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.legal-close {
    position: absolute;
    top: 20px; right: 20px;
    z-index: 3;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.legal-close:hover {
    color: var(--accent);
    border-color: var(--accent-line);
    background: var(--accent-dim);
    transform: rotate(90deg);
}

.legal-head {
    position: relative;
    padding: 44px 44px 24px;
    border-bottom: 1px solid var(--line);
}
.legal-head::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 240px; height: 240px;
    background: radial-gradient(circle at top left, rgba(234, 184, 228, 0.16), transparent 70%);
    pointer-events: none;
}
.legal-head .kicker { margin-bottom: 12px; }
.legal-title { font-size: clamp(1.55rem, 3.4vw, 2.2rem); font-weight: 600; }
.legal-updated {
    margin: 12px 0 0;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted-2);
    letter-spacing: 0.02em;
}

.legal-body {
    padding: 26px 44px 40px;
    max-height: min(60vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.legal-body h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--text);
    margin: 26px 0 8px;
}
.legal-body h4:first-child { margin-top: 0; }
.legal-body p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 6px;
}
.legal-body ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 10px;
}
.legal-body li {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
    padding: 4px 0 4px 22px;
}
.legal-body li::before {
    content: "";
    position: absolute;
    left: 2px; top: 13px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.legal-body li strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-strong); }

/* Branded scrollbar inside the legal body */
.legal-body::-webkit-scrollbar { width: 10px; }
.legal-body::-webkit-scrollbar-track { background: transparent; }
.legal-body::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
.legal-body::-webkit-scrollbar-thumb:hover { background: var(--accent-line); background-clip: padding-box; }
.legal-body { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

@media (max-width: 639px) {
    .legal-head { padding: 38px 24px 22px; }
    .legal-body { padding: 22px 24px 32px; max-height: 64vh; }
    .legal-close { top: 16px; right: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 639px) {
    .section { padding: 76px 0; }
    .cta-panel { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .pulse { animation: none; }
    .type-caret { animation: none; opacity: 1; }
    html { scroll-behavior: auto; }
}
