:root {
  --ink: #0b1420;
  --ink-2: #101d2c;
  --ink-3: #1a2a3c;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e3dfd6;
  --text: #16212e;
  --muted: #5a6675;
  --mint: #2ee6a6;
  --green: #0c8f67;
  --gold: #e0b050;
  --on-dark: #e9eef3;
  --on-dark-muted: #9aa8b7;
  --radius: 14px;
  --wrap: 1140px;
  --display: "Sora", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--mint); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 32, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: var(--on-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-sub { font-weight: 700; color: var(--mint); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 15px; color: var(--on-dark-muted); transition: color .15s;
}
.nav-links a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mint); color: var(--ink);
  font: 600 16px/1 var(--body);
  padding: 15px 24px; border-radius: 10px; border: 1px solid var(--mint);
  text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(46, 230, 166, .25); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 85% -10%, #153247 0%, transparent 60%), var(--ink);
  color: var(--on-dark);
  padding: 96px 0 110px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 26px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(46, 230, 166, .16); }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 600; }
h1 em { font-style: normal; color: var(--mint); }
.lede { margin-top: 26px; font-size: 19px; color: var(--on-dark-muted); max-width: 54ch; }
.cta-row { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.panel-title { font: 400 12px/1 var(--mono); color: var(--on-dark-muted); }
.panel-chart { display: block; width: 100%; height: 260px; }
.panel-chart .line { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.panel-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.panel-chips span {
  font: 500 12px/1 var(--mono); color: var(--on-dark-muted);
  padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px;
}

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; }
.section-head h2 + p { margin-top: 18px; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #cfd8d2; box-shadow: 0 18px 40px rgba(11, 20, 32, .08); }
.card-no { font: 500 13px/1 var(--mono); color: var(--green); }
.card h3 { font-size: 20px; font-weight: 600; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }

.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .kicker { color: var(--mint); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.steps li { padding: 32px 28px 0 0; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .08); }
.step-no { font: 500 13px/1 var(--mono); color: var(--ink); background: var(--mint); width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; }
.steps h3 { font-size: 20px; font-weight: 600; margin: 20px 0 10px; }
.steps p { color: var(--on-dark-muted); font-size: 16px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 26px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.principles p { color: var(--muted); }

/* Products */
.section-products { padding-bottom: 72px; }
.tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 28px;
  background: #e9e6de; border-radius: 12px; max-width: 100%; overflow-x: auto;
}
.tab {
  font: 600 15px/1 var(--body); color: var(--muted);
  background: none; border: 0; border-radius: 9px; padding: 12px 20px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.product { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.product-copy h3 { font-size: 30px; font-weight: 600; }
.product-tag { margin-top: 12px; font-size: 18px; color: var(--muted); }
.product-points { list-style: none; margin: 24px 0 30px; padding: 0; }
.product-points li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); font-size: 16px; }
.product-points li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.demo-window, .demo-video {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(11, 20, 32, .3); border-radius: 16px;
  box-shadow: 0 30px 70px rgba(11, 20, 32, .25);
  color: var(--on-dark); overflow: hidden; min-width: 0;
}
.demo-video { display: block; width: 100%; height: auto; }
.demo-window .demo-video { border: 0; border-radius: 0; box-shadow: none; }
.demo-badge {
  margin-left: auto; font: 500 11px/1 var(--mono); color: var(--gold);
  border: 1px solid rgba(224, 176, 80, .4); border-radius: 999px; padding: 5px 9px;
}

@keyframes pulse { 50% { opacity: .3; } }
.product-panel[hidden] { display: none; }

/* Section walkthrough: numbered list of sections, the chosen screen beside it */
.walk {
  margin-top: 64px; display: grid; grid-template-columns: minmax(250px, .62fr) 1.38fr; gap: 14px 40px; align-items: start;
}
.walk-title { grid-column: 1 / -1; font: 600 22px/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 10px; }
.walk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.walk-item { border-bottom: 1px solid var(--line); }
.walk-btn {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 14px 4px; text-align: left;
  background: none; border: 0; cursor: pointer; font: 600 16px/1.35 var(--body); color: var(--muted);
}
.walk-btn:hover { color: var(--text); }
.walk-no { font: 500 12px/1 var(--mono); color: var(--green); min-width: 20px; }
.walk-item.on .walk-btn { color: var(--text); }
.walk-desc { display: none; padding: 0 4px 16px 38px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.walk-item.on .walk-desc { display: block; animation: fadein .25s; }
.walk-stage {
  position: sticky; top: 92px; margin: 0; min-width: 0;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid rgba(11, 20, 32, .3);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(11, 20, 32, .2); overflow: hidden;
  display: grid; place-items: center; min-height: 240px;
}
.walk-stage img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; transition: opacity .18s; cursor: zoom-in; }
.walk-stage img.swap { opacity: .35; }
.walk-note { grid-column: 2; font-size: 13.5px; color: var(--muted); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

.live-pill {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 8px;
  font: 600 12px/1 var(--body); letter-spacing: .02em; color: var(--green);
  background: rgba(12, 143, 103, .1); border-radius: 999px; padding: 6px 10px;
}
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--text); border-color: #c9c4b8; }
.btn-outline:hover { background: #fff; box-shadow: none; }
.demo-shot { display: block; position: relative; text-decoration: none; }
.demo-shot img, .demo-shot video { display: block; width: 100%; height: auto; background: #0b0f14; }
.embed-view { position: relative; width: 100%; overflow: hidden; background: #0b1220; }
.embed-view iframe {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0;
  transform-origin: 0 0; pointer-events: none;
}
.demo-badge-live { color: var(--mint); border-color: rgba(46, 230, 166, .4); }
.demo-overlay {
  position: absolute; right: 16px; bottom: 16px;
  font: 600 14px/1 var(--body); color: var(--ink); background: var(--mint);
  padding: 11px 15px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.demo-shot:hover .demo-overlay { transform: translateY(-2px); }
.demo-shot:hover { border-color: rgba(46, 230, 166, .5); }

/* Contact */
.section-contact { background: #ecefe9; border-top: 1px solid var(--line); }
.contact-direct { margin-top: 28px; color: var(--muted); }
.contact-direct a { font: 600 20px/1.5 var(--display); color: var(--green); text-decoration: none; border-bottom: 2px solid rgba(12, 143, 103, .3); }
.contact-direct a:hover { border-bottom-color: var(--green); }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full, .form-note, .form .btn { grid-column: 1 / -1; }
label { font-weight: 500; font-size: 14px; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  font: inherit; font-size: 16px; color: var(--text);
  background: #fbfaf7; border: 1px solid #d5d1c7; border-radius: 9px;
  padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(12, 143, 103, .15); }
.form-note { font-size: 14px; color: var(--muted); }
.form-note.error { color: #b3261e; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 34px; font-size: 15px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-name { font: 600 17px/1.4 var(--display); color: var(--on-dark); margin-bottom: 10px; }
.todo { color: var(--gold); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; font-size: 13.5px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 64px 0 76px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 20px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .section-head { position: static; }
  .product { grid-template-columns: 1fr; gap: 32px; }
  .product-copy { order: 2; }
  .walk { grid-template-columns: 1fr; margin-top: 48px; }
  .walk-stage { position: relative; top: 0; order: -1; grid-row: 2; }
  .walk-title { grid-row: 1; }
  .walk-list { grid-row: 3; }
  .walk-note { grid-column: 1; grid-row: 4; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-links .btn { margin-top: 16px; padding: 14px; font-size: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .steps, .form { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0 22px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .steps li:first-child { border-top: 0; }
  .form { padding: 22px; }
  .panel-chart { height: 200px; }
  .lede { font-size: 17px; }
  .tab { padding: 11px 14px; font-size: 14px; }
  .walk-btn { font-size: 15px; padding: 13px 2px; }
  .walk-desc { padding-left: 34px; }
  .demo-badge { font-size: 10px; }
  .demo-overlay { right: 10px; bottom: 10px; font-size: 12.5px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .panel-chart .line { animation: none; stroke-dashoffset: 0; }
}
