/* ============================================================
   Brand Pilot — shared design tokens + base styles
   Dark mode only (v1). Palette locked per brief §6.
   ============================================================ */

@import url("https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700&display=swap");

:root {
  /* Surfaces */
  --bg:        #0F172A;   /* deep navy */
  --bg-2:      #0B1220;   /* darker pocket for depth */
  --surface:   #1E293B;
  --surface-2: #243244;
  --border:    #334155;
  --border-soft: rgba(51, 65, 85, 0.55);

  /* Text */
  --text:      #F8FAFC;
  --text-2:    #94A3B8;
  --text-3:    #64748B;

  /* Accent (tweakable — defaults to warm orange) */
  --accent:        #F97316;
  --accent-hover:  color-mix(in oklch, var(--accent), black 14%);
  --accent-soft:   color-mix(in oklch, var(--accent), var(--bg) 84%);
  --accent-ring:   color-mix(in oklch, var(--accent), transparent 70%);

  /* Semantic */
  --rising:    #10B981;
  --slack:     #4A154B;

  /* Type */
  --font-display: "General Sans", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-ring); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--text);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 560;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .12s ease, color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-slack {
  background: #fff;
  color: #1A1A1A;
  border-color: #fff;
  font-weight: 600;
  padding-left: 16px;
}
.btn-slack:hover { background: #f1f1f1; }
.btn-slack .slack-mark { width: 20px; height: 20px; display: block; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: #475569; }

.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg), transparent 18%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.navlink {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a.navlink:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger svg { width: 24px; height: 24px; stroke: var(--text); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-2);
  padding: 56px 0 40px;
  margin-top: 8px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 14.5px;
  padding: 5px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13.5px;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px 6px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.muted { color: var(--text-2); }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .wrap { padding: 0 20px; }
}
