:root {
  --night: #102550;
  --wing-light: #66d7f5;
  --wing: #347ce8;
  --wing-deep: #2544ad;
  --dial: #284b86;
  --pip: #ffd34f;
  --paper: #e7e7ef;
  --paper-light: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --muted: #4a5a78;
  --line: rgba(16, 37, 80, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--night);
  background:
    radial-gradient(circle at 88% -4%, rgba(102, 215, 245, 0.28), transparent 34rem),
    radial-gradient(circle at 4% 28%, rgba(52, 124, 232, 0.12), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: var(--wing); font-weight: 650; text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--night);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark:hover { text-decoration: none; }
.wordmark img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(16, 37, 80, 0.12);
}
.site-nav { display: flex; gap: 24px; font-size: 0.92rem; }
.site-nav a { color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--night); }

.eyebrow {
  color: var(--wing);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, .display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); }
h2 { font-size: clamp(2.15rem, 5vw, 3.8rem); }
h3 { font-size: 1rem; }

/* Brand-led hero: mark is the plane, name is the title. */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  min-height: 680px;
  padding: 56px 0 72px;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(68vh, 560px);
  margin: 0 calc(-1 * max(0px, (100vw - 1120px) / 2));
  padding: 24px 0;
  overflow: hidden;
}

.hero-mark::before {
  position: absolute;
  inset: 8% 4%;
  border-radius: 48% 42% 46% 54% / 44% 48% 42% 56%;
  background:
    radial-gradient(circle at 35% 30%, rgba(102, 215, 245, 0.45), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(37, 68, 173, 0.35), transparent 50%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.hero-mark img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  border-radius: 28%;
  box-shadow:
    0 28px 64px rgba(16, 37, 80, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: mark-settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mark-settle {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 10px 0 22px;
  animation: copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-copy .lede {
  animation: copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  animation: copy-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

@keyframes copy-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  color: var(--paper-light);
  background: linear-gradient(135deg, var(--wing) 0%, var(--wing-deep) 100%);
  box-shadow: 0 12px 28px rgba(52, 124, 232, 0.28);
}

.button:hover {
  background: var(--night);
  text-decoration: none;
}
.quiet-link { color: var(--muted); }

.section { padding: 96px 0; border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading p,
.prose,
.feature p,
.story p,
.legal-card p,
.legal-card li { color: var(--muted); }

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 72px;
  align-items: center;
}
.story-copy h2 { margin: 16px 0 24px; }
.story-copy p + p { margin-top: 18px; }

.device-memory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.42);
}

.device-state {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  background: var(--paper-light);
}
.device-state h3 { margin-top: 42px; }
.device-state p { margin-top: 5px; color: var(--muted); font-size: 0.86rem; }
.indicator {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(74, 90, 120, 0.28);
}
.indicator.ready {
  background: var(--wing);
  box-shadow: 0 0 0 8px rgba(52, 124, 232, 0.16);
}
.indicator.running {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--wing-light) 45%, rgba(37, 68, 173, 0.25) 45%);
}
.indicator.done {
  background: var(--pip);
  box-shadow: inset 0 0 0 3px var(--paper-light), 0 0 0 1px var(--pip);
}

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.feature-number {
  display: block;
  margin-bottom: 52px;
  color: var(--wing);
  font-family: var(--serif);
  font-size: 0.9rem;
}
.feature:nth-child(2) .feature-number { color: var(--wing-deep); }
.feature:nth-child(3) .feature-number { color: var(--dial); }
.feature:nth-child(4) .feature-number { color: #1f7a5c; }
.feature h3 { margin-bottom: 10px; }

.closing {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 44px;
  border-radius: 30px;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 88% 12%, rgba(102, 215, 245, 0.28), transparent 18rem),
    linear-gradient(145deg, var(--dial) 0%, var(--night) 100%);
}

.closing h2 { max-width: 650px; }
.closing p { max-width: 540px; margin-top: 18px; color: rgba(255, 255, 255, 0.68); }
.closing a { color: var(--pip); }
.page-hero { padding: 72px 0 42px; }
.page-hero h1 {
  max-width: 800px;
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}
.page-hero .lede { max-width: 720px; }
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 72px;
}

.info-card, .legal-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.info-card h2, .legal-card h2 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.contact-card { grid-column: 1 / -1; border-color: rgba(52, 124, 232, 0.42); }
.legal-wrap { max-width: 820px; padding-bottom: 72px; }
.legal-card { padding: clamp(26px, 5vw, 48px); }
.legal-card h2 { margin-top: 32px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card ul { margin: 8px 0 0 22px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links { display: flex; gap: 18px; }

@media (max-width: 820px) {
  .hero, .story, .section-heading { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; min-height: auto; }
  .hero-mark {
    min-height: 320px;
    margin: 0;
    order: -1;
  }
  .hero-mark img { width: min(72vw, 300px); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section-heading { gap: 24px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, 1120px); }
  .site-header { min-height: 74px; }
  .site-nav a:first-child { display: none; }
  .site-nav { gap: 14px; }
  .hero { padding: 28px 0 56px; }
  .hero-links { align-items: flex-start; flex-direction: column; }
  .section { padding: 68px 0; }
  .features, .content-grid { grid-template-columns: 1fr; }
  .feature { min-height: 180px; }
  .feature-number { margin-bottom: 34px; }
  .closing { grid-template-columns: 1fr; padding: 30px; }
  .contact-card { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark img,
  .hero-copy h1,
  .hero-copy .lede,
  .hero-links { animation: none; }
}
