:root {
  /*
   * Canonical Atlas PI production tokens.
   *
   * Source:
   * lib/src/ui/components/atlas_tokens.dart
   * lib/src/ui/tab_shell/standard_tab_scaffold.dart
   */

  --background: #0f1520;
  --surface: #111827;
  --surface-raised: #1a2030;
  --surface-high: #25314a;
  --surface-pressed: #2c3650;

  --text-primary: #e8edf5;
  --text-secondary: #9fb3c8;
  --text-muted: #8b95a7;
  --text-subtle: #6f7a8f;

  --gold: #f7c54a;
  --blue: #6aa0ff;
  --green: #52d68f;
  --red: #e45757;
  --orange: #ff9f43;

  --gold-soft: rgba(247, 197, 74, 0.14);
  --gold-border: rgba(247, 197, 74, 0.24);
  --blue-soft: rgba(106, 160, 255, 0.14);
  --blue-border: rgba(106, 160, 255, 0.24);
  --green-soft: rgba(82, 214, 143, 0.14);
  --green-border: rgba(82, 214, 143, 0.25);

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.1);

  --content-width: 1200px;

  --radius-small: 14px;
  --radius-medium: 18px;
  --radius-large: 20px;
  --radius-hero: 24px;
  --radius-pill: 999px;

  --shadow-hero: 0 14px 22px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 76% 8%,
      rgba(106, 160, 255, 0.08),
      transparent 33rem
    ),
    radial-gradient(
      circle at 18% 35%,
      rgba(247, 197, 74, 0.035),
      transparent 28rem
    ),
    var(--background);
  color: var(--text-primary);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold-border);
  border-radius: 15px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--text-primary);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text-secondary);
  font-size: 14px;
}

.site-nav a,
.site-footer a,
.text-link {
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--text-primary);
}

.site-header > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--surface);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #ffcf5a;
  border-color: #ffcf5a;
  box-shadow: 0 10px 24px rgba(247, 197, 74, 0.14);
}

.button:focus-visible,
.text-link:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 720px;
  margin: 0 auto;
  padding: 84px 0 112px;
}

.hero-field {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: -26%;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(106, 160, 255, 0.07);
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 42% 38%,
      rgba(106, 160, 255, 0.11),
      transparent 42%
    ),
    radial-gradient(
      circle at 62% 62%,
      rgba(247, 197, 74, 0.055),
      transparent 38%
    );
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 8vw, 104px);
  color: var(--text-primary);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero-description {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.availability {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.product-preview {
  position: relative;
}

.preview-glow {
  position: absolute;
  inset: 12% 5%;
  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(106, 160, 255, 0.16),
      transparent 48%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(247, 197, 74, 0.07),
      transparent 48%
    );
  filter: blur(70px);
}

.decision-card {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-hero);
  background:
    linear-gradient(
      135deg,
      rgba(106, 160, 255, 0.22) 0%,
      rgba(247, 197, 74, 0.1) 28%,
      var(--surface-raised) 62%,
      var(--surface) 100%
    );
  box-shadow: var(--shadow-hero);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
}

.decision-card::before {
  position: absolute;
  top: 0;
  left: 12%;
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(106, 160, 255, 0.7),
    rgba(247, 197, 74, 0.5),
    transparent
  );
  content: "";
}

.decision-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-label,
.session-kicker {
  margin: 0 0 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.decision-header h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.status-badge {
  padding: 8px 12px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.decision-copy {
  margin: 25px 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: rgba(37, 49, 74, 0.46);
}

.metric span {
  color: var(--text-muted);
  font-size: 11px;
}

.metric strong {
  font-size: 13px;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(106, 160, 255, 0.18);
  border-radius: var(--radius-medium);
  background: rgba(37, 49, 74, 0.48);
}

.session-row > div {
  display: grid;
}

.session-row > span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.platform-section {
  padding: 120px max(24px, calc((100vw - var(--content-width)) / 2));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.section-heading {
  max-width: 700px;
}

.section-heading h2,
.early-access-copy h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading > p:last-child,
.early-access-copy > p {
  max-width: 660px;
  margin: 25px 0 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 62px;
}

.feature-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
}

.feature-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.feature-card h3 {
  margin: 58px 0 14px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.feature-card p {
  max-width: 470px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.company-section {
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 130px 0 30px;
}
.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 70px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-hero);
  background:
    linear-gradient(
      135deg,
      rgba(247, 197, 74, 0.11),
      rgba(106, 160, 255, 0.07) 38%,
      var(--surface-raised) 70%,
      var(--surface)
    );
  box-shadow: var(--shadow-hero);
}
.company-panel h2 {
  max-width: 700px;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}
.company-panel > div:first-child > p:last-child {
  max-width: 690px;
  margin: 25px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}
.company-details {
  display: grid;
  align-content: center;
  gap: 12px;
}
.company-details > div {
  display: grid;
  gap: 7px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: rgba(37, 49, 74, 0.42);
}
.company-details span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.company-details strong {
  color: var(--text-primary);
  font-size: 14px;
}
.company-details a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .company-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .company-section {
    width: min(calc(100% - 32px), var(--content-width));
    padding-top: 90px;
  }
}

.early-access-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 80px;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 130px 0;
}

.waitlist-form {
  max-width: 690px;
  margin-top: 42px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 680;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.button[disabled] {
  cursor: not-allowed;
  transform: none;
  background: var(--surface-pressed);
  border-color: var(--surface-pressed);
  color: var(--text-muted);
  box-shadow: none;
}

.form-message[data-state="success"] {
  color: var(--green);
}

.form-message[data-state="error"] {
  color: var(--red);
}

.turnstile-container {
  min-height: 65px;
  margin-top: 14px;
}

.turnstile-container iframe {
  max-width: 100%;
}

@media (max-width: 360px) {
  .turnstile-container {
    transform: scale(0.93);
    transform-origin: left center;
  }
}

.form-row input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-medium);
  background: var(--surface-raised);
  color: var(--text-primary);
  font-weight: 700;
}

.form-row input::placeholder {
  color: var(--text-muted);
}

.form-row input:focus {
  border-color: var(--gold);
}

.consent-copy {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.consent-copy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.qr-card {
  align-self: end;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
  text-align: center;
}

.qr-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 20px;
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-medium);
  background:
    linear-gradient(45deg, rgba(37, 49, 74, 0.42) 25%, transparent 25%) 0 0 /
      20px 20px,
    linear-gradient(-45deg, rgba(37, 49, 74, 0.42) 25%, transparent 25%) 0 0 /
      20px 20px,
    var(--surface);
}

.qr-placeholder span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 15px;
  background: var(--gold);
  color: var(--surface);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.qr-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  width: min(calc(100% - 48px), var(--content-width));
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.site-footer > div p {
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-preview {
    max-width: 650px;
  }

  .early-access-section {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: min(100%, 330px);
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .early-access-section,
  .site-footer {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .site-header {
    min-height: 74px;
  }

  .brand-copy small,
  .site-header > .button {
    display: none;
  }

  .hero {
    gap: 60px;
    padding: 68px 0 90px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 76px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .decision-card {
    padding: 21px;
    transform: none;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .platform-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .early-access-section {
    gap: 60px;
    padding: 90px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
/* -------------------------------------------------------------------------- */
/* Public information and legal pages                                         */
/* -------------------------------------------------------------------------- */
.legal-page {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  padding: 42px 0 110px;
}
.legal-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-page-header .text-link {
  flex: 0 0 auto;
}
.legal-document {
  margin-top: 92px;
}
.legal-document-header {
  margin-bottom: 52px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.legal-document-header h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.legal-effective-date {
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.legal-summary {
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}
.legal-document section {
  margin-top: 48px;
  scroll-margin-top: 30px;
}
.legal-document h2 {
  margin: 0 0 18px;
  color: var(--text-primary);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.legal-document h3 {
  margin: 28px 0 12px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
}
.legal-document p,
.legal-document li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.legal-document p {
  margin: 14px 0;
}
.legal-document ul {
  margin: 16px 0;
  padding-left: 23px;
}
.legal-document li + li {
  margin-top: 9px;
}
.legal-document a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.legal-document strong {
  color: var(--text-primary);
}
.legal-callout {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(
      135deg,
      rgba(247, 197, 74, 0.1),
      var(--surface-raised) 52%,
      var(--surface)
    );
}
.legal-callout p {
  margin: 0;
}
.legal-contact-card {
  margin-top: 32px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
}
.legal-contact-card p {
  margin: 5px 0;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.support-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background: var(--surface-raised);
}
.support-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.support-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}
.support-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}
@media (max-width: 640px) {
  .legal-page {
    width: min(calc(100% - 32px), 900px);
    padding-top: 28px;
  }
  .legal-page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-document {
    margin-top: 70px;
  }
  .legal-document-header {
    margin-bottom: 40px;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}
