/* ═══════════════════════════════════════════════════════
   CLIP™ Core — Module 1 Overview Page
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f8f9fc;
  --bg-alt:   #ffffff;
  --surface:  #f1f3f9;
  --border:   #e4e8f0;
  --text:     #1a1d2e;
  --muted:    #6b7280;
  --card:     #ffffff;

  --a1: #2563eb;   /* blue */
  --a2: #7c3aed;   /* violet */
  --a3: #0d9488;   /* teal */
  --a4: #d97706;   /* amber */
  --a5: #dc2626;   /* red */
  --a6: #16a34a;   /* green */

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'Fira Code', monospace;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(30,35,64,.07);
  --shadow-lg: 0 8px 40px rgba(30,35,64,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
code {
  font-family: var(--mono);
  font-size: .85em;
  background: rgba(37,99,235,.07);
  color: var(--a1);
  padding: 1px 5px;
  border-radius: 4px;
}
strong { font-weight: 700; }

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

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,249,252,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding: 0 28px;
  display: flex; align-items: center; gap: 32px;
  height: 58px;
  transition: border-color .2s, box-shadow .2s;
}
nav.scrolled { border-color: var(--border); box-shadow: 0 2px 16px rgba(30,35,64,.06); }
.nav-brand {
  font-size: 17px; font-weight: 800; letter-spacing: -.4px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-brand span { color: var(--a2); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 5px 12px; border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  font-size: 12.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  text-decoration: none; padding: 7px 18px; border-radius: 9px;
  white-space: nowrap; transition: opacity .15s;
}
.nav-cta:hover { opacity: .88; }

/* ── Sections ── */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-label {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--a1); margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  letter-spacing: -.6px; line-height: 1.2; margin-bottom: 16px;
}
.section-intro {
  font-size: 15px; color: var(--muted); max-width: 640px;
  line-height: 1.75; margin-bottom: 48px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding: 140px 28px 80px;
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  background: rgba(37,99,235,.1); color: var(--a1);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
  letter-spacing: -.8px; line-height: 1.12; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--a1); }
.hero-sub {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  max-width: 520px; margin-bottom: 36px;
}
.hero-stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-n span { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-l { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.stat.highlight .stat-n { color: var(--a1); }
.stat-arrow { font-size: 22px; color: var(--a6); font-weight: 700; }
.stat-sep { width: 1px; height: 32px; background: var(--border); }

/* Hero visual */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdf-card {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 20px 16px;
  box-shadow: var(--shadow-lg);
}
.pdf-icon { font-size: 30px; margin-bottom: 8px; }
.pdf-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.pdf-meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.pdf-bar { height: 5px; background: var(--surface); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.pdf-progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); border-radius: 99px; transition: width 1.2s ease; }
.pdf-status { font-size: 11.5px; color: var(--a3); font-weight: 600; }
.hero-arrow-down { font-size: 20px; color: var(--muted); }
.rule-card {
  width: 100%; background: var(--card); border: 1px solid rgba(22,163,74,.3);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(22,163,74,.1);
}
.rule-header { font-size: 12.5px; font-weight: 700; color: var(--a6); margin-bottom: 10px; }
.rule-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.rule-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rule-dot.q { background: var(--a1); }
.rule-dot.s { background: var(--a3); }
.rule-dot.c { background: var(--a4); }
.rule-dot.r { background: var(--a2); }
.rule-check { margin-left: auto; color: var(--a6); font-weight: 700; }

/* ══════════════════════════════════════
   PROBLEM
══════════════════════════════════════ */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.pain-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  box-shadow: var(--shadow); transition: transform .15s;
}
.pain-card:hover { transform: translateY(-2px); }
.pain-icon { font-size: 28px; margin-bottom: 10px; }
.pain-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.pain-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.solution-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(124,58,237,.05));
  border: 1px solid rgba(37,99,235,.15);
  border-radius: var(--radius); padding: 32px;
}
.sol-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--a1); margin-bottom: 14px; }
.sol-points { display: flex; flex-direction: column; gap: 10px; }
.sol-point { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; }
.sol-point span { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.platform-tiers { display: flex; flex-direction: column; gap: 6px; }
.tier {
  padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card);
  opacity: .55;
}
.tier.active {
  opacity: 1;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 0 0 2px rgba(37,99,235,.12);
}
.tier span { font-size: 13px; font-weight: 700; }
.tier small { font-size: 11px; color: var(--muted); }

/* ══════════════════════════════════════
   WORKFLOW
══════════════════════════════════════ */
.steps-container { position: relative; margin-bottom: 48px; }
.steps-line {
  position: absolute; left: 36px; top: 40px; bottom: 40px; width: 2px;
  background: linear-gradient(180deg, var(--a1), var(--a2), var(--a3), var(--a4), #e85b6e);
  border-radius: 2px;
}
.steps { display: flex; flex-direction: column; gap: 0; }
.step-block {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step-block:last-child { border-bottom: none; }
.step-circle {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); position: relative;
}
.step-icon-lg { font-size: 26px; line-height: 1; }
.step-num-circle {
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.step-content { padding-top: 4px; }
.step-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.2px; }
.step-body { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; max-width: 600px; }
.step-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}
.chip.chip-q { background: rgba(37,99,235,.08); color: var(--a1); border-color: rgba(37,99,235,.2); }
.chip.chip-s { background: rgba(13,148,136,.08); color: var(--a3); border-color: rgba(13,148,136,.2); }
.chip.chip-c { background: rgba(217,119,6,.08); color: var(--a4); border-color: rgba(217,119,6,.2); }
.chip.chip-r { background: rgba(124,58,237,.08); color: var(--a2); border-color: rgba(124,58,237,.2); }

/* Lifecycle bar */
.lifecycle-bar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  box-shadow: var(--shadow);
}
.lc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 18px; }
.lc-track { display: flex; align-items: center; gap: 0; flex-wrap: wrap; gap: 4px; }
.lc-node { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lc-dot { width: 36px; height: 36px; border-radius: 50%; }
.lc-node.pend .lc-dot  { background: rgba(107,114,128,.15); border: 2px solid #9ca3af; }
.lc-node.proc .lc-dot  { background: rgba(217,119,6,.15); border: 2px solid var(--a4); }
.lc-node.done .lc-dot  { background: rgba(13,148,136,.15); border: 2px solid var(--a3); }
.lc-node.conf .lc-dot  { background: rgba(37,99,235,.15); border: 2px solid var(--a1); }
.lc-node.sub  .lc-dot  { background: rgba(22,163,74,.15); border: 2px solid var(--a6); }
.lc-text { font-size: 10px; font-weight: 600; text-align: center; color: var(--muted); line-height: 1.3; }
.lc-line { flex: 1; height: 2px; background: var(--border); min-width: 20px; }

/* ══════════════════════════════════════
   METADATA
══════════════════════════════════════ */
.meta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.meta-mockup {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mockup-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-title { font-size: 12px; font-weight: 700; flex: 1; text-align: center; }
.mockup-badge { font-size: 10px; color: var(--muted); background: var(--border); padding: 2px 8px; border-radius: 4px; }
.mockup-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.meta-field {
  padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg);
}
.meta-field.confirmed { border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.04); }
.meta-field.warn      { border-color: rgba(217,119,6,.35); background: rgba(217,119,6,.05); }
.mf-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 3px; }
.mf-value { font-size: 12.5px; font-weight: 600; }
.mf-edit { color: var(--a4); }
.mf-conf { font-size: 10px; margin-top: 3px; }
.mf-conf.high { color: var(--a6); }
.mf-conf.low  { color: var(--a4); }
.mockup-action {
  margin-top: 6px; padding: 11px; border-radius: 9px; text-align: center;
  background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
}

.mfl-title { font-size: 14px; font-weight: 800; margin-bottom: 18px; }
.mfl-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mfl-item:last-of-type { border-bottom: none; }
.mfl-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.mfl-item strong { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 4px; }
.mfl-item p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.mfl-conf-guide {
  margin-top: 20px; padding: 14px 16px;
  background: var(--surface); border-radius: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.conf-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.conf-dot { width: 9px; height: 9px; border-radius: 50%; }
.conf-dot.high { background: var(--a6); }
.conf-dot.warn { background: var(--a4); }
.conf-dot.miss { background: var(--border); border: 1px solid var(--muted); }

/* ══════════════════════════════════════
   TERM YEARS
══════════════════════════════════════ */
.ty-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ty-concept {
  padding: 18px 20px; border-radius: 12px;
  background: rgba(37,99,235,.06); border: 1px solid rgba(37,99,235,.18);
  margin-bottom: 12px;
}
.ty-concept.warn { background: rgba(220,38,38,.05); border-color: rgba(220,38,38,.2); }
.ty-concept-title { font-size: 12.5px; font-weight: 700; margin-bottom: 5px; }
.ty-concept-body { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.ty-types { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.ty-type-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card);
}
.ty-type-card.cal { border-color: rgba(37,99,235,.2); }
.ty-type-card.fis { border-color: rgba(124,58,237,.2); }
.ty-type-card.con { border-color: rgba(217,119,6,.2); }
.tyt-icon { font-size: 22px; flex-shrink: 0; }
.ty-type-card strong { font-size: 12.5px; font-weight: 700; display: block; margin-bottom: 3px; }
.ty-type-card p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.55; }

.ty-timeline {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg);
}
.ty-header { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.ty-bar-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.ty-bar-row { display: flex; align-items: center; gap: 10px; }
.ty-bar-label { font-size: 10.5px; font-weight: 700; color: var(--muted); width: 34px; flex-shrink: 0; }
.ty-bar {
  flex: 1; height: 28px; border-radius: 7px;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 10.5px; font-weight: 600; color: #fff;
}
.ty1 { background: linear-gradient(90deg, #5b8af5, #7c5cfc); }
.ty2 { background: linear-gradient(90deg, #3ecfb0, #5b8af5); }
.ty3 { background: linear-gradient(90deg, #f5a623, #e85b6e); }
.ty4 { background: linear-gradient(90deg, #7c5cfc, #3ecfb0); }

.window-overlay-label { font-size: 10.5px; color: var(--muted); margin-bottom: 8px; font-style: italic; }
.movie-windows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.mw-row { display: flex; align-items: center; gap: 10px; }
.mw-label { font-size: 10.5px; font-weight: 600; width: 54px; flex-shrink: 0; }
.mw-track { flex: 1; height: 26px; position: relative; }
.mw-window {
  position: absolute; height: 100%; border-radius: 6px;
  border: 1px solid; display: flex; align-items: center;
  padding: 0 6px; font-size: 9.5px; font-weight: 600; overflow: hidden; white-space: nowrap;
}
.mw-ty { font-size: 10px; font-weight: 700; white-space: nowrap; }
.ty1-tag { color: #5b8af5; }
.ty2-tag { color: var(--a3); }
.warn-tag { color: var(--a4); }
.ty-scale { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }

/* ══════════════════════════════════════
   CATEGORIES
══════════════════════════════════════ */
.cat-intro-visual {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.contract-box {
  background: var(--card); border: 2px dashed var(--border);
  border-radius: 14px; padding: 20px 24px; text-align: center;
  flex-shrink: 0;
}
.cb-icon { font-size: 32px; margin-bottom: 6px; }
.cb-title { font-size: 13px; font-weight: 700; }
.cb-sub { font-size: 11px; color: var(--muted); }
.cb-arrow { font-size: 13px; color: var(--muted); font-weight: 600; flex-shrink: 0; }
.cat-bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-bubble {
  padding: 8px 14px; border-radius: 99px; font-size: 12px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1px solid; cursor: default;
}
.cat-bubble span { font-size: 9.5px; font-weight: 500; opacity: .7; }
.b70 { background: rgba(37,99,235,.1); border-color: rgba(37,99,235,.3); color: #1d4ed8; }
.b71 { background: rgba(13,148,136,.1); border-color: rgba(13,148,136,.3); color: #0f766e; }
.b72 { background: rgba(217,119,6,.1);  border-color: rgba(217,119,6,.3);  color: #b45309; }
.b73 { background: rgba(220,38,38,.1);  border-color: rgba(220,38,38,.3);  color: #b91c1c; }
.b74 { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.3); color: #6d28d9; }
.b75 { background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.3);  color: #15803d; }

.cat-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.cat-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
.cat-table thead tr {
  background: var(--surface); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700;
}
.cat-table th, .cat-table td {
  padding: 11px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.cat-table tbody tr:hover { background: rgba(37,99,235,.025); }
.cat-table td small { font-size: 10.5px; color: var(--muted); display: block; margin-top: 1px; }
.cat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px;
  font-size: 10px; font-weight: 800; color: #fff; margin-right: 6px; float: left; margin-top: 2px;
}
.cat-badge.b70 { background: linear-gradient(135deg,#5b8af5,#7c5cfc); }
.cat-badge.b71 { background: linear-gradient(135deg,#3ecfb0,#5b8af5); }
.cat-badge.b72 { background: linear-gradient(135deg,#f5a623,#3ecfb0); }
.cat-badge.b73 { background: linear-gradient(135deg,#e85b6e,#f5a623); }
.cat-badge.b74 { background: linear-gradient(135deg,#7c5cfc,#e85b6e); }
.cat-badge.b75 { background: linear-gradient(135deg,#4ecb71,#3ecfb0); }
.cap-n { font-weight: 800; font-size: 16px; color: var(--a1); }
.cap-n.tight { color: var(--a5); }
.sort-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 6px; white-space: nowrap;
}
.sort-badge.avail { background: rgba(13,148,136,.1); color: var(--a3); }
.sort-badge.bo    { background: rgba(124,58,237,.1); color: var(--a2); }
.mutual-excl-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 18px; background: rgba(217,119,6,.06);
  border: 1px solid rgba(217,119,6,.2); border-radius: 10px;
  font-size: 12.5px; color: var(--muted);
}
.mutual-excl-note span:first-child { font-size: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════
   SEGMENTS
══════════════════════════════════════ */
.seg-equation {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 52px; padding: 28px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.seg-eq-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 16px 20px; border-radius: 12px; min-width: 110px; text-align: center;
  border: 1px solid;
}
.seg-eq-item.q { background: rgba(37,99,235,.07); border-color: rgba(37,99,235,.2); }
.seg-eq-item.s { background: rgba(13,148,136,.07); border-color: rgba(13,148,136,.2); }
.seg-eq-item.c { background: rgba(217,119,6,.07);  border-color: rgba(217,119,6,.2); }
.seg-eq-item.r { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.2); }
.seg-eq-result { background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.25); }
.seg-eq-result { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px 20px; border-radius: 12px; min-width: 110px; text-align: center; border: 1px solid; }
.seq-icon { font-size: 26px; }
.seg-eq-item strong, .seg-eq-result strong { font-size: 12.5px; font-weight: 800; line-height: 1.3; display: block; }
.seg-eq-item small { font-size: 10.5px; color: var(--muted); }
.seq-op { font-size: 22px; color: var(--muted); font-weight: 300; }

.segs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.seg-deep {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s;
}
.seg-deep:hover { transform: translateY(-3px); }
.seg-deep.q-deep { border-top: 3px solid var(--a1); }
.seg-deep.s-deep { border-top: 3px solid var(--a3); }
.seg-deep.c-deep { border-top: 3px solid var(--a4); }
.seg-deep.r-deep { border-top: 3px solid var(--a2); }
.seg-deep-header {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
}
.segd-icon { font-size: 30px; flex-shrink: 0; }
.segd-name { font-size: 16px; font-weight: 800; margin-bottom: 3px; letter-spacing: -.2px; }
.q-deep .segd-name { color: var(--a1); }
.s-deep .segd-name { color: var(--a3); }
.c-deep .segd-name { color: var(--a4); }
.r-deep .segd-name { color: var(--a2); }
.segd-q { font-size: 12px; color: var(--muted); line-height: 1.4; }
.segd-body { padding: 18px 20px; }
.segd-body p { font-size: 12.5px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }

/* mini rule tree */
.segd-example { margin-bottom: 14px; }
.segd-ex-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin-bottom: 7px; }
.rule-mini-tree {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.rmt-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.rmt-i1 { padding-left: 16px; }
.rmt-and { color: var(--a1); font-weight: 700; font-size: 11px; }
.rmt-or  { color: var(--a3); font-weight: 700; font-size: 11px; }
.rmt-leaf { color: var(--a2); font-size: 10.5px; }
.rmt-op   { color: var(--a4); font-size: 10.5px; }
.rmt-val  { color: var(--a5); font-size: 10.5px; }
.rmt-terr { background: rgba(13,148,136,.1); color: var(--a3); font-size: 9.5px; padding: 1px 5px; border-radius: 4px; }

/* cap mini */
.cap-mini {
  display: flex; align-items: center; gap: 16px;
  background: rgba(217,119,6,.07); border: 1px solid rgba(217,119,6,.2);
  border-radius: 9px; padding: 12px 16px;
}
.cap-mini-num { font-size: 36px; font-weight: 900; color: var(--a4); line-height: 1; }
.cap-mini-detail { font-size: 12px; color: var(--muted); }
.cap-mini-sort { margin-top: 3px; font-size: 11px; }

/* rate mini */
.rate-mini { display: flex; flex-direction: column; gap: 5px; }
.rate-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px; border-radius: 7px;
  background: rgba(124,58,237,.06); border: 1px solid rgba(124,58,237,.15);
  font-size: 11.5px;
}
.rate-range { color: var(--muted); font-weight: 600; }
.rate-val { font-weight: 700; color: var(--a2); }

/* facts */
.segd-facts { display: flex; flex-direction: column; gap: 5px; }
.segd-fact {
  font-size: 11.5px; color: var(--muted);
  padding: 5px 0; border-bottom: 1px solid var(--surface);
  display: flex; align-items: flex-start; gap: 7px;
}
.segd-fact::before { content: '→'; color: var(--border); flex-shrink: 0; }
.segd-fact.pro::before { content: ''; }
.segd-fact.con::before { content: ''; }
.segd-fact.pro { color: var(--a6); }
.segd-fact.con { color: var(--a4); }
.segd-fact:last-child { border-bottom: none; }
.segd-fact span { flex-shrink: 0; }

/* confirmation grid */
.confirm-banner {
  display: grid; grid-template-columns: 1fr 280px; gap: 32px;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(22,163,74,.04));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius); padding: 28px;
  align-items: center;
}
.cb-grid { display: flex; flex-direction: column; gap: 4px; }
.cb-grid-header {
  display: grid; grid-template-columns: 80px 1fr 1fr 1fr 1fr;
  gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--muted); padding: 0 0 6px; border-bottom: 1px solid var(--border);
}
.cb-grid-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 1fr 1fr;
  gap: 4px; align-items: center;
}
.cb-cat {
  font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 5px; text-align: center;
}
.cb-cat.b70 { background: rgba(37,99,235,.1); color: #1d4ed8; }
.cb-cat.b71 { background: rgba(13,148,136,.1); color: #0f766e; }
.cb-cat.b72 { background: rgba(217,119,6,.1); color: #b45309; }
.cb-cat.b73 { background: rgba(220,38,38,.1); color: #b91c1c; }
.cb-cat.b74 { background: rgba(124,58,237,.1); color: #6d28d9; }
.cb-cat.b75 { background: rgba(22,163,74,.1); color: #15803d; }
.cb-cell {
  text-align: center; font-size: 12px; padding: 5px 4px;
  border-radius: 6px; font-weight: 700;
}
.cb-cell.done { background: rgba(22,163,74,.1); color: var(--a6); }
.cb-cell.pend { background: var(--surface); color: var(--muted); font-size: 10px; }
.cb-count { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.cb-count span { font-size: 14px; font-weight: 600; color: var(--muted); }
.cb-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.cb-submit {
  font-size: 13px; font-weight: 700; padding: 11px 20px; border-radius: 9px;
  text-align: center; background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); cursor: not-allowed;
}
.cb-submit.disabled { opacity: .6; }

/* ══════════════════════════════════════
   CTA + FOOTER
══════════════════════════════════════ */
.cta-section { background: linear-gradient(135deg, #1a1d2e 0%, #2d3261 100%); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-text h2 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-text p { font-size: 14px; color: rgba(255,255,255,.6); max-width: 480px; line-height: 1.7; }
.cta-btn {
  display: inline-block; padding: 15px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 700;
  white-space: nowrap; box-shadow: 0 8px 32px rgba(37,99,235,.4);
  transition: transform .15s, box-shadow .15s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,99,235,.5); }

.page-footer { background: #111420; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.page-footer div { font-size: 12px; color: rgba(255,255,255,.35); }
.page-footer strong { color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 380px; }
  .meta-layout, .ty-layout { grid-template-columns: 1fr; }
  .segs-grid { grid-template-columns: 1fr; }
  .solution-banner { grid-template-columns: 1fr; }
  .confirm-banner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .steps-line { display: none; }
  .cat-intro-visual { flex-direction: column; }
  .seg-equation { gap: 8px; }
  .seq-op { display: none; }
}
