/* NYOTA: the trader app's green and gold, laid out like a trading console. Light and dark. */
:root {
  --bg: #f5f7f4;
  --bg-alt: #ecf1ec;
  --surface: #ffffff;
  --surface-2: #f3f6f3;
  --ink: #0d1a13;
  --mute: #4c5a52;
  --line: rgba(13, 26, 19, 0.1);
  --line-strong: rgba(13, 26, 19, 0.18);
  --green: #17603a;
  --green-soft: #dcebd8;
  --on-green: #ffffff;
  --gold: #e0a21f;
  --gold-ink: #8a5d00;
  --gold-soft: rgba(224, 162, 31, 0.14);
  --hl-end: #8a5d00;
  --initial: #17603a;
  --red: #b3261e;
  --grid: rgba(23, 96, 58, 0.07);
  --glow: rgba(31, 122, 74, 0.16);
  --risk-bg: #fbecc4;
  --risk-ink: #4a3300;
  --shadow: 0 1px 2px rgba(13, 26, 19, 0.06), 0 18px 40px -22px rgba(13, 26, 19, 0.35);
  --focus: #1a54d6;
  --blend: multiply;
  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07110c;
    --bg-alt: #0a1610;
    --surface: #0d1a13;
    --surface-2: #11231a;
    --ink: #eaf2ec;
    --mute: #98a89f;
    --line: rgba(234, 242, 236, 0.09);
    --line-strong: rgba(234, 242, 236, 0.16);
    --green: #4cc283;
    --green-soft: #1d3327;
    --on-green: #07110c;
    --gold-ink: #f2c45c;
    --gold-soft: rgba(224, 162, 31, 0.12);
    --hl-end: #e0a21f;
    --initial: #e0a21f;
    --red: #f28b82;
    --grid: rgba(76, 194, 131, 0.06);
    --glow: rgba(76, 194, 131, 0.14);
    --risk-bg: #1f1808;
    --risk-ink: #f2d58f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
    --focus: #8fb0ff;
    --blend: screen;
  }

  :root:not([data-theme="light"]) .on-light {
    display: none;
  }

  :root:not([data-theme="light"]) .on-dark {
    display: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07110c;
  --bg-alt: #0a1610;
  --surface: #0d1a13;
  --surface-2: #11231a;
  --ink: #eaf2ec;
  --mute: #98a89f;
  --line: rgba(234, 242, 236, 0.09);
  --line-strong: rgba(234, 242, 236, 0.16);
  --green: #4cc283;
  --green-soft: #1d3327;
  --on-green: #07110c;
  --gold-ink: #f2c45c;
  --gold-soft: rgba(224, 162, 31, 0.12);
  --hl-end: #e0a21f;
  --initial: #e0a21f;
  --red: #f28b82;
  --grid: rgba(76, 194, 131, 0.06);
  --glow: rgba(76, 194, 131, 0.14);
  --risk-bg: #1f1808;
  --risk-ink: #f2d58f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  --focus: #8fb0ff;
  --blend: screen;
}

:root[data-theme="dark"] .on-light {
  display: none;
}

:root[data-theme="dark"] .on-dark {
  display: block;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.on-dark {
  display: none;
}

/* The Naintu logo files have white or black backgrounds; blending lets the page show through. */
.logo {
  mix-blend-mode: var(--blend);
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.hl {
  background: linear-gradient(90deg, var(--green), var(--hl-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section labels: "01 / How it works". */
.micro,
.eyebrow {
  margin: 0;
  font: 700 12px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

h1,
h2,
h3 {
  font-family: var(--f-head);
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
  max-width: 20em;
}

h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.sub {
  color: var(--mute);
  font-size: 17px;
  max-width: 34em;
  margin: 18px 0 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 700 19px var(--f-head);
  letter-spacing: 0.06em;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  font: 600 14px var(--f-head);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--mute);
}

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

/* Contact and the sun/moon switch share one height and one outline, so they line up. */
nav .nav-contact,
.theme-switch {
  height: 38px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

nav .nav-contact {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
}

.theme-switch {
  margin-left: -12px;
  cursor: pointer;
}

nav .nav-contact:hover,
.theme-switch:hover {
  border-color: var(--gold);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  padding: 0;
  border-radius: 50%;
}

.icon-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hero: a chart-paper backdrop, the pitch on the left and the console on the right. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 420px at 78% 40%, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 40px;
  border-bottom: 1px solid var(--line);
}

/* The made-up price line behind the hero: decoration, not data. */
.market {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  color: var(--green);
  opacity: 0.15;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 85%, transparent 100%);
}

.market-line,
.market-ma {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.market-line {
  stroke: var(--green);
  stroke-width: 1.6;
}

.market-ma {
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  opacity: 0.8;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 150px;
}

.lead {
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--mute);
  max-width: 32em;
  margin: 0;
}

.acronym {
  margin: 16px 0 0;
  font: 600 15px var(--f-head);
  color: var(--mute);
}

/* The initials that spell NYOTA: green in light mode, gold in dark. */
.acronym b {
  color: var(--initial);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px var(--f-head);
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--green);
  color: var(--on-green);
}

.button.primary:hover {
  filter: brightness(1.08);
}

.button.ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--gold);
}

/* The console mock-up. */
.console {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--mute);
}

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

.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.chip {
  margin-left: auto;
  padding: 2px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font: 600 11.5px var(--f-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.panel-label {
  margin: 0 0 8px;
  font: 700 11px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.panel-label + .row {
  border-top: 0;
}

.row > span:first-child {
  color: var(--mute);
}

.set {
  font-weight: 600;
  color: var(--gold-ink);
}

.running {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--green);
}

.running i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.rule-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.rule-text b {
  font-family: var(--f-mono);
  font-size: 0.86em;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
}

.kill {
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
  font: 700 14px var(--f-head);
  letter-spacing: 0.02em;
}

.console figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--mute);
}

/* The risk warning sits in an amber band right under the hero. */
.risk-strip {
  background: var(--risk-bg);
  color: var(--risk-ink);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  font-size: 14px;
}

.risk-strip .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}

.risk-strip b {
  margin-right: 8px;
  font: 700 11.5px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sections */
.block {
  padding: 104px 0;
}

.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

/* How it works: four steps joined by a rail that fills in as it scrolls into view. */
.pipeline {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
}

.pipeline::before,
.pipeline::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc(25% - 4px);
  height: 2px;
  background: var(--line-strong);
}

.pipeline::after {
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s ease;
}

.pipeline.lit::after {
  transform: scaleX(1);
}

.node {
  position: relative;
  z-index: 1;
}

.step {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.pipeline.lit .step {
  border-color: var(--green);
  color: var(--green);
}

.pipeline.lit .node:nth-child(2) .step {
  transition-delay: 0.35s;
}

.pipeline.lit .node:nth-child(3) .step {
  transition-delay: 0.7s;
}

.pipeline.lit .node:nth-child(4) .step {
  transition-delay: 1.05s;
}

.pipeline.lit .gate .step {
  border-color: var(--gold);
  color: var(--gold-ink);
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
}

.gate-label {
  display: block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.node p {
  margin: 14px 0 0;
  color: var(--mute);
  font-size: 15px;
  max-width: 17em;
}

.gate-label + p {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .pipeline::after,
  .step {
    transition: none;
  }
}

/* Strategies */
.examples {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.why {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 8px 0;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}

.panel-label + .why {
  border-top: 0;
}

.why .mono {
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11.5px;
  font-weight: 700;
  padding-top: 2px;
}

.why.refused span:last-child {
  font-weight: 700;
  color: var(--red);
}

/* Safeguards: a bento of tiles. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.tile p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}

.tile h3::before {
  content: '';
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 14px;
  background: var(--gold);
}

.tile.big {
  grid-row: span 3;
  background:
    radial-gradient(360px 240px at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
  border-color: var(--line-strong);
}

.tile:last-child {
  grid-column: span 2;
}

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

.limits li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.limits li:first-child {
  border-top: 0;
}

.limits b {
  display: block;
  font: 700 22px var(--f-head);
  letter-spacing: -0.02em;
}

.limits span {
  color: var(--mute);
  font-size: 15px;
}

/* For reviewers and brokers */
.status-badge {
  display: inline-block;
  margin-top: 22px;
  padding: 4px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  font: 700 11.5px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.checklist li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.checklist li:first-child {
  border-top: 0;
}

.checklist b {
  font: 700 12px var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 3px;
}

.checklist span {
  color: var(--mute);
}

/* Access */
.access {
  padding: 104px 0;
  text-align: center;
  background:
    radial-gradient(520px 260px at 50% 100%, var(--glow), transparent 70%);
}

.access h2,
.access .sub {
  margin-left: auto;
  margin-right: auto;
}

.email {
  display: inline-block;
  margin-top: 28px;
  font: 700 clamp(22px, 3vw, 30px) var(--f-head);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* The privacy policy: long text on a sheet. */
main.wrap {
  max-width: 820px;
  padding-top: 56px;
  padding-bottom: 72px;
}

main.wrap h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 14px 0 0;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 28px 28px 12px;
  margin-top: 28px;
}

.sheet h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 28px 0 10px;
}

.sheet h2:first-child {
  margin-top: 0;
}

.sheet p,
.sheet ul {
  font-size: 15.5px;
  margin: 0 0 14px;
}

.sheet ul {
  padding-left: 20px;
}

.sheet li + li {
  margin-top: 4px;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13.5px;
  padding: 40px 0 48px;
}

footer p {
  margin: 4px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: center;
}

.maker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mute);
  text-decoration: none;
}

.maker img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--mute);
  font: 600 13.5px var(--f-head);
  text-decoration: none;
}

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

.footer-risk {
  grid-column: 1 / -1;
  padding-top: 20px !important;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}

/* "Naintu" is always written as the Naintu signature. */
.sig-name {
  font-family: 'Satisfy', cursive;
  font-weight: 400;
  font-size: 1.18em;
  line-height: 1;
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
    gap: 44px;
  }

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

  .pipeline::before,
  .pipeline::after {
    display: none;
  }

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

  .tile.big,
  .tile:last-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Phone */
@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hide-small {
    display: none;
  }

  nav {
    gap: 18px;
  }

  .theme-switch {
    margin-left: -8px;
  }

  .hero-grid {
    padding-top: 52px;
    padding-bottom: 110px;
  }

  .market {
    height: 150px;
  }

  .block,
  .access {
    padding: 72px 0;
  }

  .pipeline,
  .bento {
    grid-template-columns: 1fr;
  }

  .checklist li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .sheet {
    padding: 20px 18px 6px;
  }
}

/* The "page not found" page (404.html). */
.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 96px 24px;
  text-align: center;
}

.not-found h1 {
  margin: 0;
}

.nf-text {
  margin: 0 0 14px;
  color: var(--mute);
}
