/* NIMGC marketing site — token-mirrored from the app's constants/theme.ts. */

:root {
  --c-forest: #0E4B1F;
  --c-forest-pressed: #0A3815;
  --c-forest-muted: #1B6A2E;
  --c-onPrimary: #FFFFFF;
  --c-surface: #FFFFFF;
  --c-surfaceMuted: #F3F1EC;
  --c-sunken: #E6E0D1;
  --c-ink: #111111;
  --c-inkMuted: #6E6E6E;
  --c-hairline: rgba(0, 0, 0, 0.10);
  --c-warning: #B5660A;
  --c-danger: #B42318;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);

  --maxw: 1100px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* NAV ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-hairline);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.brand__wordmark { font-weight: 700; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.nav__links a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: 15px;
}
.nav__cta {
  background: var(--c-forest);
  color: var(--c-onPrimary) !important;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav__cta:hover { background: var(--c-forest-pressed); text-decoration: none; }

@media (max-width: 600px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* HERO --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: clamp(48px, 10vw, 120px) var(--gutter);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.65) 100%),
    url("/assets/hero.jpg") center / cover no-repeat,
    var(--c-forest);
  color: var(--c-onPrimary);
}
.hero__copy { max-width: 780px; margin: 0 auto; width: 100%; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin: 0 0 12px;
}

.display {
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-size: clamp(56px, 10vw, 120px);
  margin: 0 0 24px;
}
.display__row { display: block; }
.display__row--muted { color: rgba(255,255,255,0.72); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,0.90);
  max-width: 60ch;
  margin: 0 0 28px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, opacity 120ms ease;
  font-family: inherit;
}
.btn--primary { background: var(--c-forest); color: var(--c-onPrimary); }
.btn--primary:hover { background: var(--c-forest-pressed); text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--c-onPrimary);
  border: 1.5px solid rgba(255,255,255,0.8);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* SECTIONS ----------------------------------------------------------- */
.section {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section--inverted {
  background: var(--c-forest);
  color: var(--c-onPrimary);
  max-width: none;
}
.section--inverted .section__title { color: var(--c-onPrimary); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__inner--narrow { max-width: 720px; }
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.section p { font-size: 17px; line-height: 1.6; color: inherit; margin: 0 0 16px; }
.section--inverted p { color: rgba(255,255,255,0.9); }

/* GRID --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 24px;
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-hairline);
  box-shadow: var(--shadow-card);
}
.card__icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--c-surfaceMuted);
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card p { font-size: 15px; line-height: 1.55; color: var(--c-inkMuted); margin: 0; }

/* STEPS -------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step {
  background: var(--c-surfaceMuted);
  padding: 28px;
  border-radius: var(--radius-lg);
}
.step__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--c-forest);
  color: var(--c-onPrimary);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--c-inkMuted); font-size: 15px; line-height: 1.55; }

/* SIGNUP ------------------------------------------------------------- */
.signup {
  background: var(--c-surfaceMuted);
  padding: clamp(56px, 9vw, 96px) var(--gutter);
}
.signup__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.signup__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-inkMuted);
  margin: 0 0 32px;
}

.form { display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 6px; }
.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}
.field input,
.field textarea {
  font: inherit;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-hairline);
  background: var(--c-surface);
  color: var(--c-ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--c-forest);
  box-shadow: 0 0 0 3px rgba(14, 75, 31, 0.18);
}
.field__hint { font-size: 13px; color: var(--c-inkMuted); }

.form__status { min-height: 22px; font-size: 14px; margin: 0; }
.form__status[data-tone="success"] { color: var(--c-forest); }
.form__status[data-tone="error"] { color: var(--c-danger); }

/* Honeypot field — visually hidden but still in the DOM for naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details {
  background: var(--c-surfaceMuted);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.faq details[open] { background: var(--c-surface); border: 1px solid var(--c-hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--c-inkMuted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--c-inkMuted); font-size: 15px; line-height: 1.6; }

/* FOOTER ------------------------------------------------------------- */
.footer {
  padding: 48px var(--gutter);
  border-top: 1px solid var(--c-hairline);
  background: var(--c-surface);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.footer__brand { font-weight: 700; margin: 0; }
.footer__copy { color: var(--c-inkMuted); font-size: 14px; margin: 0; }
.footer__copy a { color: var(--c-forest); margin-left: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
