/* ============================================================
   Nimquora landing page
   Theme: cool slate base, deep teal ink, data/research feel.
   IBM Plex Sans. No purple, no gradients.
   ============================================================ */

:root {
  color-scheme: light;
  --ink: #134e4a;           /* deep teal — headings, primary buttons */
  --accent: #0e7490;        /* cyan-slate — links, bars */
  --text: #2f3b3f;
  --text-muted: #5d6b70;
  --bg: #f7fafa;            /* cool off-white */
  --bg-tint: #e9f1f1;       /* teal-tinted band */
  --bg-hero: #dfeaea;       /* hero band */
  --border: #d7e2e2;
  --radius: 6px;
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.center { text-align: center; }

h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.875rem, 4vw, 2.875rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.logo { font-weight: 700; font-size: 1.125rem; color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(247, 250, 250, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: 0.9375rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1c6b66; color: #fff; }

.btn-secondary { background: transparent; color: var(--ink); border-color: #bfd0d0; }
.btn-secondary:hover { border-color: var(--ink); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-tint); color: var(--ink); }

.btn-small { padding: 8px 16px; font-size: 0.875rem; }
.nav-links .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 104px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 1px 1px, rgba(19, 78, 74, 0.10) 1px, transparent 0) 0 0 / 26px 26px,
    var(--bg-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead { font-size: 1.125rem; color: var(--text-muted); margin-top: 20px; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- Hero visual: results panel + floating card ---------- */
.hero-visual { position: relative; }

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(19, 78, 74, 0.13);
  overflow: hidden;
  font-size: 0.875rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef4f4;
}

.panel-title { display: block; font-weight: 700; color: var(--ink); }
.panel-sub { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-teal { background: #d9efee; color: #11605b; }

.panel-body { padding: 16px 18px 8px; }

.variant { margin-bottom: 14px; }

.variant-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.variant-name { font-size: 0.8125rem; color: var(--text); }
.variant-winner .variant-name { font-weight: 700; color: var(--ink); }
.variant-pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.variant-winner .variant-pct { color: var(--ink); }

.bar {
  height: 10px;
  background: #edf3f3;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill { height: 100%; background: #9fbfbe; border-radius: 999px; }
.bar-win { background: var(--accent); }

.segments {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef4f4;
}

.seg {
  display: grid;
  grid-template-columns: 96px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.seg-name { font-size: 0.75rem; color: var(--text-muted); }
.seg-bar { height: 6px; background: #edf3f3; border-radius: 999px; overflow: hidden; }
.seg-fill { height: 100%; background: var(--ink); border-radius: 999px; }
.seg-pct { font-size: 0.75rem; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  background: #f2f7f7;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.panel-foot-link { font-weight: 700; color: var(--accent); }

/* floating interview snippet — overlaps the panel bottom-left */
.float-card {
  position: absolute;
  bottom: -36px;
  left: -28px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(19, 78, 74, 0.16);
  padding: 14px 16px;
  max-width: 320px;
}

.float-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-body p { font-size: 0.8125rem; color: var(--text); line-height: 1.45; }
.float-body span { display: block; margin-top: 6px; font-size: 0.6875rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 1.0625rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Icons ---------- */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #d9efee;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-rows { gap: 40px 48px; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.steps p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Calibration: stats + quote ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.stat-num {
  display: block;
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--text-muted); }

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  max-width: 680px;
}
.quote p { font-size: 1.125rem; color: var(--text); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- CTA (dark teal panel, light button) ---------- */
.section-cta { background: var(--ink); }
.section-cta h2 { color: #fff; }
.section-cta .lead { color: #a9cbc8; }

.cta-form { display: flex; gap: 12px; margin-top: 28px; justify-content: center; flex-wrap: wrap; }

.cta-form input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 12px 16px;
  border: 1px solid #2c6f6a;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--text);
}
.cta-form input:focus { outline: 2px solid #7fc4bf; outline-offset: 1px; }

.cta-note { margin-top: 24px; font-size: 0.875rem; color: #a9cbc8; }
.cta-note a { color: #d3e8e6; text-decoration: underline; }
.cta-note a:hover { color: #fff; }

/* ---------- Footer (near-black teal) ---------- */
.footer { background: #0c2c2a; padding: 48px 0 24px; }
.footer .logo { color: #fff; }

.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.footer-tag { margin-top: 8px; font-size: 0.875rem; color: #84a8a5; max-width: 320px; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #84a8a5; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }

.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1c4441;
  font-size: 0.8125rem;
  color: #6a918e;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 80px; }
  .float-card { left: 12px; bottom: -28px; }
}

@media (max-width: 860px) {
  .grid-3, .steps, .stats-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
}
