:root {
  color-scheme: dark;
  --canvas: #080b10;
  --surface: #10151d;
  --surface-raised: #151c27;
  --border: #242d3a;
  --border-strong: #354153;
  --text: #f4f7fb;
  --text-soft: #c7cfda;
  --muted: #8f9aaa;
  --faint: #687486;
  --teal: #35d0b0;
  --teal-soft: #89ead6;
  --teal-wash: rgba(53, 208, 176, .11);
  --shadow: 0 30px 100px rgba(0, 0, 0, .42);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% -12%, rgba(53, 208, 176, .095), transparent 33rem),
    radial-gradient(circle at -8% 42%, rgba(89, 96, 180, .08), transparent 30rem),
    var(--canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(53, 208, 176, .4); }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 10px;
  color: #080b10;
  background: var(--text);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.page-orbit {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-orbit::before,
.page-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .025);
  border-radius: 50%;
}

.page-orbit::before { width: 42rem; height: 42rem; top: -23rem; right: -10rem; }
.page-orbit::after { width: 25rem; height: 25rem; top: -14rem; right: -1rem; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(36, 45, 58, .76);
}

/* THE WHITE TILE IS GONE WITH THE PNG IT WAS BUILT FOR. It existed because
   the old 2048x768 artwork was dark and needed a light plate to sit on. The
   mark is drawn in the page's own ink now, so a plate would only box it in -
   and a near-white plate is what made the mark invisible when the paths were
   still inheriting currentColor. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

/* Sized and coloured exactly as the app sidebar renders it, so the two pages
   show one lockup rather than two that nearly match. Explicit fills: these
   paths must not inherit a colour from whatever encloses them again. */
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark .brand-body { fill: var(--text); stroke: none; }
.brand-mark .brand-flag { fill: #29c7ba; stroke: none; }
.brand-name { font-size: 23px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.brand-name strong { font-weight: 800; }

.header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.header-link:hover { color: var(--teal-soft); }
.header-link svg { width: 17px; height: 17px; }

main { padding-top: 94px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  min-height: 560px;
}

.eyebrow {
  color: var(--teal-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  margin: 17px 0 21px;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 720;
  letter-spacing: -.062em;
  line-height: .99;
}

.hero h1 span { color: #9aa5b4; }

.hero-copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

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

.hero-actions > span { color: var(--faint); font-size: 12px; }

.primary-action,
.secondary-action {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.primary-action { color: #07100e; background: var(--teal); box-shadow: 0 16px 40px rgba(53, 208, 176, .13); }
.primary-action:hover { background: #55ddc1; transform: translateY(-1px); }
.primary-action svg { width: 18px; height: 18px; }

.research-surface {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(21, 28, 39, .96), rgba(12, 17, 24, .98));
  box-shadow: var(--shadow);
}

.research-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  pointer-events: none;
}

.surface-head {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 21px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .035em;
}

.surface-status { display: flex; align-items: center; gap: 7px; }
.surface-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(53, 208, 176, .09); }

.curve { width: 100%; height: 276px; }
.grid-line { stroke: rgba(255, 255, 255, .043); stroke-width: 1; }
.curve-fill { fill: url(#curve-fill); stroke: none; }
.curve-line { stroke: var(--teal); stroke-width: 2.5; }
.curve-point { fill: var(--surface); stroke: var(--teal); stroke-width: 3; }
.curve-point.second { stroke: #8d95ff; }

.surface-steps {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(12, 17, 24, .88);
  backdrop-filter: blur(9px);
}

.surface-steps > div { padding: 14px 15px; border-right: 1px solid var(--border); }
.surface-steps > div:last-child { border-right: 0; }
.surface-steps span,
.surface-steps strong,
.surface-steps small { display: block; }
.surface-steps span { color: var(--teal); font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.surface-steps strong { margin-top: 6px; font-size: 12px; }
.surface-steps small { margin-top: 1px; color: var(--faint); font-size: 9.5px; }

.workflow { padding: 138px 0 110px; }

.section-intro {
  display: grid;
  grid-template-columns: 230px minmax(0, 650px);
  align-items: start;
  gap: 50px;
  margin-bottom: 46px;
}

.section-intro h2,
.access-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--border);
}

.workflow-grid article { min-height: 240px; padding: 28px; background: rgba(16, 21, 29, .97); }
.step-number { color: var(--teal); font: 750 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.workflow-grid h3 { margin: 60px 0 10px; font-size: 21px; letter-spacing: -.025em; }
.workflow-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.access-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0, rgba(53, 208, 176, .13), transparent 24rem),
    var(--surface);
}

.access-panel > div { max-width: 700px; }
.access-panel h2 { margin-top: 11px; }
.access-panel p { margin: 14px 0 0; color: var(--muted); }

.secondary-action {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  background: var(--surface-raised);
}

.secondary-action:hover { color: var(--text); border-color: var(--teal); transform: translateY(-1px); }

.trust-strip {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(25px, 7vw, 84px);
  color: var(--muted);
  font-size: 12px;
}

.trust-strip span { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

footer {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--border);
}

.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 19px; }
footer p { max-width: 610px; margin: 0; color: var(--faint); font-size: 12px; text-align: right; }

@media (max-width: 940px) {
  main { padding-top: 72px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 760px; }
  .research-surface { width: min(100%, 680px); }
  .section-intro { grid-template-columns: 1fr; gap: 14px; }
  .access-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 1180px); }
  .site-header { min-height: 72px; }
  .brand-mark { width: 30px; height: 30px; }
  .footer-brand .brand-mark { width: 26px; height: 26px; }
  .header-link { font-size: 0; }
  .header-link::before { content: "Open app"; font-size: 12px; }
  .hero { gap: 44px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .primary-action { width: 100%; }
  .research-surface { min-height: 360px; }
  .curve { height: 218px; }
  .surface-steps { grid-template-columns: 1fr; position: static; }
  .surface-steps > div { display: grid; grid-template-columns: 26px 78px 1fr; align-items: center; border-right: 0; border-top: 1px solid var(--border); }
  .surface-steps > div:first-child { border-top: 0; }
  .surface-steps strong,
  .surface-steps small { margin: 0; }
  .workflow { padding: 92px 0 78px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 190px; }
  .workflow-grid h3 { margin-top: 42px; }
  .access-panel { padding: 28px; }
  .secondary-action { width: 100%; }
  .trust-strip { align-items: flex-start; flex-direction: column; gap: 9px; padding: 31px 4px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .research-surface,
  .workflow-grid,
  .access-panel { border: 1px solid CanvasText; }
  .surface-status i,
  .trust-strip i { forced-color-adjust: none; }
}
