/* ── WUKS AI ─────────────────────────────────────────
   Engine-first design language.
   Orange-dominant. Warm dark. Dot-grid ambient.
─────────────────────────────────────────────────── */

:root {
  --bg:      #080706;
  --panel:   #100E0C;
  --text:    #F5EDE3;
  --muted:   #9A8878;
  --line:    #221C16;
  --orange:  #FF7A18;
  --amber:   #FFB340;
  --fire:    #FF4D00;
  --radius:  18px;
  --shadow:  0 18px 50px rgba(0,0,0,.55);
  --glow:    0 0 40px rgba(255,122,24,.18);
}

* { box-sizing: border-box }
html, body { height: 100% }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  /* dot grid + warm ambient glow */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(255,122,24,.055) 1px, transparent 1px),
    radial-gradient(1100px 800px at 25% -10%, rgba(255,122,24,.13), transparent 55%),
    radial-gradient(900px 600px at 85% 5%,   rgba(255,180,50,.07), transparent 55%),
    radial-gradient(700px 500px at 10% 90%,  rgba(255,60,0,.05),   transparent 55%);
  background-size: 30px 30px, 100%, 100%, 100%;
  color: var(--text);
  line-height: 1.6;
}

a   { color: inherit }
img { display: block; max-width: 100% }
h1, h2, h3 { line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em }
p   { margin: 0 0 14px }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px }

/* ── Skip link ── */
.skip-link { position: absolute; left: -999px; overflow: hidden; width: 1px; height: 1px }
.skip-link:focus {
  left: 20px; top: 20px; width: auto; height: auto;
  background: var(--panel); padding: 10px 14px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
}

/* ───────────────────────────────────
   HEADER
─────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,7,6,.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 15px 0;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(140deg, var(--orange), var(--fire));
  display: grid; place-items: center;
  font-weight: 900; font-size: 18px; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(255,122,24,.35);
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.1 }
.brand-name  { font-weight: 900; font-size: 17px; letter-spacing: .06em; text-transform: uppercase }
.brand-sub   { font-size: 11px; color: var(--muted); letter-spacing: .13em; text-transform: uppercase }

/* Nav */
.nav { display: flex; align-items: center; gap: 20px }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .15s }
.nav a:hover  { color: var(--text) }
.nav a.active { color: var(--orange) }
.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,.1) }
.nav a.nav-pill {
  border: 1px solid rgba(255,122,24,.3); color: var(--orange);
  padding: 5px 14px; border-radius: 999px; font-size: 13px;
  transition: background .15s, border-color .15s;
}
.nav a.nav-pill:hover { background: rgba(255,122,24,.08); border-color: rgba(255,122,24,.55) }
.nav-toggle { display: none }

/* ───────────────────────────────────
   BUTTONS
─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--fire));
  color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 0 28px rgba(255,122,24,.3);
  transition: box-shadow .2s, transform .15s;
}
.btn:hover { box-shadow: 0 0 48px rgba(255,122,24,.5); transform: translateY(-1px) }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text); box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(255,122,24,.45); color: var(--orange); transform: none; box-shadow: none }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px }
.cta-center { justify-content: center }

/* ───────────────────────────────────
   HERO — two variants
   .hero          → standard split
   .hero-centered → full-width centered
─────────────────────────────────── */
.hero { padding: 84px 0 60px }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center;
}

/* Centered variant */
.hero-center {
  text-align: center;
  padding-bottom: 20px;
}
.hero-center h1 { font-size: 62px; max-width: 18ch; margin: 0 auto 20px }
.hero-center p  { max-width: 58ch; margin: 0 auto 4px; font-size: 18px; color: var(--muted) }
.hero-center .cta-row { justify-content: center }
.hero-center .chips   { max-width: 640px; margin: 28px auto 0; grid-template-columns: repeat(3,1fr) }

/* Common hero type */
.hero h1 { font-size: 52px }
.hero p  { color: var(--muted); max-width: 52ch; font-size: 17px }

/* The gradient highlight inside h1 */
.hero h1 em, h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero visual card */
.hero-visual {
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  border: 1px solid rgba(255,122,24,.14);
  box-shadow: 0 0 70px rgba(255,122,24,.08), var(--shadow);
  background: rgba(255,255,255,.02);
  position: relative;
}
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,122,24,.06), transparent 55%);
  pointer-events: none;
}
.hero-visual img { width: 100%; height: auto }

/* Kicker badge */
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,122,24,.09);
  border: 1px solid rgba(255,122,24,.22);
  color: var(--orange); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; font-size: 11px;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 6px rgba(255,122,24,.8);
}

/* ───────────────────────────────────
   CHIPS — small stat/label blocks
─────────────────────────────────── */
.chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 26px }
.chip {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 14px 16px;
}
.chip .label { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase }
.chip .value { font-size: 15px; font-weight: 800; margin-top: 5px }

/* ───────────────────────────────────
   SECTIONS
─────────────────────────────────── */
.section       { padding: 72px 0 }
.section-tight { padding: 44px 0 }

.section-label {
  color: var(--orange); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; font-size: 11px;
  margin-bottom: 10px;
}
.section h2   { font-size: 36px }
.muted        { color: var(--muted) }
hr.sep        { border: 0; border-top: 1px solid rgba(255,255,255,.06); margin: 36px 0 }

/* ───────────────────────────────────
   DOMAIN CARDS — the 4 equal pillars
─────────────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-top: 32px;
}
.domain-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: calc(var(--radius) + 8px);
  padding: 28px 26px;
  position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.domain-card:hover {
  border-color: rgba(255,122,24,.28);
  box-shadow: 0 0 50px rgba(255,122,24,.06);
}
.domain-card::before {
  content: attr(data-num);
  position: absolute; top: 20px; right: 22px;
  font-size: 72px; font-weight: 900; line-height: 1;
  color: rgba(255,122,24,.07);
  letter-spacing: -.04em;
  pointer-events: none;
}
.domain-card .d-num {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.domain-card h3 { font-size: 22px; margin-bottom: 10px }
.domain-card p  { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 16px }
.domain-card .d-tags { display: flex; gap: 8px; flex-wrap: wrap }

/* ───────────────────────────────────
   STANDARD CARDS
─────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px }

.card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: calc(var(--radius) + 6px);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(255,122,24,.22);
  box-shadow: 0 0 40px rgba(255,122,24,.05);
}
.card h3  { font-size: 17px; margin-bottom: 8px }
.card p   { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.6 }

.icon {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,122,24,.10);
  border: 1px solid rgba(255,122,24,.22);
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-weight: 900; font-size: 12px; color: var(--orange);
}
.icon-amber  { background: rgba(255,180,50,.10) !important; border-color: rgba(255,180,50,.25) !important; color: var(--amber) !important }
.icon-fire   { background: rgba(255,77,0,.10)   !important; border-color: rgba(255,77,0,.25)   !important; color: var(--fire)   !important }
.icon-muted  { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important; color: var(--text)   !important }

/* ───────────────────────────────────
   MEDIA ROW
─────────────────────────────────── */
.media-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 24px }
.media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3 }

/* ───────────────────────────────────
   BANNER
─────────────────────────────────── */
.banner {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(100deg, rgba(255,122,24,.09) 0%, rgba(255,77,0,.06) 100%);
  position: relative; overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(900px 300px at 50% 50%, rgba(255,122,24,.07), transparent);
  pointer-events: none;
}
.banner-inner { padding: 60px 0; position: relative; z-index: 1 }
.banner h2    { font-size: 36px; max-width: 22ch; margin-bottom: 14px }
.banner p     { color: var(--muted); max-width: 64ch; margin-bottom: 26px; font-size: 16px }

/* ───────────────────────────────────
   SPEC LIST
─────────────────────────────────── */
.spec-row  { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start }
.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.spec-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid rgba(255,122,24,.4);
  border-radius: 0 14px 14px 0;
  transition: border-left-color .15s;
}
.spec-list li:hover { border-left-color: var(--orange) }
.spec-list li strong { display: block; font-size: 14px; margin-bottom: 3px }
.spec-list li span   { color: var(--muted); font-size: 13px; line-height: 1.5 }

/* ───────────────────────────────────
   TAGS
─────────────────────────────────── */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px }
.tag {
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255,122,24,.08); border: 1px solid rgba(255,122,24,.2);
  color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.tag-amber { background: rgba(255,180,50,.08); border-color: rgba(255,180,50,.2); color: var(--amber) }
.tag-dim   { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: var(--muted) }

/* ───────────────────────────────────
   ENGINE BADGE — centre-page visual
─────────────────────────────────── */
.engine-badge {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 36px 28px;
  border: 1px solid rgba(255,122,24,.2);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255,122,24,.04);
  box-shadow: 0 0 60px rgba(255,122,24,.08);
  position: relative;
}
.engine-badge::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: calc(var(--radius) + 11px);
  background: linear-gradient(140deg, rgba(255,122,24,.3), transparent 50%, rgba(255,77,0,.2));
  pointer-events: none; z-index: -1;
}
.engine-w {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(140deg, var(--orange), var(--fire));
  display: grid; place-items: center;
  font-weight: 900; font-size: 30px; color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 0 30px rgba(255,122,24,.4);
}
.engine-badge h3 { font-size: 20px; margin-bottom: 6px }
.engine-badge p  { color: var(--muted); font-size: 13px; margin: 0; max-width: 26ch }

/* ───────────────────────────────────
   STAT STRIP
─────────────────────────────────── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden; margin-top: 52px;
}
.stat {
  padding: 28px 22px;
  border-right: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.stat:last-child { border-right: none }
.stat-num   { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--orange) }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 5px }

/* ───────────────────────────────────
   LAYER HEADER (tech page numbered sections)
─────────────────────────────────── */
.layer-head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
}
.layer-num {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: rgba(255,122,24,.1); border: 1px solid rgba(255,122,24,.25);
  display: grid; place-items: center;
  font-weight: 900; font-size: 20px; color: var(--orange);
}
.layer-title { font-size: 28px; margin: 0 }

/* ───────────────────────────────────
   FOOTER
─────────────────────────────────── */
.footer { border-top: 1px solid rgba(255,255,255,.06); padding: 28px 0 }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap }
.footer a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color .15s }
.footer a:hover { color: var(--text) }
.small { font-size: 13px; color: var(--muted) }

/* ───────────────────────────────────
   RESPONSIVE
─────────────────────────────────── */
@media (max-width: 980px) {
  .hero-center h1 { font-size: 44px }
  .hero h1        { font-size: 40px }
  .hero-grid      { grid-template-columns: 1fr }
  .chips          { grid-template-columns: 1fr 1fr }
  .hero-center .chips { grid-template-columns: 1fr 1fr }
  .domain-grid    { grid-template-columns: 1fr }
  .grid-3         { grid-template-columns: 1fr }
  .grid-2         { grid-template-columns: 1fr }
  .media-row      { grid-template-columns: 1fr }
  .spec-row       { grid-template-columns: 1fr }
  .stat-strip     { grid-template-columns: 1fr 1fr }
  .stat { border-right: 1px solid rgba(255,255,255,.07) }
  .stat:nth-child(2n)  { border-right: none }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.07) }
  .banner h2    { font-size: 28px }
  .section h2   { font-size: 28px }
}

@media (max-width: 620px) {
  .nav { display: none }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 73px; left: 0; right: 0;
    background: rgba(8,7,6,.97); padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 49; gap: 18px;
  }
  .nav-sep { display: none }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255,255,255,.14);
    color: var(--text); border-radius: 12px;
    padding: 8px 13px; cursor: pointer; font-size: 16px;
  }
  .hero { padding: 52px 0 36px }
  .hero-center h1 { font-size: 34px }
  .hero h1        { font-size: 32px }
  .chips          { grid-template-columns: 1fr }
  .hero-center .chips { grid-template-columns: 1fr }
  .banner h2      { font-size: 24px }
  .brand-sub      { display: none }
  .domain-card::before { font-size: 52px }
}
