:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0e1116;
  --ink-2: #3b414c;
  --ink-3: #6b7280;
  --line: #e7e9ee;
  --brand: #12a05c;
  --brand-ink: #0b7a45;
  --brand-bright: #4ade80;
  --blue: #5b8cff;
  --neg: #e5484d;
  --dark: #0b0c0f;
  --app-bg: #0c0d10;
  --app-panel: #131418;
  --app-line: #22242a;
  --app-ink: #e8e9ec;
  --app-mute: #6a6f79;
  --app-pos: #2ebd85;
  --app-neg: #f6465d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 16px 40px rgba(14, 17, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.container.wide {
  max-width: 1320px;
}

.container.narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.pos {
  color: var(--brand);
}

.neg {
  color: var(--neg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 17, 22, 0.18);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  /* The bull and arrow as a stencil, near-black on the light page. */
  background: var(--ink);
  -webkit-mask: url(brand/mktwiz-mark-mask.png) center / contain no-repeat;
  mask: url(brand/mktwiz-mark-mask.png) center / contain no-repeat;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a,
.link-quiet {
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-quiet {
  font-size: 15px;
  color: var(--ink-2);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 23px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu[hidden] {
  display: none;
}

@media (min-width: 721px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu a {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 12px;
  border-bottom: 0;
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.hero .a1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.55), transparent 65%);
  animation: drift-a 22s ease-in-out infinite;
}

.hero .a2 {
  width: 700px;
  height: 700px;
  top: -120px;
  right: -200px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.5), transparent 65%);
  animation: drift-b 26s ease-in-out infinite;
}

.hero .a3 {
  width: 560px;
  height: 560px;
  top: 360px;
  left: 30%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 65%);
  animation: drift-c 30s ease-in-out infinite;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(120px, 60px) scale(1.1);
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-140px, 90px) scale(0.92);
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(90px, -80px) scale(1.12);
  }
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 17, 22, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}

.dot-grid.dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 75%);
}

.spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  left: -260px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: soft-light;
}

.hero:hover .spotlight {
  opacity: 1;
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 960px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.pill-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(18, 160, 92, 0.5);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 189, 133, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(46, 189, 133, 0);
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  margin-top: 28px;
  font-size: clamp(46px, 7.6vw, 104px);
}

h2 {
  font-size: clamp(34px, 4.6vw, 60px);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rotator {
  color: #9aa1ab;
}

/* All words share one grid cell, so the slot is always as wide as the
   longest word and the headline never reflows as they rotate. */
.rotator-word {
  display: inline-grid;
}

.rotator-word > span {
  grid-area: 1 / 1;
  /* Keep each word tight against "finally"; spare width trails after it. */
  justify-self: start;
  text-align: left;
  /* Room below the baseline so descenders (the "g") aren't clipped by the
     gradient text; the negative margin keeps line spacing unchanged. */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
  background: linear-gradient(90deg, #12a05c, #3b82f6 55%, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.rotator-word > span.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.muted-line {
  color: #9aa1ab;
}

.lede {
  margin: 28px auto 0;
  max-width: 700px;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-2);
}

/* Waitlist form */
.waitlist {
  position: relative;
  margin: 36px auto 0;
  max-width: 540px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.waitlist input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist input[type="email"]:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 4px rgba(14, 17, 22, 0.06);
}

.form-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.form-note.ok {
  color: var(--brand-ink);
  font-weight: 500;
}

.form-note.err {
  color: var(--neg);
}

/* Interactive product shot */
.device-stage {
  position: relative;
  margin: 72px auto 0;
  max-width: 1200px;
  perspective: 1800px;
}

.device {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 196px 1fr;
  border-radius: 22px;
  border: 1px solid #23262d;
  background: var(--app-bg);
  color: var(--app-ink);
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(12, 13, 16, 0.12),
    0 40px 100px rgba(12, 13, 16, 0.3);
  font-size: 13.5px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 12px;
  border-right: 1px solid var(--app-line);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 2px 10px 18px;
}

.mini-mark {
  width: 18px;
  height: 18px;
  /* Beige gold inside the dark app preview, as in the app itself. */
  background: #e3c285;
  -webkit-mask: url(brand/mktwiz-mark-mask.png) center / contain no-repeat;
  mask: url(brand/mktwiz-mark-mask.png) center / contain no-repeat;
}

.app-nav {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9499a3;
  text-align: left;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button.app-nav:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-ink);
}

.app-nav.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--app-ink);
}

.app-nav.ghost {
  cursor: default;
  opacity: 0.55;
}

.app-main {
  padding: 24px;
  min-width: 0;
}

.app-tabs-mobile {
  display: none;
}

.app-view {
  display: none;
}

.app-view.is-active {
  display: block;
  animation: view-in 0.35s ease;
}

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

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 16px;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(46, 189, 133, 0.12);
  color: var(--app-pos);
  font-size: 11.5px;
  font-weight: 500;
}

.live-chip.light {
  background: rgba(18, 160, 92, 0.1);
  color: var(--brand-ink);
}

.panel {
  background: var(--app-panel);
  border: 1px solid var(--app-line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}

.strip {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin-bottom: 14px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid var(--app-line);
  min-width: 0;
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat span,
.stat i {
  color: var(--app-mute);
  font-style: normal;
  font-size: 12px;
}

.stat b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.stat.lg b {
  font-size: 28px;
}

.device .pos {
  color: var(--app-pos);
}

.device .neg {
  color: var(--app-neg);
}

.warnc {
  color: #e3a33b;
}

.flash-up {
  animation: flash-up 0.9s ease;
}

.flash-down {
  animation: flash-down 0.9s ease;
}

@keyframes flash-up {
  0% {
    text-shadow: 0 0 14px rgba(46, 189, 133, 0.9);
  }
  100% {
    text-shadow: none;
  }
}

@keyframes flash-down {
  0% {
    text-shadow: 0 0 14px rgba(246, 70, 93, 0.9);
  }
  100% {
    text-shadow: none;
  }
}

.app-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.seg button {
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--app-mute);
  font-size: 11.5px;
  cursor: pointer;
}

.seg button.is-on {
  background: #1d1f25;
  color: var(--app-ink);
}

.chart-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.chart-readout span {
  color: var(--app-mute);
  font-size: 12px;
}

.chart-readout b {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.chart-wrap {
  position: relative;
  height: 160px;
  cursor: crosshair;
}

.chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-svg rect {
  transition: opacity 0.15s ease;
}

.chart-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--app-bg);
  border: 2.5px solid var(--app-pos);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chart-wrap:hover .chart-dot,
.chart-wrap.active .chart-dot {
  opacity: 1;
}

[data-chart-cursor] {
  opacity: 0;
}

.chart-wrap:hover [data-chart-cursor],
.chart-wrap.active [data-chart-cursor] {
  opacity: 1;
}

.dim {
  color: var(--app-mute);
  font-size: 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
}

.row span {
  display: flex;
  flex-direction: column;
}

.row i {
  font-style: normal;
  font-size: 12px;
  color: var(--app-mute);
}

.list {
  padding: 6px 18px;
}

.pos-row,
.hold-row {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) 90px auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--app-line);
}

.hold-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.pos-row:first-child,
.hold-row:first-child {
  border-top: 0;
}

.pos-row > b,
.hold-row > b {
  white-space: nowrap;
  font-weight: 600;
  text-align: right;
}

.bar {
  height: 30px;
  border-radius: 4px;
}

.bar.g {
  background: var(--app-pos);
}

.bar.r {
  background: var(--app-neg);
}

.pr-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pr-main i {
  font-style: normal;
  font-size: 12px;
  color: var(--app-mute);
}

.health {
  height: 6px;
  border-radius: 999px;
  background: #1f2128;
  overflow: hidden;
}

.health em {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--app-pos);
}

.health.w em {
  background: #e3a33b;
}

.tags {
  display: flex;
  gap: 6px;
}

.tags em {
  font-style: normal;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #1d1f25;
  color: #b4b8c0;
  white-space: nowrap;
}

.tags em.good {
  background: rgba(46, 189, 133, 0.14);
  color: var(--app-pos);
}

.tags em.warn {
  background: rgba(227, 163, 59, 0.15);
  color: #e3a33b;
}

.sector-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  margin: 8px 0 12px;
}

.sector-bar em {
  border-radius: 999px;
  background: #e8e9ec;
}

.sector-bar em:nth-child(2) {
  background: var(--blue);
}

.sector-bar em:nth-child(3) {
  background: var(--app-pos);
}

.sector-bar em:nth-child(4) {
  background: #3a3d45;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 17, 22, 0.06);
  box-shadow: 0 18px 40px rgba(14, 17, 22, 0.14);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--ink-2);
  animation: float 7s ease-in-out infinite;
  /* Decorative: never block clicks on the product shot underneath. */
  pointer-events: none;
}

.float-card b {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.fc-label {
  font-size: 12px;
  color: var(--ink-3);
}

.fc-left {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  top: -22px;
  left: 22%;
}

.fc-right {
  top: 38%;
  right: -40px;
  animation-delay: -2.5s;
}

.fc-bottom {
  bottom: -26px;
  left: 18%;
  animation-delay: -4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.device-hint {
  margin: 44px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 24px;
  padding-bottom: 96px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.fact b {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fact > span:last-child {
  color: var(--ink-3);
  font-size: 14.5px;
}

.fact-icon,
.sec-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.fact-icon svg,
.sec-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sections */
.section {
  padding: 120px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
}

/* Feature explorer */
.explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.explorer-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--ink-3);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ex-tab:hover {
  background: var(--bg-soft);
}

.ex-tab.is-active {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.ex-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ex-desc {
  font-size: 15px;
  color: var(--ink-3);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ex-tab.is-active .ex-desc {
  max-height: 80px;
  opacity: 1;
}

.ex-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
}

.ex-tab.is-active .ex-progress {
  opacity: 1;
}

.ex-progress em {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
}

.explorer.paused .ex-progress {
  display: none;
}

.explorer-stage {
  position: relative;
  min-height: 440px;
  display: grid;
}

.stage-glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 40px;
  background:
    radial-gradient(50% 60% at 30% 40%, rgba(74, 222, 128, 0.32), transparent 70%),
    radial-gradient(50% 60% at 75% 60%, rgba(91, 140, 255, 0.3), transparent 70%);
  filter: blur(36px);
}

.ex-panel {
  grid-area: 1 / 1;
  position: relative;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.ex-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 2px 6px rgba(14, 17, 22, 0.04), 0 30px 70px rgba(14, 17, 22, 0.12);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head b {
  font-size: 16px;
}

.card .dim {
  color: var(--ink-3);
  font-size: 13px;
}

.chip-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.chip-switch button {
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-3);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.chip-switch button.is-on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(14, 17, 22, 0.12);
}

.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
  max-height: 80px;
  overflow: hidden;
}

.track-row.hidden {
  opacity: 0;
  max-height: 0;
  padding: 0;
  border-top-color: transparent;
}

.track-row span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-row i,
.score-row i {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}

.track-row > b {
  white-space: nowrap;
  font-weight: 600;
}

.big-live {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 26px;
}

.big-live b {
  font-size: clamp(38px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.margin-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ink-3);
}

.margin-head b {
  color: var(--ink);
  font-weight: 600;
}

.margin-bar {
  display: flex;
  gap: 4px;
  height: 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  overflow: hidden;
}

.margin-bar em {
  border-radius: 999px;
  animation: grow 1.2s ease;
}

@keyframes grow {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
}

.nse {
  background: var(--ink);
}

.mcx {
  background: var(--blue);
}

.margin-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.margin-legend i,
.score-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 3px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.bars button {
  flex: 1;
  position: relative;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.bars button i {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: var(--zero, 50%);
  height: var(--h, 10%);
  border-radius: 5px 5px 2px 2px;
  background: rgba(18, 160, 92, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}

.bars button.loss i {
  bottom: auto;
  top: calc(100% - var(--zero, 50%));
  border-radius: 2px 2px 5px 5px;
  background: rgba(229, 72, 77, 0.32);
}

.bars button:hover i {
  background: rgba(18, 160, 92, 0.6);
}

.bars button.loss:hover i {
  background: rgba(229, 72, 77, 0.55);
}

.bars button.is-on i {
  background: var(--brand);
}

.bars button.loss.is-on i {
  background: var(--neg);
}

.drill {
  padding-top: 14px;
}

.drill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.drill-head span {
  color: var(--ink-3);
  font-size: 13.5px;
}

.drill-head b {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.drill-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  animation: view-in 0.3s ease;
}

.drill-row i {
  font-style: normal;
  color: var(--ink-3);
  font-size: 12.5px;
  display: block;
}

.drill-row b {
  white-space: nowrap;
  font-weight: 600;
}

.payoff {
  width: 100%;
  height: 200px;
  display: block;
  margin: 4px 0 10px;
  overflow: visible;
}

.payoff .zero {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.payoff .curve {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.payoff .profit-area {
  fill: rgba(18, 160, 92, 0.16);
}

.payoff .loss-area {
  fill: rgba(229, 72, 77, 0.12);
}

.payoff .marker {
  stroke: var(--brand);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.slider-row input {
  flex: 1;
  accent-color: var(--ink);
  height: 28px;
  cursor: grab;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-stats i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-3);
}

.mini-stats b {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.score-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.score-row span:first-child {
  display: flex;
  flex-direction: column;
}

.score-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.score-bars em {
  display: block;
  height: 7px;
  width: 0;
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.score-bars em.q,
.score-legend .q {
  background: var(--brand);
}

.score-bars em.v,
.score-legend .v {
  background: var(--blue);
}

.score-bars em.m,
.score-legend .m {
  background: #a78bfa;
}

.score-legend {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.perm-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.perm-list li {
  position: relative;
  padding: 13px 0 13px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.2s ease;
}

.perm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(18, 160, 92, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230b7a45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: background 0.2s ease;
}

.perm-list li.off {
  color: #b3b8c1;
}

.perm-list li.off::before {
  background: var(--bg-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23b3b8c1' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 47px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease 0.2s;
}

.steps.visible::before {
  transform: scaleX(1);
}

.steps li {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.step-n {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 6px #fff;
}

.steps p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* Security */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-copy p {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 520px;
}

.sec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sec-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
}

.sec-list .sec-icon {
  margin: 0;
  background: #fff;
  flex-shrink: 0;
}

.sec-list li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-list i {
  font-style: normal;
  color: var(--ink-3);
  font-size: 15px;
}

/* FAQ */
details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-2);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 14px 0 0;
  color: var(--ink-2);
  max-width: 700px;
  animation: view-in 0.3s ease;
}

/* Closing CTA */
.cta {
  position: relative;
  padding: 140px 0;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta .a1 {
  width: 640px;
  height: 640px;
  top: -200px;
  left: 8%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.32), transparent 65%);
  animation: drift-a 24s ease-in-out infinite;
}

.cta .a2 {
  width: 700px;
  height: 700px;
  bottom: -300px;
  right: 6%;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.34), transparent 65%);
  animation: drift-b 28s ease-in-out infinite;
}

.cta-inner {
  position: relative;
  text-align: center;
}

.cta h2 {
  font-size: clamp(44px, 7vw, 88px);
}

.cta p {
  margin: 20px 0 0;
  font-size: 19px;
  color: #a7adb8;
}

.waitlist.on-dark input[type="email"] {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.waitlist.on-dark input[type="email"]::placeholder {
  color: #8a909b;
}

.waitlist.on-dark .form-note {
  color: #8a909b;
}

.waitlist.on-dark .form-note.ok {
  color: var(--brand-bright);
}

.waitlist.on-dark .form-note.err {
  color: #ff8a8f;
}

/* Footer */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.disclaimer {
  max-width: 480px;
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.copyright {
  margin-top: 40px;
  color: var(--ink-3);
  font-size: 13.5px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .steps::before {
    transform: scaleX(1);
  }
}

/* Tablet */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .explorer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .explorer-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    margin: 0 -32px;
    padding: 4px 32px 8px;
    scroll-snap-type: x mandatory;
  }

  .explorer-tabs::-webkit-scrollbar {
    display: none;
  }

  .ex-tab {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-color: var(--line);
    background: #fff;
    scroll-snap-align: start;
  }

  .ex-title {
    font-size: 15px;
    white-space: nowrap;
  }

  .ex-desc,
  .ex-progress {
    display: none;
  }

  .ex-tab.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
  }

  .explorer-stage {
    min-height: 0;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fc-left {
    left: 16%;
  }

  .fc-right {
    right: 12px;
  }
}

/* Phone */
@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .explorer-tabs {
    margin: 0 -20px;
    padding: 4px 20px 8px;
  }

  .nav-inner {
    height: 64px;
  }

  .link-quiet,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero {
    padding: 56px 0 48px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .lede {
    font-size: 17px;
  }

  .waitlist .btn {
    flex: 1 1 100%;
  }

  .device-stage {
    margin-top: 48px;
    perspective: none;
  }

  .device {
    grid-template-columns: 1fr;
    border-radius: 18px;
    font-size: 13px;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 14px;
  }

  .app-tabs-mobile {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 14px;
    border: 1px solid var(--app-line);
    border-radius: 11px;
  }

  .app-tabs-mobile button {
    flex: 1;
    padding: 8px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--app-mute);
    font-size: 13px;
    cursor: pointer;
  }

  .app-tabs-mobile button.is-active {
    background: #1d1f25;
    color: var(--app-ink);
  }

  .app-title {
    display: none;
  }

  .panel {
    padding: 14px;
  }

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

  .stat.lg {
    grid-column: 1 / -1;
  }

  .stat:nth-child(2) {
    padding-left: 0;
    border-left: 0;
  }

  .stat {
    padding: 0 12px;
  }

  .stat b {
    font-size: 16px;
  }

  .stat.lg b {
    font-size: 30px;
  }

  .hide-xs {
    display: none;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .accounts-panel {
    display: none;
  }

  .pos-row {
    grid-template-columns: 4px minmax(0, 1fr) auto;
  }

  .pos-row .health,
  .hold-row .tags {
    display: none;
  }

  .hold-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .float-card {
    display: none;
  }

  .device-hint {
    margin-top: 18px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 72px;
  }

  .fact {
    padding: 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .card {
    padding: 20px;
    border-radius: 18px;
  }

  .score-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-stats b {
    font-size: 15px;
  }

  .payoff {
    height: 170px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .steps li {
    padding: 26px;
  }

  summary {
    font-size: 17px;
  }

  .cta {
    padding: 96px 0;
  }

  .footer-links {
    gap: 22px;
  }
}
