:root {
  color-scheme: dark;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #080f1b;
  color: #f0f5ff;
  --muted: #a9b8cf;
  --blue: #8dc8ff;
  --gold: #ebbd70;
  --line: #25364e;
  --surface: #0e192b;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display:none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.shell { width: min(100% - 96px, 1240px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; padding: 12px; z-index: 3; background: var(--surface); transform: translateY(-180%); }
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); background: #080f1b; }
.header-inner, .header nav { display: flex; align-items: center; }
.header-inner { justify-content: space-between; min-height: 76px; }
.header nav { gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; font-style: italic; letter-spacing: -.055em; }
.nav-link, .text-link { font-weight: 650; color: var(--muted); }
.nav-link:hover, .text-link:hover { color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.text-link span { color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.3;
}
.button span { font-size: 1.13em; }
.button-outline { border-color: var(--line); background: #101c2f; }
.button-outline:hover { border-color: #5982b0; background: #152840; }
.button-primary { background: #8cc5ff; color: #08182e; }
.button-primary:hover { background: #b2d9ff; }
.button-primary:disabled { opacity: .65; cursor: default; }

.home main { background: radial-gradient(ellipse at 77% 25%, #102b4e 0, #0a1526 37%, transparent 67%); }
.hero { position: relative; display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; min-height: 590px; padding-block: 70px 76px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; gap: 11px; align-items: center; color: var(--blue); font-size: .78rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 24px; height: 2px; background: var(--gold); }
.hero h1 { margin-top: 20px; font-size: clamp(3rem, 5.1vw, 5.6rem); font-weight: 790; line-height: 1.04; letter-spacing: -.065em; }
.hero h1 em { color: var(--blue); font-style: italic; }
.intro { margin-top: 27px; max-width: 390px; color: var(--muted); font-size: 1.16rem; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.hero-art { position: relative; align-self: stretch; display: grid; align-items: center; min-width: 0; }
.hero-art img { width: 117%; max-width: none; height: auto; margin-left: -14%; }
.hero-art figcaption { position: absolute; right: 0; bottom: 8px; color: var(--muted); font-size: .78rem; }

.platform { padding-block: 42px 64px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.section-heading { display: flex; gap: 12px 28px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 25px; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); letter-spacing: -.045em; }
.section-heading p, .features p { color: var(--muted); line-height: 1.55; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.features article::before { content: ''; position: absolute; top: -1px; left: 24px; width: 26px; height: 2px; background: var(--blue); }
.features article:nth-child(2)::before { background: var(--gold); }
.features h3 { margin-bottom: 8px; font-size: 1.13rem; }
.footer { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.auth { display: grid; grid-template-columns: 1.1fr .9fr; min-height: min(680px, calc(100svh - 145px)); margin-block: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.auth-art { display: grid; place-items: center; min-width: 0; background: #080f1b; border-right: 1px solid var(--line); overflow: hidden; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth-content { width: min(100% - 76px, 365px); margin: auto; padding-block: 44px; }
.auth h1 { font-size: clamp(2.15rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.06em; }
.auth-intro { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.auth form { margin-top: 24px; }
.auth-switch { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.auth-switch a { color: var(--blue); font-weight: 650; }
.auth-switch a:hover { text-decoration: underline; }
.field-help { margin-top: 7px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.form-status.is-error { color: #ffb2b2; }
.account { padding-block: 48px; max-width: 920px; }
.account h1 { margin-top: 16px; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -.05em; }
.account-intro { margin-top: 18px; color: var(--muted); line-height: 1.6; }
.account-data { margin-block: 28px; padding: 0 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.account-data div { padding-block: 20px; }
.account-data div + div { border-top: 1px solid var(--line); }
.account-data dt { color: var(--muted); margin-bottom: 7px; }
.account-data dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
.field + .field { margin-top: 17px; }
.field label { display: block; margin-bottom: 7px; font-size: .92rem; font-weight: 650; }
.field input { width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid #3b4d68; border-radius: 7px; background: #0a1424; color: #f0f5ff; }
.field input::placeholder { color: #899bb6; }
.password-field { position: relative; }
.password-field input { padding-right: 87px; }
.password-toggle { position: absolute; inset: 1px 1px 1px auto; min-width: 80px; border: 0; border-radius: 6px; background: transparent; color: var(--blue); font-size: .83rem; font-weight: 700; }
.password-toggle:hover { background: #182940; }
.password-toggle:focus-visible { outline-offset: -3px; }
.form-submit { justify-content: space-between; width: 100%; margin-top: 22px; }
.form-status { min-height: 2.7em; margin-top: 12px; color: var(--blue); font-size: .87rem; line-height: 1.4; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero { min-height: 500px; }
  .hero-art img { width: 109%; margin-left: -9%; }
  .auth { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 710px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 65px; }
  .header nav { gap: 12px; }
  .header .nav-link { display: none; }
  .header .button { min-height: 42px; padding-inline: 12px; gap: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 52px 20px; }
  .hero h1 { font-size: clamp(2.75rem, 11.3vw, 5rem); }
  .hero-art { margin-top: 12px; padding-bottom: 26px; }
  .hero-art img { width: 100%; margin: 0; }
  .hero-art figcaption { bottom: 4px; }
  .platform { padding-block: 28px 44px; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .auth { display: block; margin-block: 20px; min-height: auto; }
  .auth-art { display: none; }
  .auth-content { width: min(100% - 40px, 365px); padding-block: 30px 18px; }
}
/* Local account security pages */
.account-security { margin: 28px 0; padding: 24px; border: 1px solid #263c52; border-radius: 12px; }
.account-security .button { margin: 6px 10px 6px 0; }
#checkout-plan { width:100%; max-width:430px; padding:14px; color:var(--text,#eef5ff); background:#111e2e; border:1px solid #34516b; border-radius:8px; font:inherit; }
.checkout-options { display:grid; gap:18px; line-height:1.6; }
.checkout-options > .button { width:fit-content; }
#subscription-plans { display:grid; gap:10px; }
.mail-message { margin: 20px 0; padding: 22px; border: 1px solid #263c52; border-radius: 12px; overflow-wrap: anywhere; }
