/* ============================================================
   niralabs — shared brand system
   Palette in oklch, pulled from Niralabs Brand System.
   Graphite (ground) · Bone (clarity) · Brass (accent) · Grey (labs)
   Fonts: Sofia Sans (wordmark) · Geist (UI/body) · Geist Mono (numbers)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,400;0,600;0,700;0,800&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,400;1,6..72,400&display=optional');

:root {
  /* grounds */
  --graphite-deep: oklch(0.11 0.004 80);
  --graphite:      oklch(0.145 0.004 80);
  --surface:       oklch(0.172 0.005 80);
  --card:          oklch(0.198 0.005 80);
  --card-hi:       oklch(0.228 0.006 80);

  /* text */
  --bone-bright:   oklch(0.968 0.005 88);
  --bone:          oklch(0.92 0.006 85);
  --grey:          oklch(0.745 0.008 82);
  --grey-dim:      oklch(0.545 0.008 80);
  --grey-faint:    oklch(0.430 0.007 80);

  /* accent — brass */
  --brass:         oklch(0.785 0.090 84);
  --brass-light:   oklch(0.850 0.074 88);
  --brass-deep:    oklch(0.585 0.072 78);

  /* lines & fills */
  --border:        oklch(0.330 0.006 80 / 0.7);
  --border-soft:   oklch(0.330 0.006 80 / 0.45);
  --fill-faint:    oklch(0.92 0.006 85 / 0.03);
  --brass-glow:    oklch(0.785 0.090 84 / 0.20);

  /* data semantics */
  --gain:          oklch(0.75 0.14 150);
  --loss:          oklch(0.68 0.15 25);

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-ui: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mark: 'Sofia Sans', var(--font-ui);
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  overflow-x: hidden;
  font-weight: 400;
  background: var(--graphite);
  color: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
}

/* numbers, metrics, tabular data always in mono */
.mono, .metric, time, .stat-num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ------------------------------------------------------------
   the mark — six vectors converging on a core
   ------------------------------------------------------------ */
.mark { display: block; }
.mark line { stroke: var(--brass); stroke-width: 5; stroke-linecap: round; }
.mark circle { fill: var(--brass); }

.wordmark {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mark);
  font-size: 22px; letter-spacing: -0.01em; color: var(--bone-bright);
}
.wordmark b { font-weight: 700; }        /* nira — the mind */
.wordmark span { font-weight: 400; color: var(--grey); } /* labs — the discipline */

/* ------------------------------------------------------------
   nav
   ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.145 0.004 80 / 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 34px;
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav-link {
  position: relative; font-size: 15px; color: var(--grey);
  padding: 8px 0; transition: color 0.2s var(--ease); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--bone-bright); }
.nav-link svg { width: 11px; height: 11px; opacity: 0.6; transition: transform 0.25s var(--ease); }
.has-menu:hover .nav-link svg { transform: rotate(180deg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }

/* dropdown mega-menu */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 560px;
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.45);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.has-menu:hover .menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.menu-card { padding: 16px; border-radius: var(--radius-sm); transition: background 0.2s var(--ease); }
.menu-card:hover { background: var(--fill-faint); }
.menu-card h4 { font-size: 15px; color: var(--bone-bright); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.menu-card p { font-size: 13px; color: var(--grey-dim); line-height: 1.45; }
.menu-card .menu-links { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.menu-card .menu-links a { font-size: 13px; color: var(--grey); transition: color 0.15s; }
.menu-card .menu-links a:hover { color: var(--brass-light); }

/* ------------------------------------------------------------
   buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--brass); color: oklch(0.16 0.02 80); }
.btn-primary:hover { background: var(--brass-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brass); color: var(--bone-bright); }
.btn-text { color: var(--brass-light); padding: 11px 0; }
.btn-text:hover { color: var(--brass); gap: 12px; }
.btn-lg { font-size: 16px; padding: 14px 26px; }
.arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------
   typography scale
   ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass);
}
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; color: var(--bone-bright); }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; color: var(--bone-bright); }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; color: var(--bone-bright); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--grey); line-height: 1.55; font-weight: 300; max-width: 46ch; }
.accent { color: var(--brass); }
.serif-em { font-family: var(--font-serif); font-style: italic; color: var(--bone); }

/* ------------------------------------------------------------
   layout primitives
   ------------------------------------------------------------ */
section { padding: 100px 0; }
.section-sm { padding: 72px 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 18px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card .icn { color: var(--brass); margin-bottom: 18px; width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey-dim); font-size: 15px; }

/* icon, 2px monoline, round caps — the mark's stroke language */
.icn svg, svg.icn { width: 100%; height: 100%; }
.icn [stroke] { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* product cards on home */
.product-card {
  background: var(--card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  position: relative; overflow: hidden;
}
.product-card:hover { border-color: var(--brass); transform: translateY(-3px); }
.product-card .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 14px; }
.product-card h3 { font-size: 26px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product-card > p { color: var(--grey); font-size: 16px; margin-bottom: 22px; }
.product-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.product-card li { font-size: 14px; color: var(--grey-dim); display: flex; align-items: center; gap: 10px; }
.product-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); flex: none; }
.product-card .card-cta { margin-top: auto; display: flex; align-items: center; gap: 18px; }

/* ------------------------------------------------------------
   hero
   ------------------------------------------------------------ */
.hero { padding: 116px 0 96px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% 8%, var(--brass-glow), transparent 60%),
    radial-gradient(600px 500px at 12% 92%, oklch(0.198 0.02 80 / 0.5), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin: 20px 0 24px; max-width: 15ch; }
.hero .lede { margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* stat / trust strip */
.strip { display: flex; gap: 44px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.strip .item { display: flex; flex-direction: column; gap: 4px; }
.strip .stat-num { font-size: 30px; color: var(--bone-bright); font-weight: 500; }
.strip .lbl { font-size: 13px; color: var(--grey-dim); }

.trust-row { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; color: var(--grey-dim); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 15px; height: 15px; color: var(--brass); }

/* ------------------------------------------------------------
   steps (how it works)
   ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid var(--border-soft); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--border-soft); }
.step-num { counter-increment: step; font-family: var(--font-mono); font-size: 14px; color: var(--brass); padding-top: 4px; }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--grey-dim); font-size: 15px; max-width: 60ch; }

/* ------------------------------------------------------------
   pricing
   ------------------------------------------------------------ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price {
  background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.price.featured { border-color: var(--brass); background: linear-gradient(180deg, var(--card-hi), var(--card)); }
.price .tier { font-size: 14px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-bottom: 14px; }
.price .amt { font-size: 40px; color: var(--bone-bright); font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.02em; }
.price .amt small { font-size: 15px; color: var(--grey-dim); font-family: var(--font-ui); font-weight: 400; }
.price .amt-note { font-size: 13px; color: var(--grey-dim); margin: 6px 0 20px; min-height: 18px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price li { font-size: 14px; color: var(--grey); display: flex; gap: 10px; align-items: flex-start; }
.price li svg { width: 16px; height: 16px; color: var(--brass); flex: none; margin-top: 3px; }
.price .btn { margin-top: auto; justify-content: center; }
.badge-feat { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }

/* ------------------------------------------------------------
   symbol legend (reasoning diagram)
   ------------------------------------------------------------ */
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.legend .row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); align-items: baseline; }
.legend .term { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass); }
.legend .def { font-size: 15px; color: var(--grey-dim); }

/* ------------------------------------------------------------
   cta band
   ------------------------------------------------------------ */
.cta-band { text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .hero-bg { background: radial-gradient(680px 300px at 50% 0%, var(--brass-glow), transparent 65%); }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto 30px; }

/* ------------------------------------------------------------
   footer
   ------------------------------------------------------------ */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 0 40px; background: var(--graphite-deep); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer .about { max-width: 34ch; color: var(--grey-dim); font-size: 14px; margin-top: 16px; }
.footer h5 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: var(--grey); transition: color 0.15s; }
.footer ul a:hover { color: var(--brass-light); }
.footer-base { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border-soft); color: var(--grey-faint); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------
   page hero (product / interior)
   ------------------------------------------------------------ */
.phero { padding: 92px 0 64px; position: relative; overflow: hidden; }
.phero .wrap { position: relative; z-index: 1; }
.phero .eyebrow { display: block; margin-bottom: 18px; }
.phero h1 { max-width: 18ch; margin-bottom: 22px; }
.phero .lede { margin-bottom: 30px; }

/* small helper */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border-soft); border: 0; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--grey-dim); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* ------------------------------------------------------------
   motion — calm, respect reduced-motion
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid-3, .grid-4, .price-grid, .legend { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu { width: 92vw; }
}
@media (max-width: 560px) {
  section { padding: 68px 0; }
  .hero { padding: 80px 0 64px; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip { gap: 28px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .nav-right .btn-ghost { display: none; }
}
/* Public marketing contact form */
.public-contact-form{max-width:820px;margin:30px auto 0;padding:28px;display:grid;grid-template-columns:1fr 1fr;gap:16px;text-align:left;border:1px solid var(--border-default);border-radius:18px;background:var(--graphite)}
.public-contact-form label{display:grid;gap:7px;color:var(--bone);font-weight:600}.public-contact-form input,.public-contact-form textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--border-default);border-radius:10px;background:#14120f;color:var(--bone);font:inherit}.public-contact-form textarea{min-height:130px;resize:vertical}.public-contact-form input:focus-visible,.public-contact-form textarea:focus-visible{outline:3px solid var(--brass);outline-offset:2px}.public-contact-form .form-wide{grid-column:1/-1}.public-contact-form .form-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.public-contact-form [role="status"]{min-height:1.5em;text-align:center;color:var(--bone-dim)}.form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:700px){.public-contact-form{grid-template-columns:1fr;padding:20px}.public-contact-form .form-wide{grid-column:auto}.public-contact-form .form-actions{align-items:stretch}.public-contact-form .form-actions>*{width:100%;justify-content:center}}
