/* ═══════════════════════════════════════════════════════════════
   AxiomWeb — Unified Design System
   Theme A (default): Clean Minimal — light/dark
   Theme B (secondary): Red Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

/* ── THEME A: Minimal (default) ─────────────────────────────── */
:root,
[data-style="minimal"][data-tone="light"] {
  --bg:          #060a14;
  --bg2:         #0b1120;
  --bg3:         #111827;
  --surface:     rgba(255,255,255,0.05);
  --surface2:    rgba(255,255,255,0.09);
  --border:      rgba(255,255,255,0.10);
  --text:        rgba(255,255,255,0.92);
  --muted:       rgba(255,255,255,0.50);
  --faint:       rgba(255,255,255,0.22);
  --accent:      #2979ff;
  --accent2:     #0047cc;
  --accent-glow: rgba(41,121,255,0.22);
  --green:       #00e676;
  --nav-bg:      rgba(6,10,20,0.92);
  --card-bg:     #111827;
  --code-bg:     #060a14;
  --code-text:   #90caf9;
  --logo-em:     #2979ff;
  --btn-primary-bg:   #2979ff;
  --btn-primary-text: #fff;
  --btn-outline-bdr:  rgba(255,255,255,0.2);
  --btn-outline-text: rgba(255,255,255,0.75);
}

[data-style="minimal"][data-tone="dark"] {
  --bg:          #05080f;
  --bg2:         #090d16;
  --bg3:         #0e1420;
  --surface:     rgba(255,255,255,0.04);
  --surface2:    rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.07);
  --text:        rgba(255,255,255,0.90);
  --muted:       rgba(255,255,255,0.44);
  --faint:       rgba(255,255,255,0.18);
  --accent:      #3d8ef8;
  --accent2:     #5fa4ff;
  --accent-glow: rgba(61,142,248,0.18);
  --green:       #00e87a;
  --nav-bg:      rgba(5,8,15,0.82);
  --card-bg:     rgba(9,13,22,0.85);
  --code-bg:     #090d16;
  --code-text:   #c9cdd8;
  --logo-em:     #3d8ef8;
  --btn-primary-bg:   #3d8ef8;
  --btn-primary-text: #fff;
  --btn-outline-bdr:  rgba(255,255,255,0.2);
  --btn-outline-text: rgba(255,255,255,0.7);
}

/* ── THEME B: Red Glassmorphism ──────────────────────────────── */
[data-style="red"] {
  --bg:          #0a0202;
  --bg2:         #110404;
  --bg3:         #1a0606;
  --surface:     rgba(255,255,255,0.05);
  --surface2:    rgba(255,255,255,0.08);
  --border:      rgba(220,38,38,0.14);
  --text:        #fff1f1;
  --muted:       #c9a9a9;
  --faint:       #7a4f4f;
  --accent:      #ef4444;
  --accent2:     #dc2626;
  --accent-glow: rgba(220,38,38,0.22);
  --green:       #4ade80;
  --nav-bg:      rgba(10,2,2,0.85);
  --card-bg:     rgba(255,255,255,0.05);
  --code-bg:     rgba(0,0,0,0.55);
  --code-text:   #c9cdd8;
  --logo-em:     #ef4444;
  --btn-primary-bg:   #dc2626;
  --btn-primary-text: #fff;
  --btn-outline-bdr:  rgba(220,38,38,0.35);
  --btn-outline-text: #fff1f1;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .28s, color .28s;
}
a { text-decoration: none; color: inherit; transition: color .15s; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── RED THEME BODY — mesh background ───────────────────────── */
/* ── Minimal LIGHT — blue gradient mesh ── */
[data-style="minimal"][data-tone="light"] body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(41,121,255,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,71,204,0.10) 0%, transparent 65%);
}
[data-style="minimal"][data-tone="light"] body > * { position: relative; z-index: 1; }

/* ── Minimal DARK — blue gradient mesh ── */
[data-style="minimal"][data-tone="dark"] body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 52% at 8% 14%, rgba(29,108,240,0.30) 0%, transparent 58%),
    radial-gradient(ellipse 52% 50% at 92% 80%, rgba(14,60,160,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 48% 60% at 55% 48%, rgba(10,30,100,0.22) 0%, transparent 60%),
    linear-gradient(160deg, #05080f 0%, #060b18 45%, #05080f 100%);
}
[data-style="minimal"][data-tone="dark"] body > * { position: relative; z-index: 1; }

[data-style="red"] body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 10% 15%, rgba(185,28,28,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 90% 80%, rgba(127,29,29,0.28) 0%, transparent 55%),
    linear-gradient(160deg, #0a0202 0%, #130505 45%, #0a0202 100%);
}
[data-style="red"] body > * { position: relative; z-index: 1; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.wrap    { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap-sm { max-width: 900px;  margin: 0 auto; padding: 0 28px; }

/* ── NAV ─────────────────────────────────────────────────────── */
nav.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background .28s, border-color .28s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 58px; padding: 0 28px;
  max-width: 1160px; margin: 0 auto;
}
.nav-logo {
  font-size: 17px; font-weight: 900;
  letter-spacing: -.4px; color: var(--text);
  transition: color .15s;
}
.nav-logo em { font-style: normal; color: var(--logo-em); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--muted); transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-usa { font-size: 12px; color: var(--faint); }
.theme-btn { display: none; }
/* Style switch toggle */
.theme-cycle-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px 5px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.theme-cycle-btn:hover { color: var(--text); border-color: var(--accent); }
.cycle-swatch {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block; flex-shrink: 0;
  transition: background .25s;
}
/* Mobile nav */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-usa { display: none; }
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 14px; font-weight: 700;
  transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  border: 1px solid var(--btn-outline-bdr);
  color: var(--btn-outline-text);
  font-size: 14px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── SECTION LABELS ──────────────────────────────────────────── */
.sec-label {
  display: block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(28px,4vw,48px);
  font-weight: 900; letter-spacing: -.02em;
  color: var(--text); line-height: 1.08;
  margin-bottom: 16px;
}
.sec-body {
  font-size: 17px; color: var(--muted);
  line-height: 1.7; max-width: 560px;
}

/* ── PAGE HERO ───────────────────────────────────────────────── */
.page-hero {
  padding: 100px 0 70px;
  border-bottom: 1px solid var(--border);
}
.page-hero-h {
  font-size: clamp(40px,7vw,76px);
  font-weight: 900; line-height: 1.04;
  letter-spacing: -.03em; color: var(--text);
  margin-bottom: 22px;
}
.page-hero-h em { font-style: normal; color: var(--accent); }
.page-hero-sub {
  font-size: 17px; color: var(--muted);
  max-width: 580px; line-height: 1.72;
  margin-bottom: 36px;
}

/* ── REVEAL ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── CARD GRID ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: 18px; margin-top: 52px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
[data-style="red"] .card {
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.card-icon { display: none; }
.card-title { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.card-desc  { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── WORK LIST ───────────────────────────────────────────────── */
.work-list { margin-top: 52px; }
.work-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 20px; align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.work-item:last-child { border-bottom: none; }
.work-num  { font-size: 13px; font-weight: 800; color: var(--accent); padding-top: 3px; font-variant-numeric: tabular-nums; }
.work-name { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.work-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 12px; }
.work-tech { font-size: 12px; color: var(--faint); font-family: 'JetBrains Mono', monospace; }
.work-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 4px; }
.badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.badge-type  { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border); }
.badge-live  { background: rgba(0,200,80,0.12); color: var(--green); }
.badge-gated { background: var(--surface); color: var(--faint); }

/* ── TERMINAL ────────────────────────────────────────────────── */
.terminal {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden; margin-top: 52px;
}
[data-style="red"] .terminal { border-color: rgba(220,38,38,0.22); }
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border);
}
[data-style="red"] .term-bar { background: rgba(220,38,38,0.08); }
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #ffbd2e; }
.td-g { background: #28c840; }
.term-title { font-size: 12px; font-weight: 600; color: var(--faint); margin-left: 6px; font-family: monospace; }
.term-body  {
  padding: 24px 22px;
  font-family: 'JetBrains Mono','Courier New',monospace;
  font-size: 13px; line-height: 2.1;
}
.tc { color: #555; }
.tk { color: var(--accent); font-weight: 700; display: inline-block; min-width: 112px; }
.td { color: var(--faint); }
.ts { color: var(--code-text); }
.to { color: var(--muted); }

/* ── TWO-COL ABOUT LAYOUT ────────────────────────────────────── */
.about-cols { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: start; }
.about-body p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 700; }

/* ── PRINCIPLE CARDS ─────────────────────────────────────────── */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
  gap: 18px; margin-top: 48px;
}
.principle-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px;
}
.principle-title {
  font-size: 15px; font-weight: 800; color: var(--text);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.principle-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.principle-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── CONTACT FORM ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: 14px; font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.ci-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.ci-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 4px; }
.ci-value { font-size: 15px; font-weight: 600; color: var(--text); }
.ci-value a { color: var(--accent); }
.ci-value a:hover { text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 15px; font-weight: 900; color: var(--text); }
.footer-logo em { font-style: normal; color: var(--logo-em); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--faint); }
.footer-usa  { font-size: 12px; color: var(--faint); }

/* ── CTA STRIP ───────────────────────────────────────────────── */
.cta-strip {
  padding: 100px 0; text-align: center;
  border-top: 1px solid var(--border);
}
.cta-strip h2 {
  font-size: clamp(30px,5vw,60px);
  font-weight: 900; color: var(--text);
  letter-spacing: -.03em; margin-bottom: 16px; line-height: 1.05;
}
.cta-strip p { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.cta-email {
  display: inline-block; font-size: clamp(20px,3vw,36px);
  font-weight: 800; color: var(--accent);
  letter-spacing: -.02em; margin-bottom: 28px;
}
.cta-email:hover { text-decoration: underline; }

/* ── HERO (home only) ────────────────────────────────────────── */
.home-hero { padding: 120px 0 90px; }
.hero-kicker {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent); margin-bottom: 20px;
}
.hero-h {
  font-size: clamp(48px,8vw,96px);
  font-weight: 900; line-height: 1.02;
  letter-spacing: -.04em; color: var(--text); margin-bottom: 24px;
}
.hero-h .accent { color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--muted);
  max-width: 560px; line-height: 1.7; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  margin-top: 52px; flex-wrap: wrap;
}
.trust-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trust-item::before { content: '✓'; color: var(--green); font-weight: 800; font-size: 14px; }

/* ── FACT TABLE ──────────────────────────────────────────────── */
.fact-list { margin-top: 28px; }
.fact-item {
  display: flex; justify-content: space-between;
  align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.fact-label { color: var(--muted); }
.fact-value { font-weight: 700; color: var(--text); }
.fact-value.accent { color: var(--accent); }
.fact-value.green  { color: var(--green); }

/* ── SECTION SPACING ─────────────────────────────────────────── */
.page-section { padding: 80px 0; border-top: 1px solid var(--border); }
.page-section:first-of-type { border-top: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .about-cols    { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 40px; }
  .work-item     { grid-template-columns: 36px 1fr; }
  .work-meta     { flex-direction: row; flex-wrap: wrap; grid-column: 2; }
  .hero-h        { font-size: clamp(38px,10vw,64px); }
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 12px; }
}
