/* Naintu: the trader app's green, with gold as the accent; a fintech look in light and dark. */
:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #0d1a13;
  --mute: #4c5a52;
  --line: rgba(13, 26, 19, 0.1);
  --green: #17603a;
  --green-2: #1f7a4a;
  --green-soft: #dcebd8;
  --on-green: #ffffff;
  --gold: #e0a21f;
  --gold-ink: #8a5d00;
  --hl-end: #8a5d00;
  --grid: rgba(23, 96, 58, 0.07);
  --glow-green: rgba(31, 122, 74, 0.18);
  --glow-gold: rgba(224, 162, 31, 0.16);
  --dot: #1f7a4a;
  --dot-glow: rgba(31, 122, 74, 0.22);
  --shadow: 0 1px 2px rgba(13, 26, 19, 0.06), 0 18px 40px -22px rgba(13, 26, 19, 0.35);
  --band-bg: #0b1d13;
  --band-ink: #eaf2ec;
  --band-mute: #9fb2a6;
  --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;
    --surface: #0d1a13;
    --surface-2: #11231a;
    --ink: #eaf2ec;
    --mute: #98a89f;
    --line: rgba(234, 242, 236, 0.09);
    --green: #4cc283;
    --green-2: #1f7a4a;
    --green-soft: #1d3327;
    --on-green: #07110c;
    --gold-ink: #f2c45c;
    --hl-end: #e0a21f;
    --grid: rgba(76, 194, 131, 0.06);
    --glow-green: rgba(76, 194, 131, 0.16);
    --glow-gold: rgba(224, 162, 31, 0.12);
    --dot: #e0a21f;
    --dot-glow: rgba(224, 162, 31, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
    --band-bg: #0d1a13;
    --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;
  --surface: #0d1a13;
  --surface-2: #11231a;
  --ink: #eaf2ec;
  --mute: #98a89f;
  --line: rgba(234, 242, 236, 0.09);
  --green: #4cc283;
  --green-2: #1f7a4a;
  --green-soft: #1d3327;
  --on-green: #07110c;
  --gold-ink: #f2c45c;
  --hl-end: #e0a21f;
  --grid: rgba(76, 194, 131, 0.06);
  --glow-green: rgba(76, 194, 131, 0.16);
  --glow-gold: rgba(224, 162, 31, 0.12);
  --dot: #e0a21f;
  --dot-glow: rgba(224, 162, 31, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
  --band-bg: #0d1a13;
  --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;
}

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

a {
  color: inherit;
}

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

.on-dark {
  display: none;
}

/* The 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: 0 24px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 13px;
}

.muted {
  color: var(--mute);
}

.small {
  font-size: 12.5px;
}

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

.eyebrow {
  margin: 0;
  font: 700 12px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 22px;
}

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

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);
}

nav .nav-cta {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}

nav .nav-cta:hover {
  border-color: var(--green);
}

.theme-switch {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: inherit;
  font: 600 13.5px var(--f-head);
  cursor: pointer;
}

/* Round icon buttons in the header: the phone (contact) and the sun/moon switch. */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

nav .icon-btn {
  padding: 0;
}

nav .icon-btn + .icon-btn {
  margin-left: -16px;
}

.icon-btn svg {
  display: block;
  fill: currentColor;
}

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

/* Hero: a faint grid with green and gold glows. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 380px at 82% 30%, var(--glow-green), transparent 70%),
    radial-gradient(520px 320px at 8% 0%, var(--glow-gold), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 600 13.5px var(--f-head);
  letter-spacing: 0.01em;
  color: var(--mute);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px var(--dot-glow);
  animation: throb 2s ease-in-out infinite;
}

@keyframes throb {
  50% {
    box-shadow: 0 0 0 7px transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

h1 {
  font: 700 clamp(42px, 6.4vw, 76px) / 1.02 var(--f-head);
  letter-spacing: -0.035em;
  margin: 26px 0 22px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font: 600 15px var(--f-head);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.button.primary {
  background: var(--green-2);
  color: #ffffff;
  box-shadow: 0 10px 24px -12px var(--green-2);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px var(--green-2);
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
}

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

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

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

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

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

.chip {
  margin-left: auto;
  font: 700 12px var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  padding: 2px 8px;
}

.console-order {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px 8px;
}

.console-order b {
  color: var(--green);
}

.checks {
  list-style: none;
  margin: 0;
  padding: 6px 20px 10px;
}

.checks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}

.ok {
  font: 700 11px var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 6px;
  padding: 3px 8px;
}

.ok::before {
  content: '✓ ';
}

.console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px 18px;
}

.outcome {
  font: 700 12.5px var(--f-mono);
  color: var(--green);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--mute);
}

.link-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--mute);
}

/* A still strip naming the four parts. */
.strip {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  list-style: none;
  margin: 0 auto;
  padding-top: 14px;
  padding-bottom: 14px;
}

.strip li {
  font: 700 12px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.strip li::before {
  content: '◆';
  margin-right: 12px;
  color: var(--gold);
}

/* Stats */
.status {
  margin-top: 56px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.stats div {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}

.stats div:first-child {
  border-left: 0;
}

.stats dt {
  font: 700 21px/1.2 var(--f-head);
  letter-spacing: -0.01em;
  color: var(--green);
}

.stats dd {
  margin: 8px 0 0;
  color: var(--mute);
  font-size: 14px;
}

/* Sections */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

h2 {
  font: 700 clamp(32px, 4.2vw, 48px) / 1.08 var(--f-head);
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}

.sub {
  color: var(--mute);
  margin: 16px 0 0;
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 22px;
  width: 36px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--gold);
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.idx {
  font: 700 13px var(--f-mono);
  color: var(--green);
}

.card h3 {
  font: 600 19px var(--f-head);
  margin: 18px 0 8px;
}

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

/* Principles band: deep green in both themes. */
.band {
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(224, 162, 31, 0.14), transparent 70%),
    var(--band-bg);
  color: var(--band-ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band .eyebrow {
  color: var(--gold);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principles div {
  padding: 26px 24px;
  border: 1px solid rgba(234, 242, 236, 0.1);
  border-radius: 16px;
  background: rgba(234, 242, 236, 0.03);
}

.principles h3 {
  font: 600 21px var(--f-head);
  margin: 0 0 10px;
}

.principles h3::before {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--gold);
}

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

/* NYOTA */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 0% 100%, var(--glow-green), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.product img.illus {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.product-title img {
  width: 44px;
  height: 44px;
}

.product-title h2 {
  margin: 0;
}

.tag {
  font: 700 12px var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed var(--mute);
  color: var(--mute);
  border-radius: 6px;
  padding: 3px 9px;
}

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

.product .sub {
  margin: 14px 0 0;
}

.product .button {
  margin-top: 28px;
}

/* Products: NYOTA first, with room for more. */
.products {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}

.product-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 0% 100%, var(--glow-green), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.product-card .product-title {
  margin-top: 0;
}

.product-card .product-title h3 {
  font: 700 32px/1 var(--f-head);
  letter-spacing: -0.02em;
  margin: 0;
}

.product-card .button {
  margin-top: 26px;
}

.more-card {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  color: var(--mute);
}

.more-plus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold);
  color: var(--gold);
  font: 600 22px/1 var(--f-head);
}

.more-card h3 {
  margin: 0;
  font: 600 18px var(--f-head);
}

.row-title {
  margin: 64px 0 18px;
  font: 600 20px var(--f-head);
  letter-spacing: -0.01em;
}

/* Contact */
#contact {
  padding-top: 88px;
}

.cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 20px;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(224, 162, 31, 0.18), transparent 70%),
    linear-gradient(160deg, #17603a, #0b2f1d);
  color: #f4f8f5;
}

.cta-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: rgba(244, 248, 245, 0.78);
}

.cta-sub {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: rgba(244, 248, 245, 0.78);
}

.cta .eyebrow {
  color: #f2c45c;
}

.email {
  display: inline-block;
  margin-top: 22px;
  font: 600 clamp(22px, 3.6vw, 34px) var(--f-head);
  text-decoration: none;
  color: #ffffff;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.note {
  max-width: 46em;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink);
}

footer {
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
  padding: 28px 0 44px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  margin: 0;
}

.tagline {
  font: 700 11px var(--f-mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .product,
  .products {
    grid-template-columns: 1fr;
  }

  .more-card {
    min-height: 140px;
  }

  .product-card {
    padding: 24px;
  }

  .hero-grid {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 40px;
  }

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

  .stats div:nth-child(3) {
    border-left: 0;
  }

  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  section {
    padding: 72px 0;
  }

  .product {
    padding: 24px;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  header .wrap {
    height: 60px;
  }

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

  nav {
    gap: 12px;
  }

  nav .hide-small {
    display: none;
  }

  nav a,
  .theme-switch {
    font-size: 13px;
  }

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

  .stats div {
    padding: 20px 16px;
  }

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

  .stats div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats div:first-child {
    border-top: 0;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  nav .icon-btn + .icon-btn {
    margin-left: -4px;
  }

  .cta {
    padding: 48px 18px;
  }
}

/* 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;
  font-size: clamp(40px, 6vw, 64px);
}

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