:root {
    color-scheme: dark;
    --ink: #070912;
    --surface: #121522;
    --surface-2: #1c2032;
    --line: #373e56;
    --text: #f7f8fc;
    --muted: #b6bed3;
    --primary: #08c5ff;
    --accent: #ff087c;
    --cyan: #86e3ff;
    --pink: #fba5d6;
    --brand-background: radial-gradient(ellipse at 86% 20%, #321542 0%, transparent 52%), radial-gradient(ellipse at 7% 10%, #123455 0%, transparent 58%), var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    background: var(--ink);
    color: var(--text);
    font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.site-header {
    position: absolute;
    z-index: 10;
    inset: 0 0 auto;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(18px, 6vw, 92px);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 23, .86);
}
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 19px; }
.site-brand img { width: 44px; height: 44px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.nav-login { padding: 8px 14px; border: 1px solid var(--primary); border-radius: 8px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 84px);
    min-height: min(720px, 90vh);
    align-items: center;
    padding: 120px clamp(18px, 6vw, 92px) 68px;
    background: var(--brand-background);
    border-bottom: 1px solid var(--line);
}
.hero-content { max-width: 620px; }
.hero-visual {
    min-width: 0;
    display: grid;
    place-items: center;
    aspect-ratio: 1.16;
    border: 1px solid #52506d;
    border-radius: 28px;
    background: radial-gradient(ellipse at 25% 35%, #12477c 0%, transparent 62%), radial-gradient(ellipse at 82% 75%, #641c62 0%, transparent 62%), #10152a;
    box-shadow: inset 0 1px 0 #ffffff17, 0 28px 60px #06071170;
}
.hero-visual img { width: 76%; height: auto; object-fit: contain; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(48px, 7.6vw, 104px); line-height: 1; letter-spacing: -.05em; }
.hero-copy { max-width: 48ch; margin: 22px 0 28px; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button, button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}
.button.primary, button { border-color: var(--primary); background: var(--primary); color: #071321; }
.button.primary:hover, button:hover { filter: brightness(1.12); }
.button.secondary { background: #161c30; }
.button.secondary:hover { border-color: var(--cyan); }
.button.full { width: 100%; }
.content-band { padding: 78px clamp(18px, 6vw, 92px); }
.content-band.alt { background: #101323; }
.section-title { max-width: 720px; margin-bottom: 32px; }
.section-title h2, .reseller-band h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); }
.section-title > p:last-child, .reseller-band p { color: var(--muted); }
.feature-grid, .pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid article, .pricing-grid article {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.feature-grid h3, .pricing-grid h3 { margin: 0 0 7px; }
.feature-grid p, .pricing-grid p { margin: 0; color: var(--muted); }
.pricing-grid article { min-height: 210px; }
.pricing-grid article.featured { border-color: var(--accent); background: linear-gradient(145deg, #261628, var(--surface)); }
.pricing-grid strong { display: block; margin: 18px 0; color: var(--cyan); font-size: 27px; }
.pricing-grid .featured strong { color: var(--pink); }
.pricing-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.reseller-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 64px clamp(18px, 6vw, 92px);
    border-block: 1px solid var(--line);
    background: linear-gradient(120deg, #14253c, #221529);
}
.reseller-band > div { max-width: 760px; }
footer { padding: 32px clamp(18px, 6vw, 92px); color: var(--muted); }
footer p { margin-bottom: 0; font-size: 13px; }

.registration-page {
    min-height: 100vh;
    background: var(--brand-background) fixed;
}
.registration-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(960px, calc(100% - 32px));
    min-height: 620px;
    margin: 116px auto 40px;
    grid-template-columns: 1fr 420px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}
.registration-context, .registration-form { padding: clamp(28px, 5vw, 56px); }
.registration-context { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #152e47, #16192f); }
.registration-context h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.registration-context p:last-child { color: var(--muted); }
.registration-form h2 { margin-top: 0; }
.registration-form form { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0d1020;
    color: var(--text);
    font: inherit;
}
.form-alert { margin-bottom: 14px; padding: 11px 13px; border-left: 3px solid var(--primary); background: var(--surface-2); }
.form-alert.error { border-left-color: #ed7970; }
.form-alert.success { border-left-color: var(--cyan); }

.pairing-page {
    min-height: 100vh;
    padding: 32px 16px;
    background: var(--brand-background) fixed;
}
.pairing-shell {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(920px, 100%);
    min-height: 620px;
    margin: 4vh auto;
    grid-template-columns: 1fr 430px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}
.pairing-brand, .pairing-form { padding: clamp(28px, 5vw, 54px); }
.pairing-brand { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #152e47, #16192f); }
.pairing-brand img { width: 120px; height: 120px; object-fit: contain; }
.pairing-brand h1 { margin: 4px 0 14px; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }
.pairing-brand > p:last-child, .pairing-help { color: var(--muted); }
.pairing-form { display: flex; flex-direction: column; justify-content: center; }
.pairing-form h2 { margin-top: 0; }
.pairing-form form { display: grid; gap: 13px; }
.pairing-help { margin: 0; font-size: 13px; }
.pairing-success { padding-left: 18px; border-left: 4px solid var(--primary); }

@media (max-width: 760px) {
    .site-header nav a:not(.nav-login) { display: none; }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 114px; padding-bottom: 40px; }
    .hero-visual { width: min(100%, 380px); aspect-ratio: 1.5; }
    .hero-visual img { width: 58%; }
    .feature-grid, .pricing-grid, .registration-shell, .pairing-shell { grid-template-columns: 1fr; }
    .reseller-band { align-items: flex-start; flex-direction: column; }
    .registration-context { min-height: 280px; }
}
