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

:root {
  --js-yellow: #F7DF1E;
  --js-yellow-dark: #D4B800;
  --js-yellow-pale: #FEFCE8;
  --ink: #0A0A08;
  --ink-mid: #1C1C18;
  --ink-soft: #3A3A34;
  --muted: #6B6B62;
  --border: #E2E0D6;
  --surface: #FAFAF7;
  --page: #F5F3ED;
  --white: #ffffff;
  --green: #166534;
  --green-light: #DCFCE7;
  --red: #991B1B;
  --red-light: #FEE2E2;
  --blue: #1E3A8A;
  --blue-light: #DBEAFE;
  --amber: #92400E;
  --amber-light: #FEF3C7;
  --purple: #4C1D95;
  --purple-light: #EDE9FE;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-yellow: 0 8px 32px rgba(247,223,30,0.35);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: var(--js-yellow-dark); border-radius: 4px; }

/* ═══════════════════════════════
   NAV
═══════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 700;
  color: var(--ink); text-decoration: none;
  flex-shrink: 0;
}
.nav-brand .js-logo {
  width: 30px; height: 30px; background: var(--js-yellow);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800;
  color: var(--ink); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(247,223,30,0.4);
}
.nav-links {
  display: flex; gap: 2px; list-style: none;
  align-items: center; overflow-x: auto; scrollbar-width: none;
  flex: 1;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 6px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-links a:hover { background: var(--js-yellow-pale); color: var(--ink); }
.nav-pill {
  font-size: 11px; font-weight: 700;
  background: var(--js-yellow); color: var(--ink);
  padding: 5px 12px; border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  background: var(--ink-mid);
  position: relative; overflow: hidden;
  padding: clamp(70px,11vw,110px) 24px clamp(60px,9vw,90px);
  display: flex; align-items: center; justify-content: center;
  min-height: 560px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247,223,30,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,223,30,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(247,223,30,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(247,223,30,0.3);
  background: rgba(247,223,30,0.08);
  border-radius: var(--radius-pill);
  padding: 7px 18px; margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; color: var(--js-yellow);
  letter-spacing: 0.5px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--js-yellow); border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 7vw, 4.6rem);
  line-height: 1.08; color: var(--white);
  margin-bottom: 22px; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--js-yellow); }
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.65);
  max-width: 640px; margin: 0 auto 44px;
  line-height: 1.75;
}
.hero-code-strip {
  display: inline-flex; align-items: center;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(247,223,30,0.2);
  border-radius: 10px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; max-width: 100%;
}
.code-label {
  background: var(--js-yellow); color: var(--ink);
  padding: 10px 14px; font-weight: 700; font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; flex-shrink: 0;
}
.code-text { padding: 10px 18px; color: #93c5fd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code-text .str { color: #86efac; }
.code-text .kw { color: var(--js-yellow); }
.code-text .fn { color: #c084fc; }
.hero-stats {
  display: flex; justify-content: center;
  gap: clamp(16px,4vw,60px); flex-wrap: wrap;
  margin-top: 52px;
}
.hero-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem,3.5vw,2.6rem);
  color: var(--js-yellow); display: block;
  line-height: 1.1; margin-bottom: 5px;
}
.hero-stat .lbl {
  font-size: 11px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
.hero-divider { width: 1px; background: rgba(255,255,255,0.12); align-self: center; height: 40px; }

/* ═══════════════════════════════
   CONTAINER & SECTIONS
═══════════════════════════════ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(40px,8vw,88px) 0; }
section.alt { background: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--amber); margin-bottom: 12px;
}
.section-label::before { content: '//'; color: var(--js-yellow-dark); font-size: 13px; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem,4vw,2.6rem);
  color: var(--ink-mid); margin-bottom: 14px;
  line-height: 1.2; letter-spacing: -0.01em;
}
.section-desc {
  font-size: clamp(0.92rem, 2vw, 1.02rem); color: var(--muted);
  max-width: 680px; margin-bottom: 40px; line-height: 1.8;
}

/* ═══════════════════════════════
   VERDICT
═══════════════════════════════ */
.verdict-banner {
  background: var(--js-yellow);
  border-radius: var(--radius);
  padding: clamp(20px,4vw,44px);
  display: flex; gap: 28px; align-items: flex-start;
  box-shadow: var(--shadow-yellow);
  margin-bottom: 52px;
}
.verdict-icon { font-size: clamp(2rem, 5vw, 3rem); flex-shrink: 0; line-height: 1; }
.verdict-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.2rem,3vw,2rem);
  color: var(--ink); margin-bottom: 10px;
}
.verdict-body p { font-size: clamp(0.88rem, 2vw, 0.97rem); color: var(--ink-soft); line-height: 1.8; max-width: 760px; }

/* ═══════════════════════════════
   CODE BLOCKS
═══════════════════════════════ */
.code-block {
  background: #0D1117;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(247,223,30,0.15);
  box-shadow: var(--shadow-md);
  margin: 28px 0;
  font-family: 'JetBrains Mono', monospace;
}
.code-header {
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #FF5F57; }
.code-dots span:nth-child(2) { background: #FFBD2E; }
.code-dots span:nth-child(3) { background: #28CA42; }
.code-filename { font-size: 12px; color: rgba(255,255,255,0.4); }
.code-body { padding: clamp(14px,3vw,22px) clamp(14px,3vw,24px); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.code-body pre { font-size: clamp(11px, 2vw, 13.5px); line-height: 1.8; color: #e6edf3; white-space: pre; tab-size: 2; }
.c-kw { color: var(--js-yellow); }
.c-str { color: #79c0ff; }
.c-fn { color: #d2a8ff; }
.c-cm { color: #6e7681; font-style: italic; }
.c-num { color: #79c0ff; }
.c-obj { color: #ffa657; }

/* ═══════════════════════════════
   INTRO SPLIT
═══════════════════════════════ */
.intro-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.intro-text p { font-size: clamp(0.88rem, 2vw, 0.95rem); color: var(--ink-soft); line-height: 1.85; margin-bottom: 16px; }
.intro-text h2 { font-family: 'DM Serif Display', serif; font-size: clamp(1.4rem, 3vw, 1.7rem); margin-bottom: 16px; color: var(--ink); }

.aside-box {
  background: var(--ink-mid); border-radius: var(--radius);
  padding: clamp(18px,3vw,28px); color: white; position: sticky; top: 80px;
}
.aside-box h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; color: var(--js-yellow);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.aside-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.aside-item:last-child { border-bottom: none; }
.ai-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(247,223,30,0.12); border: 1px solid rgba(247,223,30,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ai-text strong { font-size: 13px; display: block; color: white; margin-bottom: 2px; }
.ai-text span { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ═══════════════════════════════
   INTRO WITH SIDEBAR LAYOUT
═══════════════════════════════ */
.intro-with-sidebar { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: start; }
.intro-with-sidebar > .intro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ═══════════════════════════════
   DEF GRID
═══════════════════════════════ */
.def-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 18px; margin-bottom: 48px;
}
.def-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(18px,3vw,26px) clamp(16px,3vw,24px);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.def-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.def-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--js-yellow);
}
.def-card .def-icon { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; display: block; }
.def-card h4 { font-size: clamp(0.88rem, 2vw, 0.95rem); font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.def-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════
   TIMELINE
═══════════════════════════════ */
.timeline-wrap {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: clamp(20px,4vw,48px);
  box-shadow: var(--shadow-sm);
}
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 15px;
  top: 8px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--js-yellow), rgba(247,223,30,0.1));
}
.tl-item { position: relative; margin-bottom: 44px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot {
  position: absolute; left: -36px; top: 5px;
  width: 20px; height: 20px;
  background: var(--js-yellow); border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--js-yellow-dark), var(--shadow-sm);
}
.tl-year {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--amber); margin-bottom: 6px; letter-spacing: 1.5px; text-transform: uppercase;
}
.tl-title { font-family: 'DM Serif Display', serif; font-size: clamp(1rem, 2.5vw, 1.18rem); margin-bottom: 8px; color: var(--ink); }
.tl-desc { font-size: clamp(0.85rem, 2vw, 0.91rem); color: var(--muted); line-height: 1.8; }
.tl-tag {
  display: inline-block; margin-top: 8px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--js-yellow-pale); color: var(--amber);
  border: 1px solid #FDE68A; font-family: 'JetBrains Mono', monospace;
}
.tl-extra {
  margin-top: 12px; padding: 14px 16px;
  background: var(--page); border-left: 3px solid var(--js-yellow);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.7;
}
.tl-extra strong { color: var(--amber); }

/* ═══════════════════════════════
   FEATURE CARDS
═══════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; }
.feat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(18px,3vw,28px) clamp(16px,3vw,26px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feat-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.feat-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px; border: 1px solid var(--border);
}
.feat-card h3 { font-size: clamp(0.92rem, 2vw, 1rem); font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.feat-card p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.feat-mono {
  margin-top: 12px; font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--amber);
  background: var(--amber-light); padding: 4px 10px;
  border-radius: 6px; display: inline-block; border: 1px solid #FDE68A;
}
.feat-detail {
  margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* ═══════════════════════════════
   PILLS & TABLE
═══════════════════════════════ */
.pill {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill); border: 1px solid;
}
.pill-green { background: var(--green-light); color: var(--green); border-color: #BBF7D0; }
.pill-yellow { background: var(--js-yellow-pale); color: var(--amber); border-color: #FDE68A; }
.pill-blue { background: var(--blue-light); color: var(--blue); border-color: #BFDBFE; }
.pill-purple { background: var(--purple-light); color: var(--purple); border-color: #DDD6FE; }
.pill-red { background: var(--red-light); color: var(--red); border-color: #FECACA; }
.score { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--ink); font-size: 14px; }

.table-wrap {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm);
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
thead tr { background: var(--ink-mid); }
thead th {
  padding: 14px 18px; font-size: 12px; font-weight: 600; text-align: left;
  color: rgba(255,255,255,0.75); white-space: nowrap;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
}
tbody td {
  padding: 13px 18px; font-size: 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--ink-soft);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--js-yellow-pale); }
.lang-name { font-weight: 700; color: var(--ink); font-family: 'JetBrains Mono', monospace; }

/* ═══════════════════════════════
   PROS CONS
═══════════════════════════════ */
.pros-cons-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pros-block, .cons-block { border-radius: var(--radius); padding: clamp(18px,3vw,28px) clamp(16px,3vw,26px); }
.pros-block { background: var(--green-light); border: 1px solid #BBF7D0; }
.cons-block { background: var(--red-light); border: 1px solid #FECACA; }
.pros-block h3, .cons-block h3 { font-size: clamp(0.92rem, 2vw, 1rem); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pros-block h3 { color: var(--green); }
.cons-block h3 { color: var(--red); }
.pc-list { list-style: none; }
.pc-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: clamp(12.5px, 2vw, 13.5px); padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--ink-soft); line-height: 1.6;
}
.pc-list li:last-child { border-bottom: none; }
.pc-list .ic { font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.pc-list li small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ═══════════════════════════════
   FRAMEWORK CARDS
═══════════════════════════════ */
.fw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 22px; }
.fw-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex; flex-direction: column;
}
.fw-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fw-header {
  padding: clamp(16px,3vw,22px) clamp(16px,3vw,24px) clamp(14px,2.5vw,18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.fw-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}
.fw-meta h3 { font-size: clamp(1rem, 2vw, 1.1rem); font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.fw-meta .fw-type { font-size: 12px; color: var(--muted); }
.fw-body { padding: clamp(16px,3vw,20px) clamp(16px,3vw,24px); flex: 1; }
.fw-body p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.fw-body .fw-extra { font-size: 12.5px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; padding: 12px 14px; background: var(--page); border-radius: 8px; border-left: 3px solid var(--js-yellow); }
.fw-stats-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fw-stat { background: var(--page); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; flex: 1; min-width: 80px; }
.fw-stat .fsl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 2px; }
.fw-stat .fsv { font-size: 13px; font-weight: 700; color: var(--ink); font-family: 'JetBrains Mono', monospace; }
.use-case-tag {
  display: inline-block; margin-top: 14px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--blue-light); color: var(--blue); border: 1px solid #BFDBFE;
}

/* ═══════════════════════════════
   USE CASES
═══════════════════════════════ */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.uc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px,3vw,22px) clamp(14px,2.5vw,20px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.uc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.uc-icon { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; display: block; }
.uc-card h4 { font-size: clamp(0.86rem, 2vw, 0.93rem); font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.uc-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.uc-best { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--blue); }
.uc-examples { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.uc-examples strong { color: var(--ink-soft); }

/* ═══════════════════════════════
   STATS STRIP
═══════════════════════════════ */
.stats-strip { background: var(--js-yellow); padding: clamp(32px,6vw,52px) 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 20px; text-align: center;
}
.stat-item .sn {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem,3vw,2.4rem); color: var(--ink);
  display: block; margin-bottom: 6px;
}
.stat-item .sl { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ═══════════════════════════════
   FAQ
═══════════════════════════════ */
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-q {
  padding: clamp(14px,3vw,18px) clamp(16px,3vw,24px);
  font-weight: 600; font-size: clamp(0.88rem, 2vw, 0.97rem);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; color: var(--ink);
  user-select: none; transition: background 0.15s;
}
.faq-q:hover { background: var(--js-yellow-pale); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--js-yellow-pale); border: 1px solid #FDE68A;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; font-weight: 700;
  color: var(--amber); transition: transform 0.25s, background 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.faq-a {
  padding: 0 clamp(16px,3vw,24px); font-size: clamp(0.86rem, 2vw, 0.92rem);
  color: var(--muted);
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s;
  line-height: 1.85;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 clamp(16px,3vw,24px) 20px; }
.faq-item.open .faq-icon { background: var(--js-yellow); transform: rotate(45deg); }
.faq-item.open .faq-q { color: var(--amber); }
.faq-callout {
  margin-top: 12px; padding: 12px 16px;
  background: var(--amber-light); border-radius: 8px;
  font-size: 12px; color: var(--amber);
  border: 1px solid #FDE68A;
}

/* ═══════════════════════════════
   CONCEPT EXPLAINER
═══════════════════════════════ */
.concept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; margin-bottom: 32px; }
.concept-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.concept-header {
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.concept-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--js-yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.concept-header h3 { font-size: clamp(0.9rem, 2vw, 0.97rem); font-weight: 700; color: var(--ink); }
.concept-body { padding: 18px 20px; }
.concept-body p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.concept-body p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════
   QUIRKS
═══════════════════════════════ */
.quirk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.quirk-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(14px,3vw,20px);
  box-shadow: var(--shadow-sm);
}
.quirk-title { font-size: clamp(0.86rem, 2vw, 0.92rem); font-weight: 700; color: var(--red); margin-bottom: 10px; }
.quirk-code {
  background: #0D1117; border-radius: 8px; padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: clamp(10px, 2vw, 12px);
  color: #e6edf3; margin-bottom: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.quirk-explain { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.quirk-fix { margin-top: 8px; font-size: 12px; color: var(--green); font-weight: 600; }

/* ═══════════════════════════════
   NOT JUST SCRIPTING
═══════════════════════════════ */
.njs-hero {
  background: linear-gradient(135deg, var(--ink-mid) 0%, #0f1f3d 100%);
  border-radius: var(--radius); padding: clamp(24px,5vw,56px);
  margin-bottom: 48px; position: relative; overflow: hidden;
}
.njs-hero::before {
  content: '</>'; position: absolute; right: -20px; top: -20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(60px,12vw,160px); font-weight: 700;
  color: rgba(247,223,30,0.05); line-height: 1; pointer-events: none;
}
.njs-hero h3 { font-family: 'DM Serif Display', serif; font-size: clamp(1.2rem,3vw,2rem); color: var(--white); margin-bottom: 14px; }
.njs-hero h3 span { color: var(--js-yellow); }
.njs-hero p { font-size: clamp(0.88rem, 2vw, 0.97rem); color: rgba(255,255,255,0.65); line-height: 1.85; max-width: 780px; }

.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.vs-card { border-radius: var(--radius); padding: clamp(18px,3vw,28px) clamp(16px,3vw,26px); border: 2px solid; }
.vs-card.scripting { background: #fff8f8; border-color: #fecaca; }
.vs-card.prog-lang { background: #f0fff4; border-color: #bbf7d0; }
.vs-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.vs-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 1px;
}
.vs-badge.myth { background: #fecaca; color: var(--red); }
.vs-badge.fact { background: #bbf7d0; color: var(--green); }
.vs-card h4 { font-size: clamp(0.92rem, 2vw, 1.02rem); font-weight: 700; margin-bottom: 14px; }
.vs-card.scripting h4 { color: var(--red); }
.vs-card.prog-lang h4 { color: var(--green); }
.vs-list { list-style: none; }
.vs-list li {
  font-size: clamp(12.5px, 2vw, 13.5px); color: var(--ink-soft); padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.6;
}
.vs-list li:last-child { border-bottom: none; }
.vs-list .vi { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; margin-bottom: 40px; }
.criteria-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px,3vw,24px) clamp(14px,2.5vw,22px);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.criteria-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.criteria-card::before { content: '✅'; position: absolute; top: 16px; right: 16px; font-size: 18px; }
.criteria-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--js-yellow), #10B981);
}
.criteria-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; margin-right: 28px; }
.criteria-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.criteria-proof {
  margin-top: 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--blue);
  background: var(--blue-light); padding: 3px 9px;
  border-radius: 5px; display: inline-block; border: 1px solid #BFDBFE;
}

.myth-busters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.myth-row {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 1fr;
}
.myth-col, .bust-col { padding: clamp(14px,3vw,20px) clamp(14px,3vw,22px); }
.myth-col { background: #fff8f8; border-right: 1px solid #fecaca; display: flex; flex-direction: column; gap: 8px; }
.bust-col { background: #f0fff4; display: flex; flex-direction: column; gap: 8px; }
.col-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px;
}
.myth-col .col-label { color: var(--red); }
.bust-col .col-label { color: var(--green); }
.myth-col p, .bust-col p { font-size: clamp(12.5px, 2vw, 13.5px); color: var(--ink-soft); line-height: 1.65; }
.myth-col p strong { color: var(--red); }
.bust-col p strong { color: var(--green); }

.lang-spectrum { background: var(--ink-mid); border-radius: var(--radius); padding: clamp(20px,4vw,32px); margin-bottom: 40px; }
.lang-spectrum h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
  color: var(--js-yellow); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 24px;
}
.spectrum-bar { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 6px; display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.spectrum-item {
  flex: 1; min-width: 70px; text-align: center;
  padding: 10px 8px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  transition: transform 0.2s;
}
.spectrum-item:hover { transform: scale(1.05); }
.spectrum-item.scripting-type { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.spectrum-item.general-type { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.2); }
.spectrum-item.js-highlight { background: rgba(247,223,30,0.2); color: var(--js-yellow); border: 1px solid rgba(247,223,30,0.4); }
.spectrum-item .si-label { font-size: 10px; font-weight: 400; opacity: 0.7; display: block; margin-top: 3px; }
.spectrum-legend { display: flex; gap: 20px; flex-wrap: wrap; }
.sl-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.sl-dot { width: 10px; height: 10px; border-radius: 3px; }
.sl-dot.s { background: rgba(239,68,68,0.5); }
.sl-dot.g { background: rgba(59,130,246,0.5); }
.sl-dot.j { background: rgba(247,223,30,0.5); }

.big-verdict {
  background: var(--js-yellow); border-radius: var(--radius);
  padding: clamp(18px,4vw,40px);
  display: flex; align-items: center; gap: 24px;
  box-shadow: var(--shadow-yellow);
}
.bv-icon { font-size: clamp(2.5rem, 5vw, 3.5rem); flex-shrink: 0; }
.bv-body h4 { font-family: 'DM Serif Display', serif; font-size: clamp(1.1rem,2.5vw,1.7rem); color: var(--ink); margin-bottom: 8px; }
.bv-body p { font-size: clamp(0.88rem, 2vw, 0.93rem); color: var(--ink-soft); line-height: 1.8; }

/* ═══════════════════════════════
   READING PATH & CALLOUT
═══════════════════════════════ */
.reading-path { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.rp-step {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: clamp(11px, 2vw, 13px); color: var(--ink-soft); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.rp-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--js-yellow); color: var(--ink);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; flex-shrink: 0;
}
.rp-arrow { color: var(--muted); font-size: 18px; }

.callout {
  background: var(--page); border: 1px solid var(--border);
  border-left: 4px solid var(--js-yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: clamp(12px,2vw,16px) clamp(14px,2.5vw,20px); margin: 24px 0;
  font-size: clamp(0.87rem, 2vw, 0.92rem); color: var(--ink-soft); line-height: 1.8;
}
.callout strong { color: var(--amber); }

/* ═══════════════════════════════
   RUNTIME CARDS
═══════════════════════════════ */
.runtime-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.runtime-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(16px,3vw,22px) clamp(14px,2.5vw,20px);
  box-shadow: var(--shadow-sm); position: relative;
}
.runtime-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-family: 'JetBrains Mono', monospace;
}
.runtime-icon { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 12px; display: block; }
.runtime-card h4 { font-size: clamp(0.9rem, 2vw, 0.97rem); font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.runtime-card p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.runtime-meta { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.runtime-tag {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; font-family: 'JetBrains Mono', monospace;
  background: var(--page); color: var(--muted); border: 1px solid var(--border);
}

/* ═══════════════════════════════
   AD UNIT STYLES
═══════════════════════════════ */
.ad-wrapper { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto; }
.ad-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted); opacity: 0.6;
}
.ad-sidebar-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-sidebar-sticky .ad-label { font-size: 9px; }
.ad-sidebar-frame {
  background: #0A0A08; border: 1px solid rgba(247,223,30,0.18);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 0 0 1px rgba(247,223,30,0.07);
  transition: box-shadow 0.3s;
}
.ad-sidebar-frame:hover { box-shadow: 0 8px 32px rgba(247,223,30,0.2), 0 0 0 1px rgba(247,223,30,0.2); }
.ad-banner-300 {
  background: var(--ink-mid); border: 1px solid rgba(247,223,30,0.15);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s, transform 0.3s; width: fit-content; margin: 0 auto;
}
.ad-banner-300:hover { box-shadow: 0 8px 32px rgba(247,223,30,0.18); transform: translateY(-2px); }
.ad-section { padding: 36px 0; position: relative; }
.ad-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 700px; margin: 0 auto; position: relative; overflow: hidden;
}
.ad-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--js-yellow), var(--js-yellow-dark));
}
.ad-card-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--amber);
}
.ad-native-strip {
  background: linear-gradient(135deg, var(--ink-mid) 0%, #0f1822 100%);
  border-top: 1px solid rgba(247,223,30,0.12);
  border-bottom: 1px solid rgba(247,223,30,0.12);
  padding: 28px 24px; position: relative; overflow: hidden;
}
.ad-native-strip::before {
  content: 'SPONSORED'; position: absolute; top: 12px; right: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 2px; color: rgba(247,223,30,0.35);
}
.ad-native-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.ad-divider { padding: 32px 0; background: var(--page); display: flex; justify-content: center; }
.ad-pill-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-pill-badge {
  background: var(--amber-light); border: 1px solid #FDE68A;
  border-radius: var(--radius-pill); padding: 4px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--amber);
}
.content-with-sidebar { display: grid; grid-template-columns: 1fr 180px; gap: 32px; align-items: start; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.content-main { min-width: 0; }
.sidebar-ad-col { width: 180px; }

/* ═══════════════════════════════
   CONCLUSION & FOOTER
═══════════════════════════════ */
.conclusion {
  background: var(--ink-mid); text-align: center;
  padding: clamp(48px,10vw,96px) 24px; position: relative; overflow: hidden;
}
.conclusion .hero-grid-bg { opacity: 0.5; }
.conclusion-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.conclusion h2 {
  font-family: 'DM Serif Display', serif; font-size: clamp(1.6rem,4vw,2.8rem);
  color: var(--white); margin-bottom: 18px; line-height: 1.2;
}
.conclusion h2 span { color: var(--js-yellow); }
.conclusion p { font-size: clamp(0.95rem, 2vw, 1.05rem); color: rgba(255,255,255,0.6); margin-bottom: 36px; line-height: 1.8; }
.cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  padding: clamp(10px,2vw,13px) clamp(18px,3vw,26px); border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: clamp(12px, 2vw, 14px);
  transition: transform 0.18s, box-shadow 0.18s;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.cta-primary { background: var(--js-yellow); color: var(--ink); }
.cta-secondary { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: white; }

footer {
  background: #0A0A08; color: #4A4A42;
  text-align: center; padding: clamp(24px,4vw,32px) 24px; font-size: 13px;
}
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: #6B6B62; text-decoration: none; transition: color 0.15s; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.footer-links a:hover { color: var(--js-yellow); }

.back-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  width: 44px; height: 44px;
  background: var(--js-yellow); color: var(--ink);
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(247,223,30,0.5);
  font-size: 18px; font-weight: 700;
  transition: opacity 0.3s, transform 0.2s;
  opacity: 0; pointer-events: none; text-decoration: none;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════ */

/* ── Medium-large: up to 1200px ── */
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .intro-split { gap: 28px; }
}

/* ── Small desktops: up to 1060px ── */
@media (max-width: 1060px) {
  .intro-with-sidebar { grid-template-columns: 1fr; }
  #sidebar-ad-col { display: none; }
}

/* ── Tablets landscape: up to 1024px ── */
@media (max-width: 1024px) {
  .nav-links a { padding: 6px 9px; font-size: 12px; }
  .fw-grid { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
  .def-grid { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
  .concept-grid { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
  .criteria-grid { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
  .hero { min-height: 480px; }
  .hero-glow { width: 500px; height: 380px; }
}

/* ── Tablets portrait: up to 960px ── */
@media (max-width: 960px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar-ad-col { display: none; }
  .ad-sidebar-sticky { position: static; }
}

/* ── Tablets portrait: up to 900px ── */
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-with-sidebar > .intro-split { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .vs-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .myth-row { grid-template-columns: 1fr; }
  .myth-col { border-right: none; border-bottom: 1px solid #fecaca; }
  .pros-cons-wrap { grid-template-columns: 1fr; gap: 20px; }
  .runtime-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
  .uc-grid { grid-template-columns: repeat(3,1fr); }
  .stats-inner { grid-template-columns: repeat(3,1fr); }
}

/* ── Large phones: up to 768px ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 16px; }
  .nav-inner { height: 56px; gap: 12px; }
  .nav-links { display: none; }
  .nav-pill { font-size: 10px; padding: 4px 10px; }

  .hero { min-height: 420px; padding: 56px 20px 48px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 3rem); }
  .hero-badge { font-size: 11px; padding: 6px 14px; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .hero-divider { display: none; }
  .hero-stat .num { font-size: clamp(1.5rem, 5vw, 2rem); }

  .verdict-banner { flex-direction: column; gap: 14px; }
  .vs-grid { grid-template-columns: 1fr; }
  .bv-icon { display: none; }
  .big-verdict { gap: 16px; }

  .fw-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .def-grid { grid-template-columns: 1fr 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
  .quirk-grid { grid-template-columns: 1fr 1fr; }
  .uc-grid { grid-template-columns: repeat(2,1fr); }
  .stats-inner { grid-template-columns: repeat(2,1fr); }

  .reading-path { gap: 8px; }
  .rp-step { font-size: 11px; padding: 7px 12px; }
  .rp-arrow { font-size: 14px; }

  .timeline { padding-left: 32px; }
  .tl-dot { left: -26px; width: 16px; height: 16px; }
  .timeline::before { left: 11px; }

  .code-body pre { font-size: 11px; }

  .cta-group { flex-direction: column; align-items: center; }
  .cta-btn { width: 100%; max-width: 320px; justify-content: center; }

  .footer-links { gap: 12px; }
  .back-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }
}

/* ── Medium phones: up to 640px ── */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .def-grid { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
  .quirk-grid { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: repeat(2,1fr); }
  .runtime-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .spectrum-item { min-width: 60px; font-size: 10px; padding: 8px 4px; }
  .fw-stats-row { flex-direction: column; }
  .fw-stat { min-width: unset; }
  .hero-code-strip { font-size: 11px; }
  .code-text { font-size: 11px; }
  .pros-cons-wrap { grid-template-columns: 1fr; }
  .myth-row { grid-template-columns: 1fr; }
}

/* ── Small phones: up to 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero { padding: 44px 14px 36px; min-height: 360px; }
  .hero h1 { font-size: clamp(1.7rem, 9vw, 2.4rem); line-height: 1.1; }
  .hero-badge { font-size: 10px; padding: 5px 12px; }
  .hero-sub { font-size: 0.9rem; }
  .hero-stats { flex-direction: column; align-items: center; gap: 18px; }
  .hero-stat { text-align: center; }

  .section-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .section-desc { font-size: 0.9rem; }
  .section-label { font-size: 10px; }

  .verdict-banner { padding: 18px; }
  .verdict-icon { font-size: 1.8rem; }

  .uc-grid { grid-template-columns: 1fr; }
  .runtime-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .ad-sidebar-sticky { display: none; }

  .njs-hero { padding: 20px; }
  .lang-spectrum { padding: 16px; }
  .spectrum-bar { flex-wrap: wrap; }
  .spectrum-item { flex: 0 0 calc(33.333% - 4px); min-width: unset; }

  .timeline-wrap { padding: 18px; }
  .timeline { padding-left: 26px; }
  .tl-dot { left: -22px; width: 14px; height: 14px; }
  .timeline::before { left: 9px; }

  .fw-header { gap: 12px; }
  .fw-icon { width: 40px; height: 40px; font-size: 20px; }
  .fw-meta h3 { font-size: 1rem; }

  .faq-q { padding: 14px 16px; font-size: 0.86rem; gap: 10px; }
  .faq-a { padding: 0 16px; font-size: 0.85rem; }
  .faq-item.open .faq-a { padding: 0 16px 16px; }

  .aside-item { gap: 8px; }
  .ai-icon { width: 30px; height: 30px; font-size: 14px; }

  .concept-header { padding: 14px 16px; }
  .concept-body { padding: 14px 16px; }
  .quirk-card { padding: 14px; }

  .footer-links { gap: 10px; }
  footer { font-size: 12px; padding: 20px 14px; }
}

/* ── Extra small: up to 380px ── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero { padding: 36px 12px 30px; min-height: 320px; }
  .hero h1 { font-size: clamp(1.5rem, 10vw, 2rem); }
  .nav-inner { height: 52px; }
  .nav-brand { font-size: 12px; }
  .nav-brand .js-logo { width: 26px; height: 26px; font-size: 11px; }
  .nav-pill { font-size: 9px; padding: 4px 8px; }

  .stats-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-item .sn { font-size: 1.5rem; }

  .spectrum-item { flex: 0 0 calc(50% - 4px); }
  .spectrum-legend { flex-direction: column; gap: 8px; }

  .reading-path { flex-direction: column; }
  .rp-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 18px; }

  .cta-btn { padding: 10px 16px; font-size: 11px; }

  .tl-title { font-size: 1rem; }
  .tl-extra { font-size: 12px; padding: 10px 12px; }

  .concept-num { width: 30px; height: 30px; font-size: 13px; }
  .concept-header h3 { font-size: 0.88rem; }

  .big-verdict { flex-direction: column; gap: 12px; padding: 16px; }
  .fw-stats-row { gap: 6px; }

  .footer-links { gap: 8px; }
  .footer-links a { font-size: 11px; }
}

/* ── Touch devices: disable hover transforms ── */
@media (hover: none) {
  .def-card:hover,
  .feat-card:hover,
  .fw-card:hover,
  .uc-card:hover,
  .criteria-card:hover,
  .quirk-card:hover,
  .runtime-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .spectrum-item:hover { transform: none; }
  .back-top:hover { transform: none; }
  .ad-banner-300:hover { transform: none; }
}

/* ── Print ── */
@media print {
  .nav, .back-top, .hero-grid-bg, .hero-glow, .stats-strip,
  .ad-banner-300, .ad-native-strip, .ad-divider, .ad-sidebar-sticky,
  .ad-card, .sidebar-ad-col { display: none; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 32px 24px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 32px 0; page-break-inside: avoid; }
  .code-block { border: 1px solid #ccc; box-shadow: none; }
  .feat-card, .fw-card, .def-card, .criteria-card { box-shadow: none; }
  .conclusion { padding: 32px 24px; }
  .cta-group { display: none; }
}
