/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --indigo: #210082;
    --blue: #0098FF;
    --black: #000000;
    --white: #FFFFFF;
    --surface: #F5F5F5;
    --black-60: rgba(0, 0, 0, .6);
    --system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gutter: 20px;
}
/* Inter and Plus Jakarta Sans have no Arabic or Chinese glyphs (and Plus Jakarta Sans no Cyrillic):
   those scripts fall through to the reader's system fonts. */
:lang(ar) { --system: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif; }
:lang(zh) { --system: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; }
/* Declared wherever --system changes, so a label in another language (the language bar) picks up its own fallbacks. */
:root, :lang(ar), :lang(zh) {
    --font-ui: "Inter", var(--system);
    --font-display: "Plus Jakarta Sans", "Inter", var(--system);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--white);
    color: var(--black);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 26px;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 32px; }

.container { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
    padding: 14px 24px; border-radius: 12px;
    background: var(--indigo); color: var(--white);
    font-weight: 600; line-height: 24px;
}
.skip-link:focus { top: 16px; }

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Type ---------- */
.display { font: 700 34px/45px var(--font-display); letter-spacing: -.02em; }
.h2 { font: 700 28px/36px var(--font-display); letter-spacing: -.015em; }
.statement { font: 500 20px/30px var(--font-display); letter-spacing: -.01em; }
.lead { font-size: 17px; line-height: 28px; }
.body { font-size: 16px; line-height: 26px; }
.eyebrow { font-size: 13px; font-weight: 600; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; }
.small { font-size: 14px; line-height: 22px; }
/* Translated headings wrap wherever they fall, so even out their lines. English keeps the wraps drawn in Figma. */
:root:not(:lang(en)) :is(.display, .h2) { text-wrap: balance; }
/* Tracking is tuned for Latin letterforms; it breaks Arabic joining and crowds Chinese. */
:lang(ar) :is(.display, .h2, .statement, .lead, .eyebrow),
:lang(zh) :is(.display, .h2, .statement, .lead, .eyebrow) { letter-spacing: 0; }

/* ---------- Button ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 24px; border: 0; border-radius: 12px;
    font-size: 16px; font-weight: 600; line-height: 24px; white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.btn:focus-visible { outline-offset: 0; border-radius: 12px; }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--black); }
.btn-inverse { background: var(--white); color: var(--black); }
.btn-inverse:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--indigo); }
.btn-ghost:focus-visible { box-shadow: none; }

/* ---------- Field ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; line-height: 20px; align-self: flex-start; }
.control {
    display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px;
    border: 1px solid var(--black); border-radius: 10px;
    background: var(--white); color: var(--black);
    font-size: 16px; line-height: 24px;
    appearance: none; -webkit-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.control { height: 160px; min-height: 160px; padding: 14px 16px; resize: vertical; }
.control::placeholder { color: var(--black-60); opacity: 1; }
.control:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: inset 0 0 0 1px var(--indigo), 0 0 0 3px var(--blue);
}
.field.is-invalid .control:not(:focus) { box-shadow: inset 0 0 0 1px var(--black); }
.helper { display: none; align-items: flex-start; gap: 6px; color: var(--black); font-size: 14px; line-height: 22px; }
.helper svg { flex: none; margin-top: 3px; }
.field.is-invalid .helper { display: flex; }
.honeypot { position: absolute; transform: scale(0); }

/* Form submission status (replaces the submit button while sending) */
@keyframes form-spin { to { transform: rotate(360deg); } }
@keyframes form-fade-in { from { opacity: 0; } to { opacity: 1; } }
.form-status { display: flex; align-items: center; justify-content: center; flex: none; }
.form-spinner {
    width: 28px; height: 28px; flex: none;
    border: 3px solid rgba(33, 0, 130, .2); border-top-color: var(--indigo); border-radius: 50%;
    animation: form-spin .7s linear infinite, form-fade-in .3s ease;
}
.form-status-text { font-size: 16px; font-weight: 600; line-height: 24px; white-space: nowrap; animation: form-fade-in .3s ease; }

/* ---------- Language bar ---------- */
.lang-bar { background: var(--surface); }
.lang-list {
    display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 16px;
    padding: 6px 0;
    font-size: 15px; font-weight: 500; line-height: 24px;
}
.lang-list a {
    display: inline-block; padding: 4px 0;
    font-family: var(--font-ui);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
    transition: color .15s ease;
}
.lang-list a:hover { color: var(--indigo); }
.lang-list a[aria-current] { font-weight: 600; text-decoration: none; }
.lang-list a:focus-visible { outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 28px 0 20px; }
.logo { display: block; flex: none; }
.logo img { width: auto; height: 36px; }
.menu-button {
    display: none; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0; padding: 0;
    border: 0; border-radius: 10px; background: none; color: var(--black); cursor: pointer;
}
.menu-button:focus-visible { outline-offset: 0; border-radius: 10px; }
.menu-button .icon-close, .menu-button[aria-expanded="true"] .icon-menu { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }
.nav { display: flex; flex-direction: column; flex-basis: 100%; padding-top: 12px; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; line-height: 24px; transition: color .15s ease; }
.nav-links a:hover, .footer-links a:hover { color: var(--indigo); }
.nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 80px 0 88px; background: var(--black); color: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .78) 50%, rgba(0, 0, 0, .66) 100%);
}
/* Right-to-left: mirror the picture and its shading so the text still sits on the dark side. */
[dir="rtl"] .hero-bg, [dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }

/* ---------- About ---------- */
.about { padding: 64px 0; }
.about-grid { display: flex; flex-direction: column; gap: 44px; }
.about-col { display: flex; flex-direction: column; gap: 24px; flex: 1 1 0; min-width: 0; }
.section-heading { display: flex; flex-direction: column; gap: 16px; }
.rule { flex: none; height: 2px; background: var(--indigo); }
.highlights { display: flex; flex-direction: column; gap: 14px; }
.highlights li { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 17px; font-weight: 500; line-height: 24px; }
.highlights svg { flex: none; }

/* ---------- Subscribe ---------- */
.subscribe { padding-bottom: 64px; }
.subscribe-panel { display: flex; flex-direction: column; gap: 24px; padding: 32px 24px; background: var(--blue); color: var(--indigo); }
.subscribe-heading { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; min-width: 0; }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
/* The blue focus ring disappears on the blue panel, so the button uses white here. */
.subscribe-panel .btn:focus-visible { outline-color: var(--white); }

/* ---------- Contact ---------- */
.contact { padding: 64px 0; background: var(--indigo); color: var(--white); }
.contact-grid { display: flex; flex-direction: column; gap: 28px; }
.contact-form {
    display: flex; flex-direction: column; gap: 24px; min-width: 0;
    padding: 24px 20px; border-radius: 16px;
    background: var(--white); color: var(--black);
    box-shadow: 0 0 28px rgba(0, 0, 0, .28), 0 14px 44px rgba(0, 0, 0, .32);
}
.form-row { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; background: var(--white); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
.site-footer .logo { align-self: flex-start; }
.site-footer .logo img { height: 30px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 15px; font-weight: 500; line-height: 24px; }
.footer-links a { transition: color .15s ease; }
.copyright { color: var(--black-60); }

/* ---------- Tablet (design: 810) ---------- */
@media (min-width: 600px) {
    :root { --gutter: 48px; }

    .display { font-size: 48px; line-height: 64px; letter-spacing: -.025em; }
    .h2 { font-size: 34px; line-height: 42px; letter-spacing: -.02em; }
    .statement { font-size: 26px; line-height: 38px; letter-spacing: -.015em; }
    .lead { font-size: 19px; line-height: 30px; letter-spacing: -.005em; }
    .body { font-size: 17px; line-height: 27px; }

    .lang-list { display: flex; justify-content: flex-end; gap: 24px; }

    .hero { padding: 104px 0 112px; }
    .hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .76) 50%, rgba(0, 0, 0, .4) 100%); }
    .hero-content { gap: 24px; max-width: 640px; }
    .hero .lead { max-width: 600px; }
    .actions { flex-direction: row; flex-wrap: wrap; gap: 16px; }

    .about { padding: 80px 0; }
    .about-grid { gap: 56px; }
    .highlights { flex-direction: row; gap: 16px; }
    .highlights li { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }

    .subscribe { padding-bottom: 80px; }
    .subscribe-panel { gap: 28px; padding: 44px 40px; }
    .subscribe-form { flex-direction: row; align-items: flex-start; }
    .subscribe-form .field { flex: 1 1 0; }

    .contact { padding: 80px 0; }
    .contact-grid { gap: 36px; }
    .contact-form { padding: 32px; border-radius: 20px; }
    .contact-form .btn, .contact-form .form-status { align-self: flex-start; }
    .form-row { flex-direction: row; }
    .form-row .field { flex: 1 1 0; }

    .site-footer { padding: 48px 0 40px; }
    .footer-inner { gap: 28px; }
    .footer-top { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .site-footer .logo { align-self: auto; }
    .site-footer .logo img { height: 34px; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
}

/* ---------- Header navigation: menu button until the links fit beside the logo ----------
   French, Spanish and Russian labels are longer, so those pages switch to the full
   navigation at 920px instead of 768px. The two blocks of row rules below are the same;
   :where() keeps their specificity low so the desktop rules still override them.
   If the nav labels in src/locales change length, re-check these widths. */
@media (max-width: 767.98px) {
    .js .menu-button { display: inline-flex; }
    .js .nav { display: none; }
    .js .site-header.is-open .nav { display: flex; }
}
@media (min-width: 768px) and (max-width: 919.98px) {
    .js:is(:lang(fr), :lang(es), :lang(ru)) .menu-button { display: inline-flex; }
    .js:is(:lang(fr), :lang(es), :lang(ru)) .nav { display: none; }
    .js:is(:lang(fr), :lang(es), :lang(ru)) .site-header.is-open .nav { display: flex; }
}
@media (min-width: 768px) {
    .header-inner { padding: 40px 0 32px; }
    .site-header .logo img { height: 38px; }

    :where(html:not(:lang(fr), :lang(es), :lang(ru))) .nav { flex-direction: row; flex-basis: auto; align-items: center; gap: 24px; padding-top: 0; }
    :where(html:not(:lang(fr), :lang(es), :lang(ru))) .nav-links { flex-direction: row; align-items: center; gap: 20px; }
    :where(html:not(:lang(fr), :lang(es), :lang(ru))) .nav-links a { padding: 0; white-space: nowrap; }
    :where(html:not(:lang(fr), :lang(es), :lang(ru))) .nav .btn { margin-top: 0; padding: 10px 20px; border-radius: 10px; }
}
@media (min-width: 920px) {
    :where(html:is(:lang(fr), :lang(es), :lang(ru))) .nav { flex-direction: row; flex-basis: auto; align-items: center; gap: 24px; padding-top: 0; }
    :where(html:is(:lang(fr), :lang(es), :lang(ru))) .nav-links { flex-direction: row; align-items: center; gap: 20px; }
    :where(html:is(:lang(fr), :lang(es), :lang(ru))) .nav-links a { padding: 0; white-space: nowrap; }
    :where(html:is(:lang(fr), :lang(es), :lang(ru))) .nav .btn { margin-top: 0; padding: 10px 20px; border-radius: 10px; }
}

/* ---------- Desktop (design: 1440) ---------- */
@media (min-width: 1200px) {
    .display { font-size: 64px; line-height: 85px; }
    .h2 { font-size: 40px; line-height: 48px; }
    .statement { font-size: 24px; line-height: 34px; }
    .lead { font-size: 20px; line-height: 32px; }
    .body { font-size: 18px; line-height: 28px; }

    .lang-list { gap: 32px; padding: 8px 0; }

    .header-inner { padding: 56px 0 44px; }
    .site-header .logo img { height: 56px; }
    .nav { gap: 44px; }
    .nav-links { gap: 40px; }
    .nav .btn { padding: 14px 24px; border-radius: 12px; }
    .nav .btn:focus-visible { border-radius: 12px; }

    .hero { padding: 136px 0 144px; }
    .hero::before { background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .7) 50%, rgba(0, 0, 0, .15) 100%); }
    .hero-content { gap: 28px; max-width: 840px; }
    .hero .lead { max-width: 680px; }
    .actions { padding-top: 12px; }

    .about { padding: 112px 0; }
    .about-grid { flex-direction: row; }
    .about-col { gap: 28px; }
    .rule { width: 2px; height: auto; align-self: stretch; }

    .subscribe { padding-bottom: 112px; }
    .subscribe-panel { flex-direction: row; align-items: center; gap: 48px; padding: 56px 64px; }
    .subscribe-form { flex: none; }
    .subscribe-form .field { flex: 0 0 360px; position: relative; }
    /* Keep the row vertically centred in the panel when the error message shows. */
    .subscribe-form .helper { position: absolute; top: 100%; inset-inline-start: 0; margin-top: 8px; white-space: nowrap; }

    .contact { padding: 112px 0; }
    .contact-grid { flex-direction: row; align-items: flex-start; gap: 24px; }
    .contact .section-heading { flex: 0 0 486px; }
    .contact .section-heading .body { max-width: 400px; }
    .contact-form { flex: 1 1 0; padding: 40px; }

    .site-footer { padding: 56px 0 48px; }
    .site-footer .logo img { height: 36px; }
    .footer-links { gap: 8px 32px; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
