/* ============================================================
   CarrotHQ — Shared design tokens, reset, and layout primitives
   Dark, minimal, typography-driven (see branding/brand-book/brand.css)
   ============================================================ */

:root {
  /* Brand palette */
  --nzd-navy-1: #0B1435;
  --nzd-navy-2: #071024;
  --nzd-teal: #4EF0C2;
  --nzd-cyan: #42CFFF;
  --nzd-white: #FFFFFF;

  /* Page / neutrals */
  --bg: #05091A;
  --panel: #0B1430;
  --panel-2: #0A1126;
  --line: rgba(132, 166, 224, 0.14);
  --line-soft: rgba(132, 166, 224, 0.08);
  --ink: #EBEEF8;
  --mist: #A6AFCB;
  --slate: #69739A;

  /* Layout */
  --maxw: 1100px;
  --pad: clamp(20px, 5vw, 64px);

  /* Type — system fonts only (no external font requests) */
  --font-sans: "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

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

a {
  color: inherit;
}

a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--nzd-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- layout ---- */

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

section {
  padding-block: clamp(56px, 10vw, 120px);
}

.divider {
  height: 1px;
  background: var(--line-soft);
}

/* ---- type ---- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nzd-teal);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--nzd-teal), transparent);
}

.eyebrow.center {
  justify-content: center;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(38px, 7vw, 72px); }
h2 { font-size: clamp(28px, 4.4vw, 46px); }
h3 { font-size: clamp(19px, 2.3vw, 26px); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--mist);
  max-width: 60ch;
  font-weight: 400;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--slate); }

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 720px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.cta {
  margin: 28px 0 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  color: var(--nzd-navy-2);
  background: linear-gradient(135deg, var(--nzd-teal), var(--nzd-cyan));
  border-color: transparent;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--ink);
  background: var(--panel);
}

.btn-ghost:hover {
  border-color: var(--line-soft);
}

/* ---- top bar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 9, 26, 0.62);
  border-bottom: 1px solid var(--line-soft);
}

.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand-min {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
}

.brand-min img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(28px, 5vw, 48px);
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .copy {
  font-size: 13px;
  color: var(--mist);
}

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

.hero {
  padding-top: clamp(64px, 12vw, 140px);
  padding-bottom: clamp(48px, 8vw, 100px);
}

.hero h1 {
  margin-top: 18px;
}

.hero .lede {
  margin: 18px auto 0;
}

/* ---- products ---- */

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--nzd-teal);
  transform: translateY(-2px);
}

.product-card + .product-card {
  margin-top: 16px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card .lede {
  margin: 0;
}

.product-arrow {
  flex-shrink: 0;
  font-size: 22px;
  font-family: var(--font-mono);
  color: var(--nzd-teal);
}

/* ---- about / contact ---- */

#about .lede,
#contact .lede {
  margin-top: 14px;
}

#about h2,
#contact h2 {
  margin-top: 0;
}

/* ---- legal pages (privacy / terms) ---- */

.legal {
  max-width: 680px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.legal .updated {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--mist);
}

.legal h2 {
  font-size: clamp(19px, 2.3vw, 24px);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal p {
  margin: 0 0 16px;
  color: var(--mist);
  line-height: 1.7;
}

.legal p:first-of-type {
  margin-top: 28px;
}

.legal a:not(.back-link) {
  color: var(--nzd-teal);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--nzd-teal);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}
