:root {
    --bg: #0a0a0b;
    --bg-alt: #111114;
    --bg-dark: #050507;
    --surface: #16161a;
    --surface-2: #1d1d22;
    --text: #f2f2f4;
    --muted: #9a9aa3;
    --accent: #00d4ff;
    --accent-2: #7cf9c3;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --header-h: 68px;
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(20px, var(--safe-l));
    padding-right: max(20px, var(--safe-r));
}

@media (min-width: 640px) {
    .container { padding-left: max(24px, var(--safe-l)); padding-right: max(24px, var(--safe-r)); }
}
@media (min-width: 1024px) {
    .container { padding-left: max(32px, var(--safe-l)); padding-right: max(32px, var(--safe-r)); }
}

/* ============ HEADER ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 10, 11, 0.6);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.5vw, 16px);
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: clamp(32px, 4.5vw, 40px);
    width: auto;
}

.menu {
    display: flex;
    gap: clamp(16px, 2.5vw, 28px);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.menu a { transition: color 0.2s ease; }
.menu a:hover { color: var(--text); }

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.2vw, 12px);
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
}

.lang-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
    background: var(--text);
    color: #0a0a0b;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 820px) {
    .menu-toggle { display: block; }

    .menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 11, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 8px;
        padding: 32px 24px calc(32px + var(--safe-b));
        font-size: 22px;
        font-weight: 600;
        color: var(--text);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .menu.open { transform: translateX(0); }

    .menu a {
        padding: 16px 4px;
        border-bottom: 1px solid var(--border);
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slides { position: absolute; inset: 0; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.4s ease, transform 8s ease;
    will-change: opacity, transform;
}

.slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.75) 60%, rgba(10,10,11,0.95) 100%),
        radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.12), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-h) + clamp(40px, 10vw, 100px));
    padding-bottom: clamp(80px, 14vw, 140px);
    max-width: 900px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(10px, 1.2vw, 12px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(14px, 2vw, 20px);
}

.hero h1 {
    font-size: clamp(32px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 clamp(16px, 2.5vw, 24px);
    background: linear-gradient(180deg, #ffffff 0%, #bdbdc6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.lede {
    font-size: clamp(15px, 1.8vw, 20px);
    color: var(--muted);
    max-width: 680px;
    margin: 0 0 clamp(24px, 3.5vw, 36px);
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: calc(24px + var(--safe-b));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.dot:hover { background: rgba(255,255,255,0.6); }
.dot.active { background: var(--accent); transform: scale(1.3); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: clamp(14px, 1.6vw, 15px);
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    min-height: 48px;
    text-align: center;
    white-space: nowrap;
}

.btn-primary { background: var(--text); color: #0a0a0b; }
.btn-primary:hover { background: var(--accent); color: #0a0a0b; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); border-color: var(--text); }

.btn-block { width: 100%; }

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}

/* ============ SECTIONS ============ */
.section {
    padding: clamp(64px, 10vw, 120px) 0;
    position: relative;
}

.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); border-top: 1px solid var(--border); }

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(36px, 6vw, 64px);
    text-align: center;
}

.section-head h2,
.grid-2 h2,
.contact h2 {
    font-size: clamp(26px, 4.2vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 10px 0 14px;
    text-wrap: balance;
}

.section-sub {
    color: var(--muted);
    font-size: clamp(14px, 1.7vw, 16px);
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 64px);
    align-items: start;
}

.grid-2 .prose {
    color: var(--muted);
    font-size: clamp(15px, 1.7vw, 17px);
}
.grid-2 .prose p + p { margin-top: 16px; }

@media (max-width: 820px) {
    .grid-2 { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ CARDS ============ */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    max-width: 1040px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(22px, 3vw, 28px) clamp(20px, 2.8vw, 24px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.card-icon {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 14px;
}

.card h3 { font-size: clamp(16px, 1.9vw, 18px); margin: 0 0 8px; font-weight: 600; }
.card p { color: var(--muted); font-size: clamp(13.5px, 1.5vw, 14.5px); margin: 0; line-height: 1.55; }

@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; max-width: 420px; } }

/* ============ PLANS ============ */
.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    max-width: 900px;
    margin: 0 auto;
}

.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(28px, 4vw, 36px) clamp(24px, 3.5vw, 32px);
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.5vw, 24px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.plan-featured {
    border-color: var(--accent);
    background:
        linear-gradient(180deg, rgba(0,212,255,0.06), rgba(0,212,255,0) 60%),
        var(--surface);
    box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.25);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: #0a0a0b;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.plan-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.plan h3 { font-size: clamp(20px, 2.6vw, 24px); margin: 0 0 6px; font-weight: 700; }
.plan-sub { color: var(--muted); font-size: clamp(13.5px, 1.5vw, 14px); margin: 0; }

.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-features li {
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 15px);
    padding-left: 22px;
    position: relative;
}

.plan-features li::before {
    content: '›';
    position: absolute;
    left: 0; top: 0;
    color: var(--accent);
    font-weight: 700;
}

.plans-note {
    text-align: center;
    color: var(--muted);
    margin-top: clamp(28px, 4vw, 40px);
    font-size: clamp(13.5px, 1.6vw, 14.5px);
    padding: 0 16px;
}
.plans-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 780px) { .plans { grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.contact p { color: var(--muted); margin: 0; font-size: clamp(14px, 1.7vw, 16px); }

.contact-links { display: grid; gap: 12px; }

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 1.5vw, 12px);
    padding: clamp(14px, 2.2vw, 20px) clamp(16px, 2.5vw, 24px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    min-height: 56px;
    flex-wrap: wrap;
}

.contact-link:hover {
    border-color: var(--accent);
    background: var(--surface-2);
    color: var(--text);
    transform: translateX(4px);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: clamp(10.5px, 1.2vw, 12px);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.contact-value {
    font-weight: 500;
    font-size: clamp(13.5px, 1.6vw, 15px);
    text-align: right;
    word-break: break-word;
    min-width: 0;
    flex-shrink: 1;
}

@media (max-width: 820px) {
    .contact { grid-template-columns: 1fr; gap: 24px; }
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 36px 0 calc(40px + var(--safe-b));
    border-top: 1px solid var(--border);
    background: var(--bg-dark);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo { height: 30px; width: auto; opacity: 0.8; }

.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }

/* ============ A11y / reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============ REGION SPLASH ============ */
.region-splash {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(14px, 4vw, 24px);
    padding-top: max(clamp(14px, 4vw, 24px), env(safe-area-inset-top));
    padding-bottom: max(clamp(14px, 4vw, 24px), var(--safe-b));
    padding-left: max(clamp(14px, 4vw, 24px), var(--safe-l));
    padding-right: max(clamp(14px, 4vw, 24px), var(--safe-r));
    overflow-y: auto;
}

body.region-pending { overflow: hidden; }

body.region-pending .region-splash,
.region-splash.open {
    display: flex;
}

.region-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.18), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(124,249,195,0.12), transparent 55%),
        rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: default;
}

.region-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: clamp(16px, 3vw, 22px);
    padding: clamp(24px, 5vw, 44px) clamp(20px, 4vw, 36px);
    text-align: center;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,212,255,0.05);
    animation: popIn 0.35s ease;
    margin: auto;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.region-logo {
    height: clamp(36px, 6vw, 44px);
    width: auto;
    margin: 0 auto clamp(16px, 3vw, 20px);
}

.region-lang {
    display: inline-flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: clamp(18px, 3vw, 24px);
}

.region-card h2 {
    font-size: clamp(22px, 3.6vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 10px 0 10px;
    font-weight: 700;
    text-wrap: balance;
}

.region-card p {
    color: var(--muted);
    font-size: clamp(14px, 1.7vw, 15.5px);
    margin: 0 0 clamp(22px, 4vw, 28px);
}

.region-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.region-option {
    appearance: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 22px) clamp(14px, 2.5vw, 18px);
    cursor: pointer;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: center;
    font-family: inherit;
    min-height: 120px;
}

.region-option:hover {
    background: rgba(0,212,255,0.06);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.region-flag {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.region-name {
    font-weight: 600;
    font-size: 15.5px;
}

.region-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 480px) {
    .region-options { grid-template-columns: 1fr; }
}

/* ============ REGION CHIP (header) ============ */
.region-chip {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    height: 34px;
}

.region-chip:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-strong);
}

.region-chip-flag { font-size: 15px; line-height: 1; }
.region-chip-label { line-height: 1; }

body.region-pending .region-chip { visibility: hidden; }

@media (max-width: 420px) {
    .region-chip-label { display: none; }
    .region-chip { padding: 6px 8px; }
}

/* ============ REGION CHANGE BUTTON (inside plans) ============ */
.region-change {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.region-change:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(0,212,255,0.05);
}

.region-change span:first-child {
    font-size: 14px;
    letter-spacing: 0;
}

/* ============ REGION-SCOPED PLAN VISIBILITY ============ */
/* plans-intl stays in DOM so Donorbox widget can render; we hide it offscreen
   until the user picks INTL, then we move it into the normal flow. */
.plans-intl {
    position: absolute;
    left: -99999px;
    top: 0;
    width: 500px;
    visibility: hidden;
    pointer-events: none;
}

body.region-intl .plans-ar { display: none; }
body.region-intl #planes .section-head { display: none; }
body.region-intl #planes { padding-top: clamp(32px, 6vw, 64px); }
body.region-intl .plans-intl {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    max-width: 760px;
    margin: 0 auto;
    visibility: visible;
    pointer-events: auto;
}

.donorbox-wrap {
    background: transparent;
    padding: 0;
}

.donorbox-intro {
    text-align: center;
    margin: 0 auto clamp(20px, 3vw, 28px);
    max-width: 520px;
}

.donorbox-intro h3 {
    font-size: clamp(20px, 2.6vw, 26px);
    margin: 10px 0 8px;
    font-weight: 700;
}

.donorbox-intro .plan-sub {
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 15px);
    margin: 0;
}

.donorbox-embed {
    display: flex;
    justify-content: center;
    width: 100%;
}

.donorbox-embed dbox-widget,
.donorbox-embed iframe {
    display: block;
    width: 100%;
    max-width: min(480px, 100%);
    min-width: 0;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 60px -10px rgba(0, 212, 255, 0.15);
    overflow: hidden;
}

.donorbox-embed iframe { min-height: 560px; transition: height 0.3s ease; }

@media (max-width: 420px) {
    .donorbox-embed dbox-widget,
    .donorbox-embed iframe { border-radius: 12px; }
}

/* ============ THANKS PAGE ============ */
.thanks-main {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(40px, 8vw, 80px)) 0 clamp(60px, 10vw, 120px);
}

.thanks-bg { position: absolute; inset: 0; z-index: 0; }

.thanks-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    filter: blur(2px);
}

.thanks-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(0, 212, 255, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(124, 249, 195, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(10,10,11,0.78) 0%, rgba(10,10,11,0.94) 100%);
}

.thanks-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    text-align: center;
}

.thanks-badge {
    width: clamp(64px, 10vw, 84px);
    height: clamp(64px, 10vw, 84px);
    margin: 0 auto clamp(20px, 3vw, 28px);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at top, rgba(0,212,255,0.25), rgba(0,212,255,0.08) 70%),
        var(--surface-2);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.5);
    animation: thanksPop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.thanks-badge svg { width: 42%; height: 42%; }

@keyframes thanksPop {
    0% { opacity: 0; transform: scale(0.5); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

.thanks-content h1 {
    font-size: clamp(34px, 6.5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 clamp(14px, 2vw, 20px);
    background: linear-gradient(180deg, #ffffff 0%, #bdbdc6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.thanks-content .lede {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.thanks-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
    margin-bottom: clamp(36px, 5vw, 48px);
    text-align: left;
}

.thanks-card {
    background: rgba(22, 22, 26, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(22px, 3vw, 28px) clamp(20px, 2.8vw, 24px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.thanks-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.thanks-card-icon {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 12px;
}

.thanks-card h3 {
    font-size: clamp(16px, 1.9vw, 18px);
    margin: 0 0 6px;
    font-weight: 600;
}

.thanks-card p {
    color: var(--muted);
    font-size: clamp(13.5px, 1.5vw, 14.5px);
    margin: 0;
    line-height: 1.55;
}

.thanks-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-sign {
    margin: clamp(28px, 4vw, 40px) 0 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
}

@media (max-width: 820px) {
    .thanks-cards { grid-template-columns: 1fr; }
    .thanks-cards { text-align: center; }
}

@media (max-width: 480px) {
    .thanks-cta { flex-direction: column; align-items: stretch; }
    .thanks-cta .btn { width: 100%; }
}

/* ============ Very small screens ============ */
@media (max-width: 400px) {
    .lang-switch { padding: 2px; }
    .lang-btn { padding: 5px 9px; font-size: 11px; }
    .region-chip { padding: 5px 7px; height: 32px; font-size: 11px; }
    .region-chip-flag { font-size: 14px; }
    .menu-toggle { width: 36px; height: 36px; }
    .menu-toggle span:nth-child(1) { top: 11px; }
    .menu-toggle span:nth-child(2) { top: 17px; }
    .menu-toggle span:nth-child(3) { top: 23px; }
    .menu-toggle.open span:nth-child(1) { top: 17px; }
    .menu-toggle.open span:nth-child(3) { top: 17px; }
}

@media (max-width: 340px) {
    .brand-logo { height: 26px; }
    .hero-content { padding-top: calc(var(--header-h) + 24px); }
    .btn { padding: 12px 18px; font-size: 13.5px; }
}

/* Landscape on short screens (phones in landscape) */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { min-height: 520px; }
    .hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
    .region-splash { align-items: flex-start; padding-top: 24px; }
    .region-card { margin: 0 auto; }
    .menu {
        padding-top: 20px;
        font-size: 18px;
    }
    .menu a { padding: 12px 4px; }
}

/* Keep horizontal scroll from ever happening from fixed-width children */
html, body { max-width: 100vw; }
