/* =============================================================
   Linq Ninja — Shared Design System
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Design tokens ──────────────────────────────────────────── */

:root {
  --g:             #39FF14;   /* neon green  – primary accent      */
  --o:             #FF7A1A;   /* orange      – secondary accent     */
  --bg:            #0A0A0A;
  --bg-raised:     #101010;
  --bg-raised-2:   #111111;
  --bg-input:      #121212;
  --border:        #262626;
  --border-subtle: #1c1c1c;
  --border-input:  #333333;
  --text:          #ECECE6;
  --text-mid:      #C9C9C2;
  --text-muted:    #9A9A94;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     14px;
  --font-body:     'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --max-w:         1120px;
  --max-w-narrow:  820px;
}

/* ── Reset / Base ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a       { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }

/* [added] Visible focus for keyboard users */
:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}

/* ── Layout ─────────────────────────────────────────────────── */

/* General centering wrapper – horizontal padding only */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Section border + full-width divider */
.section { border-top: 1px solid var(--border-subtle); }

/* Section interior – max-width + section-level padding */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-inner--narrow { max-width: var(--max-w-narrow); }

/* [added] Keep the hero's inline-padded container from colliding with the header */
main { display: block; }

/* ── Navigation ─────────────────────────────────────────────── */

.site-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo__name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.nav-link       { color: var(--text-muted); }
.nav-link--cta  {
  color: var(--bg);
  background: var(--g);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
}
.nav-link--cta:hover { opacity: 0.9; }

/* ── Eyebrow / Section label ─────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow--green  { color: var(--g); }
.eyebrow--orange { color: var(--o); }

/* ── Headings ───────────────────────────────────────────────── */

.display-heading {
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.5vw, 52px);
}

/* [added] Heading size used by the card and FAQ headings in the page markup */
.card h3 { font-size: 24px; }

/* ── Cards ──────────────────────────────────────────────────── */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  min-height: 52px;
  padding: 0 24px;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary        { background: var(--g); color: var(--bg); }
.btn--primary:hover  { opacity: 0.9; }

/* [added] Disabled state for the waitlist button after submission */
.btn:disabled {
  cursor: default;
  opacity: 0.7;
}

/* ── Forms ──────────────────────────────────────────────────── */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 16px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 15px;
}

/* [added] Disabled field after submission */
.field:disabled {
  opacity: 0.8;
  cursor: default;
}

/* [added] Status text under the waitlist form (JS sets inline styles too) */
.waitlist-status {
  font-size: 14px;
  min-height: 0;
}

/* ── Waitlist Banner ─────────────────────────────────────────── */

.waitlist-banner {
  background: var(--bg-raised);
  border: 1px solid var(--g);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  margin-top: 64px;
}

/* ── Terminal / Code Display ─────────────────────────────────── */

.terminal {
  background: var(--bg-raised-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-word;
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-input);
  flex-shrink: 0;
}

.terminal__body {
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  word-break: break-word;
}

/* ── Data Table ─────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-raised);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: left;
}

.data-table th {
  padding: 14px 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:last-child td { border-bottom: none; }

/* [added] Colour helpers used inside table cells */
.data-table .text-green  { color: var(--g); }
.data-table .text-orange { color: var(--o); }

/* ── FAQ ────────────────────────────────────────────────────── */

.faq-item                { border-top: 1px solid var(--border); padding: 24px 0; }
.faq-item:last-child     { border-bottom: 1px solid var(--border); }
.faq-item h3             { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
.faq-item p              { margin: 0; color: var(--text-mid); }
.faq-item p a            { color: var(--g); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border-subtle); }

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo      { display: flex; align-items: center; gap: 12px; }
.footer-logo__name { font-weight: 800; font-size: 18px; }
.footer-logo__tag  { font-size: 14px; color: var(--text-muted); }

.footer-links    { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer-links a  { color: var(--text-muted); }
.footer-copy     { font-size: 14px; color: var(--text-muted); width: 100%; }

/* ── Legal / Static Page Hero ───────────────────────────────── */

.page-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 56px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.page-hero__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Prose (legal page content) ─────────────────────────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}

.prose h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prose h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.prose h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}

.prose p             { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li            { margin-bottom: 6px; }
.prose strong        { color: var(--text); font-weight: 600; }

.prose a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { opacity: 0.85; }

/* A callout box for important notices within prose */
.prose .notice {
  background: var(--bg-raised);
  border-left: 3px solid var(--g);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 16px;
  color: var(--text-mid);
}

/* ── Utilities ───────────────────────────────────────────────── */

.text-green  { color: var(--g); }
.text-orange { color: var(--o); }
.text-muted  { color: var(--text-muted); }
.text-mid    { color: var(--text-mid); }
.font-mono   { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* [added] Caption for the audit table */
.data-table caption {
  caption-side: top;
}

/* [added] Responsive tweak: stack the nav under the logo on small screens */
@media (max-width: 640px) {
  .site-nav { gap: 16px; font-size: 15px; }
  .section-inner { padding: 64px 20px; }
  .display-heading { font-size: clamp(40px, 11vw, 56px); }
}