:root {
    /* Header/hero */
    --bg: #0a1126;
    --bg-2: #0f1b3f;
    --text: #eef3ff;
    --container: 1160px;
    /* max width cap */
    --nav-h: 72px;

    --hover: rgba(255, 255, 255, .06);
    --shadow: 0 16px 40px rgba(5, 10, 25, .35);

    /* Page theme (beautified) */
    --ink: #162447;
    --ink-2: #44537a;

    /* Accents */
    --pri: #6be0ff;
    --sec: #7a63ff;
    --alt: #19e3a6;
    --gold: #ffb400;

    /* Cards/fields */
    --card: #f6f9ff;
    --card-2: #edf3ff;
    --field: #ffffff;
    --field-b: #d6ddeb;

    /* CTA */
    --cta1: #ffd644;
    --cta2: #ffb400;
    --cta-t: #1b2340;

    /* Disclaimer + chips */
    --note: #eef3fb;
    --note-b: #e1e8f5;
    --chip-bg: #f8fbff;
    --chip-b: #e6eefb;
    --chip-name: #f05a4f;

    /* Features panels */
    --panel-1: #24346d;
    --panel-2: #1f2b59;
    --panel-border: #3a4c9e;
    --btn-1: #28ccf2;
    --btn-2: #11aee0;

    /* Article section */
    --cap: #f6f8fd;
    --cap-b: #e9eefb;

    /* Footer */
    --foot-bg: #0d1530;
    --foot-bg-2: #0b1228;
    --foot-ink: #dfe8ff;
    --foot-muted: #a7b8e1;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -100%, color-mix(in srgb, var(--sec) 35%, transparent), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--pri) 30%, transparent), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    font: 16px/1.65 Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* prevent accidental horizontal scroll from wide effects */
    padding-top: var(--nav-h);
    /* offset for fixed header */
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: min(var(--container), 84%);
    margin-inline: auto
}

/* wider side margins like your images */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--bg-2) 92%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--nav-h)
}

/* Exact DEX logo image */
.site-logo {
    display: flex;
    align-items: center
}

.site-logo img {
    width: 140px;
    height: auto;
    display: block
}

/* Text-only brand styling (used when the image is removed) */
.site-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: var(--text);
    padding: 6px 12px;
    text-decoration: none;
    transition: transform .12s ease, background .15s ease, box-shadow .12s ease, color .12s ease;
}

/* New brand parts */
.brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
}

.brand-main {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, var(--pri), var(--sec));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 6px 24px rgba(122, 99, 255, 0.10);
    display: inline-block;
    padding-right: 4px;
}

/* Tagline / small text under brand */
.brand-tag {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.6px;
    text-transform: none;
    margin-top: 2px;
}

/* Keep header link hover subtle */
.site-logo a:hover .brand-main,
.site-logo a:focus .brand-main {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Slightly smaller on narrow viewports (adjust brand sizing) */
@media (max-width:780px) {
    .brand-main {
        font-size: 16px;
    }

    .brand-tag {
        font-size: 10px;
    }
}

/* Burger (mobile) */
#nav-toggle {
    display: none
}

.burger {
    margin-left: auto;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    position: relative;
}

/* === Privacy / Terms page styles (professional, centralized) === */
.privacy {
    color: var(--ink);
}

/* Only apply the light wrapper for privacy sections that are not using the shared about-hero look */
.privacy:not(.about-hero) .wrapper {
    background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
    padding: 64px 0;
}

.privacy .wrapper .container {
    width: min(var(--container), 92%);
}

.privacy h1 {
    color: var(--ink);
    font-family: Poppins, Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.terms-section {
    padding: 56px 0;
}

.terms-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(13, 21, 48, 0.06);
    color: #223244;
}

.terms-content h1 {
    font-size: 22px;
    margin-bottom: 0.75rem;
}

.post-content p {
    line-height: 1.8;
    color: #3b4a5a;
    margin-bottom: 1rem;
    font-size: 15.5px;
}

.post-content h4 {
    margin-top: 1.25rem;
    margin-bottom: .5rem;
    color: #122033;
}

.post-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.dropcaps p:first-child::first-letter {
    float: left;
    font-size: 3.4rem;
    line-height: 1;
    margin-right: 12px;
    font-weight: 800;
    color: var(--pri);
    font-family: Poppins, Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
}

@media (max-width: 768px) {
    .privacy .wrapper {
        padding: 28px 0;
    }

    .terms-section {
        padding: 28px 0;
    }

    .terms-content {
        padding: 18px;
    }

    .privacy h1 {
        font-size: 22px;
    }
}

.burger::before,
.burger::after,
.burger span {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #cfe3ff;
    border-radius: 2px;
    transition: .25s ease;
}

.burger::before {
    top: 12px
}

.burger span {
    top: 19px
}

.burger::after {
    top: 26px
}

#nav-toggle:checked+label.burger::before {
    transform: translateY(7px) rotate(45deg)
}

#nav-toggle:checked+label.burger span {
    opacity: 0
}

#nav-toggle:checked+label.burger::after {
    transform: translateY(-7px) rotate(-45deg)
}

/* Main nav */
nav.main {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-size: 14.6px;
    letter-spacing: .25px;
}

nav.main a,
nav.main summary {
    color: #e1ebff;
    padding: 10px 12px;
    border-radius: 10px;
    list-style: none;
    cursor: pointer;
    outline: none;
}

nav.main a:hover,
nav.main summary:hover {
    background: var(--hover);
    color: #fff
}

details.dd {
    position: relative
}

details.dd summary {
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none
}

details.dd summary::-webkit-details-marker {
    display: none
}

details.dd summary::after {
    content: "▾";
    font-size: 12px;
    opacity: .8;
    transform: translateY(-1px)
}

details.dd[open] summary {
    background: var(--hover)
}

.drop {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 250px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, #0c152e, #0b1326);
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    animation: pop .14s ease;
}

.drop a {
    padding: 10px 10px;
    border-radius: 8px;
    color: #dfe8ff;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.drop a:hover {
    background: var(--hover)
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* English only (no button effect) */
.lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    padding: 0 2px;
    user-select: none;
    cursor: default;
    transition: color 0.18s;
}

.lang:hover {
    background: transparent;
    color: #6be0ff;
}

.flag {
    width: 25px;
    height: 15px;
    display: inline-block
}

/* Search icon */
.search-trigger {
    margin-left: 6px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #cfe3ff;
    cursor: pointer;
}

.search-trigger svg {
    width: 20px;
    height: 20px;
    stroke: #d6e6ff
}

.search-trigger:hover {
    background: var(--hover)
}

/* Search open/close */
#search-toggle {
    display: none
}

/* Dim page (NO blur) and close on click) */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 10, 22, .60);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

#search-toggle:checked~.overlay {
    opacity: 1;
    pointer-events: auto
}

.overlay[for] {
    cursor: pointer
}

/* Search bar under header, right-aligned; square corners */
.search-wrap {
    position: fixed;
    z-index: 90;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: block;
    pointer-events: none;
}

.search-align {
    display: flex;
    justify-content: flex-end
}

.search-card {
    width: min(520px, 84%);
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 0;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    padding: 6px 4px;
    transform: translateY(-8px);
    opacity: 0;
    transition: .2s ease;
    pointer-events: auto;
}

#search-toggle:checked~.search-wrap .search-card {
    transform: translateY(0);
    opacity: 1
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px 10px;
    color: #111
}

.search-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    color: #111;
    cursor: pointer
}

.search-close:hover {
    background: rgba(0, 0, 0, .06)
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient(1000px 500px at 80% -30%, color-mix(in srgb, var(--sec) 35%, transparent), transparent 60%),
        linear-gradient(180deg, #0c1535, #0b142c 55%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hero-inner {
    min-height: 420px;
    display: grid;
    align-items: center;
    padding-block: 56px
}

h1 {
    margin: 0;
    font-family: "Space Grotesk", system-ui;
    font-weight: 800;
    font-size: clamp(38px, 4.2vw + 8px, 58px);
    /* fixed invalid clamp order + smoother fluid scale */
    line-height: 1.05;
    letter-spacing: -.02em;
    text-shadow: 0 4px 30px rgba(122, 99, 255, .14);
}

.hero svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .42;
    mix-blend-mode: screen;
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(107, 224, 255, .3))
}

.hero .glow {
    stroke: url(#grad1);
    stroke-opacity: .7;
    stroke-width: 2.2;
    fill: none
}

.hero .dots {
    fill: url(#grad2);
    opacity: .9
}

/* Meta (Updated + Authors) */
.meta {
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid #eef1f7;
}

.meta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 22px;
    flex-wrap: wrap;
}

.updated {
    color: #5a6e9c;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .2px;
    background: #f6f9ff;
    border: 1px solid #e7edfb;
    padding: 6px 10px;
    border-radius: 999px;
}

.authors {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--chip-b);
    background: var(--chip-bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}

.chip img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #eef3ff
}

.chip .who {
    line-height: 1.12
}

.chip .name {
    font-weight: 800;
    color: var(--chip-name)
}

.chip .role {
    color: #8ba0c9;
    font-size: 13px
}

/* CONTENT PAGE: Introduction + Registration */
.page {
    background:
        radial-gradient(800px 400px at 95% -5%, rgba(106, 226, 255, .25), transparent 60%),
        linear-gradient(#fff, #fff);
    color: var(--ink);
    padding-block: 36px 44px;
}

.grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: start;
}

/* Left content polish */
.lead h2 {
    font-family: "Space Grotesk", system-ui;
    font-weight: 800;
    font-size: clamp(26px, 2.2vw + 18px, 44px);
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0 0 18px 0;
    color: #22357a;
    position: relative;
}

.lead h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 84px;
    height: 6px;
    background: linear-gradient(90deg, var(--pri), var(--sec));
    border-radius: 6px;
}

.lead p {
    margin: 0 0 18px 0;
    color: var(--ink-2);
    font-size: 17px;
}

/* Registration card – glow ring + icons + micro-interactions */
.reg {
    position: relative;
    background: linear-gradient(180deg, var(--card), var(--card-2));
    border: 1px solid #e5ecf6;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 22px 45px rgba(20, 35, 70, .10);
    overflow: hidden;
    z-index: 5;
}

.reg::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: 30px;
    background: conic-gradient(from 200deg, var(--pri), var(--sec), var(--gold), var(--pri));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .25;
}

.reg::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--sec) 30%, transparent) 0%, transparent 70%);
    filter: blur(8px);
    opacity: .6;
    pointer-events: none;
}

.reg h3 {
    margin: 0 0 22px 0;
    font-family: "Space Grotesk", system-ui;
    font-weight: 800;
    font-size: clamp(22px, 1.6vw + 18px, 36px);
    line-height: 1.15;
    color: #22357a;
    text-align: center;
}

.field {
    background: var(--field);
    border: 1px solid var(--field-b);
    border-radius: 12px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.field:focus-within {
    border-color: color-mix(in srgb, var(--sec) 45%, #cdd6ea);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sec) 22%, transparent);
    transform: translateY(-1px);
}

.ico {
    width: 22px;
    height: 22px;
    color: #6d7ca5;
    display: grid;
    place-items: center
}

.field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent !important;
    /* Remove any background */
    font-size: 16px;
    color: #213157;
    /* Remove box-shadow if any */
    box-shadow: none !important;
}

.field input:focus {
    background: transparent !important;
    box-shadow: none !important;
}

.field input::placeholder {
    color: #8fa0c5
}

/* Error message: reduce margin so it's close to the field */
#reg-block .error-msg {
    display: none;
    color: #e23d3d;
    font-size: 12.5px;
    margin: 0 !important;
    /* absolutely no space above or below */
    font-weight: 600;
}

/* Ensure target is visible below fixed header */
#reg-block {
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* Hide phone field initially, show with .show class */
#reg-block .phone-wrap {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transition: max-height .25s, opacity .18s;
    /* Remove space when hidden */
    pointer-events: none;
}

#reg-block .phone-wrap.show {
    max-height: 120px;
    margin-top: 14px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
}

/* When phone is shown, move button below phone field */
#reg-block .phone-wrap.show+.cta {
    margin-top: 14px;
    display: block;
}

.cta {
    height: 50px;
    border-radius: 26px;
    background: linear-gradient(180deg, var(--btn-1), var(--btn-2));
    /* match Get Started button */
    color: #07233a;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: .2px;
    border: none;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(46, 198, 255, .18);
    text-transform: uppercase;
    display: inline-grid;
    place-items: center;
    padding: 0 36px;
    transition: transform .15s ease, filter .2s ease, background .18s;
}

.cta:hover,
.cta:focus {
    filter: brightness(1.05);
    background: linear-gradient(180deg, var(--btn-2), var(--btn-1));
    color: #fff;
}

.cta:active {
    transform: translateY(1px)
}

.cta::after {
    display: none;
}

/* Disclaimer (outside the form) */
.disclaimer {
    margin-top: 28px;
    background: var(--note);
    border: 1px solid var(--note-b);
    border-radius: 26px;
    padding: 16px 18px;
    color: #2f3b62;
    font-size: 14.5px;
    font-style: italic;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.disc-ico {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: #3c5aa8
}

/* FEATURES SECTION (Pros / Cons) */
.features {
    background: #fff;
    color: var(--ink);
    padding: 22px 0 56px;
}

.features .title {
    font-family: "Space Grotesk", system-ui;
    font-weight: 800;
    font-size: clamp(26px, 2.6vw + 18px, 46px);
    color: #22357a;
    margin: 14px 0 22px 0;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel {
    position: relative;
    border-radius: 36px;
    padding: 28px;
    background: linear-gradient(180deg, var(--panel-1), var(--panel-2));
    color: #eaf1ff;
    border: 1px solid color-mix(in srgb, var(--panel-border) 60%, transparent);
    box-shadow: 0 18px 40px rgba(22, 30, 70, .3);
    overflow: hidden;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 38px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(107, 224, 255, .4), rgba(122, 99, 255, .4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .25;
    pointer-events: none;
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px rgba(22, 30, 70, .38)
}

.panel h3 {
    font-family: "Space Grotesk";
    font-weight: 800;
    font-size: 30px;
    margin: 0 0 16px 0;
    letter-spacing: .2px;
}

.feature-list {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.feature-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #9cdcff 60%, #4bc0ff);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08) inset, 0 0 10px rgba(75, 192, 255, .5);
    flex: 0 0 9px;
}

.panel.cons .feature-list li::before {
    background: radial-gradient(circle at 30% 30%, #fff, #ffd1d1 60%, #ff7c7c);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08) inset, 0 0 10px rgba(255, 124, 124, .45);
}

.action {
    display: inline-grid;
    place-items: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 22px;
    color: #07233a;
    font-weight: 900;
    letter-spacing: .2px;
    text-align: center;
    background: linear-gradient(180deg, var(--btn-1), var(--btn-2));
    box-shadow: 0 10px 22px rgba(46, 198, 255, .3);
    cursor: pointer;
    user-select: none;
    transition: transform .15s ease, filter .2s ease, background .18s;
    margin-top: 10px;
    align-self: center;
    min-width: 160px;
    font-size: 16px;
}

.action:hover,
.action:focus {
    filter: brightness(1.05);
    background: linear-gradient(180deg, var(--btn-2), var(--btn-1));
    color: #fff;
}

.action:active {
    transform: translateY(1px)
}

/* ARTICLE SECTION BELOW FEATURES (note + images + content) */
.article {
    background: #fff;
    color: var(--ink);
    padding: 10px 0 70px;
}

.source-note {
    background: var(--note);
    border: 1px solid var(--note-b);
    color: #2e3f6d;
    font-style: italic;
    border-radius: 26px;
    padding: 14px 18px;
    display: inline-block;
}

.media {
    margin: 28px 0;
    position: relative;

    overflow: hidden;
    box-shadow: 0 24px 50px rgba(22, 30, 70, .18);
    isolation: isolate;
}

.media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 100% -10%, rgba(107, 224, 255, .25), transparent 40%),
        radial-gradient(140% 120% at -10% 110%, rgba(122, 99, 255, .18), transparent 40%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.media img {
    display: block;
    width: 100%;
    height: auto
}

.section {
    margin-top: 36px
}

.section h2 {
    font-family: "Space Grotesk";
    font-weight: 800;
    color: #22357a;
    font-size: clamp(26px, 2.2vw + 18px, 44px);
    margin: 0 0 14px 0;
}

.section p {
    color: var(--ink-2);
    margin: 0 0 16px 0;
    font-size: 17px
}

.bullets {
    color: var(--ink-2);
    margin: 8px 0 18px 0;
    padding-left: 22px
}

.bullets li {
    margin: 6px 0
}

/* FAQ */
.faq {
    background: #fff;
    color: var(--ink);
    padding: 8px 0 60px;
}

.faq .title {
    font-family: "Space Grotesk";
    font-weight: 800;
    color: #22357a;
    font-size: clamp(28px, 2.6vw + 18px, 48px);
    margin: 0 0 14px 0;
}

.accordion {
    display: grid;
    gap: 18px
}

details.qa {
    background: #f7f9ff;
    border: 1px solid #e6ecf8;
    border-radius: 16px;
    padding: 6px 10px;
}

details.qa[open] {
    box-shadow: 0 8px 20px rgba(22, 30, 70, .06)
}

details.qa summary {
    list-style: none;
    cursor: pointer;
    padding: 18px;
    font-weight: 800;
    font-size: 18px;
    color: #0f2c63;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

details.qa summary::-webkit-details-marker {
    display: none
}

details.qa summary .chev {
    font-size: 20px;
    color: #8194c8
}

details.qa[open] summary .chev {
    transform: rotate(180deg)
}

details.qa .answer {
    padding: 0 18px 18px 18px;
    color: #465886
}

/* Conclusion */
.conclusion {
    background: #fff;
    color: var(--ink);
    padding: 0 0 28px
}

.conclusion h2 {
    font-family: "Space Grotesk";
    font-weight: 800;
    color: #22357a;
    font-size: clamp(28px, 2.6vw + 18px, 48px);
    margin: 0 0 12px 0;
}

.conclusion p {
    color: var(--ink-2);
    font-size: 17px
}

/* Big CTA */
.cta-band {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    padding: 30px 0 70px;
    color: #13214a;
    text-align: center;
}

.cta-band .eyebrow {
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 12px;
    opacity: .7;
    margin-bottom: 14px
}

.cta-band h2 {
    font-family: "Space Grotesk";
    font-weight: 800;
    font-size: clamp(34px, 5.6vw + 12px, 72px);
    color: #253a86;
    margin: 0 0 22px 0;
    text-shadow: 0 6px 26px rgba(122, 99, 255, .14);
}

.cta-big {
    display: inline-grid;
    place-items: center;
    height: 50px;
    padding: 0 36px;
    border-radius: 26px;
    background: linear-gradient(180deg, var(--btn-1), var(--btn-2));
    /* match features section button */
    color: #07233a;
    font-weight: 900;
    letter-spacing: .2px;
    box-shadow: 0 12px 28px rgba(46, 198, 255, .18);
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease, background .18s, color .18s;
}

.cta-big:hover,
.cta-big:focus {
    filter: brightness(1.05);
    background: linear-gradient(180deg, var(--btn-2), var(--btn-1));
    color: #fff;
}

.cta-big:active {
    transform: translateY(1px)
}

/* Risk Awareness banner above footer */
.aware-wrap {
    background: #fff;
    color: var(--ink);
    padding: 12px 0 30px
}

.aware {
    background: #f7fbff;
    border: 1px solid #e6effb;
    color: #2e3f6d;
    border-radius: 42px;
    padding: 20px 24px;
    font-style: italic;
}

/* Footer */
.footer {
    background:
        radial-gradient(1000px 600px at -10% -10%, rgba(107, 224, 255, .18), transparent 60%),
        radial-gradient(1000px 600px at 110% 110%, rgba(122, 99, 255, .16), transparent 60%),
        linear-gradient(180deg, var(--foot-bg), var(--foot-bg-2));
    color: var(--foot-ink);
    padding: 36px 0 18px;
}

.foot-grid {
    display: grid;
    /* three columns: logo / flexible center / right-aligned links */
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.foot-brand img {
    width: 110px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, .1))
}

/* Text-only footer brand (when no image is used) */
.foot-brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: var(--foot-ink);
    padding: 6px 12px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: transform .12s ease, background .15s ease, box-shadow .12s ease, color .12s ease;
}

.foot-brand a::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--pri), var(--sec));
    box-shadow: 0 0 8px color-mix(in srgb, var(--pri) 45%, transparent);
    display: inline-block;
}

.foot-brand a:hover,
.foot-brand a:focus {
    background: color-mix(in srgb, var(--foot-bg-2) 8%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: var(--foot-ink);
}

@media (max-width:780px) {
    .foot-brand a {
        font-size: 16px;
        padding: 5px 10px;
    }
}

.foot-col h4 {
    margin: 0 0 12px 0;
    font-size: 20px
}

.foot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    /* horizontal links on wide screens to sit in-line with the logo */
    display: flex;
    gap: 18px;
    align-items: center;
}

/* Move the last foot column (where your About/Contact links live) to the right-most column */
.foot-col:last-child {
    grid-column: 3;
    justify-self: end;
}

.foot-list a {
    color: var(--foot-ink);
    opacity: .9
}

.foot-list a:hover {
    opacity: 1;
    text-decoration: underline
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 10px
}

.soc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1a2246;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: color 0.18s, background 0.18s;
}

.soc:hover,
.soc:focus {
    color: #28ccf2;
    background: #22357a;
}

.foot-small {
    margin-top: 26px;
    color: var(--foot-muted);
    font-size: 14px;
    line-height: 1.55;
}

.foot-bottom {
    margin-top: 18px;
    display: flex;
    align-items: center;
    color: var(--foot-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
    gap: 12px;
}

.foot-bottom a {
    color: #9fc7ff;
}

.foot-bottom a:hover {
    text-decoration: underline;
}

/* Push the first link (Privacy Policy in your markup) to the far right */
.foot-bottom a:first-child {
    margin-left: auto;
}

/* On small screens stack and center the links */
@media (max-width:600px) {
    .foot-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    .foot-bottom a:first-child {
        margin-left: 0;
        order: 2;
        /* keep visual order sensible when stacked */
    }
}

/* Footer: revert links to vertical list on small screens */
@media (max-width:600px) {
    .foot-list {
        display: grid;
        gap: 8px;
    }
}

/* Responsive */
@media (max-width:1100px) {
    .grid {
        grid-template-columns: 1fr
    }

    .reg {
        max-width: 720px;
        margin-inline: auto
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:980px) {
    .burger {
        display: block
    }

    nav.main {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        height: auto;
        display: grid;
        gap: 6px;
        padding: 14px;
        border-radius: 0 0 18px 18px;
        background: linear-gradient(180deg, #0c152e, #0b1326);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        transform: translateY(-120%);
        transition: .2s ease;
    }

    #nav-toggle:checked~nav.main {
        transform: translateY(0)
    }

    details.dd .drop {
        position: static;
        box-shadow: none
    }

    .search-card {
        width: min(92%, 520px)
    }

    .hero-inner {
        min-height: 420px;
        padding-block: 56px
    }

    .meta-inner {
        gap: 14px
    }

    .f-grid {
        grid-template-columns: 1fr
    }

    .foot-grid {
        grid-template-columns: 1fr
    }

    .container {
        width: 90%
    }

    /* slightly wider on small screens */
}

@media (max-width:780px) {
    .hero-inner {
        min-height: 380px;
        padding-block: 48px
    }

    h1 {
        font-size: clamp(34px, 7vw, 52px)
    }

    .grid {
        gap: 28px
    }

    .reg {
        padding: 24px
    }

    .reg h3 {
        font-size: clamp(22px, 5.2vw, 32px)
    }

    .field {
        height: 52px
    }

    .cta {
        height: 48px;
        font-size: 15px
    }

    .action {
        height: 42px;
        font-size: 15px;
        padding: 0 20px
    }

    .panel {
        padding: 24px;
        border-radius: 30px
    }

    .panel h3 {
        font-size: 26px
    }
}

/* Small phones */
@media (max-width:600px) {
    .container {
        width: 94%
    }

    .hero-inner {
        min-height: 340px;
        padding-block: 42px
    }

    h1 {
        font-size: clamp(30px, 8vw, 46px)
    }

    .lead h2,
    .section h2,
    .features .title,
    .faq .title,
    .conclusion h2,
    .cta-band h2 {
        font-size: clamp(26px, 7.6vw, 42px)
    }

    .reg {
        padding: 20px;
        border-radius: 22px
    }

    .reg::before {
        border-radius: 24px
    }

    .field {
        margin-bottom: 12px;
        height: 50px
    }

    #reg-block .error-msg {
        margin-left: 4px
    }

    .cta {
        height: 46px
    }

    .f-grid {
        gap: 20px
    }

    .panel {
        padding: 22px
    }

    .panel h3 {
        font-size: 24px
    }

    .feature-list {
        gap: 8px
    }

    .cta-band {
        padding: 30px 0 56px
    }
}

/* Very small / narrow (older phones) */
@media (max-width:420px) {
    h1 {
        font-size: clamp(26px, 9.5vw, 40px)
    }

    .hero-inner {
        min-height: 300px;
        padding-block: 36px
    }

    .panel,
    .reg {
        padding: 18px
    }

    .field {
        height: 48px;
        gap: 10px;
        padding: 0 12px
    }

    .cta,
    .action {
        font-size: 14px
    }

    .panel h3 {
        font-size: 22px
    }
}

/* Mobile search trigger hidden by default */
.mobile-search-trigger {
    display: none
}

/* Phone field always visible – override old reveal logic */
#reg-block .phone-wrap {
    max-height: none !important;
    margin-top: 0 !important;
    overflow: visible !important;
}

#reg-block #f-phone {
    position: relative;
    display: flex;
    align-items: center;
}

#reg-block #f-phone .iti {
    width: 100%
}

#reg-block #f-phone .iti__country-list {
    left: 0 !important;
    right: 0 !important;
    width: 320px !important;
    /* wider for full country names */
    min-width: 320px !important;
    max-width: 100% !important;
    top: calc(100% + 6px) !important;
    box-shadow: 0 12px 30px rgba(22, 30, 70, .18);
    border-radius: 12px;
    z-index: 9999;
}

/* Unify phone error styling with other errors */
#reg-block #err-phone.error-msg {
    display: none;
    color: #e23d3d;
    font-size: 12.5px;
    margin: 4px 2px 10px 4px;
    font-weight: 600;
}

#reg-block #f-phone.error {
    border-color: #e23d3d !important;
    box-shadow: 0 0 0 2px rgba(226, 61, 61, .12) !important
}

/* Hide original nav search icon on mobile, show mobile version */
@media (max-width:980px) {
    nav.main .search-trigger {
        display: none
    }

    .mobile-search-trigger {
        display: grid;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        margin-left: 6px;
    }
}

/* Author Modal */
.author-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.author-modal.active {
    display: flex;
}

.author-content {
    background: #fff;
    color: #222;
    max-width: 540px;
    width: 92%;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .3);
    padding: 24px;
    overflow-y: auto;
    max-height: 80vh;
    position: relative;
    font-size: 16px;
    line-height: 1.55;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.author-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #eee;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #e00;
}

.author-footer {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

.author-footer a {
    color: #0056d6;
    font-weight: 600;
    text-decoration: none;
}

.author-footer a:hover {
    text-decoration: underline;
}

/* Mobile adjustments: search icon before burger + menu scroll region */
@media (max-width:980px) {
    .nav-row {
        display: flex;
        align-items: center;
    }

    .mobile-search-trigger {
        order: 1;
    }

    .burger {
        order: 2;
        margin-left: auto;
        /* remove auto push so order works */
    }

    nav.main {
        order: 3;
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Optional: nicer scroll lock compensation (avoid layout shift if you add custom scrollbar width) */
    body.no-scroll {
        overflow: hidden;
        touch-action: none;
    }
}

/* When menu open add subtle backdrop (reuse existing overlay pattern) */
@media (max-width:980px) {
    #nav-toggle:checked~nav.main {
        box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
    }
}

/* Override: small screens – search left, burger right (opposite sides) */
@media (max-width:980px) {
    .nav-row {
        display: flex;
        align-items: center;
    }

    .mobile-search-trigger {
        order: 0;
        margin-left: 21px;
    }

    .burger {
        order: 2;
        margin-left: auto;
        /* pushes burger to far right */
    }

    nav.main {
        order: 3;
    }
}

/* Final override: mobile search icon sits directly with burger on the right */
@media (max-width:980px) {
    .nav-row {
        display: flex;
        align-items: center;
    }

    .site-logo {
        order: 0;
    }

    .mobile-search-trigger {
        order: 10;
        margin-left: auto;
        /* pushes search (and following burger) to right edge */
        margin-right: 6px;
    }

    .burger {
        order: 11;
        margin-left: 0;
        /* sits right beside search icon */
    }

    nav.main {
        order: 20;
    }
}

/* Raise registration card above any hidden layers */
.reg {
    /* ...existing code... */
    position: relative;
    z-index: 5;
}

/* Mobile: disable nav mouse/touch events when closed to prevent invisible overlay blocking first field */
@media (max-width:980px) {
    #nav-toggle:not(:checked)~nav.main {
        pointer-events: none;
        visibility: hidden;
    }

    #nav-toggle:checked~nav.main {
        pointer-events: auto;
        visibility: visible;
    }
}

/* Force black text in the  phone dropdown (country names) */
.iti--container .iti__country-name,
#f-phone .iti__country-name {
    color: #111111 !important;
    /* black */
}

/* Increase search bar height inside the phone dropdown */
.iti--container .iti__search-input,
#f-phone .iti__search-input {
    height: 22px !important;

}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    color: var(--text);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(1200px 600px at 80% -100%, rgba(107, 224, 255, 0.1), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(122, 99, 255, 0.08), transparent 60%);
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: clamp(38px, 4.2vw + 8px, 58px);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    animation: fadeInUp 0.8s ease;
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--text);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    list-style: none;
    /* remove default bullet */
    padding: 0;
    /* reset any user-agent padding */
    margin: 0;
    /* ensure no leading margin/bullet spacing */
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pri);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-values {
    padding: 100px 0;
    background: var(--card);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: "Space Grotesk", system-ui;
    font-size: clamp(32px, 3vw + 12px, 48px);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--ink-2);
    max-width: 600px;
    margin: 0 auto;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mission-card {
    background: var(--field);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pri), var(--sec));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(107, 224, 255, 0.3);
}

.mission-card h3 {
    color: var(--ink);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-card p {
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
}

.story-section {
    padding: 100px 0;
    background: white;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-family: "Space Grotesk", system-ui;
    font-size: clamp(32px, 3vw + 12px, 48px);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: var(--ink-2);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.story-highlights {
    margin-top: 3rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card);
    border-radius: 12px;
    border-left: 4px solid var(--pri);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pri), var(--sec));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.highlight-content h4 {
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-content p {
    color: var(--ink-2);
    margin: 0;
    font-size: 0.95rem;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.story-image img:hover {
    transform: scale(1.02);
}

.team-section {
    padding: 100px 0;
    background: var(--card);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--field);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h4 {
    color: var(--ink);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.member-role {
    color: var(--pri);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.member-bio {
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(32px, 3vw + 12px, 48px);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--pri), var(--sec));
    color: var(--ink);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 25px rgba(107, 224, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(107, 224, 255, 0.4);
    color: var(--ink);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 80px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .story-highlights {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .story-text h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .mission-card,
    .team-member {
        padding: 1.5rem;
    }

    .member-info {
        padding: 1.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================
   Language dropdown (header)
   =========================== */

/* Prevent clipping */
.site-header,
.site-header .container,
nav.main { overflow: visible; }

/* Trigger container */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  font-weight: 700; /* match header links */
}

/* Trigger button */
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  text-transform: uppercase;
  font-weight: inherit;
}
nav.main .lang-switch .lang-btn:hover,
nav.main .lang-switch .lang-btn:focus-visible {
  background: transparent !important;
  color: #6B7280 !important;
}

/* Flag (square) */
.lang-btn .flag-ico {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 0;
  display: inline-block;
}

/* EN label in button */
.lang-btn .lang-code {
  display: inline-flex;
  align-items: center;
  height: 14px;      /* align with flag height */
  line-height: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Filled caret */
.lang-btn .caret {
  width: 18px;
  height: 18px;
  transform: translateY(1px);
}
.lang-btn .caret path { fill: currentColor; }

/* Dropdown panel (desktop/base) */
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);   /* desktop gap is OK */
  width: 180px;
  max-height: 300px;
  overflow: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 10px 0 0 10px; /* only left corners rounded */
  border: 1px solid #3F3F46;    /* dark grey border */
  box-shadow:
    0 20px 40px rgba(0,0,0,.25),
    0 2px 8px rgba(0,0,0,.12);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 1100;

  opacity: 0;
  transform: translateY(4px) scale(.98);
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;

  /* Dark scrollbar for Firefox */
  scrollbar-color: #3F3F46 transparent;
  scrollbar-width: auto;
}

/* Open state */
.lang-switch.open .lang-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Items */
.lang-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  background: transparent;
  color: #000; /* black by default */
  cursor: pointer;
}
nav.main .lang-menu .lang-link,
nav.main .lang-menu .lang-link:link,
nav.main .lang-menu .lang-link:visited {
  color: #000 !important;
  background: transparent !important;
}
nav.main .lang-menu .lang-link:hover,
nav.main .lang-menu .lang-link:focus-visible {
  color: #6B7280 !important; /* grey on hover */
  background: transparent !important;
}
nav.main .lang-menu .lang-link.is-active {
  color: #000 !important;
  background: #F3F4F6 !important;
  font-weight: 700;
  font-size: 13px;
}

/* Flags inside items (square) */
.lang-link .flag-ico {
  width: 20px;
  height: 14px;
  border-radius: 0;
  object-fit: cover;
}

/* Scrollbar (WebKit) */
.lang-menu::-webkit-scrollbar { width: 10px; }
.lang-menu::-webkit-scrollbar-track { background: transparent; }
.lang-menu::-webkit-scrollbar-thumb {
  background: #3F3F46;
  border-radius: 8px;
}
.lang-menu::-webkit-scrollbar-thumb:hover { background: #52525B; }

/* ===========================
   Responsive (phones/tablets)
   - No gap above dropdown on small screens
   - Shorter dropdown length (height)
   =========================== */
@media (max-width: 768px) {
  .lang-btn { padding: 8px 10px; }

  .lang-menu {
    position: absolute;    /* anchor to the trigger */
    top: 100% !important;  /* start immediately below selected language */
    margin-top: -1px;      /* overlap borders by 1px to remove any visible seam */
    right: 0;
    left: auto;
    width: 100%;          /* compact width like the reference */
    max-height: 320px;     /* REDUCED length/height like in your picture */
    transform: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .lang-switch.open .lang-menu { transform: none !important; }

  .lang-link {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Very narrow devices — keep the short length and avoid horizontal overflow */
@media (max-width: 390px) {
  .lang-menu {
    width: min(100%, 92vw);
    max-height: 320px;     /* keep the same short length */
    right: 8px;            /* small gutter if it would touch screen edge */
  }
}
/* Align Language with ABOUT/CONTACT in burger (small screens) */
@media (max-width: 980px) {
  /* Set a single source of truth for the left padding used by nav items */
  .site-header { --nav-left-pad: 12px; } /* adjust if your links use a different pad */

  /* Remove the extra left margin on the language trigger */
  .lang-switch {
    margin: 0 !important;           /* remove margin-left:16px on mobile */
    padding: 0 !important;
    width: 100%;
    display: block;                  /* stack like other nav items */
  }

  /* Make the language button align with ABOUT/CONTACT */
  .lang-switch .lang-btn {
    width: 100%;
    justify-content: flex-start;
    padding-left: var(--nav-left-pad);
    padding-right: 10px;
    box-sizing: border-box;
    margin: 0 !important;           /* ensure no residual margin */
  }

  /* Dropdown panel should also align with the same left edge */
  .lang-switch .lang-menu {
    left: 0;                         /* align to nav’s left edge */
    right: 0;
    width: 100%;
    top: 100% !important;            /* no gap under the trigger */
    margin-top: -1px;                /* remove border seam */
    max-height: 320px;               /* your preferred short length */
    transform: none !important;
    box-shadow: none;                /* look consistent inside burger */
    border-left: none;               /* avoid extra inner border line */
    border-radius: 0 0 12px 12px;    /* subtle rounding on bottom only (optional) */
  }

  /* Language list items align with the same left pad */
  .lang-switch .lang-link {
    padding-left: var(--nav-left-pad);
  }
}