/* ============================================================
   Nadyaai — design tokens
   Ink/paper editorial system. Signal teal is reserved for
   status/health indicators only — never decoration.
   ============================================================ */

:root {
  --ink: #10151f;
  --ink-soft: #2a3140;
  --paper: #f7f7f5;
  --paper-raised: #ffffff;
  --signal: #3b6e5e;
  --signal-soft: #dce8e3;
  --amber: #c68a2e;
  --amber-soft: #f3e6cd;
  --slate: #5b6470;
  --line: #dcdcd8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --max-width: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand svg { width: 26px; height: 26px; }

.brand-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--signal);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.2rem 0.32rem;
  border-radius: 4px;
  position: relative;
  top: -0.5em;
  margin-left: -0.1em;
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.95rem;
}

.main-nav a { text-decoration: none; color: var(--ink-soft); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--signal); padding-bottom: 2px; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .main-nav { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.eyebrow-label {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 15ch;
  margin-bottom: 1.25rem;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- briefing card (hero visual) ---------- */

.briefing-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}

.briefing-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--slate);
}

.briefing-head .doc-title { color: var(--ink); font-weight: 600; }

.briefing-body { padding: 1.1rem; }

.briefing-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.stat-figure { font-size: 1.5rem; line-height: 1; }
.stat-label { font-size: 0.72rem; color: var(--slate); margin-top: 0.3rem; font-family: var(--font-body); }

.status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.status-row:first-of-type { border-top: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: var(--signal); }
.dot-risk { background: var(--amber); }

.status-team { color: var(--slate); font-family: var(--font-mono); font-size: 0.82rem; }

.briefing-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.briefing-note strong { color: var(--ink); }

/* ---------- sections ---------- */

section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.section-border-top { border-top: 1px solid var(--line); }
.section-tint { background: var(--paper-raised); }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--slate); font-size: 1.05rem; }

/* capability list (parallel items — no sequence numbering) */

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 860px) {
  .capabilities { grid-template-columns: 1fr; }
}

.capability {
  background: var(--paper);
  padding: 1.75rem;
}

.capability h3 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 600; font-family: var(--font-body); }
.capability p { color: var(--slate); font-size: 0.95rem; }

/* timeline — used only because the cadence is genuinely sequential */

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-step { position: relative; }

.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
}

.timeline-step .step-when {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 0.3rem;
}

.timeline-step h3 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.4rem; }
.timeline-step p { color: var(--slate); font-size: 0.95rem; max-width: 52ch; }

/* audience */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

.audience-item { border-top: 1px solid var(--ink); padding-top: 0.9rem; }
.audience-item h3 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); margin-bottom: 0.4rem; }
.audience-item p { color: var(--slate); font-size: 0.9rem; }

/* cta band */

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); max-width: 28ch; }

/* footer */

footer { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { text-decoration: none; }

/* ============================================================
   Demo page
   ============================================================ */

.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 940px) {
  .demo-layout { grid-template-columns: 1fr; }
}

.ask-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.ask-panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ask-panel-head .dot-ok { animation: none; }

.ask-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg { max-width: 85%; font-size: 0.95rem; }
.msg-user { align-self: flex-end; background: var(--ink); color: var(--paper); padding: 0.65rem 0.9rem; border-radius: 4px; }
.msg-nadya { align-self: flex-start; }
.msg-nadya .msg-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal); margin-bottom: 0.3rem; }
.msg-nadya .msg-body { background: var(--paper); border: 1px solid var(--line); padding: 0.75rem 0.9rem; border-radius: 4px; color: var(--ink-soft); }
.msg-nadya .msg-body strong { color: var(--ink); }
.msg-nadya .msg-body ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.25rem 0.9rem;
}

.suggestion-chip {
  font-size: 0.82rem;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}
.suggestion-chip:hover { border-color: var(--ink); color: var(--ink); }

.ask-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.ask-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}

.demo-note {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.75rem;
}

/* report showcase */

.report-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; flex-wrap: wrap; }

.report-tab {
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  cursor: pointer;
  border-radius: 3px;
  color: var(--slate);
}
.report-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }

.report-pane {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.25rem;
}

.report-pane[hidden] { display: none; }

.report-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  color: var(--slate);
}
.report-pane-head .doc-title { color: var(--ink); font-weight: 600; font-size: 0.95rem; }

.report-line { display: flex; justify-content: space-between; padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.report-line:first-of-type { border-top: none; }
.report-line .figure { font-family: var(--font-mono); }

.report-narrative { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }

/* ============================================================
   Icon launcher
   ============================================================ */

.icon-launcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 780px) {
  .icon-launcher { grid-template-columns: repeat(2, 1fr); }
}

.launcher-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.25rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}

.launcher-tile:hover { border-color: var(--ink); }

.launcher-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.launcher-icon svg { width: 22px; height: 22px; }

.icon-teal { background: var(--signal); }
.icon-ink { background: var(--ink); }
.icon-amber { background: var(--amber); }

.launcher-label { font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.launcher-caption { font-size: 0.82rem; color: var(--slate); }
/* ---------- contact form ---------- */

.contact-form {
  max-width: 46ch;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label { font-size: 0.9rem; color: var(--ink-soft); }

.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-raised);
  color: var(--ink);
  resize: vertical;
}

.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status[data-state="success"] { color: var(--signal); }
.form-status[data-state="error"] { color: var(--amber); }
