/* TrueNorth landing — minimalist, no gradients. */

:root {
  /* Brand palette per docs/assest/truenorth_logo_suite_svg/README.md:
     Deep Navy #062B49 · True Blue #1E73BE · Slate #2E3A46 · White. */
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #062B49;
  --ink-muted: #2E3A46;
  --ink-faint: #8a8f99;
  --line: #e8e6e0;
  --line-strong: #d4d2cc;
  --accent: #062B49;
  --accent-hover: #041F36;
  --code-bg: #062B49;
  --code-fg: #d4d4d8;
  --code-key: #93c5fd;
  --code-str: #fcd34d;
  --radius: 8px;
  --radius-sm: 4px;
  --max-w: 1120px;
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, 0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────── Nav ─────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.logo-mark {
  width: 22px;
  height: auto;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 8px;
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.lang-toggle:hover { color: var(--ink); }

/* ─────────── Buttons / links ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  font-family: inherit;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-large {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─────────── Eyebrow / section titles ─────────── */
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  font-weight: 700;
  max-width: 720px;
}

/* ─────────── Hero ─────────── */
.hero {
  padding: 88px 0 64px;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
  max-width: 820px;
}
.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─────────── Section base ─────────── */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

/* ─────────── Products ─────────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid-products {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0 0 20px;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.card-meta {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
  font-size: 12px;
  color: var(--ink-faint) !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin: 0 !important;
}
.card-meta code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: var(--ink);
}

/* ─────────── Why grid ─────────── */
.grid-why {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.value h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.value p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* ─────────── Developers ─────────── */
.developers-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.developers .section-title { margin-bottom: 20px; }
.muted {
  color: var(--ink-muted);
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}
.code {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 24px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
  margin: 0;
}
.code code { background: none; padding: 0; color: inherit; }
.c-key { color: var(--code-key); }
.c-str { color: var(--code-str); }

/* ─────────── CTA ─────────── */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.1;
  font-weight: 700;
}
.cta .muted {
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 36px;
}

/* ─────────── Footer ─────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-logo { font-size: 15px; }
.footer-tag {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-links {
  display: flex;
  gap: 28px;
  justify-self: center;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.15s;
  font-size: 13px;
}
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  justify-self: end;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ─────────── Responsive ─────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .developers-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-links { justify-self: start; flex-wrap: wrap; }
  .footer-meta { justify-self: start; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .section, .cta { padding: 64px 0; }
  .hero-cta { gap: 14px; }
  .card { padding: 22px; }
  .code { padding: 18px; font-size: 12.5px; }
}
