/* AERAS SHARE pre-launch site. One set of tokens; light by default, dark on request (or by the system when not chosen). */

:root {
  --ink: #0b1220;
  --ink-2: #1c2638;
  --muted: #566176;
  --faint: #8a93a6;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef3ff;
  --line: #e3e8f1;
  --line-strong: #cfd7e6;
  --brand: #1f6bff;
  --brand-ink: #0f4fd6;
  --brand-soft: rgba(31, 107, 255, 0.09);
  --accent: #12a3f5;
  --ok: #138a52;
  --bad: #c43a3f;
  --hero-bg: #08101f;
  --hero-ink: #f3f6fc;
  --hero-muted: #a6b2c8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 12px 32px rgba(11, 18, 32, 0.07);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #eef2f9;
  --ink-2: #d4dbe8;
  --muted: #9aa5ba;
  --faint: #6f7a90;
  --bg: #0a0f1a;
  --bg-soft: #0f1624;
  --bg-tint: #121c2f;
  --line: #1d2638;
  --line-strong: #2a354b;
  --brand: #4d8bff;
  --brand-ink: #7aa8ff;
  --brand-soft: rgba(77, 139, 255, 0.14);
  --ok: #37c27f;
  --bad: #f06c71;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; background: #010a19; }
.logo .word { font: 700 15px/1 var(--display); letter-spacing: 0.14em; }
.logo .word b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.head-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px; width: 40px; height: 40px; color: var(--ink); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 9px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; font: 600 15px/1 var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; white-space: nowrap; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31, 107, 255, 0.28); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.on-dark .btn.ghost { color: var(--hero-ink); border-color: rgba(255, 255, 255, 0.28); }
.on-dark .btn.ghost:hover { border-color: #fff; }

/* ---------------------------------------------------------------- hero */
.hero { background: radial-gradient(1200px 520px at 78% -10%, rgba(31, 107, 255, 0.35), transparent 60%), radial-gradient(800px 400px at 0% 110%, rgba(18, 163, 245, 0.16), transparent 60%), var(--hero-bg);
  color: var(--hero-ink); padding: 88px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-ink); }
.hero .eyebrow { color: #8fb6ff; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(143, 182, 255, 0.18); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; margin: 18px 0 20px; font-weight: 700; }
.hero h1 span { background: linear-gradient(90deg, #8fb6ff, #59c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--hero-muted); font-size: 18.5px; max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 22px; color: var(--hero-muted); font-size: 14px; }
.hero-visual { position: relative; }
.hero-visual figcaption { color: var(--hero-muted); font-size: 12.5px; margin-top: 12px; text-align: center; }

/* ---------------------------------------------------------------- sections */
section { padding: 96px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--bg); padding: 24px; }
.fact b { display: block; font: 600 16px/1.3 var(--display); margin-bottom: 6px; }
.fact span { color: var(--muted); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 700 13px/1 var(--display); color: var(--brand); letter-spacing: 0.1em; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.cap:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.cap .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.cap .ico svg { width: 22px; height: 22px; }
.cap h3 { font-size: 18px; margin-bottom: 8px; }
.cap p { color: var(--muted); margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 12px 0 16px; }
.split > div > p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.panel-visual { border-radius: 18px; background: var(--bg-tint); border: 1px solid var(--line); padding: 28px; }
.panel-visual figcaption { color: var(--faint); font-size: 12.5px; text-align: center; margin-top: 10px; }

.arch { border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: var(--bg); }

.security { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.sec h3 { font-size: 16.5px; margin-bottom: 6px; }
.sec p { margin: 0; color: var(--muted); font-size: 14.5px; }

.founding { background: linear-gradient(135deg, #0b1630, #0d2350 60%, #0f2f6b); color: var(--hero-ink); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.founding > * { min-width: 0; }
.founding .eyebrow { color: #8fb6ff; }
.founding h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 14px; }
.founding p { color: var(--hero-muted); margin: 0 0 26px; }
.founding .ticks li { color: #e6ecf7; }
.founding .ticks li::before { background-color: rgba(143, 182, 255, 0.18); }
.founding .terms { color: var(--hero-muted); font-size: 13.5px; margin-top: 18px; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- request pages */
.contact-page { padding: 64px 0 96px; background: var(--bg-soft); min-height: calc(100vh - 68px); }
.contact-page .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-intro h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; margin: 14px 0 16px; }
.contact-intro > p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.contact-intro .aside { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 36px; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; }
.contact-card .btn { max-width: 100%; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: center; line-height: 1.25; }
.contact-card h2 { font-size: 24px; margin: 0; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-card .ticks { margin: 0; }
.contact-card .contact-address { font-size: 14.5px; }
.mail-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow); }
.mail-toast p { margin: 0; font-size: 14.5px; }
.mail-toast-close { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }

.prose { max-width: 760px; }
.prose h1 { font-size: 38px; margin: 12px 0 18px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .hero .wrap, .split, .founding, .contact-page .wrap { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .caps, .security { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .founding { padding: 40px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .menu-btn { display: grid; place-items: center; }
  .head-actions .btn.ghost { display: none; }
  .site-head .wrap { gap: 12px; justify-content: space-between; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .caps, .security, .steps, .facts, .row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .founding { padding: 28px; border-radius: 16px; }
  .head-actions .btn.primary { height: 38px; padding: 0 12px; font-size: 13.5px; }
  .cta-row .btn { width: 100%; }
}
/* the architecture diagram follows the theme */
.a-box { fill: var(--bg-tint); stroke: var(--line-strong); }
.a-ink { fill: var(--ink); }
.a-muted { fill: var(--muted); }
.a-brand { fill: var(--brand); }
.a-link { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 6 8; fill: none; }
.cta-row.center { justify-content: center; }
/* Narrow screens: the hero and every form page carry the Early Access button, so the header keeps only the logo, theme and menu. */
@media (max-width: 460px) {
  .head-actions .btn.primary { display: none; }
  .head-actions { gap: 8px; }
}
@media (max-width: 460px) { .founding .btn { width: 100%; white-space: normal; text-align: center; } }

/* Footer: brand, three link columns, base line. */
.site-foot { padding: 64px 0 28px; }
.site-foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; justify-content: initial; flex-wrap: initial; }
.foot-brand p { margin: 14px 0 16px; max-width: 34ch; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2, var(--muted)); }
.foot-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c47a; box-shadow: 0 0 0 4px rgba(34, 196, 122, 0.15); }
.site-foot nav { display: grid; gap: 10px; align-content: start; }
.site-foot .foot-h { margin: 0 0 4px; font: 700 12px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.site-foot nav a:hover { color: var(--ink); }
.site-foot .foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .site-foot .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-foot .foot-grid { gap: 28px 20px; } }

/* Header: a soft shadow once the page scrolls, and the section in view marked in the menu. */
.site-head { transition: box-shadow 0.25s ease; }
.site-head.scrolled { box-shadow: 0 6px 24px -14px rgba(11, 18, 32, 0.35); }
.nav a { position: relative; transition: color 0.2s ease; }
.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--brand); }
@media (max-width: 860px) { .nav a[aria-current="true"]::after { display: none; } }

/* Keyboard focus that is always visible and on brand. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Big screens: the page grows with the window instead of sitting in a narrow column. */
@media (min-width: 1440px) { :root { --wrap: 1340px; } }
@media (min-width: 1760px) { :root { --wrap: 1560px; } }
