/* ===========================================================================
   Stakemonry — UK AI trading platform
   Design profile: animation-led. Dark ink navy + sovereign gold.
   Tokens (design.md §1): one accent, one neutral family, one scale each for
   radius and shadow, one theme. No mid-site flip.
   =========================================================================== */

:root {
    --bg: #0e1420;
    --surface: #151d2e;
    --surface-2: #1b2539;
    --border: #263349;
    --border-strong: #33445f;
    --text: #eef2f8;
    --text-muted: #9fadc4;
    --accent: #e6b13c;
    --accent-hover: #f2c455;
    --accent-tint: rgba(230, 177, 60, 0.12);
    --accent-soft: rgba(230, 177, 60, 0.22);
    --accent-ink: #132039;
    --good: #4ade80;
    --bad: #f87171;

    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;

    --shadow-sm: 0 1px 2px rgba(4, 10, 20, 0.5), 0 2px 8px rgba(4, 10, 20, 0.35);
    --shadow-md: 0 1px 3px rgba(4, 10, 20, 0.55), 0 10px 28px rgba(4, 10, 20, 0.45);
    --shadow-lg: 0 2px 6px rgba(4, 10, 20, 0.6), 0 24px 60px rgba(4, 10, 20, 0.55);

    --container: 1200px;
    --header-h: 72px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg, iframe, video, canvas { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
strong { color: #fff; font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--accent); color: var(--accent-ink);
    padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

::selection { background: var(--accent-soft); color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: 600 0.97rem/1 var(--font-sans);
    padding: 14px 24px; border-radius: var(--r-sm);
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(14, 20, 32, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { background: rgba(11, 16, 26, 0.96); box-shadow: var(--shadow-md); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { flex: none; }
.brand-word { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; }

.site-nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; cursor: pointer;
    color: var(--text); font: 500 0.93rem/1 var(--font-sans);
    padding: 10px 12px; border-radius: var(--r-sm);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-trigger:hover, .nav-trigger:focus-visible { background: var(--surface-2); color: var(--accent); }
.nav-trigger .icon { transition: transform 0.18s ease; }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 250px; padding: 8px;
    background: #121a2b; border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 110;
}
.dropdown::before {
    content: ""; position: absolute; top: -5px; left: 22px;
    width: 10px; height: 10px; background: #121a2b;
    border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.nav-item { position: relative; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:last-child .dropdown { left: auto; right: 0; }
.nav-item:last-child .dropdown::before { left: auto; right: 22px; }

.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a {
    display: block; padding: 10px 12px; border-radius: 8px;
    color: var(--text); font-size: 0.92rem;
    transition: background 0.14s ease, color 0.14s ease;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--accent-tint); color: var(--accent); }
.dropdown a.is-active { color: var(--accent); background: var(--accent-tint); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-burger {
    display: none; background: none; border: 1px solid var(--border-strong);
    border-radius: var(--r-sm); padding: 9px; color: var(--text); cursor: pointer;
}
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger.is-open svg { display: none; }
.nav-burger .icon-close-alt { display: none; }
.nav-burger.is-open .icon-close-alt { display: block; }

.mobile-nav {
    display: none; padding: 10px clamp(16px, 4vw, 40px) 22px;
    border-top: 1px solid var(--border); max-height: 70vh; overflow-y: auto;
    background: #101828;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-group + .mobile-nav-group { margin-top: 6px; }
.mobile-nav-trigger {
    display: flex; width: 100%; align-items: center; justify-content: space-between;
    background: none; border: 0; color: var(--text); cursor: pointer;
    font: 600 0.95rem/1 var(--font-sans); padding: 12px 6px;
}
.mobile-nav-trigger .icon { transition: transform 0.18s ease; }
.mobile-nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-nav-panel ul { list-style: none; margin: 0; padding: 0 0 6px; }
.mobile-nav-panel a { display: block; padding: 9px 10px; color: var(--text-muted); border-radius: 8px; font-size: 0.92rem; }
.mobile-nav-panel a:hover, .mobile-nav-panel a.is-active { background: var(--accent-tint); color: var(--accent); }
.mobile-nav .btn { margin-top: 12px; }

/* ----------------------------------------------------------------- ticker */
.ticker-row { background: #0b111d; border-bottom: 1px solid var(--border); }
/* the injected TradingView host can exceed small viewports; clip it, never the page */
.tv-ticker-host { max-width: 100%; overflow: hidden; }

/* ------------------------------------------------- injected widgets tuning */
/* calculator modal title (module var chain unreliable across sheets) */
.calc-modal__title { color: #eef2f8; }
.calc-modal__legal { color: #b9c5da; }
/* the calculator modal's form submit renders white-on-accent from its own
   template; enforce readable ink-on-gold from the site layer */
.calc-modal__content input[type="submit"] { color: #132039 !important; }

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs { padding: 14px 0 2px; font-size: 0.86rem; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
.breadcrumb-list li + li::before { content: "›"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb-list a { color: var(--text-muted); }
.breadcrumb-list a:hover { color: var(--accent); }

/* ------------------------------------------------------------------- hero */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(48px, 7vw, 92px) 0 clamp(48px, 6vw, 80px);
    background:
        radial-gradient(1100px 520px at 78% -10%, rgba(230, 177, 60, 0.14), transparent 60%),
        radial-gradient(900px 480px at -10% 25%, rgba(46, 91, 173, 0.16), transparent 60%),
        linear-gradient(180deg, #101828 0%, var(--bg) 82%);
}
.hero__texture {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(159, 173, 196, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 173, 196, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(900px 500px at 60% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(900px 500px at 60% 20%, #000 30%, transparent 75%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-areas: "heading form" "rest form";
    gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 56px);
    align-items: start;
}
.hero__heading-col { grid-area: heading; }
.hero__form-wrap { grid-area: form; align-self: center; }
.hero__rest { grid-area: rest; }
.hero__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-tint);
    border: 1px solid var(--accent-soft); border-radius: 999px;
    padding: 6px 14px; margin-bottom: 18px;
}
.hero__kicker .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.hero h1 { margin-bottom: 0.5em; }
.hero__lead { font-size: 1.08rem; color: var(--text-muted); max-width: 56ch; }
.hero__flags { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.hero__flags-label { font-size: 0.9rem; color: var(--text-muted); }
.flag-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 0.86rem; color: var(--text); }
.flag-chip svg { border-radius: 3px; display: block; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 10px 16px 10px 10px; color: var(--text);
    font-size: 0.9rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, border-color 0.16s ease;
}
.hero-badge:hover { transform: translateY(-2px); border-color: var(--accent-soft); color: var(--accent); }

.hero__form-note { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 12px 0 0; font-size: 0.86rem; color: var(--text-muted); text-align: center; }

/* form block (formFactory wrapper) */
.form-block {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow-md);
    padding: clamp(18px, 2.6vw, 28px);
}
.form-block__intro { margin: 0 0 12px; font-size: 0.92rem; color: var(--text-muted); }
.form-block .form-legal { margin: 12px 0 0; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
.form-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent); }
.form-heading { font-size: 1.02rem; font-weight: 700; text-align: center; margin: 0 0 4px; }
.form-subheading { text-align: center; font-size: 0.86rem; color: var(--text-muted); margin: 0 0 12px; }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(44px, 6vw, 84px) 0; position: relative; }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }
.section--deep { background: #0b111d; border-block: 1px solid var(--border); }
.section__header { max-width: 760px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.section__header p { color: var(--text-muted); font-size: 1.02rem; }
.section__header--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.eyebrow {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}

/* decorative section motif */
.section-motif { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.section-motif svg { position: absolute; opacity: 0.5; }

/* ------------------------------------------------------------------ cards */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    padding: clamp(18px, 2.4vw, 26px);
    transition: transform 0.17s ease, box-shadow 0.17s ease, border-color 0.17s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card--link { display: block; color: var(--text); }
.card--link:hover { color: var(--text); }
.card--link .card__cta { color: var(--accent); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }

.icon-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 13px;
    background: var(--accent-tint); color: var(--accent);
    border: 1px solid var(--accent-soft);
    flex: none; margin-bottom: 14px;
}
.icon-badge--inline { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 0; }
.form-shell .form-block { padding-top: 6px; }

.card-grid { display: grid; gap: 18px; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--stagger { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--stagger .card:nth-child(2) { transform: translateY(16px); }
.card-grid--stagger .card:nth-child(2):hover { transform: translateY(13px); }

/* ------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform 0.17s ease, box-shadow 0.17s ease; }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 0.95rem; margin-bottom: 12px;
    box-shadow: 0 0 0 5px var(--accent-tint);
}
.step h3 { font-size: 1.04rem; margin-bottom: 0.35em; }
.step p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------ comparison */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; margin: 0; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.compare thead th { background: var(--surface-2); font-size: 0.98rem; }
.compare thead th:nth-child(2) { color: var(--accent); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text-muted); }
.tick-yes { color: var(--good); font-size: 1.1rem; }
.tick-no { color: var(--bad); font-size: 1.1rem; }

/* tables (docs pages) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); background: var(--surface); margin: 0 0 1.4em; }
.table-wrap table { width: 100%; border-collapse: collapse; margin: 0; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.table-wrap thead th { background: var(--surface-2); color: var(--text); }
.table-wrap tbody tr:nth-child(even) { background: rgba(27, 37, 57, 0.4); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------- exchange logos */
.exchange-block { text-align: center; }
.exchange-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.exchange-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 160px; height: 56px; border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.exchange-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.exchange-chip--dark { background: #0f172a; }
.exchange-chip img { height: 28px; width: auto; max-width: 128px; display: block; }

/* -------------------------------------------------------------- reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; transition: transform 0.17s ease, box-shadow 0.17s ease; }
.review:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-soft); flex: none; }
.review__name { font-weight: 700; margin: 0; }
.review__role { color: var(--text-muted); font-size: 0.86rem; margin: 0; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.review__stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; color: var(--text-muted); }
.review__stat strong { display: block; color: var(--accent); font-size: 0.94rem; }
.review p { font-size: 0.94rem; color: var(--text-muted); margin: 0; }
.reviews-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 16px; }

/* --------------------------------------------------------- company facts */
.company-block { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.company-facts { display: grid; gap: 12px; margin: 18px 0 0; }
.company-fact { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; font-size: 0.92rem; }
.company-fact .icon { color: var(--accent); flex: none; margin-top: 2px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }

/* ------------------------------------------------------------------ faq */
.faq-list { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item__q {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px;
    background: none; border: 0; cursor: pointer; text-align: left;
    color: var(--text); font: 600 0.99rem/1.4 var(--font-sans);
    padding: 16px 18px;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__q .icon { flex: none; color: var(--accent); transition: transform 0.18s ease; }
.faq-item.is-open .faq-item__q .icon { transform: rotate(180deg); }
.faq-item__a { display: none; padding: 0 18px 16px; color: var(--text-muted); font-size: 0.94rem; }
.faq-item.is-open .faq-item__a { display: block; }
.faq-item__a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- calc */
.calc-section {
    background:
        radial-gradient(800px 400px at 85% 0%, rgba(230, 177, 60, 0.07), transparent 60%),
        var(--surface);
    border-block: 1px solid var(--border);
}
.calc-section .section__header { position: relative; }

/* --------------------------------------------------------------- footer */
.site-footer { background: #0a0f1a; border-top: 1px solid var(--border); padding: clamp(40px, 5vw, 64px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(150px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.brand-footer { margin-bottom: 12px; }
.footer-brand-note { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact { color: var(--text-muted); font-size: 0.88rem; }
.footer-contact .icon { color: var(--accent); vertical-align: -3px; margin-right: 4px; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); }

.footer-disclaimer { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid var(--border); }
.footer-disclaimer h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.footer-disclaimer p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.6; max-width: 110ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
.footer-legal-links { display: flex; gap: 8px; align-items: center; }
.footer-legal-links a { color: var(--text-muted); }
.footer-legal-links a:hover { color: var(--accent); }

/* ---------------------------------------------------------- page heroes */
.page-hero {
    position: relative; overflow: hidden;
    padding: clamp(40px, 6vw, 76px) 0;
    background:
        radial-gradient(900px 420px at 82% -20%, rgba(230, 177, 60, 0.13), transparent 62%),
        linear-gradient(180deg, #101828 0%, var(--bg) 90%);
    border-bottom: 1px solid var(--border);
}
.page-hero__texture {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(159, 173, 196, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 173, 196, 0.045) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(700px 380px at 70% 10%, #000 25%, transparent 72%);
    -webkit-mask-image: radial-gradient(700px 380px at 70% 10%, #000 25%, transparent 72%);
}
.page-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: clamp(28px, 4vw, 52px); align-items: center; }
.page-hero p { color: var(--text-muted); }
.page-hero__motif { position: absolute; right: -40px; bottom: -30px; width: 320px; color: var(--accent); opacity: 0.5; pointer-events: none; }

/* ------------------------------------------------------------- doc pages */
.doc-page h2 { margin-top: 1.6em; }
.doc-page h2:first-child { margin-top: 0; }
.doc-page p { color: var(--text-muted); }
.doc-page li { color: var(--text-muted); margin-bottom: 0.4em; }
.doc-page .table-wrap p { color: var(--text-muted); }
.doc-content { max-width: 900px; }
.callout {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--accent-soft);
    border-radius: var(--r-md); padding: 16px 18px; margin: 0 0 1.4em;
    font-size: 0.93rem; color: var(--text-muted);
}
.callout .icon { color: var(--accent); flex: none; margin-top: 2px; }

/* -------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.map-embed { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; max-width: 100%; aspect-ratio: 16 / 9; min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* -------------------------------------------------------------- careers */
.vacancy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 24px; }
.vacancy h3 { margin-bottom: 0.3em; }
.vacancy__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.vacancy__tag { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); border-radius: 999px; font-size: 0.78rem; padding: 4px 12px; }

/* ------------------------------------------------------- special offer */
.urgency-strip { background: linear-gradient(90deg, #3d2f10, #2a2410 45%, #3d2f10); border-bottom: 1px solid var(--accent-soft); }
.urgency-strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 10px 0; font-size: 0.84rem; font-weight: 600; }
.urgency-strip__item { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.urgency-strip__item .icon { flex: none; }

.so-hero { padding: clamp(38px, 6vw, 66px) 0; }
.so-hero h1 .accent { color: var(--accent); }
.so-reinforce { margin: 14px 0 0; font-size: 0.86rem; color: var(--text-muted); }
.so-cta-band {
    background:
        radial-gradient(700px 320px at 50% 0%, rgba(230, 177, 60, 0.12), transparent 65%),
        #241a08;
    border-block: 1px solid var(--accent-soft);
}
.so-cta-band p { max-width: 60ch; margin-inline: auto; color: var(--text-muted); }
.countdown { display: flex; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.countdown__seg { display: grid; gap: 4px; text-align: center; }
.countdown__digits {
    font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.7rem;
    background: var(--surface-2); border: 1px solid var(--accent-soft);
    border-radius: var(--r-sm); padding: 8px 12px; min-width: 64px; color: #fff;
}
.countdown__label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.so-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.so-modal.is-open { display: flex; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(5, 9, 16, 0.78); backdrop-filter: blur(3px); }
.so-modal__card {
    position: relative; background: var(--surface); border: 1px solid var(--accent-soft);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    max-width: 460px; width: 100%; padding: 30px 26px; text-align: center;
}
.so-modal__close {
    position: absolute; top: 12px; right: 12px;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
    border-radius: 50%; width: 34px; height: 34px; font-size: 1.15rem; line-height: 1;
    cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease;
}
.so-modal__close:hover { border-color: var(--accent); color: var(--accent); }
.so-modal__card h2 { margin-top: 6px; }
.so-modal__card p { color: var(--text-muted); font-size: 0.94rem; }

/* ------------------------------------------------------------- 404 */
.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-page .error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em; }

/* ------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
    .site-nav { display: none; }
    .nav-burger { display: inline-flex; }
    .mobile-nav { display: block; }
    .footer-grid { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; grid-template-areas: "heading" "form" "rest"; }
    .page-hero__inner { grid-template-columns: 1fr; }
    .company-block { grid-template-columns: 1fr; }
    .page-hero__motif { display: none; }
}

@media (max-width: 640px) {
    .card-grid--stagger .card:nth-child(2) { transform: none; }
    .exchange-chip { width: 136px; height: 50px; }
    .exchange-chip img { height: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand-col { grid-column: auto; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .countdown__digits { font-size: 1.35rem; min-width: 54px; }
}

/* print */
@media print {
    .site-header, .mobile-nav, .site-footer, .ticker-row, .skip-link { display: none !important; }
    body { background: #fff; color: #000; }
}

.tv-ticker-wrapper {
  padding-top: 0px !important;
  height: 58px !important;
}

.iti__selected-country, .iti__selected-dial-code {
  color: rgb(24, 33, 47) !important;
}

.iti__country-name {
  color: #000 !important;
}

.hero--market {
  background: linear-gradient(90deg, rgba(14, 20, 32, 0.90), rgba(14, 20, 32, 0.40) 62%, rgba(14, 20, 32, 0.18)),
    linear-gradient(0deg, rgba(14, 20, 32, 0.80), transparent 52%),
    url("../images/hero-market.webp") 63% center / cover no-repeat, rgb(14, 20, 32);
}

.hero__canvas { opacity: 0.22; }

.reviews { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 720px) {
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage hero */
.hero-title__accent { color: var(--accent); }

@media (max-width: 900px) {
  .hero .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    reading-flow: flex-visual;
  }
  .hero .hero__inner > .hero__heading-col { display: contents; }
  .hero .hero__inner > .hero__heading-col > h1 { order: -2; }
  .hero .hero__inner > .hero__form-wrap { order: -1; min-width: 0; }
}

/* Header account action */
a.header-account-cta {
  gap: 10px;
  min-height: 44px;
  padding: 5px 7px 5px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe2a1, #e6b13c);
  color: #132039;
  font-weight: 750;
  box-shadow: 0 4px 14px #e6b13c40;
}
a.header-account-cta:hover, a.header-account-cta:focus-visible {
  background: linear-gradient(135deg, #ffe2a1, #e6b13c);
  color: #132039;
  box-shadow: 0 5px 18px #e6b13c40;
  filter: brightness(1.08);
  text-decoration: none;
}
a.header-account-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.header-account-cta__icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #13203920;
}
