/* Nextbard landing page.
   Same tokens as the console (styles.css) so the marketing page and the product
   read as one system: near-black ground, pale-blue accent, Spline Sans display,
   Open Sans prose, Spline Sans Mono for anything the machine produced. */

:root {
  color-scheme: dark;

  --base:    #14151E;
  --surface: #1A1E29;
  --raised:  #232838;
  --sunk:    #101119;

  --text:   #E7ECF3;
  --text-2: #9AA5B8;
  --text-3: #6A7387;

  --line:   rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);

  --accent:     #90CDF4;
  --accent-ink: #14151E;
  --accent-dim: rgba(144, 205, 244, .13);
  --accent-ring:rgba(144, 205, 244, .22);

  --catch: #9AE6B4;

  --display: "Spline Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --body:    "Open Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shell: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--base); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-ring); color: var(--text); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────────────────────────────────────────────── shared pieces */

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.lede {
  margin: 0;
  max-width: 60ch;
  color: var(--text-2);
  font-size: 16.5px;
}

.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--solid:hover { background: #B0DCF8; border-color: #B0DCF8; }

.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ──────────────────────────────────────────────────────────────── nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 21, 30, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  flex: none;
}
.mark__ring {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
}
.mark__ring::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__links { display: flex; gap: 28px; margin-right: auto; }
.nav__link {
  font-size: 14.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .15s;
}
.nav__link:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* ─────────────────────────────────────────────────────────────── hero */

.hero {
  position: relative;
  padding: 96px 0 0;
  text-align: center;
  overflow: hidden;
}

/* the one atmospheric moment on the page */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto;
  height: 620px;
  background: radial-gradient(760px 420px at 50% 0%, rgba(144, 205, 244, .15), transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.hero__title {
  margin: 0 auto 22px;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 68px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hero__sub {
  margin: 0 auto 34px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 18.5px);
}

.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.hero__note {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ─────────────────────────── the signature: a run happening, in the hero */

.demo {
  position: relative;
  margin: 68px auto 0;
  max-width: 880px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5), 0 60px 90px -50px #000;
  overflow: hidden;
}

.demo__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--sunk);
}

.demo__query {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo__query b { color: var(--text); font-weight: 500; }

.demo__state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-ring);
  border-radius: 99px;
  padding: 4px 11px;
}
.demo__state::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.3s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .2; } }

.demo__rows { list-style: none; margin: 0; padding: 0; }

/* the console's own signature, carried onto the landing page: a lead that
   carries a job title lights its left edge, so the rail counts decision-makers */
.row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: land .5s ease-out forwards;
}
.row:last-child { border-bottom: 0; }

.row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
}
.row--key::before { background: var(--accent); }
.row--key .row__index { color: var(--accent); }

@keyframes land {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

.row__index {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  text-align: right;
  padding-top: 2px;
}

.row__email {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  word-break: break-all;
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-3);
}
.row__domain { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }

.row__role {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 5px;
  padding: 2px 7px;
}

.demo__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--sunk);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.demo__foot b { color: var(--catch); font-weight: 500; }

/* ──────────────────────────────────────────────────────── partner strip */

.partners { padding: 56px 0; border-top: 1px solid var(--line); }

.partners__label {
  margin: 0 0 34px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.partners__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 46px;
}

.partner {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
}

/* Placeholder marks. currentColor ties them to the row's dim/hover state, so a
   logo never sits at a different brightness from the name beside it. */
.partner__glyph {
  flex: none;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  /* thinner at the larger size so the marks keep the same optical weight as
     the name beside them instead of turning chunky */
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Each mark carries one solid element so the set reads as brand marks rather
   than a row of line icons. */
.partner__glyph .solid { fill: currentColor; stroke: none; }

/* ─────────────────────────────────────────────────────────────── steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.step { background: var(--surface); padding: 32px 28px 34px; }

/* numbered because this genuinely is a sequence — the run does these in order */
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
}

.step__title {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.step__body { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ──────────────────────────────────────────────────────────── features */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-top: 48px;
}

.feature { padding: 26px 0; border-top: 1px solid var(--line); }

.feature__label {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.feature__body { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ─────────────────────────────────────────────────────────────── stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat { background: var(--surface); padding: 30px 26px; }

.stat__num {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat--catch .stat__num { color: var(--catch); }

.stat__label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ─────────────────────────────────────────────────────────────── plans */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
  align-items: start;
}

/* Four across needs its own ladder — the page-wide breakpoints below are
   tuned for three-up content and would strand a card on its own row. */
@media (max-width: 1080px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px 24px 32px;
}

.plan--featured {
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 1px var(--accent-ring), 0 40px 70px -50px #000;
}

.plan__tag {
  position: absolute;
  top: -11px;
  left: 28px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 99px;
  padding: 4px 11px;
}

.plan__name {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.plan__note { margin: 0 0 22px; color: var(--text-3); font-size: 13.5px; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
}
.plan__per {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
}

.plan__credits {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.plan .btn { width: 100%; }

.plan__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: var(--text-2);
}
.plan__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}
.plan__list li::before {
  content: "";
  margin-top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}

/* ───────────────────────────────────────────────────────────── closing */

.closer {
  text-align: center;
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.closer__cta { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ────────────────────────────────────────────────────────────── footer */

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

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer__copy {
  margin: 0;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}

.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__link {
  font-size: 13.5px;
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}
.footer__link:hover { color: var(--text); }

/* ────────────────────────────────────────────────────── small screens */

@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; gap: 0; }
  .nav__links { display: none; }
  .hero { padding-top: 64px; }
  .demo { margin-top: 48px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .shell { padding: 0 18px; }
  .section { padding: 60px 0; }
  .closer { padding: 72px 0; }
  .nav__inner { height: 58px; gap: 12px; }
  .demo__bar { flex-wrap: wrap; }
  .row { grid-template-columns: 32px minmax(0, 1fr); padding: 12px 14px; }
  .hero__cta .btn, .closer__cta .btn { width: 100%; }
  .partners__row { gap: 16px 32px; }
  .partner { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .row { opacity: 1; }
}
