/* ══════════════════════════════════════════════════════════════════════
   IOBOXX Platform — Content Design System
   Theme-driven via Identity OODB object.
   Generator injects: --accent, --accent2, --font-heading, --font-body
   Body class: theme-dark | theme-light
   NO hardcoded brand colours. Everything uses CSS variables.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Defaults (overridden by generator <style> from Identity) ── */
:root {
  --accent: #ae8c3a;
  --accent2: #2dd4bf;
  --font-heading: 'IBM Plex Sans Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ══════════════════════════════════════════════════════════════════════
   THEME: DARK
   ══════════════════════════════════════════════════════════════════════ */

body.theme-dark {
  --bg: #04080f;
  --bg2: #060e1e;
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.45);
  --text-dim: rgba(255,255,255,0.25);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
  --card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-faint: rgba(255,255,255,0.04);
  --accent-dim: rgba(255,255,255,0.08);
  --hero-glow1: rgba(10,28,70,0.75);
  --hero-glow2: rgba(10,30,60,0.35);
  --hero-grid: rgba(255,255,255,0.025);
  --hero-vignette: rgba(4,8,15,0.75);
  --hero-stat-bg: rgba(4,8,15,0.92);
  --ticker-bg: rgba(255,255,255,0.025);
}

/* ══════════════════════════════════════════════════════════════════════
   THEME: LIGHT
   ══════════════════════════════════════════════════════════════════════ */

body.theme-light {
  --bg: #f2f3f5;
  --bg2: #ffffff;
  --text: #1a2028;
  --text-muted: #6b7080;
  --text-dim: #9499a5;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.06);
  --card-hover: #f8f8fa;
  --border: #dcdee3;
  --border-faint: #ececef;
  --accent-dim: rgba(0,0,0,0.04);
  --hero-glow1: rgba(19,25,37,0.6);
  --hero-glow2: rgba(19,25,37,0.45);
  --hero-grid: rgba(0,0,0,0.03);
  --hero-vignette: rgba(19,25,37,0.7);
  --hero-stat-bg: rgba(19,25,37,0.85);
  --ticker-bg: rgba(0,0,0,0.02);
}

/* ── Body ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════ */

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.04); opacity: 1; } }

.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.42s; }

/* ══════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 130px 48px 180px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 70% at 15% 50%, var(--hero-glow1) 0%, transparent 65%),
              radial-gradient(ellipse 50% 60% at 85% 30%, var(--hero-glow2) 0%, transparent 60%);
  z-index: 1;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(var(--hero-grid) 1px, transparent 1px),
              linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 90px 90px; z-index: 2;
}
.hero > * { position: relative; z-index: 3; }

.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, var(--hero-vignette) 100%);
  z-index: 2; pointer-events: none;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 16px; border: 1px solid rgba(from var(--accent) r g b / 0.2);
  border-radius: 100px; margin-bottom: 28px;
}
.hero-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: blink 2s infinite;
}

.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading); font-size: clamp(52px, 9vw, 112px);
  font-weight: 900; line-height: 0.92; letter-spacing: -0.01em;
  margin-bottom: 28px; text-transform: uppercase; color: var(--text);
}
.hero h1 span { display: block; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: 0.55; }

.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 300; line-height: 1.85;
  color: var(--text-muted); max-width: 600px; margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text); font-weight: 500; opacity: 0.8; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border); z-index: 3;
}
.hs-cell {
  padding: 28px 40px; text-align: center;
  background: var(--hero-stat-bg);
  border-right: 1px solid var(--border);
}
.hs-cell:last-child { border-right: none; }
.hs-val {
  font-family: var(--font-heading); font-size: 38px; font-weight: 800;
  color: var(--text); line-height: 1; margin-bottom: 6px;
}
.hs-val .accent { color: var(--accent); }
.hs-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
}

.hero-short { min-height: 45vh; padding: 130px 48px 60px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); }
.hero-short h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.hero-short::before, .hero-short::after { display: none; }

/* ══════════════════════════════════════════════════════════════════════
   TICKER
   ══════════════════════════════════════════════════════════════════════ */

.ticker { overflow: hidden; white-space: nowrap; padding: 13px 0; background: var(--ticker-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-inner { display: inline-flex; animation: scroll 50s linear infinite; }
.ticker-item { font-family: var(--font-heading); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); padding: 0 28px; white-space: nowrap; flex-shrink: 0; }
.ticker-item .t-accent { color: var(--accent); opacity: 0.4; margin-right: 10px; font-size: 8px; }

/* ══════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════ */

section { padding: 120px 48px; }
.sec-inner { max-width: 1160px; margin: 0 auto; }

.sec-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sk-num { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; color: var(--text-muted); }
.sk-dash { width: 20px; height: 1px; background: var(--border); }
.sk-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

h2.display { font-family: var(--font-heading); font-size: clamp(36px, 5vw, 68px); font-weight: 800; line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 24px; color: var(--text); }
h2.display .blue { color: var(--accent); }
h2.display .outline { color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: 0.45; }

h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.3rem; }
h2 .section-number { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.22em; color: var(--accent); display: block; margin-bottom: 8px; }
h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text); opacity: 0.85; margin: 2rem 0 0.75rem; }

.body-copy { max-width: 580px; }
.body-copy p, .section-intro { font-size: clamp(15px, 1.5vw, 17px); font-weight: 300; line-height: 1.85; color: var(--text-muted); margin-bottom: 1rem; }
.section-intro { max-width: 720px; margin-bottom: 2rem; }
.body-copy p strong { color: var(--text); font-weight: 500; opacity: 0.8; }
p { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════ */

.btn-primary { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--accent); color: var(--bg); padding: 15px 40px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(from var(--accent) r g b / 0.3); }

.btn-ghost { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; color: var(--text-muted); padding: 14px 36px; border: 1px solid var(--border); border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; text-decoration: none; padding: 0.7rem 1.5rem; border-radius: 8px; transition: all 0.2s; cursor: pointer; border: none; }
.btn-blue { background: var(--accent); color: var(--bg); }
.btn-blue:hover { opacity: 0.85; }
.btn-outline { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }

/* ══════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════ */

.stat-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-card { padding: 28px 24px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--card-border); transition: all 0.3s; }
.sm-card:hover { background: var(--card-hover); }
.sm-card.big { grid-column: 1 / -1; }
.sm-val { font-family: var(--font-heading); font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; color: var(--text); }
.sm-val .a { color: var(--accent); }
.sm-val .g { color: var(--accent2); }
.sm-label { font-size: 13px; color: var(--text-muted); }
.sm-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }

.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 2rem 0; }
.stat-card { padding: 28px 24px; border-radius: 10px; text-align: center; background: var(--card-bg); border: 1px solid var(--card-border); transition: all 0.3s; }
.stat-card:hover { background: var(--card-hover); }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--text); }
.stat-card .stat-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim); margin-top: 4px; }

.feature-card { padding: 36px 28px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--card-border); transition: all 0.3s; }
.feature-card:hover { background: var(--card-hover); transform: translateY(-3px); }
.feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; display: block; color: var(--accent); }
.feature-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; text-transform: uppercase; }
.feature-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.card { padding: 26px 22px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--card-border); transition: all 0.3s; }
.card:hover { background: var(--card-hover); }
.card-accent { border-top: 3px solid var(--accent); }
.card-accent2 { border-top: 3px solid var(--accent2); }

.leader-card { padding: 36px 24px; border-radius: 12px; text-align: center; background: var(--card-bg); border: 1px solid var(--card-border); border-top: 3px solid var(--accent); transition: all 0.3s; }
.leader-card:hover { background: var(--card-hover); }
.leader-icon { font-size: 2.5rem; margin-bottom: 0.75rem; display: block; color: var(--accent); }
.leader-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--text); margin-bottom: 0.2rem; }
.leader-role { font-family: var(--font-mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.leader-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

.comp-card { padding: 18px 20px; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--card-border); transition: all 0.2s; }
.comp-card:hover { background: var(--card-hover); }
.comp-name { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.comp-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════════════
   GRIDS + BADGES
   ══════════════════════════════════════════════════════════════════════ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.badge { display: inline-block; font-family: var(--font-mono); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 4px; }
.badge-accent  { background: var(--accent-dim); color: var(--accent); }
.badge-accent2 { background: var(--accent-dim); color: var(--accent2); }

/* ══════════════════════════════════════════════════════════════════════
   WORKFLOW STEPS
   ══════════════════════════════════════════════════════════════════════ */

.workflow-steps { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 2rem auto; max-width: 700px; }
.workflow-step { display: flex; align-items: center; width: 100%; }
.workflow-step-content { width: 100%; padding: 20px 24px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--card-border); border-top: 3px solid var(--accent); text-align: left; }
.workflow-step-number { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 4px; }
.workflow-step-title { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.workflow-step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.workflow-arrow { width: 2px; height: 24px; background: linear-gradient(to bottom, var(--accent), var(--accent2)); margin: 0 auto; opacity: 0.4; }

/* ══════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════ */

.data-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--card-border); }
.data-table thead th { background: var(--accent-dim); font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); padding: 14px 20px; text-align: left; }
.data-table tbody td { padding: 12px 20px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-faint); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody td:first-child { font-weight: 600; color: var(--text); }
.data-table tbody tr:hover { background: var(--card-hover); }

/* ══════════════════════════════════════════════════════════════════════
   TWO-LAYER ARCHITECTURE
   ══════════════════════════════════════════════════════════════════════ */

.arch-layers { display: flex; flex-direction: column; gap: 0; margin: 2rem auto; max-width: 680px; }
.arch-layer { border-radius: 16px; padding: 2rem 2.5rem; }
.arch-layer.working { background: var(--accent-dim); border: 1px solid var(--card-border); border-bottom: none; border-radius: 16px 16px 0 0; }
.arch-layer.permanent { background: var(--accent-dim); border: 1px solid var(--card-border); border-radius: 0 0 16px 16px; padding-top: 2.5rem; }
.arch-layer-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 0.75rem; }
.arch-layer.working .arch-layer-badge  { background: var(--accent-dim); color: var(--accent); }
.arch-layer.permanent .arch-layer-badge { background: var(--accent-dim); color: var(--accent2); }
.arch-layer-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.arch-layer-desc { font-size: 13px; line-height: 1.65; color: var(--text-muted); margin-bottom: 0.75rem; }
.arch-divider { height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent2)); position: relative; z-index: 3; }

/* ══════════════════════════════════════════════════════════════════════
   CHECK LIST + DISCLAIMER
   ══════════════════════════════════════════════════════════════════════ */

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { font-size: 13px; color: var(--text-muted); line-height: 1.65; padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }

.disclaimer { background: var(--accent-dim); border: 1px solid var(--card-border); border-radius: 8px; padding: 16px 24px; margin: 1.5rem 0; font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════════ */

.cta-section { padding: 140px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 50% 100%, var(--hero-glow1) 0%, transparent 60%); }
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { font-family: var(--font-heading); font-size: clamp(36px, 5vw, 68px); font-weight: 900; line-height: 0.95; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.cta-section p { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text-muted); max-width: 520px; margin: 0 auto 36px; }

/* ══════════════════════════════════════════════════════════════════════
   SITE NOTICE
   ══════════════════════════════════════════════════════════════════════ */

.site-notice { background: var(--accent-dim); border-top: 1px solid var(--card-border); padding: 14px 48px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.sn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s infinite; }
.sn-text { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  section { padding: 80px 32px; }
  .hero { padding: 120px 32px 180px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 80px 20px; }
  .hero { padding: 120px 20px 220px; min-height: auto; }
  .hero h1 { font-size: clamp(40px, 10vw, 58px); }
  .hero-short { padding: 100px 20px 48px; min-height: auto; }
  .hero-short h1 { font-size: clamp(28px, 6vw, 44px); }
  .hero-stats { position: relative; bottom: auto; margin-top: 48px; grid-template-columns: repeat(2, 1fr); }
  h2.display { font-size: clamp(28px, 6vw, 48px); }
  .grid-2, .grid-3, .grid-4, .stats-row, .stat-mosaic { grid-template-columns: 1fr; }
  .sm-card.big { grid-column: auto; }
  .cta-section { padding: 80px 20px; }
  .ticker { display: none; }
  .arch-layer { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 42px; }
  .hs-cell { padding: 16px 12px; }
  .hs-val { font-size: 28px; }
  .sm-val { font-size: 36px; }
}

@media print {
  .ticker, .site-notice { display: none; }
  body { background: #fff !important; color: #333 !important; font-size: 11px; }
  .hero, .hero-short { min-height: auto; padding: 2rem; }
  .feature-card, .card, .sm-card, .comp-card, .leader-card, .stat-card { background: #fff; border: 1px solid #ddd; }
  .reveal { opacity: 1; transform: none; }
}
