/* ---------- Tokens ---------- */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f4f2;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --fire: #c2410c;
  --smoke: #0369a1;
  --gt: #15803d;
  --on-accent: #ffffff;
  --grid: rgba(28, 25, 23, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d;
    --surface: #141416;
    --surface-2: #1b1b1e;
    --text: #ededed;
    --muted: #a1a1aa;
    --border: #2a2a2e;
    --fire: #ff7a2e;
    --smoke: #4fb3ff;
    --gt: #4ade80;
    --on-accent: #0c0c0d;
    --grid: rgba(255, 255, 255, 0.04);
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0c0d;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --text: #ededed;
  --muted: #a1a1aa;
  --border: #2a2a2e;
  --fire: #ff7a2e;
  --smoke: #4fb3ff;
  --gt: #4ade80;
  --on-accent: #0c0c0d;
  --grid: rgba(255, 255, 255, 0.04);
  --shadow: none;
  color-scheme: dark;
}

/* ---------- Language switching ---------- */
html[data-lang="en"] [lang="tr"],
html[data-lang="tr"] [lang="en"] {
  display: none !important;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

a {
  color: inherit;
}

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

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0 0;
}

.section-head {
  margin-bottom: 32px;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--fire);
  margin: 0 0 8px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
}

.muted {
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.logo span {
  color: var(--fire);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.toggles {
  display: flex;
  gap: 8px;
}

.icon-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  border-color: var(--muted);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}

/* ---------- Detection box motif ---------- */
.det {
  position: relative;
}

.det::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.5px solid var(--det-color, var(--fire));
  border-radius: 2px;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.18s, transform 0.18s;
  pointer-events: none;
}

.det::after {
  content: attr(data-label);
  position: absolute;
  left: -8px;
  top: -8px;
  transform: translateY(-100%);
  padding: 1px 6px;
  background: var(--det-color, var(--fire));
  color: var(--on-accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.6;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}

.det:hover::before,
.det:focus-within::before,
.det.is-on::before {
  opacity: 1;
  transform: scale(1);
}

.det:hover::after,
.det:focus-within::after,
.det.is-on::after {
  opacity: 1;
}

.det.smoke { --det-color: var(--smoke); }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 40px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--border);
}

.hero-status {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 40px;
}

.hero-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gt);
  margin-right: 8px;
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-status .after { display: none; }
.hero-status.done .before { display: none; }
.hero-status.done .after { display: inline; }
.hero-status.done .dot { animation: none; }

@keyframes pulse {
  50% { opacity: 0.3; }
}

.hero h1 {
  display: inline-block;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-top: 16px;
}

.hero h1.det::before {
  inset: -4px -12px;
}

.hero h1.det::after {
  left: -12px;
  top: -4px;
  font-size: 13px;
  padding: 2px 8px;
}

.hero .role {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  margin: 24px 0 12px;
}

.hero .lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 12px;
}

.hero .meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.btn:hover {
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Term of the day ---------- */
.actions + .term-card {
  margin-top: -24px;
}

.term-card {
  max-width: 560px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--smoke);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow);
}

.term-head,
.term-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.term-head > span:first-child {
  color: var(--smoke);
}

.term-card .term-name {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
}

.term-def {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 12px;
  min-height: 3.2em;
}

.term-next {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.term-next:hover {
  color: var(--smoke);
}

footer .hint {
  opacity: 0.35;
  letter-spacing: 0.15em;
  cursor: help;
}

/* ---------- Easter egg: fire mode ---------- */
.fire-mode .det::before,
.fire-mode .det::after {
  opacity: 1;
  transform: scale(1);
}

.fire-hud {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(255, 90, 20, 0.22) 100%);
}

.fire-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: #c40000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.fire-alarm {
  animation: blink 0.9s ease-in-out infinite alternate;
}

@keyframes blink {
  to { opacity: 0.35; }
}

.fire-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1.5px solid #ff6a1a;
  border-radius: 50%;
}

.fire-crosshair::before,
.fire-crosshair::after {
  content: "";
  position: absolute;
  background: #ff6a1a;
}

.fire-box {
  position: absolute;
  border: 2px solid var(--box, #ff6a1a);
  animation: box-life 1.6s ease-out forwards;
}

.fire-box span {
  position: absolute;
  left: -2px;
  top: 0;
  transform: translateY(-100%);
  padding: 1px 6px;
  background: var(--box, #ff6a1a);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes box-life {
  0% { opacity: 0; transform: scale(1.15); }
  12% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.fire-crosshair::before { left: 50%; top: -14px; bottom: -14px; width: 1.5px; }
.fire-crosshair::after { top: 50%; left: -14px; right: -14px; height: 1.5px; }

.fire-embers {
  position: absolute;
  inset: 0;
}

.fire-land {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid #ff7a2e;
  border-radius: 8px;
  background: rgba(12, 12, 13, 0.85);
  color: #ff7a2e;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.featured-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.featured-media img {
  width: 100%;
  height: auto;
}

.featured-media + .caption {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

.featured h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.featured p {
  color: var(--muted);
  margin: 0 0 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.stat strong {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--fire);
}

.stat span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.tags li {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- About: code window ---------- */
.code-window {
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

.code-bar .dots {
  display: inline-flex;
  gap: 6px;
}

.code-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code {
  margin: 0;
  padding: 18px 20px 8px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  border: none;
  background: none;
}

.code .ln {
  display: block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}

.code .ln.on {
  opacity: 1;
  transform: none;
}

.code .ln.cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--fire);
  animation: caret 1s steps(2, start) infinite;
}

@keyframes caret {
  to { visibility: hidden; }
}

.code .k { color: #a855f7; }
.code .cl { color: var(--smoke); }
.code .f { color: var(--smoke); }
.code .s { color: var(--gt); }
.code .n { color: var(--fire); }
.code .c { color: var(--muted); font-style: italic; }

.code-status {
  margin: 0;
  padding: 0 20px 14px;
  font-size: 12px;
  color: var(--muted);
}

.code-status .ok { display: none; color: var(--gt); }
.code-window.done .code-status .todo { display: none; }
.code-window.done .code-status .ok { display: inline; }

/* ---------- Journey ---------- */
.journey {
  --fill: 0px;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
}

.journey::before,
.journey::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 2px;
  border-radius: 2px;
}

.journey::before {
  bottom: 0;
  background: var(--border);
}

.journey::after {
  height: var(--fill);
  max-height: calc(100% - 6px);
  background: linear-gradient(var(--smoke), var(--fire));
}

.journey .stop {
  position: relative;
  padding: 0 0 44px 36px;
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}

.journey .stop:last-child {
  padding-bottom: 0;
}

.journey .stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  z-index: 1;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.journey .stop.reached {
  opacity: 1;
  transform: none;
}

.journey .stop.reached::before {
  border-color: var(--fire);
  background: var(--fire);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fire) 20%, transparent);
}

.journey .stop.future::before {
  border-style: dashed;
}

.journey .stop.future.reached::before {
  background: var(--bg);
}

.journey .when {
  display: block;
  font-size: 12.5px;
  color: var(--fire);
  margin-bottom: 4px;
}

.journey h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.job-role {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.journey p,
.journey ul {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 6px;
}

.journey ul {
  padding-left: 18px;
}

.journey ul li {
  margin-bottom: 4px;
}

.journey a {
  color: var(--text);
}

/* ---------- Scroll to sort ---------- */
.sorter {
  height: 220vh;
  padding: 0;
  margin-top: 96px;
}

.sorter-sticky {
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.sorter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
}

.sorter-head .eyebrow {
  width: 100%;
  margin: 0;
}

.sorter-head h2 {
  font-size: clamp(26px, 4vw, 34px);
}

.sorter-tabs {
  display: flex;
  gap: 6px;
}

.sorter-tabs button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

.sorter-tabs button[aria-selected="true"] {
  border-color: var(--text);
  color: var(--text);
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: min(42vh, 320px);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.bars span {
  flex: 1;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  transition: height 0.12s;
}

.bars span.hi {
  background: var(--fire);
}

.bars span.done {
  background: var(--gt);
}

.sorter-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sorter-stats b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Projects ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.card .tags {
  margin: 0;
}

/* ---------- Skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 32px;
}

.skills h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: 12px;
}

.skills .tags li {
  color: var(--text);
  font-size: 12.5px;
}

/* ---------- Education ---------- */
.edu {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.panel h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.panel p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.contact h2 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 12px;
}

.contact p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

.contact .actions {
  justify-content: center;
  margin: 0;
}

footer {
  padding: 48px 0;
  margin-top: 96px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ---------- Case study ---------- */
.cs-hero {
  padding: 72px 0 0;
}

.back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
}

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

.cs-hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  max-width: 820px;
  margin-bottom: 16px;
}

.cs-hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.cs-hero .stats {
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0;
}

.figure {
  margin: 32px 0 0;
}

.figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: clamp(24px, 3.6vw, 30px);
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0 0 16px;
}

.prose strong {
  color: var(--text);
}

.prose ol,
.prose ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 6px;
}

.callout {
  padding: 20px 22px;
  border-left: 3px solid var(--fire);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}

.callout p {
  margin: 0;
  color: var(--text);
}

.big-number {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 40px;
  font-weight: 600;
  color: var(--fire);
  line-height: 1.1;
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
}

td.num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

tr:last-child td {
  border-bottom: none;
}

tr.best td {
  color: var(--fire);
  font-weight: 600;
}

.two-figs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

pre {
  margin: 16px 0 24px;
  padding: 16px;
  overflow-x: auto;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .featured,
  .edu,
  .two-figs {
    grid-template-columns: 1fr;
  }

  .cs-hero .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding-top: 72px;
  }

  .hero {
    padding-top: 80px;
  }

  .featured {
    padding: 16px;
    gap: 24px;
  }

  .contact {
    padding: 48px 16px;
  }

  .code {
    font-size: 11.5px;
    padding: 14px 14px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
