/* =====================================================================
   NovaGaugeAI — brand + design tokens
   ---------------------------------------------------------------------
   REBRANDING?  Change the values in :root below and the whole site
   updates. Colors, fonts, spacing and the corner radius all live here.
   ===================================================================== */
:root {
  /* --- Brand colors (from the NovaGauge logo: teal -> navy gradient) --- */
  --bg:            #04070c;   /* page background (near-black navy)   */
  --bg-2:          #060b12;   /* alternating section background      */
  --fg:            #e8edf2;   /* primary text                        */
  --muted:         #8a97a6;   /* secondary / label text              */
  --card:          #0a0f16;   /* card surface                        */
  --card-2:        #0c121b;   /* nested / hover surface              */
  --border:        #17222f;   /* hairline borders                    */
  --border-2:      #1f2e3d;   /* stronger borders                    */

  --primary:       #17b8cc;   /* teal — main brand accent            */
  --primary-fg:    #04070c;   /* text on primary buttons             */
  --accent:        #38bdf8;   /* cyan-blue (the "AI" in the logo)    */
  --primary-soft:  rgba(23,184,204,0.12);
  --accent-soft:   rgba(56,189,248,0.10);

  /* Signature gradient (matches the logo mark) */
  --grad: linear-gradient(135deg, #22d3d8 0%, #17a8c9 40%, #0f4d7a 100%);

  /* --- Typography --- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, monospace;

  /* --- Shape --- */
  --radius: 2px;              /* sharp, technical corners            */
  --maxw: 1240px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-2); }

/* Small mono "// comment" eyebrow labels used throughout */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: none;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: "//"; color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head h2 .hl { color: var(--primary); }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 17px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { box-shadow: 0 0 0 1px var(--primary), 0 8px 30px -8px var(--primary); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
header nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand img { height: 36px; width: 36px; object-fit: contain; }
.brand .name { font-size: 16px; letter-spacing: -0.01em; }
.brand .name b { color: var(--primary); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; font-family: var(--font-mono); font-size: 13px; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-2); color: var(--fg);
  font-family: var(--font-mono); padding: 8px 12px; border-radius: var(--radius); cursor: pointer; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 168px 0 92px; position: relative; overflow: hidden; }
.hero::before { /* subtle grid backdrop */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero .glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-soft), transparent 62%); filter: blur(20px); }
.term-prompt { font-family: var(--font-mono); font-size: 13px; color: var(--primary); margin-bottom: 26px;
  display: inline-flex; align-items: center; gap: 8px; }
.term-prompt::before { content: ">"; color: var(--muted); }
.blink { width: 8px; height: 15px; background: var(--primary); display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(34px, 6vw, 64px); max-width: 900px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--fg); font-size: clamp(17px, 2vw, 20px); max-width: 640px; margin-top: 26px; }
.hero .sub { color: var(--muted); font-size: 16px; max-width: 660px; margin-top: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .tagline { font-family: var(--font-mono); color: var(--primary); font-size: 14px; margin-top: 28px; letter-spacing: 0.02em; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); margin-top: 64px; overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-mono); font-size: 30px; color: var(--primary); font-weight: 500; }
.stat .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ---------------------------------------------------------------- symbol grid */
.symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); margin-top: 44px; overflow: hidden; }
.symbols .cell { background: var(--card); padding: 30px 22px; display: flex; align-items: center; gap: 16px;
  transition: background .2s; }
.symbols .cell:hover { background: var(--card-2); }
.symbols .glyph { font-family: var(--font-mono); font-size: 24px; color: var(--primary); width: 30px; text-align: center; }
.symbols .cell span.t { font-size: 15px; color: var(--fg); }

/* ---------------------------------------------------------------- service modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, background .2s; }
.module:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-2); }
.module .id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.module .id b { color: var(--primary); font-weight: 500; }
.module h3 { font-size: 19px; margin-bottom: 12px; }
.module p { color: var(--muted); font-size: 14.5px; flex: 1; }
.module .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 18px; }
.module .tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border-2); padding: 4px 9px; border-radius: var(--radius); }
.module .more { font-family: var(--font-mono); font-size: 13px; color: var(--fg); display: inline-flex; align-items: center; gap: 7px; }
.module .more::before { content: "->"; color: var(--primary); }
.module:hover .more { color: var(--primary); }

/* ---------------------------------------------------------------- feature list (managed) */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 20px; transition: border-color .2s, background .2s; }
.feature:hover { border-color: var(--border-2); background: var(--card-2); }
.feature .fglyph { font-family: var(--font-mono); font-size: 26px; color: var(--primary); flex-shrink: 0; }
.feature .fnum { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.feature h3 { font-size: 17px; margin: 6px 0 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------------------------------------------------------------- pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: relative; }
.step .snum { font-family: var(--font-mono); font-size: 12px; color: var(--primary); margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }
.step::after { content: "->"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--border-2); z-index: 2; }
.step:last-child::after { display: none; }
.pipeline-outro { font-family: var(--font-mono); color: var(--primary); margin-top: 32px; font-size: 15px; }

/* ---------------------------------------------------------------- quality & security columns */
.qs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.qs .col-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.qs .col-head .cg { font-family: var(--font-mono); font-size: 26px; color: var(--primary); }
.qs .col-head h3 { font-size: 20px; }
.qs .qitem { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.qs .qitem:last-child { border-bottom: 0; }
.qs .qitem .qn { font-family: var(--font-mono); font-size: 12px; color: var(--primary); }
.qs .qitem h4 { font-size: 15.5px; margin: 6px 0 6px; font-weight: 600; }
.qs .qitem p { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- academy */
.academy-inner { background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.academy-inner::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 100% 0%, var(--primary-soft), transparent 55%); }
.academy-inner > * { position: relative; z-index: 1; }
.academy h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.academy p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.academy .courses { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.academy .courses li { font-family: var(--font-mono); font-size: 13px; color: var(--fg);
  display: flex; align-items: center; gap: 10px; }
.academy .courses li::before { content: "◇"; color: var(--primary); }
/* academy waitlist form + confirmation */
.academy-form-wrap { position: relative; z-index: 1; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border-2); }
.academy-form-wrap .term-prompt::before { content: ">"; color: var(--muted); }
.academy-form-wrap .term-prompt { font-family: var(--font-mono); font-size: 13px; color: var(--primary); display: inline-flex; gap: 8px; }
.waitlist-done { display: flex; align-items: center; gap: 18px; padding: 26px 28px;
  background: var(--primary-soft); border: 1px solid var(--primary); border-radius: var(--radius); }
.waitlist-done .wd-check { font-family: var(--font-mono); font-size: 30px; color: var(--primary); line-height: 1; }
.waitlist-done strong { display: block; font-size: 18px; color: var(--fg); margin-bottom: 4px; }
.waitlist-done span { color: var(--muted); font-size: 14.5px; }
.waitlist-done span b { color: var(--fg); font-weight: 500; }

/* ---------------------------------------------------------------- big CTA */
.cta { text-align: center; }
.cta .term-prompt { justify-content: center; }
.cta h2 { font-size: clamp(30px, 5vw, 52px); max-width: 800px; margin: 0 auto; }
.cta h2 .hl { color: var(--primary); }
.cta p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 22px auto 0; }
.cta .actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- pilot form */
.pilot-form { max-width: 780px; margin: 44px auto 0; text-align: left; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.field label span { color: var(--primary); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--fg);
  background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #566372; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.field select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.form-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin: 0; flex: 1; min-width: 220px; text-align: left; }
.form-note b { color: var(--fg); font-weight: 500; }
.form-note.ok { color: var(--primary); }
.form-note.err { color: #ff8a8a; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: border-color .2s; }
.contact-card:hover { border-color: var(--primary); }
.contact-card .cl { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.contact-card .cv { font-size: 18px; color: var(--fg); }
.contact-card .arrow { font-family: var(--font-mono); color: var(--primary); font-size: 20px; }

/* ---------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-brand .tag { font-family: var(--font-mono); color: var(--primary); font-size: 13px; margin-top: 14px; }
.fcol h4 { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.fcol h4::before { content: "// "; }
.fcol a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.fcol a:hover { color: var(--primary); }
.status-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; padding: 5px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--fg); }

/* ------------------------------------------- how we measure quality */
.measure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s, background .2s; }
.mcard:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-2); }
.mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mnum { font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--border-2); border-radius: 50%; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; }
.mglyph { font-family: var(--font-mono); font-size: 26px; color: var(--primary); }
.mcard h3 { font-size: 18px; margin-bottom: 10px; }
.mcard p { color: var(--muted); font-size: 14.5px; }

.flowstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 28px; padding: 18px 22px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 13.5px; color: var(--fg); }
.flowstrip .fbar { width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.flowstrip i { color: var(--primary); font-style: normal; }

/* ------------------------------------------- what you receive */
.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s, background .2s; }
.dcard:hover { border-color: var(--primary); transform: translateY(-3px); background: var(--card-2); }
.dcard .dglyph { font-family: var(--font-mono); font-size: 26px; color: var(--primary);
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: var(--primary-soft); border: 1px solid var(--border-2); border-radius: var(--radius); margin-bottom: 18px; }
.dcard h3 { font-size: 17px; margin-bottom: 10px; }
.dcard p { color: var(--muted); font-size: 14px; }

/* ------------------------------------------- blog (teaser + pages) */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-empty { grid-column: 1 / -1; color: var(--muted); font-family: var(--font-mono); font-size: 14px; padding: 30px 0; }

.blog-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px 24px; display: flex; flex-direction: column;
  min-height: 260px; overflow: hidden; isolation: isolate;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
/* gradient accent bar along the top, reveals on hover */
.blog-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.blog-card:hover {
  border-color: var(--border-2); transform: translateY(-4px); background: var(--card-2);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.9), 0 0 0 1px var(--primary-soft);
}
.blog-card:hover::before { transform: scaleX(1); }

.bc-meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted);
  margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
}
.bc-meta::before { content: "◇"; color: var(--primary); font-size: 12px; }

.blog-card h3 {
  font-size: 20px; line-height: 1.3; margin-bottom: 12px; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-card p {
  color: var(--muted); font-size: 14.5px; line-height: 1.65; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bc-more {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--primary);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
}
.bc-more::after { content: "→"; transition: transform .25s ease; }
.blog-card:hover .bc-more::after { transform: translateX(5px); }

/* cover image on a card (full-bleed at the top, counters card padding) */
.bc-cover { margin: -28px -26px 20px; overflow: hidden; background: var(--bg-2); }
.bc-cover img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .45s ease; }
.blog-card:hover .bc-cover img { transform: scale(1.05); }

/* cover hero on the single article page */
.cover-hero { margin: 6px 0 34px; }
.cover-hero img { width: 100%; max-height: 440px; object-fit: cover; display: block; border-radius: var(--radius); border: 1px solid var(--border); }

/* admin cover field */
.cover-preview { margin-bottom: 12px; }
.cover-preview img { max-width: 340px; width: 100%; border: 1px solid var(--border-2); border-radius: var(--radius); display: block; margin-bottom: 10px; }
.cover-remove { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); cursor: pointer; }
.field input[type=file] { font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }

/* admin writing hint */
.write-hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.write-hint b { color: var(--fg); font-weight: 600; }
.write-hint code, .admin-card code {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border-2); padding: 2px 6px; border-radius: 3px;
}

/* blog listing / article pages (blog.php, post) */
.page-top { padding: 128px 0 40px; border-top: 0; }
.article { max-width: 760px; margin: 0 auto; padding: 128px 0 80px; }
.article .bc-meta { font-size: 13px; margin-bottom: 18px; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 20px; }
.article .body { color: #cfd8e2; font-size: 17px; line-height: 1.8; }
.article .body p { margin: 0 0 20px; }
.article .body h2 { font-size: 26px; margin: 40px 0 14px; }
.article .body h3 { font-size: 20px; margin: 30px 0 12px; }
.article .body ul, .article .body ol { margin: 0 0 20px; padding-left: 22px; }
.article .body li { margin: 6px 0; }
.article .body img { border-radius: var(--radius); margin: 24px 0; }
.article .body a { color: var(--primary); text-decoration: underline; }
.back-link { font-family: var(--font-mono); font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; margin-bottom: 30px; }
.back-link:hover { color: var(--primary); }

/* admin (admin.php) */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.admin-card h2 { font-size: 20px; margin-bottom: 18px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.admin-row:last-child { border-bottom: 0; }
.admin-row .ar-title { font-size: 15px; }
.admin-row .ar-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-danger { background: transparent; border: 1px solid #7f1d1d; color: #ff8a8a; }
.btn-danger:hover { border-color: #dc2626; color: #ff6b6b; }
.alert { padding: 12px 16px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; margin-bottom: 20px; }
.alert-ok { background: var(--primary-soft); border: 1px solid var(--primary); color: var(--primary); }
.alert-err { background: rgba(220,38,38,.1); border: 1px solid #7f1d1d; color: #ff8a8a; }
.login-box { max-width: 380px; margin: 80px auto; }

/* ================================================================
   RESPONSIVE  — mobile-safe across phones, tablets, laptops.
   Breakpoints: 1080 / 920 (nav collapses) / 760 / 560 / 400
   ================================================================ */

/* large tablet / small laptop */
@media (max-width: 1080px) {
  .deliver-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- 920px: collapse the nav to a hamburger (fixes header crowding) --- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-links.open {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open a { padding: 12px 0; width: 100%; font-size: 15px; border-bottom: 1px solid var(--border); }

  .modules, .measure-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .qs { grid-template-columns: 1fr; gap: 40px; }
  .academy-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* --- 760px: tablets / large phones --- */
@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding: 140px 0 72px; }
  .deliver-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .academy-inner { padding: 32px; }
  .blog-head { align-items: flex-start; }
}

/* --- 560px: phones — everything stacks to one column --- */
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  header nav { padding: 0 18px; gap: 12px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

  .modules, .features, .measure-grid, .deliver-grid, .pipeline,
  .symbols, .academy .courses, .blog-grid, .footer-top, .form-grid {
    grid-template-columns: 1fr;
  }
  .symbols .cell { padding: 22px 18px; }
  .academy-inner { padding: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .hero .actions .btn, .cta .actions .btn { width: auto; }
  .article, .page-top { padding-top: 108px; }

  /* keep the navbar button compact so it doesn't crowd the logo */
  header nav { gap: 16px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn { width: auto; padding: 8px 12px; font-size: 12.5px; }
}

/* --- 400px: very small phones — tighten type/padding --- */
@media (max-width: 400px) {
  .wrap { padding: 0 14px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .cta .actions { flex-direction: column; }
  .cta .actions .btn { width: 100%; justify-content: center; }
  .brand .name { font-size: 15px; }
  .brand img { height: 30px; width: 30px; }
  .nav-cta .btn { width: auto; padding: 7px 10px; font-size: 12px; }
}
