:root {
  color-scheme: dark;
  font-family: "Instrument Sans", "Segoe UI", system-ui, Arial, sans-serif;
  color: #f3f6fb;
  background: #0b1119;
  --text: #f3f6fb;
  --muted: #adbccd;
  --line: #293746;
  --accent: #60e9d2;
  --positive: #68edb8;
  --negative: #ff9ca7;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a4fff0; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

.frame { width: min(calc(100% - 5rem), 1216px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-row { min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 740;
  font-size: 1.125rem;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { color: var(--muted); font-size: .94rem; text-decoration: none; }
.nav-link:hover { color: var(--text); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { background: var(--accent); color: #082721; }
.button-primary:hover { background: #95fce9; }
.button-outline { color: var(--text); border-color: #405367; }
.button-outline:hover { background: #192634; }
.button-quiet { background: #192638; color: #e4ecf6; border-color: #354a60; }
.button-quiet:hover { background: #253a50; }

main {
  background: radial-gradient(ellipse at 82% 10%, #10242d 0, #0b1119 48%);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2.2rem, 5vw, 5.25rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.062em;
  text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.formats) {
  max-width: 38ch;
  margin-top: 1.45rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.formats { color: var(--muted); margin-top: .85rem; font-size: .875rem; line-height: 1.45; }

.preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #35485b;
  border-radius: 16px;
  background: #111821;
  box-shadow: 0 18px 42px #06090d85;
}
.preview-head, .preview-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.preview-head { padding: 1rem 1.12rem .65rem; }
.preview-symbol { font-weight: 750; font-size: 1.05rem; }
.preview-unit { color: var(--muted); margin-left: .45rem; font-size: .875rem; }
.preview-demo {
  color: #a4f5e7;
  font-size: .875rem;
  background: #143530;
  padding: .25rem .55rem;
  border-radius: 5px;
}
.preview-quote { padding-inline: 1.1rem; padding-bottom: .4rem; }
.preview-quote output { font-size: 1.5rem; font-weight: 680; color: var(--text); font-variant-numeric: tabular-nums; }
.quote-change { margin-left: .5rem; font-size: .875rem; color: var(--positive); font-variant-numeric: tabular-nums; }
.quote-change.loss { color: var(--negative); }
.preview-chart { width: 100%; height: clamp(210px, 22vw, 325px); display: block; background: #111821; pointer-events: none; }
.preview-foot { padding: .75rem 1.12rem; border-top: 1px solid var(--line); }
.preview-foot .button { min-height: 38px; min-width: 100px; padding: .45rem .8rem; }
.preview-foot span { margin-left: auto; color: var(--muted); font-size: .875rem; }

.workflow { border-block: 1px solid var(--line); background: #0f1823; scroll-margin-top: 1rem; }
.workflow-inner { padding-block: clamp(2.65rem, 5.6vw, 4.6rem); }
h2 { color: var(--text); font-size: clamp(1.85rem, 3.8vw, 3rem); letter-spacing: -.04em; line-height: 1.12; text-wrap: balance; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; margin-top: 1.75rem; }
.features article { border-top: 2px solid #346b6a; padding: 1.05rem 1.35rem 0 0; }
.features h3 { font-size: 1.14rem; letter-spacing: -.018em; line-height: 1.25; }
.features p, .start p { margin-top: .55rem; color: var(--muted); line-height: 1.6; }
.start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-block: clamp(2.6rem, 6vw, 4.8rem);
}
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 78px; color: var(--muted); font-size: .875rem; }
.footer-row .brand { font-size: .97rem; color: var(--text); }
.footer-links { gap: 1.25rem; flex-wrap: wrap; }

@media (max-width: 850px) {
  .frame { width: min(calc(100% - 3.2rem), 690px); }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .preview-chart { height: clamp(240px, 44vw, 335px); }
}
@media (max-width: 560px) {
  .frame { width: calc(100% - 2rem); }
  .header-row { min-height: 66px; gap: .5rem; }
  .brand { gap: .3rem; font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .header-row nav { gap: .5rem; }
  .nav-link { display: none; }
  .header-row .button { min-height: 41px; font-size: .875rem; padding-inline: .6rem; }
  .hero { padding-block: 2.8rem 2.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.7rem); }
  .features { grid-template-columns: 1fr; gap: 1.4rem; }
  .features article { padding-right: 0; }
  .start { flex-direction: column; align-items: flex-start; }
  .footer-row { align-items: flex-start; justify-content: center; flex-direction: column; gap: .45rem; padding-block: .9rem; }
}
@media (max-width: 420px) {
  .header-replay { display: none; }
}
