/* ============================================================
   OpenVerba — landing page
   Brand: ink black + green accent (Vynd-style)
   Fonts: Clash Display (headings) · Geist (body)
   ============================================================ */

:root {
  /* Palette */
  --ink:        #050506;
  --ink-2:      #0a0b0c;
  --surface:    #0d0f11;
  --surface-2:  #131619;
  --line:       rgba(255, 255, 255, 0.08);
  --line-2:     rgba(255, 255, 255, 0.14);

  --green:      #5bec59;
  --green-soft: #baffc1;

  --text:       #f4f6f5;
  --muted:      #9aa4a1;
  --muted-2:    #8b938f;   /* AA-safe on the ink/surface backgrounds */
  --on-accent:  #04210c;   /* text color on the green accent buttons */

  /* Type */
  --font-head: 'Clash Display', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1140px;
  --nav-h: 70px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(91, 236, 89, 0.18), 0 18px 60px -20px rgba(91, 236, 89, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px); /* clear the sticky nav on anchor jumps */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  /* C1: a 0.001ms infinite loop still repaints forever — actually stop the looping demo motion */
  .demo__caret,
  .demo__pulse { animation: none !important; }
  .demo__caret { opacity: 1; }   /* keep the caret visible, just static */
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* Keyboard focus — visible ring for Tab users, suppressed on mouse click */
a:focus-visible,
.btn:focus-visible,
summary:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Skip to content */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--green);
  color: var(--on-accent);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.42em;
  color: var(--green-soft);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.grad-text {
  background: linear-gradient(120deg, var(--green) 10%, var(--green-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 999px;
  padding: 0.7em 1.3em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-soft) 100%);
  color: var(--on-accent);
  box-shadow: 0 10px 30px -12px rgba(91, 236, 89, 0.6);
}
.btn--primary:hover { box-shadow: 0 14px 38px -10px rgba(91, 236, 89, 0.8); transform: translateY(-1px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-soft); }

.btn--sm { padding: 0.55em 1.05em; font-size: 0.9rem; }
.btn--lg { padding: 0.92em 1.7em; font-size: 1.04rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-head); font-weight: 600; }
.brand__logo { display: block; }
.brand__name { font-size: 1.22rem; letter-spacing: -0.01em; }
.brand__accent { color: var(--green); }

.nav__links { display: flex; gap: 30px; }
.nav__links a {
  font-size: 0.96rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

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

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;            /* honors the [hidden] attribute; revealed by JS toggle */
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.nav__mobile:not([hidden]) { display: flex; }
.nav__mobile a { padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
.nav__mobile a:last-child { border: 0; margin-top: 10px; }
.nav__mobile .btn { color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(91, 236, 89, 0.22), transparent 72%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-soft);
  background: rgba(91, 236, 89, 0.08);
  border: 1px solid rgba(91, 236, 89, 0.25);
  border-radius: 999px;
  padding: 0.4em 0.95em;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  margin: 26px auto 0;
  max-width: 16ch;
}
.hero__sub {
  margin: 24px auto 0;
  max-width: 56ch;
  font-size: 1.16rem;
  color: var(--muted);
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero__micro { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* Demo card */
.demo {
  margin: 56px auto 0;
  max-width: 720px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.demo__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.demo__dot:nth-child(1) { background: #ff5f56; opacity: 0.7; }
.demo__dot:nth-child(2) { background: #ffbd2e; opacity: 0.7; }
.demo__dot:nth-child(3) { background: var(--green); opacity: 0.7; }
.demo__title { margin-left: 10px; font-size: 0.82rem; color: var(--muted-2); }

.demo__body { padding: 30px 26px 22px; }
.demo__typed {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text);
}
.demo__caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--green);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.demo__rec { display: inline-flex; align-items: center; gap: 0.5em; color: var(--green-soft); font-weight: 500; }
.demo__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(91, 236, 89, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91, 236, 89, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(91, 236, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 236, 89, 0); }
}
.demo__meta { color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 0.8rem; }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.strip__item { text-align: center; }
.strip__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  color: var(--green-soft);
  line-height: 1;
}
.strip__lbl { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section__lede { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green);
  background: rgba(91, 236, 89, 0.1);
  border: 1px solid rgba(91, 236, 89, 0.28);
  margin-bottom: 18px;
}
.step__title { font-size: 1.3rem; margin-bottom: 10px; }
.step__text { color: var(--muted); font-size: 1.02rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 236, 89, 0.4);
  box-shadow: 0 18px 44px -28px rgba(91, 236, 89, 0.5);
}
.card__icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 13px;
  background: rgba(91, 236, 89, 0.08);
  border: 1px solid rgba(91, 236, 89, 0.2);
  margin-bottom: 18px;
}
.card__title { font-size: 1.22rem; margin-bottom: 9px; }
.card__text { color: var(--muted); font-size: 1rem; }
.card--mini { padding: 24px; }

/* ---------- Split (local model) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split__copy .section__title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.split__copy .section__lede { margin-bottom: 26px; }
.split__copy a { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 1.02rem;
}
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 21px; height: 21px;
  border-radius: 7px;
  background: rgba(91, 236, 89, 0.12);
  border: 1px solid rgba(91, 236, 89, 0.4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 24px 22px;
  box-shadow: var(--shadow);
}
.panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.panel__label { color: var(--muted); font-size: 0.96rem; }
.panel__value { font-weight: 600; font-size: 0.96rem; text-align: right; }
.panel__flag {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 18px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--green-soft);
}
.panel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td {
  text-align: left;
  padding: 15px 20px;
  font-size: 0.96rem;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(91, 236, 89, 0.035); }
.table td.hl { color: var(--green-soft); font-weight: 600; }
.table-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: rgba(91, 236, 89, 0.3); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--green);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 20px; color: var(--muted); font-size: 1.02rem; }

/* ---------- CTA ---------- */
.cta { padding: 100px 0; }
.cta__inner {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 72px 32px;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 420px;
  background: radial-gradient(closest-side, rgba(91, 236, 89, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.cta__sub { position: relative; margin: 18px auto 0; max-width: 50ch; font-size: 1.14rem; color: var(--muted); }
.cta__buttons { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta__note { position: relative; margin-top: 18px; font-size: 0.88rem; color: var(--muted-2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-top: 56px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer__tag { margin-top: 16px; color: var(--muted); font-size: 0.98rem; max-width: 32ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__h { font-weight: 600; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__col a { color: var(--muted); font-size: 0.96rem; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--green-soft); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 30px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted-2);
}

/* ---------- Prose (legal / long-form sub-pages) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.prose h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 10px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--green-soft); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--green); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 26px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--green); }
.prose__meta { font-size: 0.9rem; color: var(--muted-2); margin-bottom: 32px; }
.prose code { word-break: break-word; }

/* Footer legal row */
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: var(--muted-2); transition: color 0.15s ease; }
.footer__legal a:hover { color: var(--green-soft); }
@media (max-width: 620px) {
  .footer__legal { gap: 12px 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .steps, .grid, .grid--3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .steps, .grid, .grid--3 { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta__inner { padding: 48px 22px; }
  .hero__cta .btn, .cta__buttons .btn { width: 100%; }
}
