/* ================================================================
   INPATRA IP-Box Secure Briefing – Premium Styles
   CI: Navy #152240 | Blue #2b60a2 | Sky #57a6e9 | Green #4b855e
        Sand #ffbc7d | Warm-white #f9fafd
   ================================================================ */

:root {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(34, 58, 94, 0.10);
  --text: #151821;
  --muted: #5b6577;
  --accent: #2b60a2;
  --accent-strong: #152240;
  --accent-soft: rgba(87, 166, 233, 0.12);
  --accent-glow: rgba(87, 166, 233, 0.25);
  --green: #4b855e;
  --green-soft: rgba(75, 133, 94, 0.12);
  --sand: #ffbc7d;
  --sand-soft: rgba(255, 188, 125, 0.15);
  --warning: #c14d3c;
  --shadow-sm: 0 4px 16px rgba(21, 34, 64, 0.06);
  --shadow: 0 16px 48px rgba(21, 34, 64, 0.10);
  --shadow-lg: 0 32px 80px rgba(21, 34, 64, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --header-height: 72px;
  font-family: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── AMBIENT BLOBS ── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.blob-1 {
  width: 600px; height: 600px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(87,166,233,0.30) 0%, transparent 70%);
  animation: drift 28s ease-in-out infinite alternate;
}

.blob-2 {
  width: 500px; height: 500px;
  bottom: -100px; right: -60px;
  background: radial-gradient(circle, rgba(255,188,125,0.25) 0%, transparent 70%);
  animation: drift 34s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 350px; height: 350px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(75,133,94,0.15) 0%, transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.96); }
}

/* ── WATERMARK ── */
.watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  z-index: 0;
  opacity: 0.06;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  transform: rotate(-18deg);
}

.watermark span {
  font-size: clamp(0.8rem, 1.8vw, 1.3rem);
}

/* ── PROGRESS BAR ── */
.progress-track {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 12;
  background: rgba(43,96,162,0.06);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(87,166,233,0.8));
  border-radius: 0 2px 2px 0;
  transition: width 0.3s ease;
}

/* ── LOGIN ── */
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(87,166,233,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,188,125,0.12) 0%, transparent 50%),
    var(--bg);
}

.login-shell {
  width: min(100%, 440px);
}

.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 40px 36px;
  animation: cardUp 0.5s ease-out both;
}

@keyframes cardUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-illustration svg {
  width: 140px;
  height: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.login-card h1,
.topbar h1,
.slide-card h2 {
  margin: 0;
  line-height: 1.08;
  font-family: "Exo 2", sans-serif;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.login-logo {
  height: 38px;
}

.login-copy,
.lead,
.topbar-subtitle,
.subtitle,
.footer-note,
.timeline-item p,
.column-body {
  color: var(--muted);
  line-height: 1.65;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.login-form input,
.login-form button,
.ghost-button {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font: inherit;
  transition: all 0.2s ease;
}

.login-form input {
  padding: 13px 16px;
  background: rgba(255,255,255,0.7);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-form button {
  padding: 14px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px rgba(43,96,162,0.3);
}

.login-form button:hover {
  box-shadow: 0 6px 24px rgba(43,96,162,0.4);
  transform: translateY(-1px);
}

.ghost-button {
  padding: 10px 16px;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.ghost-button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.error-box {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: white;
  background: var(--warning);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ── HEADER ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(34, 58, 94, 0.06);
  background: rgba(244, 247, 251, 0.80);
  backdrop-filter: blur(18px) saturate(1.4);
  min-height: var(--header-height);
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.topbar-center .eyebrow {
  margin-bottom: 2px;
  font-size: 0.6rem;
}

.topbar-center h1 {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.15;
}

.topbar-subtitle {
  margin: 2px 0 0;
  font-size: 0.78rem;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  background: rgba(43,96,162,0.05);
  padding: 3px;
  border-radius: 999px;
}

.language-switch a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-family: "Sora", sans-serif;
  font-size: 0.74rem;
  transition: all 0.2s ease;
}

.language-switch a:hover {
  background: rgba(255,255,255,0.8);
}

.language-switch a.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(43,96,162,0.25);
}

/* ── LAYOUT ── */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px 16px;
  min-height: calc(100vh - var(--header-height));
}

/* ── SIDEBAR NAV ── */
.side-nav {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  height: calc(100vh - var(--header-height) - 28px);
  overflow: auto;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.side-nav::-webkit-scrollbar {
  width: 4px;
}

.side-nav::-webkit-scrollbar-thumb {
  background: rgba(43,96,162,0.15);
  border-radius: 4px;
}

.side-nav a {
  display: grid;
  gap: 1px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 2px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.side-nav a:hover {
  background: var(--accent-soft);
}

.side-nav a.active {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.nav-number {
  color: var(--muted);
  font-size: 0.68rem;
  font-family: "Sora", sans-serif;
  opacity: 0.7;
}

.nav-chapter {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: "Sora", sans-serif;
  font-weight: 600;
}

/* ── SLIDES ── */
.slides {
  display: grid;
  gap: 14px;
  height: calc(100vh - var(--header-height) - 28px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  padding-right: 4px;
}

.slides::-webkit-scrollbar {
  width: 5px;
}

.slides::-webkit-scrollbar-thumb {
  background: rgba(43,96,162,0.12);
  border-radius: 4px;
}

.slide-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 36px;
  min-height: calc(100vh - var(--header-height) - 48px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
}

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.slide-head-text {
  flex: 1;
  min-width: 0;
}

.slide-head-illust {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  opacity: 0.6;
}

.slide-head-illust svg {
  width: 100%;
  height: 100%;
}

/* ── COVER ── */
.cover-hero {
  min-height: calc(100vh - var(--header-height) - 120px);
  display: grid;
  place-items: center;
  position: relative;
}

.cover-illustration {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.5;
}

.orbit-svg {
  width: min(460px, 80%);
  height: auto;
}

.orbit-ring {
  transform-origin: 260px 260px;
}

.orbit-ring-1 { animation: spin 60s linear infinite; }
.orbit-ring-2 { animation: spin 45s linear infinite reverse; }
.orbit-ring-3 { animation: spin 30s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pulse-node {
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { r: 28; opacity: 1; }
  50%      { r: 32; opacity: 0.85; }
}

.orbit-node-group {
  animation: float 6s ease-in-out infinite;
}

.orbit-anim-1 { animation-delay: 0s; }
.orbit-anim-2 { animation-delay: -1.5s; }
.orbit-anim-3 { animation-delay: -3s; }
.orbit-anim-4 { animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.cover-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
}

.cover-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover-copy .subtitle {
  font-size: 1.15rem;
  color: var(--accent-strong);
  max-width: 34ch;
  margin: 0 auto;
}

.cover-copy .lead {
  max-width: 56ch;
  margin: 12px auto 0;
}

.cover-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.chip-glow {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.88rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(21,34,64,0.06);
}

/* ── CONTENT ELEMENTS ── */
.subtitle {
  margin-top: 8px;
  max-width: 68ch;
}

.bullet-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  line-height: 1.65;
}

.bullet-list li {
  padding-left: 22px;
  position: relative;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(43,96,162,0.25));
  border: 1px solid rgba(43,96,162,0.15);
}

/* ── COLUMNS ── */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.column-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.column-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.column-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(87,166,233,0.4));
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}

.column-card:nth-child(2) .column-accent-bar {
  background: linear-gradient(90deg, var(--green), rgba(75,133,94,0.4));
}

.column-card:nth-child(3) .column-accent-bar {
  background: linear-gradient(90deg, var(--sand), rgba(255,188,125,0.5));
}

.column-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.column-card h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

/* ── DIAGRAMS & VISUALS ── */
.diagram,
.visual-grid,
.process-strip,
.feature-board,
.innovation-grid,
.logo-strip,
.income-diagram,
.steps-list {
  margin-top: 24px;
}

/* ── GROUP STRUCTURE ── */
.group-structure-diagram {
  display: grid;
  gap: 16px;
}

.group-parent-card,
.group-child-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.group-parent-card:hover,
.group-child-card:hover {
  transform: translateY(-2px);
}

.group-parent-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(21, 34, 64, 0.97), rgba(43, 96, 162, 0.95));
  color: white;
  box-shadow: 0 20px 50px rgba(21, 34, 64, 0.25);
}

.group-parent-card h3,
.group-child-card h3 {
  margin: 4px 0 14px;
  font-family: "Exo 2", sans-serif;
  font-size: 1.4rem;
}

.group-parent-card .diagram-label {
  color: rgba(255, 255, 255, 0.7);
}

.task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.group-child-card .task-list span {
  background: var(--accent-soft);
}

.group-child-card .task-list.soft span {
  background: rgba(87, 166, 233, 0.14);
}

.group-child-card .task-list.sand span {
  background: var(--sand-soft);
}

.group-arrows {
  display: grid;
  justify-items: center;
}

.group-arrow-stem {
  width: 2px;
  height: 24px;
  background: rgba(43, 96, 162, 0.25);
}

.group-arrow-branches {
  width: min(640px, 78%);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.group-arrow-branches span {
  height: 26px;
  border-top: 2px solid rgba(43, 96, 162, 0.25);
}

.group-arrow-branches span:first-child {
  border-left: 2px solid rgba(43, 96, 162, 0.25);
  border-top-left-radius: 14px;
}

.group-arrow-branches span:last-child {
  border-right: 2px solid rgba(43, 96, 162, 0.25);
  border-top-right-radius: 14px;
}

.group-child-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ── VISUAL GRID (products) ── */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.visual-card {
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.visual-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.visual-card-illust {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100px;
  opacity: 0.6;
}

.visual-dark {
  background: linear-gradient(135deg, rgba(21, 34, 64, 0.97), rgba(34, 58, 94, 0.95));
  color: white;
  box-shadow: 0 16px 40px rgba(21, 34, 64, 0.2);
}

.visual-dark .visual-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.visual-dark h3 {
  font-family: "Exo 2", sans-serif;
}

.diagram-label,
.visual-kicker,
.feature-label,
.income-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-cloud span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.2s;
}

.chip-cloud span:hover {
  background: rgba(87, 166, 233, 0.2);
}

/* ── PROCESS STRIP ── */
.process-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.process-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  font-size: 0.84rem;
  flex: 1;
  min-width: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.process-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.process-card.accent {
  background: linear-gradient(135deg, rgba(87, 166, 233, 0.18), rgba(255, 188, 125, 0.18));
  border-color: rgba(87, 166, 233, 0.2);
}

.process-num {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  font-family: "Sora", sans-serif;
  margin-bottom: 4px;
}

.process-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* ── FEATURE BOARD ── */
.feature-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-tile {
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-tile.highlight {
  background: linear-gradient(135deg, rgba(87, 166, 233, 0.15), rgba(255, 188, 125, 0.15));
  border-color: rgba(87, 166, 233, 0.15);
}

.feature-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.feature-tile.highlight .feature-icon-circle {
  background: rgba(255,188,125,0.2);
  color: #c68a3c;
}

.feature-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-family: "Sora", sans-serif;
  font-weight: 600;
  margin: 0;
}

/* ── INNOVATION GRID ── */
.innovation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.innovation-card {
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.innovation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.innovation-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.innovation-card h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.innovation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* ── EVIDENCE / LOGO STRIP ── */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.logo-badge {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: "Sora", sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.badge-icon {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

.badge-icon svg {
  width: 100%;
  height: 100%;
}

.logo-badge.aws { color: #232f3e; }
.logo-badge.github { color: #151821; }
.logo-badge.contracts { color: var(--green); }
.logo-badge.mvp { color: var(--accent); }
.logo-badge.specs { color: var(--accent-strong); }
.logo-badge.designs { color: var(--sand); }

/* ── FLOW ROW ── */
.flow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s, background 0.2s;
}

.flow-step:hover {
  background: rgba(87, 166, 233, 0.2);
  transform: translateY(-1px);
}

.flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: "Sora", sans-serif;
  flex-shrink: 0;
}

.flow-arrow {
  display: flex;
  align-items: center;
}

/* ── TIMELINE ── */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 32px;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(43,96,162,0.1));
  border-radius: 2px;
}

.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-date {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
}

.column-card h3,
.timeline-item h3 {
  margin-top: 0;
}

.timeline-item h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* ── INCOME DIAGRAM ── */
.income-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.income-card {
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.income-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.income-card.primary {
  background: linear-gradient(135deg, rgba(21, 34, 64, 0.96), rgba(43, 96, 162, 0.94));
  color: white;
  box-shadow: 0 16px 40px rgba(21, 34, 64, 0.2);
}

.income-card.primary .income-label {
  color: rgba(255, 255, 255, 0.65);
}

.income-card h3 {
  margin: 4px 0 8px;
  font-family: "Exo 2", sans-serif;
  font-size: 1.15rem;
}

.income-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
}

.income-card.primary p {
  color: rgba(255, 255, 255, 0.8);
}

/* ── STEPS LIST ── */
.steps-list {
  display: grid;
  gap: 12px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), rgba(87,166,233,0.8));
  color: white;
  font-weight: 800;
  font-family: "Exo 2", sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(43,96,162,0.25);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin: 0 0 3px;
  font-family: "Exo 2", sans-serif;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.step-check {
  flex-shrink: 0;
  opacity: 0.4;
}

/* ── CALLOUT ── */
.callout {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,96,162,0.06), rgba(255,188,125,0.08));
  border: 1px solid rgba(43,96,162,0.08);
  line-height: 1.6;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  :root {
    --header-height: 110px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    max-height: 200px;
  }

  .columns,
  .innovation-grid {
    grid-template-columns: 1fr;
  }

  .group-child-grid,
  .visual-grid,
  .feature-board,
  .logo-strip,
  .income-diagram {
    grid-template-columns: 1fr;
  }

  .process-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .process-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 8px 16px;
  }

  .topbar-center {
    order: 3;
    width: 100%;
    text-align: left;
  }

  .topbar-meta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .slides {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .slide-card {
    min-height: auto;
  }

  .cover-illustration {
    opacity: 0.3;
  }

  .flow-row {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .slide-card {
    padding: 24px 18px;
  }

  .cover-copy h2 {
    font-size: 1.8rem;
  }

  .slide-head-illust {
    display: none;
  }
}
