/* ============================================================
   AyronLegion — Enterprise Design System
   Version 4.0 — Corporate, Challenger Positioning
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colours */
  --bg:          #090909;
  --bg-2:        #0e0e11;
  --bg-3:        #141418;
  --surface:     #1a1a20;
  --surface-2:   #222228;
  --border:      #2a2a32;
  --border-light:#333340;

  --text:        #f2f2f4;
  --text-2:      #9898a8;
  --text-3:      #555568;

  --accent:      #00cfff;
  --accent-dim:  rgba(0,207,255,0.08);
  --accent-border: rgba(0,207,255,0.2);

  --warm:        #ff6b35;
  --warm-dim:    rgba(255,107,53,0.08);

  --green:       #10c880;
  --green-dim:   rgba(16,200,128,0.08);

  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

  /* Layout */
  --max:         1200px;
  --header-h:    72px;
  --gap:         1.5rem;
  --section-v:   7rem;
  --r:           10px;
  --r-sm:        6px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { font-family: var(--font); }

/* ─── Typography Scale ───────────────────────────────────────── */
.t-display {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.t-h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.t-h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.t-h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.t-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.8;
}
.t-body { font-size: 0.975rem; line-height: 1.75; color: var(--text-2); }
.t-small { font-size: 0.82rem; color: var(--text-3); }
.t-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
em.hl  { font-style: normal; color: var(--accent); }
em.hwm { font-style: normal; color: var(--warm); }

/* ─── Layout Utilities ───────────────────────────────────────── */
.wrap  { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.wrap--narrow { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.wrap--wide   { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.section       { padding: var(--section-v) 0; }
.section--alt  { background: var(--bg-2); }
.section--deep { background: var(--bg-3); }
.section--flush-top    { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); }

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(9,9,9,0.88);
  backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 2rem;
}
.site-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  flex-shrink: 0;
}
.site-logo img { width: 30px; height: 30px; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-size: 0.875rem; font-weight: 450; color: var(--text-2);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 0.4rem;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ─── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  border: none; transition: all 0.18s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover { background: #fff; color: #000; }

.btn-secondary {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { border-color: var(--text-2); color: var(--text); }

.btn-ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent-border); padding: 0.6rem 1.2rem;
}
.btn-ghost:hover { background: var(--accent-dim); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 0.95rem; }

.header-cta {
  background: var(--accent); color: #000;
  padding: 0.5rem 1.25rem; border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 600; transition: background 0.15s;
}
.header-cta:hover { background: #fff; color: #000; }

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--header-h) + 6rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,207,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.75rem;
}
.hero__eyebrow::before {
  content: ''; width: 20px; height: 1px; background: var(--accent);
}
.hero__heading { margin-bottom: 1.5rem; }
.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-2); line-height: 1.8;
  max-width: 580px; margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Centred hero variant */
.hero--centre { text-align: center; }
.hero--centre .hero__sub  { margin-left: auto; margin-right: auto; }
.hero--centre .hero__actions { justify-content: center; }
.hero--centre .hero__eyebrow { justify-content: center; }
.hero--centre .hero__eyebrow::before { display: none; }

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__label { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.page-hero__heading { margin-bottom: 1.25rem; }
.page-hero__sub { max-width: 620px; }

/* ─── Section Headers ─────────────────────────────────────────── */
.sh { margin-bottom: 3rem; }
.sh--centre { text-align: center; }
.sh--centre .sh__sub { margin-left: auto; margin-right: auto; }
.sh__label  { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.sh__title  { margin-bottom: 0.75rem; }
.sh__sub    { max-width: 580px; font-size: 1rem; color: var(--text-2); line-height: 1.8; }

/* ─── Challenge Statement (pull-quote style) ──────────────────── */
.challenge {
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  background: var(--accent-dim);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 3rem 0;
}
.challenge p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400; line-height: 1.7; color: var(--text);
}

/* ─── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.card--accent:hover { border-color: var(--accent); }
.card--link { cursor: pointer; }

.card__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.card__body  { font-size: 0.9rem; color: var(--text-2); line-height: 1.75; }
.card__link  {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.825rem; color: var(--accent); margin-top: 1.25rem;
  font-weight: 500; transition: gap 0.15s;
}
.card__link:hover { gap: 0.6rem; }

/* ─── Service Cards (on services pages & homepage) ────────────── */
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 2.25rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--accent); }
.service-card__num {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-3); margin-bottom: 1.25rem;
}
.service-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card__body  { font-size: 0.9rem; color: var(--text-2); line-height: 1.75; flex: 1; }
.service-card__cta   { margin-top: 1.5rem; }

/* ─── Feature / Capability List ──────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 1rem; align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child { border-bottom: none; }
.feature-item__icon {
  width: 20px; height: 20px; margin-top: 2px;
  color: var(--accent); flex-shrink: 0;
}
.feature-item__title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.feature-item__body  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ─── Two-column layout (text + visual) ──────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* ─── Stat/proof strip ───────────────────────────────────────── */
.proof-strip {
  display: flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden;
}
.proof-item {
  flex: 1; min-width: 160px; padding: 2rem 1.75rem;
  border-right: 1px solid var(--border); text-align: center;
}
.proof-item:last-child { border-right: none; }
.proof-item__val {
  font-size: 1.8rem; font-weight: 700;
  font-family: var(--font-mono); color: var(--accent);
  display: block; margin-bottom: 0.3rem;
}
.proof-item__label { font-size: 0.78rem; color: var(--text-3); }

/* ─── Insight / Article Cards ────────────────────────────────── */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }

.insight-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.2s;
}
.insight-card:hover { border-color: var(--border-light); }
.insight-card__top { padding: 1.75rem 1.75rem 0; flex: 1; }
.insight-card__cat {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.insight-card__title {
  font-size: 1rem; font-weight: 600; line-height: 1.45;
  margin-bottom: 0.75rem; color: var(--text);
}
.insight-card__excerpt { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.insight-card__bottom {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border); margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.insight-card__read { font-size: 0.8rem; color: var(--text-3); }
.insight-card__link {
  font-size: 0.8rem; color: var(--accent); font-weight: 500;
  display: flex; align-items: center; gap: 0.25rem;
}

/* ─── Pillar Grid (STAARK etc) ───────────────────────────────── */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--border); border-radius: var(--r); overflow: hidden; }
.pillar {
  background: var(--bg-2); padding: 1.75rem 1.5rem; text-align: center;
}
.pillar__num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-3); margin-bottom: 0.75rem;
}
.pillar__title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.pillar__body  { font-size: 0.8rem; color: var(--text-3); line-height: 1.6; }

/* ─── Standards / Logo Row ───────────────────────────────────── */
.standards-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  align-items: center; justify-content: center;
}
.standard-badge {
  font-size: 0.775rem; font-weight: 500;
  padding: 0.45rem 1rem; border-radius: 100px;
  border: 1px solid var(--border-light); color: var(--text-3);
  transition: color 0.15s, border-color 0.15s;
}
.standard-badge:hover { color: var(--text-2); border-color: var(--text-3); }

/* ─── Belief / Values List ───────────────────────────────────── */
.belief-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; }
.belief-item {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.belief-item::before {
  content: '—'; display: block; color: var(--accent);
  font-weight: 700; margin-bottom: 0.75rem;
}
.belief-item p { font-size: 0.95rem; color: var(--text-2); line-height: 1.75; }

/* ─── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 3.5rem; text-align: center;
}
.cta-banner__title { margin-bottom: 0.75rem; }
.cta-banner__sub   { color: var(--text-2); margin-bottom: 2rem; font-size: 1rem; }
.cta-banner__actions { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ─── Contact Paths ──────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-path {
  padding: 2.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r);
}
.contact-path__icon { color: var(--accent); margin-bottom: 1rem; }
.contact-path__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-path__body  { font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.25rem; }

/* Form */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.35rem; font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.7rem 1rem; color: var(--text);
  font-family: var(--font); font-size: 0.9rem; transition: border-color 0.15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand__logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
}
.footer-brand__logo img { width: 28px; height: 28px; }
.footer-brand__desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.7; max-width: 280px; }

.footer-col__title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem;
}
.footer-col__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col__links a { font-size: 0.875rem; color: var(--text-3); transition: color 0.15s; }
.footer-col__links a:hover { color: var(--text-2); }

.site-footer__bottom {
  border-top: 1px solid var(--border); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.site-footer__copy { font-size: 0.8rem; color: var(--text-3); }
.site-footer__legal { display: flex; gap: 1.5rem; }
.site-footer__legal a { font-size: 0.8rem; color: var(--text-3); }
.site-footer__legal a:hover { color: var(--text-2); }

/* ─── Inline divider ─────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse { direction: ltr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --section-v: 4.5rem; }
  .wrap { padding: 0 1.25rem; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem; gap: 1.25rem; }
  .site-nav.open { display: flex; }
  .site-header__actions .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .proof-strip { flex-direction: column; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--border); }
  .proof-item:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions { flex-direction: column; }
  .cta-banner { padding: 2.5rem 1.5rem; }
}
