/* ==========================================================
   Deceptive Pattern Detector - website-v2/style.css
   Light theme, amber accent (#e9a23b), Inter + Roboto Mono
   ========================================================== */

/* --- Root Variables --- */
:root {
  --bg:            #f8f9fb;
  --bg-white:      #ffffff;
  --bg-alt:        #f0f2f7;
  --bg-tint:       #fdf6ea;
  --accent:        #e9a23b;
  --accent-dark:   #c97d20;
  --accent-pale:   #fef3dc;
  --accent-text:   #854208;
  --text:          #111827;
  --text-mid:      #374151;
  --text-muted:    #6b7280;
  --text-faint:    #9ca3af;
  --border:        #e5e7eb;
  --border-strong: #d1d5db;
  --red:           #ef4444;
  --red-pale:      #fef2f2;
  --orange:        #f97316;
  --orange-pale:   #fff7ed;
  --green:         #10b981;
  --green-pale:    #ecfdf5;
  --blue:          #3b82f6;
  --blue-pale:     #eff6ff;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     20px;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.06);
  --shadow:        0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --nav-h:         58px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }

p { color: var(--text-mid); }

a { color: var(--accent-dark); text-decoration: underline; }
a:hover { color: var(--accent); }

ul { list-style: none; }

code, .pipe-file {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.82em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-mid);
}

em.accent-em { font-style: normal; color: var(--accent-dark); }

img { max-width: 100%; display: block; }

/* --- Layout Containers --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  background: var(--bg-white);
}

.section-alt {
  background: var(--bg);
}

.section-brand-tint {
  background: var(--bg-tint);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.section-h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 700px;
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* --- NAV --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-white);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
}

.nav-brand-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.nav-active {
  background: var(--accent-pale);
  color: var(--accent-dark);
}

.nav-badge-wrap { flex-shrink: 0; }

.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* --- HERO --- */
.hero-section {
  background: var(--bg-white);
  padding: 70px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 48px;
}

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

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  flex: 1;
  min-width: 90px;
}

.hs-div {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.hs-n {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
}

.hs-l {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-strong);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-ghost:hover { background: var(--bg-alt); border-color: var(--text-muted); color: var(--text); }

/* --- HERO VISUAL --- */
.hero-visual {
  flex-shrink: 0;
  width: 380px;
}

.browser-mockup {
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}

.brow-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
}

.brow-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.brow-url {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: 'Roboto Mono', monospace;
  color: var(--text-muted);
  padding: 3px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brow-lock {
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 3px;
}

.brow-ext-area {
  flex-shrink: 0;
  position: relative;
}

.ext-toolbar-btn {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: default;
}

.ext-toolbar-btn svg {
  width: 100%;
  height: 100%;
}

.ext-badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  border-radius: 10px;
  min-width: 13px;
  height: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
}

.brow-body {
  padding: 14px;
  min-height: 310px;
  position: relative;
  background: #12131a;
}

.fake-page-inner {
  position: relative;
  min-height: 280px;
}

.fp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fp-site-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.fp-nav-items {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
}

/* Simulated page: upgrade modal with asymmetric choice */
.fp-modal-backdrop {
  padding: 18px 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fp-modal {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px 14px;
  max-width: 200px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.fp-modal-badge {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 99px;
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 7px;
}

.fp-modal-heading {
  font-size: 0.82rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 5px;
  line-height: 1.3;
}

.fp-modal-sub {
  font-size: 0.58rem;
  color: #6b7280;
  margin-bottom: 10px;
  line-height: 1.4;
}

.fp-modal-cta {
  background: #5b21b6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: default;
  width: 100%;
  margin-bottom: 7px;
  display: block;
}

.fp-modal-shame {
  background: none;
  border: none;
  font-size: 0.54rem;
  color: #9ca3af;
  cursor: default;
  line-height: 1.3;
  width: 100%;
}

/* Real extension popup card — matches actual popup.js card layout */
.ext-popup {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e2e6;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 9px 10px;
  width: 218px;
  z-index: 10;
}

.ep-cs-row {
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.ep-icon-col {
  width: 30px;
  min-width: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1px;
}

.ep-cs-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ep-icon-num {
  font-size: 0.52rem;
  font-family: 'Roboto Mono', monospace;
  color: #6b7280;
  line-height: 1;
  margin-top: 2px;
}

.ep-opts-col {
  flex: 1;
  min-width: 0;
}

.ep-cs-title {
  font-size: 0.69rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.ep-cs-desc {
  font-size: 0.59rem;
  font-style: italic;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.35;
}

.ep-opt {
  font-size: 0.59rem;
  color: #374151;
  margin-top: 3px;
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1.3;
}

.ep-role {
  font-size: 0.57rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

.ep-role-accept { color: #2e7d32; }
.ep-role-decline { color: #b71c1c; }

.ep-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.ep-thumb {
  width: 22px;
  height: 22px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  color: #6b7280;
}

.ep-thumb svg {
  width: 13px;
  height: 13px;
}

/* --- DEMO / TRAILER --- */
.demo-section {
  background: #0d0f14;
  padding: 80px 0 72px;
}

.demo-header {
  text-align: center;
  margin-bottom: 40px;
}

.demo-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid #3d2a0c;
  background: #1c1509;
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.demo-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.demo-title-accent { color: var(--accent); }

.demo-sub {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.demo-theater {
  display: block;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  text-decoration: none;
  cursor: pointer;
}

.demo-thumb {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.72);
}

.demo-theater:hover .demo-thumb {
  transform: scale(1.02);
  filter: brightness(0.55);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.demo-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 0 0 rgba(233,162,59,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-theater:hover .demo-play-btn {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(233,162,59,0.18);
}

.demo-runtime {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: 'Roboto Mono', monospace;
}

/* --- TWO COLUMN --- */
.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.tc-body { flex: 1; }
.tc-body p { margin-bottom: 1rem; }

.tc-image { flex-shrink: 0; width: 280px; }

/* --- PROBLEM STATS --- */
.prob-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.prob-stat {
  flex: 1;
  min-width: 150px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.ps-n {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.ps-l {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- SCREENSHOTS --- */
.screenshot-fig {
  margin: 0;
}

.screenshot-img {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.screenshot-img:hover {
  opacity: 0.88;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lb-fade 0.18s ease;
}
.lightbox[hidden] {
  display: none;
}
@keyframes lb-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
  cursor: default;
  animation: lb-scale 0.18s ease;
}
@keyframes lb-scale {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.screenshot-fig figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.screenshot-fig figcaption strong {
  color: var(--text);
}

.screenshot-pair {
  display: flex;
  gap: 24px;
  margin-top: 2.5rem;
}

.screenshot-pair .screenshot-fig {
  flex: 1;
}

/* --- SOL CARDS --- */
.sol-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2rem;
}

.sol-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}

.sol-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.sol-card-icon-wrap {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--accent-dark);
}

.sol-card-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.sol-card h3 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.sol-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* --- STAGE BANNERS --- */
.stage-banners {
  display: flex;
  gap: 12px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stage-banner {
  flex: 1;
  min-width: 220px;
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-client {
  background: var(--accent-pale);
  border: 1.5px solid #f6cc80;
}

.stage-server {
  background: var(--blue-pale);
  border: 1.5px solid #bfdbfe;
}

.stage-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.stage-client .stage-badge { color: var(--accent-text); }
.stage-server .stage-badge { color: #1e40af; }

.stage-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
}

/* --- PIPELINE COLUMNS --- */
.pipeline-cols {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pipeline-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pipe-col-client { flex: 1; }
.pipe-col-server { flex: 1; }

/* Stage banner is now the column header — full width, no flex:1 needed */
.pipeline-col .stage-banner {
  flex: unset;
  min-width: unset;
  width: 100%;
  margin-bottom: 4px;
}

/* Color-code steps by column */
.pipe-col-client .pipe-step {
  border-left: 3px solid var(--accent);
}

.pipe-col-server .pipe-step {
  border-left: 3px solid #3b82f6;
}

.pipe-col-server .pipe-num {
  background: #3b82f6;
}

/* --- PIPELINE GRID (legacy, replaced) --- */
.pipeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pipe-step {
  display: flex;
  gap: 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}

.pipe-step:hover { box-shadow: var(--shadow); }

.pipe-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe-body { flex: 1; min-width: 0; }

.pipe-body code,
.pipe-body .pipe-file {
  display: inline-block;
  margin-bottom: 6px;
}

.pipe-body h3 {
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.pipe-body p {
  font-size: 0.81rem;
  color: var(--text-mid);
}

}

/* --- TOOLING SECTION --- */
.tool-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-screenshot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  background: #0d0f12;
  line-height: 0;
  margin-bottom: 20px;
}

.tool-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

.tool-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-dark);
  background: var(--bg-tint);
  border: 1px solid var(--accent-light);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.tool-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.tool-p {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0 0 14px;
}

.tool-list {
  margin: 0 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-list li {
  font-size: 0.845rem;
  color: var(--text-mid);
  line-height: 1.55;
}

.tool-list li strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 860px) {
  .tool-two-col {
    grid-template-columns: 1fr;
  }
}

/* --- FEATURE GROUPS --- */
.feat-groups-wrap .section-label { margin-bottom: 1rem; }

.feat-groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feat-group-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.fg-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.fg-list li {
  font-size: 0.78rem;
  color: var(--text-mid);
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
}

.fg-list li:last-child { border-bottom: none; }

/* --- PATTERN CARDS --- */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

.pat-card {
  display: block;
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: box-shadow .15s, border-color .15s;
  box-shadow: var(--shadow-sm);
}

.pat-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.pat-card--open {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.pat-card-inner {
  padding: 18px;
}

.pat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pat-chip {
  font-size: 0.65rem;
  font-weight: 800;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
}

.pat-chip-cs { background: #fff1f2; color: #be123c; }
.pat-chip-ur { background: #fff7ed; color: #c2410c; }
.pat-chip-sc { background: #fffbeb; color: #b45309; }
.pat-chip-pz { background: #f0fdf4; color: #15803d; }
.pat-chip-ac { background: #eff6ff; color: #1d4ed8; }
.pat-chip-tq { background: #faf5ff; color: #7e22ce; }
.pat-chip-md { background: #fff7ed; color: #9a3412; }
.pat-chip-sp { background: #f0f9ff; color: #0369a1; }

.pat-risk {
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.risk-high { background: var(--red-pale); color: var(--red); }
.risk-medium { background: var(--orange-pale); color: #c2410c; }
.risk-low { background: var(--green-pale); color: #065f46; }

.pat-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}

.pat-short {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.pat-detail {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.pat-card--open .pat-detail {
  display: block;
}

.pat-detail p {
  font-size: 0.79rem;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.pat-example {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 8px 10px;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- DATA CARDS --- */
.data-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.dc-num {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'Roboto Mono', monospace;
  color: var(--accent-dark);
  background: var(--accent-pale);
  border: 1px solid #f6cc80;
  border-radius: 4px;
  display: inline-block;
  padding: 1px 6px;
  margin-bottom: 10px;
}

.data-card h3 {
  font-size: 0.93rem;
  margin-bottom: 7px;
}

.data-card p {
  font-size: 0.81rem;
  color: var(--text-mid);
}

/* --- RESULTS --- */
.results-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.5rem;
}

.rs-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rs-n {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.rs-l {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.achv-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.achv-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.achv-technical .achv-label { color: var(--blue); }
.achv-learning   .achv-label { color: var(--green); }
.achv-future     .achv-label { color: var(--text-faint); }

.achv-card h3 {
  font-size: 0.93rem;
  margin-bottom: 7px;
}

.achv-card p {
  font-size: 0.81rem;
  color: var(--text-mid);
}

/* --- TEAM --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}

.team-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.team-info { flex: 1; min-width: 0; }

.team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.team-bio {
  font-size: 0.79rem;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.team-link {
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
}

.team-link:hover {
  text-decoration: underline;
}

.ischool-credit {
  text-align: center;
}

.ischool-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.ischool-link:hover { color: var(--text); }

/* --- FOOTER --- */
.site-footer {
  background: var(--text);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-icon {
  width: 26px;
  height: 26px;
}

.footer-brand-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.footer-meta {
  font-size: 0.76rem;
  color: #9ca3af;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.fsep { color: #4b5563; }

.footer-names {
  font-size: 0.73rem;
  color: #6b7280;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
  .hero-container { flex-direction: column; }
  .hero-visual { width: 100%; max-width: 460px; }
  .two-col { flex-direction: column; }
  .tc-image { width: 100%; }
  .pipeline-cols { flex-direction: column; }
  .feat-groups-grid { grid-template-columns: 1fr 1fr; }
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .achv-grid { grid-template-columns: 1fr 1fr; }
  .sol-cards { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .section { padding: 50px 0; }
  .feat-groups-grid { grid-template-columns: 1fr; }
  .pattern-grid { grid-template-columns: 1fr; }
  .achv-grid { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: 1fr; }
  .screenshot-pair { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 0; }
  .hs-div { width: 100%; height: 1px; }
}
