:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --paper: #f4f7fb;
  --paper-deep: #e8eef6;
  --hero: #0b1220;
  --hero-mid: #132033;
  --line: rgba(16, 24, 40, 0.12);
  --green: #2bb673;
  --blue: #2f6fed;
  --ember: #e85d2a;
  --white: #f8fafc;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(47, 111, 237, 0.08), transparent 55%),
    radial-gradient(900px 500px at -5% 20%, rgba(43, 182, 115, 0.07), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #eef3f8 45%, var(--paper-deep) 100%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.site-header-compact {
  background: rgba(11, 18, 32, 0.94);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: clamp(9.5rem, 22vw, 11.5rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: rgba(248, 250, 252, 0.86);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(248, 250, 252, 0.28);
  border-radius: 999px;
}

.nav-cta:hover {
  border-color: rgba(248, 250, 252, 0.55);
  background: rgba(248, 250, 252, 0.06);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(248, 250, 252, 0.25);
  border-radius: 0.55rem;
  background: transparent;
  padding: 0.7rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 0.2rem;
  font-weight: 500;
}

.mobile-nav[hidden] {
  display: none !important;
}

/* Hero — one composition, brand-first, full-bleed atmosphere */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--hero);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47, 111, 237, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 75%, rgba(43, 182, 115, 0.22), transparent 50%),
    radial-gradient(ellipse 40% 35% at 85% 80%, rgba(232, 93, 42, 0.18), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #132033 48%, #0e1726 100%);
  animation: atmosphere-shift 18s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(4rem, 12vh, 7rem);
  max-width: 42rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.hero-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-tagline {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
}

.hero-lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: rgba(226, 232, 240, 0.86);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), #1f9a5f 55%, var(--blue));
  color: var(--white);
  border: 1px solid transparent;
}

.btn-primary:hover {
  color: var(--white);
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid rgba(248, 250, 252, 0.35);
  color: var(--white);
  background: rgba(248, 250, 252, 0.04);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(248, 250, 252, 0.65);
  background: rgba(248, 250, 252, 0.08);
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lede {
  margin: 1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-platform .feature-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.feature-list li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.section-beta {
  padding-top: 0;
}

.beta-panel {
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.9)),
    linear-gradient(120deg, rgba(43, 182, 115, 0.08), rgba(47, 111, 237, 0.08));
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
}

.beta-points {
  margin: 1.5rem 0 1.75rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.beta-points li + li {
  margin-top: 0.4rem;
}

.section-contact {
  padding-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  font-style: normal;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.contact-card strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0 0 0.65rem;
}

.contact-card a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--blue);
}

/* Legal pages */
.legal-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 5rem;
}

.legal-inner {
  max-width: 46rem;
}

.legal-kicker {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.legal-kicker a {
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-kicker a:hover {
  color: var(--blue);
}

.legal-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
}

.legal-page ul {
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: var(--hero);
  color: rgba(248, 250, 252, 0.78);
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(248, 250, 252, 0.08);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-logo {
  width: 8.5rem;
  margin-bottom: 0.65rem;
}

.footer-tag,
.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.62);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-nav a {
  color: rgba(248, 250, 252, 0.86);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--white);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes atmosphere-shift {
  from {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(12deg) saturate(1.08);
    transform: scale(1.03);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-atmosphere,
  .btn {
    animation: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .section-platform .feature-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-width: none;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

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