@font-face {
    font-family: "Red Hat Display";
    src: url("../../fonts/peregrine/red-hat-display-normal.ttf") format("truetype");
    font-weight: 300 900;
    font-display: swap;
}

@font-face {
    font-family: "DM Sans";
    src: url("../../fonts/peregrine/dm-sans-normal.ttf") format("truetype");
    font-weight: 100 1000;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #03080f;
    --surface: #07101a;
    --elevated: #0d1926;
    --border: #263e52;
    --text: #f6f9fc;
    --muted: #aab6c3;
    --cyan: #00b0ff;
    --green: #00f674;
    --slate: linear-gradient(115deg, #15151c, #1e1b27 55%, #161720);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(ellipse at top right, #091928, transparent 36rem), var(--background);
    color: var(--muted);
    font: 1rem/1.6 "DM Sans", system-ui, sans-serif;
}
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 {
    margin: 0;
    color: var(--text);
    font-family: "Red Hat Display", system-ui, sans-serif;
    line-height: 1.08;
    text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 6.1vw, 5.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); letter-spacing: -.04em; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { color: var(--background); background: var(--green); }

.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 2; padding: .6rem 1rem; translate: 0 -180%; background: var(--surface); color: var(--text); }
.skip-link:focus { translate: 0; }

.hero-center .lead, .hero-copy .lead { margin-top: 1.25rem; }
.lead { max-width: 38rem; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); }
.eyebrow { margin: 0 0 .8rem; color: #6cd6ff; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 8px;
    padding: .65rem 1.3rem;
    background: var(--green);
    color: var(--background);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: #6dffa8; border-color: #6dffa8; }
.button-outline { border-color: var(--border); background: var(--elevated); color: var(--text); }
.button-outline:hover { background: #142a3b; border-color: var(--cyan); }
.button:disabled { opacity: .62; cursor: default; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 1.2rem; }
.section-heading { margin-bottom: clamp(1.55rem, 3vw, 2.5rem); }
.section-heading > p:last-child:not(.eyebrow) { margin-top: .65rem; }
.centered { text-align: center; }
.section-tinted { background: var(--slate); border-block: 1px solid #272733; }
.surface { border: 1px solid var(--border); background: var(--elevated); border-radius: 12px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.account-form .lead { margin-bottom: 1.25rem; color: var(--text); }
.form-fields { display: grid; gap: 1rem; }
.form-fields label { display: grid; grid-template-columns: 1fr; gap: .35rem; color: var(--text); font-size: .9375rem; font-weight: 650; }
.form-fields input, .form-fields select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #375169;
    border-radius: 7px;
    padding: .55rem .75rem;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 400;
}
.account-form .form-fields + .button { margin-top: 1rem; }
.form-note { margin: 1rem 0; font-size: .9375rem; }
.form-status { color: #a0ffc5; margin-top: .8rem; }
.form-status:empty { display: none; }

.page-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-block: clamp(2rem, 5vw, 3.5rem);
}
.risk-disclosure h2 { margin-bottom: 1rem; font-size: clamp(1.25rem, 2.6vw, 1.55rem); letter-spacing: -.015em; }
.risk-disclosure p { max-width: 100ch; margin-block: .75rem 0; font-size: .9375rem; }
.risk-disclosure a { color: #6cd6ff; font-weight: 650; text-underline-offset: .18em; }
.risk-disclosure .photo-credit { margin-top: 1.4rem; font-size: .8125rem; }
.risk-disclosure a:hover { color: var(--text); }

@media (max-width: 770px) {
    .wrap { width: calc(100% - 2rem); }
    .pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-market {
    padding-top: clamp(1.15rem, 3vw, 2.25rem);
    background: radial-gradient(ellipse at 55% 40%, rgb(0 176 255 / 9%), transparent 68%);
}
.hero-logo { width: clamp(175px, 26vw, 300px); }
.hero-center {
    max-width: 54rem;
    margin-inline: auto;
    padding-block-start: clamp(2.5rem, 6vw, 5.5rem);
    text-align: center;
}
.hero-center h1 span { color: #8edfff; }
.hero-center .lead { margin-inline: auto; }
.hero-center .actions { justify-content: center; }
.hero-panorama {
    margin-top: clamp(1.9rem, 4vw, 3.4rem);
    overflow: hidden;
    border-radius: 16px;
}
.hero-panorama img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 45%; }
.hero-market-mx {
    position: relative;
    isolation: isolate;
    padding-block: clamp(1.15rem, 3vw, 2.25rem) clamp(4rem, 8vw, 7rem);
    border-bottom: 1px solid var(--border);
    background: var(--background);
}
.hero-background, .hero-market-mx::before { position: absolute; inset: 0; }
.hero-background {
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 35%;
}
.hero-market-mx::before {
    content: "";
    z-index: -1;
    background:
        linear-gradient(180deg, rgb(3 8 15 / 68%), transparent 27%, transparent 65%, rgb(3 8 15 / 35%)),
        linear-gradient(90deg, rgb(3 8 15 / 96%), rgb(3 8 15 / 87%) 36%, rgb(5 22 35 / 36%) 73%, rgb(5 22 35 / 27%));
}
.hero-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-inline-start: max(1.5rem, calc((100% - 1200px) / 2));
    padding-inline-end: clamp(1rem, 2.4vw, 2rem);
}
.landing-language { position: relative; z-index: 2; }
.landing-language summary {
    display: grid;
    min-width: 52px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    list-style: none;
    cursor: pointer;
}
.landing-language summary::-webkit-details-marker { display: none; }
.landing-language img { border-radius: 3px; object-fit: cover; }
.landing-language img { width: 44px; height: 27px; }
.language-options {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + .5rem);
    min-width: 68px;
    padding: .35rem;
    border-radius: 8px;
    background: var(--elevated);
}
.language-options button {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 42px;
    padding: .35rem;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}
.language-options button:is([aria-current="true"], :hover) { background: var(--surface); }
.hero-copy {
    max-width: 44rem;
    padding-block-start: clamp(3.5rem, 8vw, 7rem);
}
.hero-copy h1 { font-size: clamp(2.65rem, 5.1vw, 5.25rem); }
.hero-copy h1 span { color: #8edfff; }
.hero-copy .lead { color: var(--text); }
.technology-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.technology-card {
    display: block;
    padding: clamp(1.15rem, 2.5vw, 1.7rem);
    color: var(--muted);
    text-decoration: none;
}
.technology-card img { width: 44px; height: 44px; object-fit: contain; }
.technology-card:is(:hover, :focus-visible) { border-color: var(--cyan); }
.technology-card:is(:hover, :focus-visible) h3 { color: var(--cyan); }
.technology-card h3 { margin: 1rem 0 .6rem; }
.section-photo { overflow: hidden; border-radius: 14px; }
.section-photo img { width: 100%; }
.steps-list { list-style: none; padding: 0; display: grid; gap: .85rem; margin: 1.4rem 0 0; counter-reset: steps; }
.steps-list li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    counter-increment: steps;
    padding: .95rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--elevated);
}
.steps-list li::before {
    content: counter(steps);
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    height: 2rem;
    color: #8edfff;
    background: var(--surface);
    border-radius: 50%;
    font-weight: 700;
}
.steps-list p { margin-top: .3rem; }

@media (max-width: 770px) {
    .hero-brand { padding-inline-start: 1rem; }
    .hero-background { object-position: 59% center; }
    .hero-market-mx::before {
        background: linear-gradient(180deg, rgb(3 8 15 / 80%), rgb(3 8 15 / 52%) 24%, rgb(3 8 15 / 83%) 64%, rgb(3 8 15 / 93%));
    }
}
@media (max-width: 900px) { .technology-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) {
    .desktop-break { display: none; }
    .hero-panorama img { aspect-ratio: 2 / 1; }
    .technology-grid { grid-template-columns: minmax(0, 1fr); }
}
