/* ============================================================
   Mythlogic Studios — Global Stylesheet
   Font: Inter (modern, clean, tech-forward)
   Palette: Steam-inspired dark + vibrant accent colours
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --bg:        #060a10;
  --bg2:       #0d1117;
  --bg3:       #161b22;
  --border:    #21262d;
  --border2:   #2a475e;
  --accent:    #66c0f4;
  --accent2:   #1f6feb;
  --purple:    #a371f7;
  --green:     #3fb950;
  --orange:    #f78166;
  --yellow:    #e3b341;
  --pink:      #f85149;
  --text:      #e6edf3;
  --text2:     #c7d5e0;
  --muted:     #8b949e;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --glow-blue: 0 0 40px rgba(102,192,244,0.15);
  --glow-purple: 0 0 40px rgba(163,113,247,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text2);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { color: var(--text2); font-size: 1rem; }
a  { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
code, .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-orange {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,10,16,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent2); color: #fff !important;
  border-radius: 8px; padding: 7px 16px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--text2); border-radius: 2px; transition: .3s; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31,111,235,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(163,113,247,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(102,192,244,0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(102,192,244,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,192,244,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(102,192,244,0.08);
  border: 1px solid rgba(102,192,244,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 24px; }
.hero p.lead {
  font-size: 1.2rem; color: var(--muted); max-width: 600px;
  margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--text); }
.hero-stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(31,111,235,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(31,111,235,0.5); color: #fff; }
.btn-secondary {
  background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--border); color: var(--text); border-color: var(--accent); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(102,192,244,0.1); color: var(--accent); }
.btn-disabled {
  background: var(--bg3) !important; color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  cursor: not-allowed !important; opacity: 0.6;
  box-shadow: none !important; transform: none !important;
  pointer-events: none;
}
.btn-coming-soon {
  position: relative;
  background: var(--bg3); color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed; opacity: 0.7;
}
.coming-soon-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--bg); font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-left: 4px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card-glow-blue:hover  { box-shadow: var(--shadow), var(--glow-blue); border-color: rgba(102,192,244,0.3); }
.card-glow-purple:hover { box-shadow: var(--shadow), var(--glow-purple); border-color: rgba(163,113,247,0.3); }

/* ── Feature Grid ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-icon.blue   { background: rgba(31,111,235,0.15); }
.feature-icon.purple { background: rgba(163,113,247,0.15); }
.feature-icon.green  { background: rgba(63,185,80,0.15); }
.feature-icon.orange { background: rgba(247,129,102,0.15); }
.feature-icon.yellow { background: rgba(227,179,65,0.15); }
.feature-icon.cyan   { background: rgba(102,192,244,0.15); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── Products Section ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 60px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}
.product-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.tag-ide     { background: rgba(31,111,235,0.15); color: var(--accent2); border: 1px solid rgba(31,111,235,0.3); }
.tag-ai      { background: rgba(163,113,247,0.15); color: var(--purple); border: 1px solid rgba(163,113,247,0.3); }
.tag-game    { background: rgba(63,185,80,0.15); color: var(--green); border: 1px solid rgba(63,185,80,0.3); }
.product-card-body { padding: 24px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.product-card-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; flex: 1; }
.product-card-footer { padding: 0 32px 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Section Headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 16px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0;
}

/* ── About Section ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-orb {
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(102,192,244,0.3) 0%,
    rgba(31,111,235,0.2) 30%,
    rgba(163,113,247,0.1) 60%,
    transparent 80%);
  border: 1px solid rgba(102,192,244,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  box-shadow: 0 0 80px rgba(102,192,244,0.1), inset 0 0 80px rgba(31,111,235,0.05);
  animation: float 6s ease-in-out infinite;
}
.about-text .eyebrow {
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
  display: block;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--text2);
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-card {
  max-width: 640px; margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  box-shadow: var(--shadow), var(--glow-blue);
}
.contact-card h2 { margin-bottom: 16px; }
.contact-card p  { color: var(--muted); margin-bottom: 32px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 14px 28px;
  font-size: 1rem; font-weight: 600; color: var(--accent);
  transition: all .2s;
}
.contact-email:hover { background: rgba(102,192,244,0.1); border-color: var(--accent); color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col a  { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-card { padding: 32px 24px; }
  .hero-actions { flex-direction: column; }
  .section { padding: 60px 0; }
}

/* ── Page-specific: Product Pages ────────────────────────── */
.product-hero {
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.product-hero-bg-blue {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(31,111,235,0.15) 0%, transparent 70%);
}
.product-hero-bg-purple {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(163,113,247,0.15) 0%, transparent 70%);
}
.product-hero-bg-green {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(63,185,80,0.12) 0%, transparent 70%);
}
.product-hero h1 { margin-bottom: 20px; }
.product-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 700px; margin: 0 auto 40px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 60px;
}
.spec-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-align: center;
}
.spec-card .num { font-size: 2rem; font-weight: 800; color: var(--text); }
.spec-card .label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text2);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--green); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── Live Stats Bar ───────────────────────────────────────── */
.live-stats-bar {
  background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

/* ── Architecture Diagram ─────────────────────────────────── */
.arch-diagram {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.arch-center {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  color: #fff;
  padding: 24px 48px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 0 50px rgba(31,111,235,0.4);
  position: relative;
  z-index: 2;
}
.arch-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 800px;
}
.arch-node {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: default;
  transition: all .3s;
}
.arch-node:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(102,192,244,0.15);
}
.arch-node-title { color: var(--text); font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.arch-node-sub   { color: var(--muted); font-size: 0.78rem; margin-top: 4px; }
@media (max-width: 600px) {
  .arch-nodes { grid-template-columns: repeat(2, 1fr); }
}

/* ── Code Quest Demo ──────────────────────────────────────── */
.cq-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #010409;
  margin-top: 40px;
}
.cq-game {
  position: relative;
  height: 280px;
  background: linear-gradient(180deg, #040810 0%, #0d1c2c 100%);
}
.cq-panel {
  background: rgba(13,17,23,0.98);
  border-top: 2px solid var(--accent);
  padding: 20px 24px;
}
.cq-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cq-template {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
}
.cq-input {
  flex: 1;
  min-width: 160px;
  background: var(--bg2);
  border: 2px solid var(--border);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s;
}
.cq-input:focus { border-color: var(--accent); }

/* ── Monster Maneuvers scan line ──────────────────────────── */
.mm-scan-line {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #3fb950, transparent);
  animation: mm-scan 4s linear infinite;
}
@keyframes mm-scan {
  0%   { left: -100%; }
  100% { left:  100%; }
}
.mm-tab-btn:hover { color: var(--text2) !important; }

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #hero-canvas { display: none; }
  .mm-scan-line { display: none; }
}

/* ── CSS containment ──────────────────────────────────────── */
.cq-wrapper { contain: layout style paint; }
.arch-diagram { content-visibility: auto; contain-intrinsic-size: 0 500px; }
.arch-node, .product-card { will-change: transform; }

/* ── Stat bar numbers ─────────────────────────────────────── */
.stat-num   { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── Ability pills ────────────────────────────────────────── */
.ability-pill {
  background: var(--bg3);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.ability-sub { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── MM tab active state ──────────────────────────────────── */
.mm-tab-btn {
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted); padding: 10px 14px;
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: color .2s;
  min-height: 44px;
}
.mm-tab-btn:hover { color: var(--text2); }
.mm-tab-btn.active-tab { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Touch-friendly tap targets ───────────────────────────── */
.btn, .mm-tab-btn, .pill, .nav-links a {
  min-height: 44px;
}

/* ── Mobile optimizations ─────────────────────────────────── */
@media (max-width: 768px) {
  #hero-canvas { display: none; }
  .arch-node:hover { transform: none; }
  .product-card:hover { transform: none; }
}

/* ── Accordion ────────────────────────────────────────────── */
.arch-accordion { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }

.accordion-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.accordion-item[open] { border-color: var(--border2); }
.accordion-item[open] .accordion-summary { color: var(--accent); }

.accordion-summary {
  padding: 20px 24px;
  cursor: pointer;
  color: var(--text2);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  transition: color .2s;
  user-select: none;
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::after {
  content: '+';
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s;
}
.accordion-item[open] .accordion-summary::after { transform: rotate(45deg); }
.accordion-summary:hover { color: var(--text); }

.accordion-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(102,192,244,0.1);
  border: 1px solid rgba(102,192,244,0.2);
  border-radius: 100px;
  padding: 3px 12px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
.accordion-body p { margin-bottom: 12px; }
.accordion-body ul, .accordion-body ol {
  padding-left: 20px;
  margin: 12px 0;
}
.accordion-body li { margin-bottom: 6px; }

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 16px;
  white-space: pre;
}

.pipeline-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.pipeline-step {
  background: rgba(31,111,235,0.12);
  color: var(--accent);
  border: 1px solid rgba(31,111,235,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.pipeline-arrow { color: var(--muted); font-size: 0.9rem; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.testimonial {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px;
  margin: 0;
  transition: transform .3s, box-shadow .3s;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.testimonial:nth-child(2) { border-left-color: var(--purple); }
.testimonial:nth-child(3) { border-left-color: var(--green); }
.testimonial p {
  color: var(--text2);
  font-style: italic;
  line-height: 1.8;
  margin: 0 0 20px;
  font-size: 0.95rem;
}
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
}
.testimonial footer span { color: var(--muted); }

/* ── Build Pipeline ───────────────────────────────────────── */
.pipeline-card {
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 48px;
}
.pipeline-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.pipe-step-node {
  flex: 1;
  min-width: 90px;
  text-align: center;
}
.pipe-icon {
  width: 52px; height: 52px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: box-shadow .3s;
}
.pipe-step-node:hover .pipe-icon {
  box-shadow: 0 0 20px currentColor;
}
.pipe-label { color: var(--text2); font-size: 0.9rem; font-weight: 600; }
.pipe-sub   { color: var(--muted); font-size: 0.75rem; margin-top: 3px; }
.pipe-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  position: relative;
  min-width: 24px;
}
.pipe-connector::after {
  content: '';
  position: absolute;
  right: -1px; top: -4px;
  border-left: 8px solid var(--c2);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.build-log {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  height: 130px;
  overflow-y: auto;
  line-height: 1.7;
  scrollbar-width: thin;
}
.build-log div { margin-bottom: 2px; }
@media (max-width: 600px) {
  .pipeline-steps-row { flex-direction: column; align-items: flex-start; }
  .pipe-connector { width: 2px; height: 24px; background: linear-gradient(180deg, var(--c1), var(--c2)); }
  .pipe-connector::after {
    right: -4px; top: auto; bottom: -1px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--c2);
    border-bottom: none;
  }
}

/* ── Mermaid Architecture Diagram ─────────────────────────── */
.mermaid-card {
  background: #161b22;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 48px;
  overflow-x: auto;
}
.mermaid-card .mermaid {
  min-height: 300px;
  display: flex;
  justify-content: center;
}
.mermaid-card svg {
  max-width: 100%;
  height: auto;
}
.arch-info-box {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--border2);
  min-height: 64px;
  transition: border-left-color .2s;
}
.arch-info-box p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

/* ── Scroll-triggered reveal animations ──────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children — up to 6 items */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }

/* Slide in from left/right variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
