/* FALAK Defense — slide deck shared styles
   Designed for 1920×1080 slides inside <deck-stage>
   Three palettes via [data-theme]: tactical (default) | sand | steel
*/

@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root,
[data-theme="tactical"] {
  --bg:        #0a0c0d;
  --bg-2:      #0f1214;
  --surface:   #15191c;
  --surface-2: #1c2125;
  --line:      #2a3036;
  --line-soft: rgba(255,255,255,.06);
  --ink:       #f3f4f5;
  --ink-2:     #d6d8da;
  --muted:     #8a8f95;
  --muted-2:   #5b6066;
  --accent:    #c79049;     /* amber */
  --accent-2:  #e2b878;
  --danger:    #d2604a;
  --ok:        #6db48a;
  --grid:      rgba(255,255,255,.04);
}

[data-theme="sand"] {
  --bg:        #ebe2cf;
  --bg-2:      #e2d6bb;
  --surface:   #d6c8a8;
  --surface-2: #c9b88f;
  --line:      #a99372;
  --line-soft: rgba(0,0,0,.08);
  --ink:       #221b13;
  --ink-2:     #3a2f22;
  --muted:     #6f5f48;
  --muted-2:   #8c7b62;
  --accent:    #a8421f;     /* rust */
  --accent-2:  #8a3517;
  --danger:    #8a3517;
  --ok:        #4a6b3a;
  --grid:      rgba(0,0,0,.05);
}

[data-theme="steel"] {
  --bg:        #0c1218;
  --bg-2:      #111922;
  --surface:   #15202c;
  --surface-2: #1c2a39;
  --line:      #2a3a4d;
  --line-soft: rgba(255,255,255,.06);
  --ink:       #eaf0f6;
  --ink-2:     #cdd6e0;
  --muted:     #8696a8;
  --muted-2:   #5a6878;
  --accent:    #6f9eff;     /* steel blue */
  --accent-2:  #98b6ff;
  --danger:    #d2604a;
  --ok:        #6db48a;
  --grid:      rgba(120,160,220,.06);
}

* { box-sizing: border-box; }

deck-stage {
  --slide-bg: var(--bg);
}

deck-stage > section {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.45;
  position: relative;
  overflow: hidden;
  width: 1920px;
  height: 1080px;
}

/* ────────── Type system ────────── */

.display {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 0.96;
}

.label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--accent { color: var(--accent); }
.label--ink    { color: var(--ink); }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ────────── Slide chrome ────────── */

.chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.chrome-top, .chrome-bottom {
  position: absolute;
  left: 72px;
  right: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chrome-top    { top: 42px; }
.chrome-bottom { bottom: 42px; }

.chrome .brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2);
}
.chrome .brand-mark {
  width: 22px; height: 22px;
  border: 1px solid var(--ink-2);
  position: relative;
}
.chrome .brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--accent);
}

.chrome .slide-no { color: var(--accent); font-weight: 500; }

.chrome .section-tag {
  display: inline-flex; align-items: center; gap: 8px;
}
.chrome .section-tag::before {
  content: ""; width: 8px; height: 8px; background: var(--accent);
  display: inline-block;
}

/* corner crosshairs */
.crosshair { position: absolute; width: 22px; height: 22px; opacity: .5; }
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: var(--muted-2);
}
.crosshair::before { left: 0; top: 50%; width: 100%; height: 1px; }
.crosshair::after  { top: 0; left: 50%; height: 100%; width: 1px; }
.crosshair.tl { top: 42px;    left: 42px;    }
.crosshair.tr { top: 42px;    right: 42px;   }
.crosshair.bl { bottom: 42px; left: 42px;    }
.crosshair.br { bottom: 42px; right: 42px;   }

.body {
  position: absolute;
  inset: 110px 72px 110px 72px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* ────────── Cover slide ────────── */

.cover {
  background:
    radial-gradient(ellipse at 80% 110%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 60%);
}

.cover .body { justify-content: space-between; }

.cover .brand-stack { display: flex; flex-direction: column; gap: 18px; }

.cover-logo {
  display: flex; align-items: center; gap: 20px;
}
.cover-logo .mark {
  width: 56px; height: 56px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.cover-logo .mark::after {
  content: ""; position: absolute; inset: 8px;
  background: var(--accent);
}
.cover-logo .wordmark {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700; font-size: 38px;
  letter-spacing: 0.04em;
}
.cover-logo .wordmark span { color: var(--accent); }

.cover .title {
  font-size: 154px;
  letter-spacing: -0.02em;
  max-width: 1450px;
}
.cover .title em {
  font-style: normal;
  color: var(--accent);
}

.cover .sub {
  font-size: 26px;
  color: var(--muted);
  max-width: 900px;
  margin-top: 20px;
}

.cover-meta {
  display: flex; gap: 60px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cover-meta dt { color: var(--muted-2); margin-bottom: 4px; }
.cover-meta dd { color: var(--ink); margin: 0; }

/* ────────── Section opener ────────── */

.section-opener {
  background: var(--bg);
}
.section-opener .body {
  justify-content: center;
}
.section-opener .section-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
}
.section-opener .section-title {
  font-size: 168px;
  max-width: 1500px;
  letter-spacing: -0.02em;
}
.section-opener .section-sub {
  font-size: 28px;
  color: var(--muted);
  max-width: 1100px;
  margin-top: 32px;
}

/* ────────── Manifesto / statement ────────── */

.statement .body { justify-content: center; }
.statement .quote {
  font-size: 124px;
  letter-spacing: -0.015em;
  max-width: 1700px;
}
.statement .quote em { color: var(--accent); font-style: normal; }
.statement .quote .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  color: var(--muted);
  text-decoration-thickness: 6px;
}
.statement .credit {
  margin-top: 60px;
  color: var(--muted);
  font-size: 22px;
  max-width: 900px;
}

/* ────────── Page title ────────── */

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 60px;
}
.page-title {
  font-size: 80px;
  letter-spacing: -0.01em;
  max-width: 1100px;
}
.page-title em {
  font-style: normal;
  color: var(--accent);
}
.page-lede {
  font-size: 22px;
  color: var(--muted);
  max-width: 540px;
  text-align: right;
  line-height: 1.5;
}

/* ────────── Grids ────────── */

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

/* ────────── Card primitive ────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card.elevated {
  background: var(--surface-2);
}
.card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card-title {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.card-body {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.5;
}
.card-list li {
  font-size: 17px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.card-list li + li { margin-top: 8px; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 1px; background: var(--accent);
}

/* ────────── Stat block ────────── */

.stat {
  display: flex; flex-direction: column; gap: 8px;
}
.stat-num {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 132px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-num .unit {
  font-size: 48px;
  color: var(--accent);
  font-weight: 500;
  margin-left: 6px;
}
.stat-num .small {
  font-size: 68px;
}
.stat-lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-note {
  font-size: 17px;
  color: var(--muted-2);
  max-width: 360px;
  line-height: 1.5;
}

/* ────────── Background utilities ────────── */

.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.radial-bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 30%, var(--line-soft) 30.2%, transparent 30.4%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 50%, var(--line-soft) 50.2%, transparent 50.4%),
    radial-gradient(circle at 50% 50%, transparent 0%, transparent 70%, var(--line-soft) 70.2%, transparent 70.4%);
  pointer-events: none;
}

/* ────────── Product card (iconographic) ────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.product-card .illus {
  height: 220px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
}
.product-card .illus svg { width: 78%; height: 78%; }
.product-card .info {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.product-card .code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.product-card .name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.05;
}
.product-card .desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}
.product-card .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}
.product-card .specs dt { color: var(--muted-2); }
.product-card .specs dd { color: var(--ink-2); margin: 0; text-align: right; }

/* ────────── Layer card (four-layer defense) ────────── */

.layer {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.layer .layer-num {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 96px;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.layer .layer-name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.05;
}
.layer .layer-desc {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}
.layer .layer-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ────────── Timeline ────────── */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.tl-step {
  display: flex; flex-direction: column; gap: 18px;
}
.tl-step .tl-dot {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  background: var(--bg);
  position: relative;
  z-index: 2;
  display: grid; place-items: center;
}
.tl-step .tl-dot::after {
  content: ""; width: 12px; height: 12px; background: var(--accent);
}
.tl-step .tl-d {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-step .tl-name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  margin-top: -4px;
}
.tl-step .tl-list {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.45;
}
.tl-step .tl-list li {
  padding-left: 14px;
  position: relative;
}
.tl-step .tl-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 6px; height: 1px; background: var(--muted);
}

/* ────────── Architecture diagram ────────── */

.arch {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  flex: 1;
}
.arch-svg {
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  padding: 32px;
  display: grid;
  place-items: center;
}
.arch-svg svg { width: 100%; height: 100%; }

.arch-list { display: flex; flex-direction: column; gap: 18px; }

.arch-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.arch-row:first-child { border-top: 0; padding-top: 4px; }
.arch-row .arch-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  color: var(--accent);
}
.arch-row .arch-icon svg { width: 26px; height: 26px; }
.arch-row .arch-name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}
.arch-row .arch-desc {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.5;
}

/* ────────── Scale-reference cards ────────── */

.scale-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.scale-card.featured {
  border-color: var(--accent);
}
.scale-card.featured::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.scale-card .tier {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.scale-card .tier-name {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}
.scale-card .scope {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.45;
}
.scale-card .params {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}
.scale-card .params .row {
  display: flex; justify-content: space-between;
}
.scale-card .params .k { color: var(--muted); }
.scale-card .params .v { color: var(--ink); }
.scale-card .total {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.scale-card .total .total-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scale-card .total .total-num {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
}

/* ────────── Map / coverage ────────── */

.coverage-map {
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

/* ────────── Spec table ────────── */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}
.spec-table td { color: var(--ink-2); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td.code { color: var(--accent); font-weight: 500; }

/* ────────── Text block ────────── */

.text-col h3 {
  font-family: 'Saira Condensed', sans-serif;
  font-size: 36px;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}
.text-col p {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
}
.text-col p + p { margin-top: 14px; }

/* ────────── Manifesto bullets ────────── */

.bigbullets {
  display: flex; flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}
.bigbullets .item {
  display: grid;
  grid-template-columns: 64px 1fr 240px;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.bigbullets .item:last-child { border-bottom: 1px solid var(--line); }
.bigbullets .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.bigbullets .h {
  font-family: 'Saira Condensed', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
}
.bigbullets .h em { color: var(--accent); font-style: normal; }
.bigbullets .d {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.5;
}

/* ────────── Pill ────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pill::before {
  content: ""; width: 6px; height: 6px; background: var(--accent);
}

/* ────────── Closing slide ────────── */

.closing {
  background:
    radial-gradient(ellipse at 20% 100%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 60%),
    var(--bg);
}
.closing .body { justify-content: space-between; }
.closing .big {
  font-size: 156px;
  letter-spacing: -0.02em;
  max-width: 1500px;
}
.closing .big em { color: var(--accent); font-style: normal; }
.closing .cta-row {
  display: flex; gap: 60px;
  align-items: flex-end;
}
.closing .cta-text {
  font-size: 24px;
  color: var(--muted);
  max-width: 700px;
  line-height: 1.5;
}
.closing .contact {
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
}
.closing .contact .k {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.closing .contact .v { color: var(--ink); }
