:root {
  --bg: #f4f7fd;
  --bg-hero-top: #f8fbff;
  --bg-hero-bottom: #e7effc;
  --surface: #ffffff;
  --ink: #0b1530;
  --muted: #56607a;
  --line: #dbe3f2;
  --blue: #1a3fb8;
  --sky: #3192ef;
  --glow: #a8dcff;
  --label: #1a3fb8;
  --button-ink: #ffffff;
  --desk-screen-top: #dfe8f8;
  --desk-screen-bottom: #c9d7f2;
  --device: #121a30;
  --window: #ffffff;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1e;
    --bg-hero-top: #0c1326;
    --bg-hero-bottom: #0a0f1e;
    --surface: #10172d;
    --ink: #e8eefc;
    --muted: #9aa6c4;
    --line: #222c4a;
    --label: #8cc4ff;
    --desk-screen-top: #1c2747;
    --desk-screen-bottom: #141d38;
    --device: #05080f;
    --window: #26335a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  font-size: 0.95rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; }

.nav-links { display: flex; gap: 24px; }

.nav-links a { text-decoration: none; color: var(--muted); }

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

.hero { background: linear-gradient(180deg, var(--bg-hero-top), var(--bg-hero-bottom)); }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
  padding-block: 40px 88px;
}

.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.lede { margin: 0; font-size: 1.18rem; color: var(--muted); max-width: 44ch; }

.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:focus-visible, .nav a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn.primary { background: var(--blue); color: var(--button-ink); box-shadow: 0 10px 24px -12px var(--blue); }

.btn.primary:hover { transform: translateY(-1px); }

.btn.ghost { border: 1px solid var(--line); background: var(--surface); color: var(--label); }

.specs { display: flex; gap: 18px; flex-wrap: wrap; font: 500 0.85rem var(--mono); color: var(--muted); }

.desk { position: relative; display: flex; align-items: flex-end; gap: 4%; min-width: 0; }

.monitor {
  width: 62%;
  aspect-ratio: 16 / 10;
  background: var(--device);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .55);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--desk-screen-top), var(--desk-screen-bottom));
}

.window {
  position: absolute;
  background: var(--window);
  border-radius: 6px;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45);
}

.window::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 26px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ff5f57 0 30%, transparent 30% 36%, #febc2e 36% 66%, transparent 66% 72%, #28c840 72%);
}

.ipad {
  position: relative;
  width: 34%;
  aspect-ratio: 3 / 4;
  background: var(--device);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 20px 50px -20px rgba(11, 21, 48, .5);
  transition: box-shadow .5s ease;
}

.ipad .screen {
  background: linear-gradient(160deg, var(--desk-screen-top), var(--desk-screen-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ipad.lit { box-shadow: 0 0 0 1px rgba(168, 220, 255, .25), 0 24px 70px -8px rgba(49, 146, 239, .7); }

.ipad-label { font: 500 0.7rem var(--mono); color: var(--muted); }

.clock { font: 500 clamp(0.95rem, 2vw, 1.4rem) var(--mono); color: var(--label); font-variant-numeric: tabular-nums; }

.cursor {
  position: absolute;
  top: 44%;
  left: 24%;
  width: 22px;
  height: 30px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
}

.section { background: var(--surface); border-top: 1px solid var(--line); }

.section .wrap { padding-block: 72px; display: flex; flex-direction: column; gap: 22px; }

.eyebrow { font: 500 0.8rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--label); }

h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; text-wrap: balance; }

.section p { margin: 0; color: var(--muted); max-width: 62ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.card.accent { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); }

.card.soft { border: none; background: var(--bg); }

.card h3 { margin: 0; font-size: 1.12rem; }

.card ul, .card ol { margin: 0; padding-left: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }

.pipeline { display: flex; overflow-x: auto; }

.stage {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stage:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; }

.stage:last-child { border-radius: 0 12px 12px 0; }

.stage small { color: var(--muted); font-size: 0.88rem; }

.stage .value { font: 500 0.88rem var(--mono); color: var(--label); margin-top: 4px; }

.code { font: 500 2.6rem var(--mono); letter-spacing: .14em; color: var(--label); }

.note { font-size: 0.9rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; }

code { font: 0.9em var(--mono); }

.footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 26px; color: var(--muted); font-size: 0.92rem; }

.footer a { text-decoration: none; }

@media (max-width: 820px) {
  .hero-body { grid-template-columns: 1fr; padding-block: 16px 64px; }
  .nav-links a:not(:last-child) { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ipad { transition: none; }
}
