:root {
  --bg: #030811;
  --card: rgba(7, 16, 28, 0.9);
  --line: #1a293b;
  --text: #f5f7ff;
  --muted: #91a0b5;
  --purple: #9b3cff;
  --blue: #3d6dff;
  --green: #5ee6a8;
  --orange: #ff9d5c;
  --radius: 16px;
}
html{
  scrollbar-width: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 70% 0%, rgba(88, 39, 180, 0.13), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input {
  font: inherit;
}
.site-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.11;
  pointer-events: none;
  z-index: -1;
}
.glow-one {
  background: #8b25ff;
  top: 5%;
  right: -170px;
}
.glow-two {
  background: #276cff;
  bottom: -100px;
  left: -180px;
}
.header {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 4%;
  position: sticky;
  top: 0;
  background: rgba(3, 8, 17, 0.84);
  backdrop-filter: blur(20px);
  z-index: 20;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-mark {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 32px;
  border: 1px solid #873cff;
  color: #c889ff;
  border-radius: 7px;
  font: 700 11px "JetBrains Mono";
  box-shadow: 0 0 20px rgba(139, 44, 255, 0.28);
}
.nav {
  display: flex;
  align-items: center;
  gap: 27px;
  height: 100%;
}
.nav a {
  font-size: 12px;
  color: #aeb9c8;
  position: relative;
}
.nav a:hover,
.nav a.active {
  color: #c17bff;
}
.nav a.active:after {
  content: "";
  position: absolute;
  bottom: -29px;
  left: 0;
  right: 0;
  height: 2px;
  background: #b53cff;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #07101c;
  display: flex;
  align-items: center;
  padding-left: 12px;
}
.search input {
  width: 145px;
  background: transparent;
  border: 0;
  outline: 0;
  color: white;
  font-size: 11px;
}
.search kbd {
  font-size: 9px;
  color: #738197;
  background: #101b29;
  padding: 4px 6px;
  border-radius: 5px;
}
.search button,
.icon-btn,
.menu-btn {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.search button {
  font-size: 20px;
  padding: 0 9px;
}
.icon-btn {
  font-size: 21px;
}
.subscribe-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(100deg, #8128ff, #4d5dff);
  color: white;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(108, 38, 255, 0.25);
}
.subscribe-btn {
  padding: 10px 15px;
  font-size: 11px;
}
.menu-btn {
  display: none;
  font-size: 21px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 3%;
}
.hero {
  min-height: 495px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 52px 25px 35px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid rgba(143, 58, 255, 0.35);
  border-radius: 20px;
  background: rgba(114, 44, 255, 0.08);
  font: 600 9px "JetBrains Mono";
  letter-spacing: 0.08em;
  color: #c08bff;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  margin: 18px 0;
}
.hero h1 span {
  background: linear-gradient(90deg, #a33dff, #546dff);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-copy > p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  margin: 27px 0;
}
.primary-btn {
  padding: 13px 19px;
  font-size: 12px;
}
.secondary-btn {
  padding: 12px 18px;
  border: 1px solid #314055;
  border-radius: 8px;
  font-size: 12px;
}
.code-stat {
  font: 600 11px "JetBrains Mono";
  color: #8897ac;
}
.code-stat span {
  color: #c36cff;
}
.code-stat b {
  color: #5ee6a8;
}
.code-stat small {
  display: block;
  font: 11px Inter;
  color: #68778d;
  margin-top: 4px;
}
.hero-visual {
  height: 400px;
  position: relative;
  display: grid;
  place-items: center;
}
.code-window {
  width: min(520px, 90%);
  border: 1px solid #25344a;
  border-radius: 14px;
  background: #07101b;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(95, 35, 255, 0.12);
  overflow: hidden;
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}
.window-bar {
  height: 42px;
  border-bottom: 1px solid #1c2a3d;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: #63728a;
  font: 10px "JetBrains Mono";
}
.window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6934ff;
}
.window-bar i:nth-child(2) {
  background: #3d6dff;
}
.window-bar i:nth-child(3) {
  background: #5ee6a8;
}
.window-bar span {
  margin-left: 8px;
}
.code-window pre {
  padding: 25px;
  font: 14px/1.85 "JetBrains Mono";
  color: #b9c7d9;
  white-space: pre-wrap;
}
.purple {
  color: #c06cff;
}
.blue {
  color: #5f9dff;
}
.green {
  color: #5ee6a8;
}
.orange {
  color: #ffad70;
}
.floating-badge {
  position: absolute;
  padding: 9px 12px;
  border: 1px solid #2b3b50;
  border-radius: 8px;
  background: #0b1726;
  box-shadow: 0 10px 30px #000;
  font-size: 10px;
}
.badge-one {
  right: 3%;
  top: 20%;
}
.badge-two {
  left: 4%;
  bottom: 20%;
  color: #c17aff;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 19px;
}
.trending {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 10px 20px;
  margin: 0 0 20px;
  background: rgba(7, 16, 28, 0.72);
  font-size: 11px;
}
.trending a {
  color: #98a6b8;
}
.trending a:hover {
  color: #c477ff;
}
.view-all {
  margin-left: auto;
  color: #bd65ff !important;
}
.section {
  margin-bottom: 27px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 19px;
}
.section-head h2:before {
  content: "•";
  color: #bb35ff;
  margin-right: 8px;
}
.section-head > a {
  color: #bd67ff;
  font-size: 11px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}
.feature-card,
.side-card,
.premium {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(8, 18, 30, 0.96),
    rgba(4, 11, 20, 0.86)
  );
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.feature-card {
  position: relative;
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: #543480;
}
.card-image {
  height: 175px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #071325, #14102c);
}
.large .card-image {
  height: 215px;
}
.card-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(130, 43, 255, 0.25),
    transparent 55%
  );
}
.card-image > span {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  background: #7136ff;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 8px;
  font-weight: 800;
}
.art-symbol {
  font-size: 100px;
  color: #55a8ff;
  text-shadow: 0 0 40px #296cff;
}
.art-code {
  font: 800 68px "JetBrains Mono";
  color: #bc55ff;
  text-shadow: 0 0 35px #7b2cff;
}
.css .art-code {
  color: #4f9bff;
}
.card-body {
  padding: 15px;
}
.card-body h3 {
  font-size: 17px;
  line-height: 1.28;
}
.card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0;
}
.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #7f8da1;
  font-size: 9px;
}
.featured-read-more {
  display: inline-flex;
  margin-top: 5px;
  color: #d29bff;
  font-size: 9px;
  font-weight: 700;
}
.featured-read-more:hover {
  color: #ffffff;
}
.article-list {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 15px;
  background: rgba(5, 12, 21, 0.7);
}
.article-row {
  position: relative;
  display: grid;
  grid-template-columns: 75px 1fr 58px;
  gap: 15px;
  align-items: center;
  padding: 14px 46px 14px 0;
  border-bottom: 1px solid var(--line);
}
.article-row:last-child {
  border-bottom: 0;
}
.thumb {
  height: 65px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font: 800 20px "JetBrains Mono";
  border: 1px solid #293951;
  background: linear-gradient(145deg, #111d32, #211137);
  color: #64a8ff;
}
.react-thumb {
  color: #5de1ff;
}
.css-thumb {
  color: #5d8dff;
}
.api-thumb {
  color: #65e5a7;
}
.article-row h3 {
  font-size: 13px;
}
.article-row p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin: 3px 0;
}
.article-filter-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.saved-article-form {
  display: inline-flex;
  margin-top: 0;
}
.save-article-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(154, 111, 211, 0.5);
  border-radius: 50%;
  background: rgba(3, 8, 17, 0.78);
  color: #d7b7ff;
  font: 700 20px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.save-article-button:hover,
.save-article-button.is-saved {
  border-color: #8050c5;
  background: rgba(114, 44, 255, 0.2);
  color: #fff;
}
.save-article-button:focus-visible {
  outline: 2px solid #c08bff;
  outline-offset: 2px;
}
.feature-card > .card-body > .saved-article-form,
.feature-card > .card-body > .save-article-button,
.article-row > .saved-article-form,
.article-row > .save-article-button,
.resource-card .saved-article-form,
.resource-card .resource-card-actions > .save-article-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}
.article-row > .saved-article-form {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.page-hero.article-detail {
  position: relative;
}
.page-hero.article-detail .article-save-actions {
  position: absolute;
  top: 40px;
  right: 3%;
}
.page-hero.article-detail .saved-article-form {
  position: static;
}
.article-save-actions {
  margin-top: 16px;
}
.saved-articles-page {
  max-width: 1440px;
  margin: 24px auto 50px;
  padding: 0 3%;
}
.saved-article-meta,
.saved-article-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}
.saved-article-actions .saved-article-form {
  margin-top: 0;
}
.saved-article-actions .read-link {
  margin-top: 0;
}
.resource-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.resource-card-actions .read-link {
  margin-top: 0;
}
.saved-articles-empty {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.saved-articles-empty h2 {
  margin-bottom: 8px;
}
.saved-articles-empty p,
.saved-articles-notice {
  margin-bottom: 16px;
  color: var(--muted);
}
.saved-articles-notice {
  color: var(--green);
}
.views {
  font-size: 9px;
  text-align: right;
  color: #c0c9d6;
}
.views a {
  color: inherit;
  text-decoration: none;
}
.views a:hover,
.views a:focus-visible {
  color: #c477ff;
}
.filters {
  display: flex;
  gap: 5px;
}
.filter {
  border: 1px solid var(--line);
  background: #081321;
  color: #8492a5;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 9px;
  cursor: pointer;
}
.filter.active {
  color: white;
  background: #211343;
  border-color: #6334ba;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.side-card {
  padding: 18px;
}
.side-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.side-title h3 {
  font-size: 14px;
}
.side-title span {
  color: #bd38ff;
}
.profile {
  display: flex;
  gap: 13px;
}
.profile p {
  font-size: 10px;
  color: #aab6c6;
}
.profile a,
.purple-link {
  display: inline-block;
  color: #c06aff;
  font-size: 10px;
  margin-top: 9px;
}
.category-list {
  list-style: none;
  display: grid;
  gap: 11px;
}
.category-list li {
  display: flex;
  justify-content: space-between;
  color: #b5c0d0;
  font-size: 11px;
}
.category-list a {
  color: inherit;
}
.category-list a:hover {
  color: #c06aff;
}
.category-list b {
  background: #152131;
  padding: 3px 8px;
  border-radius: 14px;
  font-size: 9px;
  color: #cbd4df;
}
.category-list-message {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.side-card > p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
.email-box {
  display: flex;
  border: 1px solid #27374b;
  border-radius: 7px;
  overflow: hidden;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.email-box input {
  flex: 1;
  min-width: 0;
  background: #08111c;
  border: 0;
  outline: 0;
  color: white;
  padding: 9px;
  font-size: 9px;
}
.email-box button {
  border: 0;
  background: #7027ff;
  color: #fff;
  padding: 0 13px;
  font-size: 9px;
  font-weight: 700;
}
.tool {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tool:last-child {
  margin-bottom: 0;
}
.tool-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #25344a;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.vercel {
  color: white;
}
.github {
  color: #aaa;
}
.figma {
  color: #ff5d9e;
}
.vscode {
  color: #4fa4ff;
}
.tool b {
  font-size: 10px;
  display: block;
}
.tool small {
  display: block;
  color: #718095;
  font-size: 9px;
}
.premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 27px;
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(121, 41, 255, 0.25),
      transparent 35%
    ),
    #08111f;
}
.premium h2 {
  font-size: 22px;
  margin: 7px 0;
}
.premium p {
  font-size: 11px;
  color: var(--muted);
  max-width: 470px;
  margin-bottom: 14px;
}
.terminal-art {
  font: 11px "JetBrains Mono";
  line-height: 2;
  background: #050b13;
  border: 1px solid #1d2b3d;
  border-radius: 9px;
  padding: 13px 18px;
  color: #71829a;
}
.terminal-art span {
  color: #c86cff;
}
.terminal-art b {
  color: #64a6ff;
}
.terminal-art em {
  color: #5ee6a8;
  font-style: normal;
}
.footer {
  max-width: 1440px;
  margin: 20px auto 0;
  border-top: 1px solid var(--line);
  padding: 32px 5% 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.site-footer {
  grid-template-columns: minmax(220px, 1.7fr) minmax(150px, 1fr) minmax(145px, 1fr) minmax(160px, 1.1fr);
  align-content: start;
  row-gap: 18px;
}
.footer p {
  max-width: 320px;
  color: #718096;
  font-size: 10px;
  margin-top: 8px;
}
.footer .footer-brand .footer-email {
  display: inline-block;
  margin-top: 4px;
  color: #b879ff;
  font-size: 10px;
}
.footer h4 {
  font-size: 11px;
  margin-bottom: 8px;
}
.footer > div:not(:first-child) a {
  display: block;
  color: #78879a;
  font-size: 10px;
  margin: 3px 0;
}
.footer-links {
  min-width: 0;
}
.footer-links a {
  min-width: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tags span {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 7px;
  color: #8492a6;
  font-size: 8px;
}
.footer-category-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.footer-category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aab6c8;
  font-size: 10px;
}
.footer-category-list small {
  color: #7d8ba0;
  font-size: 9px;
}
.footer-data-message {
  color: #8997ab;
  font-size: 10px;
  line-height: 1.6;
}
.footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #718096;
  font-size: 9px;
}
.footer .footer-bottom a {
  display: inline-block;
  margin: 0;
  color: #9ba9bc;
  font-size: 9px;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  background: #101d2d;
  border: 1px solid #34475f;
  border-radius: 9px;
  font-size: 10px;
  transform: translateY(80px);
  opacity: 0;
  transition: 0.3s;
  z-index: 50;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 1050px) {
  .nav {
    gap: 17px;
  }
  .search {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 0.9fr;
  }
  .layout {
    grid-template-columns: 1fr 285px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
    padding: 42px 5px 25px;
  }
  .hero-visual {
    height: 300px;
    grid-area: visual;
  }
  .hero-copy {
    grid-area: copy;
    text-align: center;
  }
  .hero-copy > p {
    margin: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .code-stat {
    text-align: center;
  }
}
@media (max-width: 820px) {
  .header {
    padding: 0 20px;
  }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    height: auto;
    padding: 16px 20px;
    background: #07101c;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open {
    display: flex;
  }
  .nav a.active:after {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-grid .large {
    grid-column: 1/-1;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .footer .footer-bottom {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  main {
    padding: 0 13px;
  }
  .header {
    height: 65px;
  }
  .subscribe-btn {
    padding: 9px 11px;
    font-size: 9px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-visual {
    height: 245px;
  }
  .code-window pre {
    font-size: 10px;
    padding: 17px;
  }
  .floating-badge {
    font-size: 8px;
  }
  .badge-one {
    right: 0;
  }
  .badge-two {
    left: 0;
  }
  .featured-grid,
  .sidebar {
    display: flex;
    flex-direction: column;
  }
  .card-image,
  .large .card-image {
    height: 190px;
  }
  .article-row {
    grid-template-columns: 62px 1fr;
  }
  .thumb {
    height: 58px;
  }
  .article-row p {
    display: none;
  }
  .views {
    display: none;
  }
  .premium {
    padding: 20px;
    gap: 10px;
  }
  .terminal-art {
    font-size: 8px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer .footer-bottom {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================
   LIGHT / DARK THEME
   ========================= */
body.light {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #d9e1ec;
  --text: #111827;
  --muted: #667085;
  --purple: #7227e8;
  --blue: #315fe8;
  --green: #168653;
  --orange: #d96d22;
  background:
    radial-gradient(circle at 75% 0%, rgba(114, 39, 232, 0.1), transparent 28%),
    var(--bg);
  color: var(--text);
}

body.light .site-glow {
  opacity: 0.06;
}
body.light .header {
  background: rgba(244, 247, 251, 0.88);
  border-color: var(--line);
}
body.light .nav a {
  color: #596579;
}
body.light .nav a:hover,
body.light .nav a.active {
  color: #7227e8;
}
body.light .search {
  background: #fff;
  border-color: var(--line);
}
body.light .search input {
  color: #111827;
}
body.light .search input::placeholder {
  color: #8994a5;
}
body.light .search kbd {
  color: #697589;
  background: #eef2f7;
}
body.light .icon-btn,
body.light .menu-btn {
  color: #111827;
}
body.light .save-article-button {
  border-color: #d7c7ef;
  background: rgba(255, 255, 255, 0.92);
  color: #7227e8;
}
body.light .save-article-button:hover,
body.light .save-article-button.is-saved {
  border-color: #a77add;
  background: #f1eafe;
  color: #5d20bd;
}

body.light .eyebrow {
  color: #7227e8;
  background: rgba(114, 39, 232, 0.07);
  border-color: rgba(114, 39, 232, 0.22);
}

body.light .hero,
body.light .trending {
  border-color: var(--line);
}
body.light .hero-copy > p,
body.light .code-stat small {
  color: var(--muted);
}
body.light .code-stat {
  color: #657187;
}
body.light .featured-read-more {
  color: #7227e8;
}
body.light .featured-read-more:hover,
body.light .featured-read-more:focus-visible {
  color: #4c1d95;
}
body.light .views a {
  color: #7227e8;
}
body.light .views a:hover,
body.light .views a:focus-visible {
  color: #4c1d95;
}
body.light .trending {
  background: rgba(255, 255, 255, 0.82);
}
body.light .trending a {
  color: #64748b;
}
body.light .trending a:hover {
  color: #7227e8;
}

body.light .secondary-btn {
  color: #263247;
  border-color: #cbd5e1;
  background: #fff;
}

body.light .code-window {
  background: #111827;
  border-color: #293548;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.18);
}
body.light .floating-badge {
  background: #fff;
  color: #263247;
  border-color: #d8e0eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

body.light .feature-card,
body.light .side-card,
body.light .premium,
body.light .article-list,
body.light .page-card,
body.light .resource-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}
body.light .page-card h2,
body.light .resource-card h3 {
  color: #172033;
}
body.light .reading-progress {
  background: rgba(255, 255, 255, 0.96);
}
body.light .dashboard-stat {
  background: #fff;
}
body.light .dashboard-stat strong,
body.light .dashboard-section-heading h2 {
  color: #172033;
}
body.light .page-card > p,
body.light .resource-card p {
  color: var(--muted);
}
body.light .stat-box,
body.light .topic {
  background: #f8fafc;
  border-color: #d9e1ec;
}
body.light .stat-box strong,
body.light .topic {
  color: #263247;
}
body.light .stat-box span {
  color: #667085;
}
body.light .newsletter-result h1 {
  color: #172033;
}
body.light .newsletter-result .newsletter-result-email {
  color: #7227e8;
}
body.light .feature-card:hover {
  border-color: #b99be9;
}

body.light .card-body p,
body.light .article-row p,
body.light .profile p,
body.light .side-card > p {
  color: var(--muted);
}
body.light .meta {
  color: #78859a;
}
body.light .section-head h2 {
  color: #111827;
}
body.light .section-head > a,
body.light .purple-link,
body.light .profile a {
  color: #7227e8;
}

body.light .article-row {
  border-color: var(--line);
}
body.light .filter {
  background: #f7f9fc;
  color: #697589;
  border-color: var(--line);
}
body.light .filter.active {
  color: #fff;
  background: #7227e8;
  border-color: #7227e8;
}

body.light .category-list li {
  color: #475569;
}
body.light .category-list b {
  background: #eef2f7;
  color: #596579;
}
body.light .email-box {
  border-color: var(--line);
}
body.light .email-box input {
  background: #fff;
  color: #111827;
}
body.light .email-box input::placeholder {
  color: #8994a5;
}

body.light .tool-icon {
  border-color: var(--line);
  background: #f8fafc;
}
body.light .tool-icon.vercel {
  color: #111827;
}
body.light .resource-icon {
  border: 1px solid #e2d5fa;
  background: #f1eafe;
  color: #7227e8;
}
body.light .tool-logo.resource-icon {
  border-color: #e2d5fa;
  background: linear-gradient(145deg, #f1eafe, #f8fafc);
}
body.light .premium {
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(114, 39, 232, 0.12),
      transparent 35%
    ),
    #fff;
}
body.light .premium p {
  color: var(--muted);
}
body.light .terminal-art {
  background: #101827;
  border-color: #26364c;
}

body.light .footer {
  border-color: var(--line);
}
body.light .footer p,
body.light .footer > div:not(:first-child) a {
  color: #718096;
}
body.light .footer .footer-brand .footer-email,
body.light .footer .footer-bottom a {
  color: #7227e8;
}
body.light .footer-category-list li {
  color: #475569;
}
body.light .footer-category-list small,
body.light .footer-data-message,
body.light .footer .footer-bottom {
  color: #718096;
}
body.light .tags span {
  border-color: var(--line);
  color: #64748b;
}

body.light .toast {
  background: #fff;
  color: #111827;
  border-color: #cbd5e1;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.15);
}
body.light .tool-start-list li {
  color: #596579;
}
body.light .tool-detail-card .tool-overview {
  color: #475467;
}
body.light .tool-overline,
body.light .tool-start-list li::before {
  color: #7227e8;
}
body.light .tool-feature {
  border-color: var(--line);
  background: #f8f9fc;
}
body.light .tool-feature h3,
body.light .tool-start-list li strong {
  color: #172033;
}
body.light .tool-start-list li {
  border-left-color: rgba(114, 39, 232, 0.22);
}
body.light .tool-start-list li:last-child {
  border-left-color: transparent;
}
body.light .tool-start-list li::before {
  border-color: rgba(114, 39, 232, 0.22);
  background: #fff;
}

@media (max-width: 820px) {
  body.light .nav {
    background: #fff;
    border-color: var(--line);
  }
}

@media (max-width: 1000px) {
  .header {
    padding: 0 20px;
  }
  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    height: auto;
    padding: 16px 20px;
    background: #07101c;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open {
    display: flex;
  }
  .nav a.active:after {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* Inner page additions */
.page-hero {
  padding: 58px 25px 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.breadcrumb {
  font: 10px "JetBrains Mono";
  color: #8190a5;
  margin-bottom: 15px;
}
.breadcrumb a {
  color: #b867ff;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
.page-hero h1 span {
  background: linear-gradient(90deg, #a43cff, #536eff);
  -webkit-background-clip: text;
  color: transparent;
}
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
}
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 19px;
}
.page-card {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(8, 18, 30, 0.96),
    rgba(4, 11, 20, 0.86)
  );
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.privacy-policy {
  max-width: 1000px;
  margin: 0 auto 40px;
  line-height: 1.75;
}
.privacy-policy h2 {
  margin-top: 28px;
}
.privacy-policy p,
.privacy-policy li {
  color: var(--muted);
  font-size: 14px;
}
.privacy-policy ul {
  padding-left: 24px;
}
.privacy-policy a {
  color: #b867ff;
  overflow-wrap: anywhere;
}
.tutorials-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3% 40px;
}
.tutorials-hero {
  padding-top: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tutorials-hero h1 {
  font-size: clamp(52px, 6vw, 108px);
  letter-spacing: -0.06em;
  margin: 22px 0 18px;
  line-height: 0.9;
}
.tutorials-hero p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 760px;
}
.tutorials-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  margin-top: 22px;
  align-items: start;
}
.tutorials-panel {
  min-height: 520px;
  border: 1px solid rgba(130, 95, 175, 0.45);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 16, 28, 0.9), rgba(25, 18, 44, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 18px;
}
.tutorials-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.tutorials-search-field {
  flex: 1;
  margin: 0;
}
.tutorials-search-field input {
  min-height: 44px;
  border-radius: 10px;
  padding-left: 16px;
}
.tutorials-sidebar {
  width: 100%;
}
.tutorials-filter-card {
  border: 1px solid rgba(130, 95, 175, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.96), rgba(10, 14, 25, 0.92));
  padding: 20px 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.tutorials-filter-card h2 {
  font-size: 31px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.tutorials-filter-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.tutorials-field {
  display: block;
  margin-bottom: 14px;
}
.tutorials-field input,
.tutorials-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(110, 132, 170, 0.42);
  border-radius: 10px;
  background: rgba(9, 17, 29, 0.72);
  color: #dfeafc;
  padding: 12px 14px;
  font: 500 14px/1.4 Inter, sans-serif;
}
.tutorials-field input::placeholder {
  color: #7d8fa7;
}
.tutorials-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #dfeafc 50%), linear-gradient(135deg, #dfeafc 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.tutorials-search-btn {
  min-width: 120px;
  min-height: 44px;
  border: none;
  cursor: pointer;
  margin-top: 0;
}
.tutorials-result {
  margin-top: 16px;
  font-size: 11px;
  color: #8a9ab1;
}
.tutorials-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tutorial-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tutorial-card h3 {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.3;
}
.tutorial-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.tutorial-card .read-link {
  margin-top: 12px;
}
.newsletter-result {
  width: min(100%, 560px);
  box-sizing: border-box;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 44px);
}
.newsletter-result h1 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.04em;
}
.newsletter-result > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.newsletter-result .newsletter-result-email {
  color: #d4a8ff;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.newsletter-result .primary-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 12px;
}
.page-card h2 {
  font-size: 21px;
  margin-bottom: 9px;
}
.page-card > p {
  font-size: 11px;
  color: var(--muted);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-top: 15px;
}
.resource-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(8, 17, 29, 0.72);
  border-radius: 12px;
  padding: 17px;
  transition: 0.25s;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: #59358c;
}
.mini-projects-main {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding-bottom: 56px;
}
.mini-projects-main .page-hero {
  padding-left: 0;
  padding-right: 0;
}
.mini-projects-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.mini-projects-intro-actions .primary-btn,
.mini-projects-intro-actions .secondary-btn,
.mini-project-card-actions .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
}
.mini-projects-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.mini-projects-summary h2 {
  margin: 0 0 5px;
  font-size: 17px;
}
.mini-projects-summary p {
  color: var(--muted);
  font-size: 11px;
}
.mini-projects-summary strong {
  color: #d2a5ff;
  font-size: 13px;
  white-space: nowrap;
}
.mini-project-level-list {
  display: grid;
  gap: 34px;
}
.mini-project-level-section {
  min-width: 0;
}
.mini-project-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mini-project-section-heading > div > span {
  color: #b780ef;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.mini-project-section-heading h2 {
  margin-top: 3px;
  font-size: 22px;
}
.mini-project-section-heading > p {
  max-width: 370px;
  color: var(--muted);
  font-size: 11px;
}
.mini-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mini-project-card {
  padding: 22px;
}
.mini-project-card.is-complete {
  border-color: rgba(94, 230, 168, 0.55);
}
.mini-project-card-top,
.mini-project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mini-project-card-top .resource-icon {
  margin: 0 0 12px;
}
.mini-project-status {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}
.mini-project-card.is-complete .mini-project-status {
  color: #80efb7;
  border-color: rgba(94, 230, 168, 0.4);
}
.mini-project-level {
  color: #b780ef;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.mini-project-card h2 {
  margin: 8px 0;
  font-size: 18px;
}
.mini-project-card > p {
  min-height: 36px;
  font-size: 11px;
  color: var(--muted);
}
.mini-project-task {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 11, 19, 0.46);
}
.mini-project-task h3 {
  margin-bottom: 7px;
  font-size: 11px;
}
.mini-project-task ul {
  padding-left: 17px;
  color: var(--muted);
  font-size: 10px;
}
.mini-project-task li + li {
  margin-top: 4px;
}
.mini-project-card-actions {
  flex-wrap: wrap;
}
.mini-project-card-actions .read-link {
  font-size: 10px;
}
.mini-project-card-actions .primary-btn {
  font-size: 11px;
}
.mini-project-editor-actions {
  display: grid;
  gap: 9px;
}
.mini-project-editor-actions .btn {
  width: 100%;
}
.mini-project-editor-actions a {
  color: #bd69ff;
  font-size: 11px;
  font-weight: 700;
}
.mini-project-editor-actions p:empty {
  display: none;
}
body.light .mini-projects-summary strong {
  color: #7132a6;
}
body.light .mini-project-task {
  background: rgba(255, 255, 255, 0.55);
}
body.light .mini-project-card.is-complete {
  border-color: rgba(5, 150, 105, 0.42);
}
body.light .mini-project-card.is-complete .mini-project-status {
  border-color: rgba(5, 150, 105, 0.32);
  color: #047857;
}
.career-path-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.career-path-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 650px) {
  .mini-project-grid {
    grid-template-columns: 1fr;
  }
  .mini-projects-summary,
  .mini-project-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .mini-project-section-heading h2 {
    font-size: 20px;
  }
  .mini-project-card > p {
    min-height: 0;
  }
}
.tool-page-wrap {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
.tool-detail-card {
  padding: clamp(20px, 3vw, 32px);
}
.tool-overview-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tool-logo.resource-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  margin: 0;
  border: 1px solid rgba(177, 111, 255, 0.2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(145, 61, 255, 0.18), rgba(8, 17, 29, 0.72));
  font-size: 17px;
}
.tool-overline {
  color: #a985d2;
  font: 700 9px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
}
.tool-overview-head h2 {
  margin: 4px 0 2px;
  font-size: 21px;
}
.tool-overview-category {
  color: var(--muted);
  font-size: 11px;
}
.tool-detail-card .tool-overview {
  max-width: 760px;
  margin: 20px 0 26px;
  color: #b7c2d2;
  font-size: 13px;
  line-height: 1.85;
}
.tool-section {
  margin-top: 27px;
}
.tool-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-section-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(177, 111, 255, 0.25);
  border-radius: 8px;
  background: rgba(145, 61, 255, 0.08);
  color: #c18bff;
  font: 700 10px "JetBrains Mono", monospace;
}
.tool-section-heading h2 {
  margin: 1px 0 4px;
  font-size: 16px;
}
.tool-section-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.tool-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tool-feature {
  padding: 14px;
  border: 1px solid rgba(144, 163, 194, 0.14);
  border-radius: 11px;
  background: rgba(8, 17, 29, 0.56);
}
.tool-feature h3 {
  margin-bottom: 6px;
  color: #e3e9f3;
  font-size: 12px;
}
.tool-feature p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.tool-start-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tool-steps;
}
.tool-start-list li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 44px;
  margin-left: 13px;
  padding: 0 0 18px 29px;
  border-left: 1px solid rgba(177, 111, 255, 0.24);
  counter-increment: tool-steps;
}
.tool-start-list li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.tool-start-list li::before {
  position: absolute;
  top: 0;
  left: -13px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(177, 111, 255, 0.28);
  border-radius: 50%;
  background: #0b1020;
  color: #c18bff;
  content: counter(tool-steps);
  font: 700 10px "JetBrains Mono", monospace;
}
.tool-start-list li strong {
  color: #e3e9f3;
  font-size: 12px;
}
.tool-start-list li span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.tool-detail-card h2 {
  line-height: 1.3;
}
.tool-official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(100deg, #8128ff, #4d5dff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.tool-official-link:hover {
  filter: brightness(1.1);
}
.tool-back-link {
  display: inline-block;
  margin-top: 22px;
  color: #c18bff;
  font-size: 12px;
  font-weight: 700;
}
.tool-back-link:hover {
  color: #e0c1ff;
}
.resource-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #15102a;
  color: #bb6dff;
  font: 700 13px "JetBrains Mono";
  margin-bottom: 13px;
}
.resource-card h3 {
  font-size: 14px;
}
.resource-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 11px;
}
.read-link {
  font-size: 10px;
  color: #bd69ff;
}
.topic-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.topic {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #081321;
  font-size: 10px;
  color: #aab5c4;
}
.code-block {
  background: #050b13;
  border: 1px solid #1c2a3d;
  border-radius: 10px;
  overflow: auto;
  margin-top: 15px;
}
.code-block pre {
  padding: 18px;
  font: 11px/1.8 "JetBrains Mono";
  color: #b9c7d9;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}
.stat-box {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #081321;
}
.stat-box strong {
  font-size: 22px;
  display: block;
}
.stat-box span {
  font-size: 9px;
  color: var(--muted);
}
.article-detail {
  max-width: 900px;
  margin: 0 auto;
}
.article-detail .cover {
  height: 330px;
  border-radius: 14px;
  margin: 18px 0;
  background: linear-gradient(135deg, #0b1530, #24103a);
  display: grid;
  place-items: center;
  font: 800 80px "JetBrains Mono";
  color: #6ba8ff;
  border: 1px solid #263a58;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}
.article-content {
  font-size: 14px;
  color: #aeb9c8;
}
.reading-progress {
  position: sticky;
  top: 78px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 16, 28, 0.94);
  color: var(--muted);
  font-size: 11px;
  backdrop-filter: blur(12px);
}
.reading-progress progress,
.reading-card-progress-meter {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  accent-color: var(--purple);
}
.reading-progress progress::-webkit-progress-bar,
.reading-card-progress-meter::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--line);
}
.reading-progress progress::-webkit-progress-value,
.reading-card-progress-meter::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}
.reading-progress progress::-moz-progress-bar,
.reading-card-progress-meter::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}
.reading-card-progress {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}
.reading-card-progress-meter {
  height: 4px;
}
.reading-card-progress-label {
  font-weight: 600;
}
.dashboard-page {
  min-height: 70vh;
}
.dashboard-hero {
  max-width: 1440px;
  margin: auto;
  padding: 42px 3% 0;
}
.dashboard-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.dashboard-hero h1 span {
  background: linear-gradient(90deg, #a33dff, #546dff);
  -webkit-background-clip: text;
  color: transparent;
}
.dashboard-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
}
.dashboard-content {
  max-width: 1440px;
  margin: 24px auto 60px;
  padding: 0 3%;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 620px);
  margin: 0 auto 30px;
}
.dashboard-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 150px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(146, 163, 184, 0.2);
  border-radius: 13px;
  background: rgba(12, 23, 35, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.dashboard-stat strong {
  color: var(--text);
  font-size: clamp(2.7rem, 4vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 700;
}
.dashboard-stat span,
.dashboard-empty,
.dashboard-message {
  color: var(--muted);
  font-size: 12px;
}
.dashboard-stat span {
  margin-top: 10px;
  line-height: 1.4;
  font-size: 12px;
}
.dashboard-section {
  margin-top: 34px;
}
.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.dashboard-section-heading h2 {
  font-size: 22px;
}
.dashboard-section-heading a {
  color: #c08bff;
  font-size: 11px;
  font-weight: 700;
}
.dashboard-section .resource-grid {
  margin-top: 0;
}
.dashboard-empty,
.dashboard-message {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.dashboard-message {
  margin-bottom: 16px;
}
.dashboard-article-source {
  display: none;
}
.career-path-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 70px;
}
.career-path-hero {
  padding: 42px 0 28px;
}
.career-path-hero h1 {
  max-width: 800px;
}
.career-path-hero p {
  max-width: 700px;
}
.career-path-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.career-path-hero-meta span,
.career-lesson-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(12, 23, 35, 0.72);
  font-size: 10px;
  font-weight: 600;
}
.career-path-content {
  padding-top: 10px;
}
.career-path-chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
.career-path-chooser a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.career-path-chooser a:hover,
.career-path-chooser a.is-active {
  border-color: rgba(163, 61, 255, 0.48);
  background: rgba(103, 40, 171, 0.18);
  color: #d8b4fe;
}
.career-home-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 38px;
  padding: 22px 25px;
  border: 1px solid rgba(139, 60, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(30, 18, 58, 0.7), rgba(7, 16, 28, 0.82));
}
.career-home-callout h2 {
  margin: 4px 0;
  font-size: 21px;
}
.career-home-callout p {
  max-width: 620px;
  color: var(--muted);
  font-size: 11px;
}
.career-path-notice {
  margin: 0 0 16px;
  padding: 13px 16px;
  border: 1px solid rgba(94, 230, 168, 0.35);
  border-radius: 10px;
  background: rgba(16, 85, 57, 0.16);
  color: #9deac2;
  font-size: 12px;
}
.career-path-notice.is-error {
  border-color: rgba(255, 157, 92, 0.4);
  background: rgba(123, 63, 28, 0.16);
  color: #ffc093;
}
.career-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.75fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(139, 60, 255, 0.32);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(30, 18, 58, 0.7), rgba(7, 16, 28, 0.9));
}
.career-progress-copy {
  display: grid;
  gap: 5px;
}
.career-progress-label,
.career-stage-kicker {
  color: #c08bff;
  font: 700 10px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}
.career-progress-copy strong {
  color: var(--text);
  font-size: 18px;
}
.career-progress-copy > span:last-child {
  color: var(--muted);
  font-size: 11px;
}
.career-progress-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.career-progress-track {
  height: 9px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.career-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a33dff, #546dff);
  transition: width 0.3s ease;
}
.career-progress-meter > strong {
  min-width: 38px;
  color: var(--text);
  font-size: 13px;
}
.career-progress-card .primary-btn,
.career-path-next-actions .primary-btn,
.career-path-next-actions .secondary-btn {
  white-space: nowrap;
}
.career-path-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 20px;
}
.career-path-intro h2,
.career-path-next-step h2 {
  margin-top: 7px;
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: -0.04em;
}
.career-path-intro > p {
  max-width: 470px;
  color: var(--muted);
  font-size: 12px;
}
.career-stage {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 28, 0.82);
}
.career-stage-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
}
.career-stage-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid rgba(163, 61, 255, 0.35);
  border-radius: 11px;
  background: rgba(103, 40, 171, 0.16);
  color: #d1a6ff;
  font: 700 13px "JetBrains Mono", monospace;
}
.career-stage-heading h2 {
  margin: 3px 0;
  font-size: 19px;
}
.career-stage-heading p {
  color: var(--muted);
  font-size: 11px;
}
.career-lesson-list {
  display: grid;
  gap: 9px;
}
.career-lesson {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 8, 17, 0.48);
  scroll-margin-top: 100px;
}
.career-lesson.is-complete {
  border-color: rgba(94, 230, 168, 0.28);
}
.career-lesson-status {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #a8b5c7;
  font: 700 10px "JetBrains Mono", monospace;
}
.career-lesson.is-complete .career-lesson-status {
  border-color: rgba(94, 230, 168, 0.45);
  background: rgba(31, 138, 91, 0.18);
  color: #79e6b0;
}
.career-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}
.career-lesson-meta span {
  padding: 3px 7px;
  font-size: 9px;
}
.career-lesson-details h3 {
  color: var(--text);
  font-size: 13px;
}
.career-lesson-details p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.career-lesson-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.career-resource-link {
  color: #c08bff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.career-complete-button {
  padding: 8px 10px;
  border: 1px solid rgba(139, 60, 255, 0.4);
  border-radius: 7px;
  background: rgba(73, 33, 122, 0.2);
  color: #d9bcff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.career-complete-button:hover {
  border-color: #a65cff;
  background: rgba(105, 43, 178, 0.3);
}
.career-path-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 28, 0.75);
}
.career-path-next-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.career-path-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.light .career-path-hero-meta span,
body.light .career-lesson-meta span {
  background: #fff;
}
body.light .career-path-chooser a {
  color: #475569;
}
body.light .career-path-chooser a:hover,
body.light .career-path-chooser a.is-active {
  border-color: #7c3aed;
  background: #f3e8ff;
  color: #5b21b6;
}
body.light .career-progress-card {
  background: linear-gradient(120deg, #f2eaff, #fff);
}
body.light .career-path-notice {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}
body.light .career-path-notice.is-error {
  border-color: #fda29b;
  background: #fef3f2;
  color: #b42318;
}
body.light .career-progress-label,
body.light .career-stage-kicker {
  color: #6d28d9;
}
body.light .career-home-callout {
  background: linear-gradient(110deg, #f2eaff, #fff);
}
body.light .career-stage,
body.light .career-path-next-step {
  background: rgba(255, 255, 255, 0.88);
}
body.light .career-lesson {
  background: #fff;
}
body.light .career-lesson-status {
  border-color: #cbd5e1;
  color: #475569;
}
body.light .career-lesson.is-complete .career-lesson-status {
  border-color: #059669;
  background: #d1fae5;
  color: #047857;
}
body.light .career-lesson-meta span {
  border-color: #d9e1ec;
  color: #475569;
}
body.light .career-lesson-details h3,
body.light .career-progress-copy strong,
body.light .career-progress-meter > strong,
body.light .career-stage-heading h2,
body.light .career-path-intro h2,
body.light .career-path-next-step h2 {
  color: #172033;
}
body.light .career-lesson-details p,
body.light .career-stage-heading p,
body.light .career-path-intro > p,
body.light .career-path-next-step p,
body.light .career-progress-copy > span:last-child {
  color: #526176;
}
body.light .career-resource-link {
  color: #5b21b6;
}
body.light .career-complete-button {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #5b21b6;
}
body.light .career-complete-button:hover,
body.light .career-complete-button:focus-visible {
  border-color: #5b21b6;
  background: #ede9fe;
  color: #4c1d95;
}
body.light .career-lesson.is-complete .career-complete-button {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}
.article-content h2 {
  color: var(--text);
  font-size: 22px;
  margin: 28px 0 9px;
}
.article-content p {
  margin: 10px 0;
}
.article-content ul {
  padding-left: 20px;
  margin: 10px 0;
}
.article-content li {
  margin: 6px 0;
}
@media (max-width: 820px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }
  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topic-list {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero {
    padding: 42px 5px 30px;
  }
}
@media (max-width: 560px) {
  .dashboard-hero {
    padding-top: 24px;
  }

  .dashboard-hero h1 {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 0.98;
    letter-spacing: -0.06em;
  }

  .dashboard-hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 24px;
  }

  .dashboard-stat {
    min-height: 118px;
    padding: 14px 10px 12px;
  }

  .dashboard-stat strong {
    font-size: clamp(2.1rem, 8vw, 2.9rem);
  }

  .dashboard-stat span {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.3;
  }

  .resource-grid,
  .topic-list,
  .stats-row {
    grid-template-columns: 1fr;
  }
  .career-progress-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .career-progress-card .primary-btn {
    justify-self: start;
  }
  .career-path-intro,
  .career-path-next-step {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-card {
    padding: 17px;
  }
  .tool-detail-card {
    padding: 19px 16px;
  }
  .tool-feature-grid {
    grid-template-columns: 1fr;
  }
  .tool-overview-head h2 {
    font-size: 19px;
  }
  .tool-section-heading p {
    font-size: 10px;
  }
  .article-detail .cover {
    height: 220px;
    font-size: 55px;
  }
  .career-path-page {
    padding: 0 13px 48px;
  }
  .career-home-callout {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 13px 30px;
    padding: 18px;
  }
  .career-path-hero {
    padding-top: 24px;
  }
  .career-path-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }
  .career-stage {
    padding: 16px 12px;
  }
  .career-lesson {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .career-lesson-actions {
    grid-column: 2;
    flex-wrap: wrap;
    gap: 12px;
  }
  .career-path-next-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

img,
video,
iframe {
  max-width: 100%;
}

main,
.layout > *,
.page-wrap > *,
.tutorials-layout > *,
.tool-page-wrap > *,
.hero > * {
  min-width: 0;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 1000px) {
  .header {
    gap: 16px;
  }

  .header .nav {
    top: 100%;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    z-index: 30;
  }

  .header-actions {
    gap: 9px;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .section-head {
    gap: 10px;
    flex-wrap: wrap;
  }

  .filters {
    flex-wrap: wrap;
  }

  .trending {
    gap: 10px 16px;
    padding-inline: 16px;
  }
}

@media (max-width: 820px) {
  .header .nav {
    max-height: calc(100vh - 74px);
  }

  .page-wrap,
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-grid,
  .resource-grid,
  .topic-list,
  .stats-row,
  .tutorials-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-row {
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    padding-right: 0;
  }

  .article-row > .saved-article-form {
    position: static;
    transform: none;
    justify-self: end;
  }

  .article-row > .save-article-button {
    position: static;
    justify-self: end;
  }

  .footer,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

@media (max-width: 560px) {
  .header {
    height: 65px;
    gap: 10px;
    padding-inline: 14px;
  }

  .header .nav {
    max-height: calc(100vh - 65px);
  }

  .header-actions {
    gap: 7px;
  }

  .logo {
    gap: 8px;
    font-size: 17px;
  }

  .subscribe-btn {
    padding: 8px 10px;
    font-size: 10px;
  }

  .menu-btn {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
  }

  .hero {
    min-height: 0;
    padding: 36px 2px 24px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-buttons {
    width: min(100%, 340px);
    flex-direction: column;
    align-items: stretch;
    margin: 22px auto;
  }

  .hero-buttons > a {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
  }

  .code-window {
    width: 100%;
    transform: none;
  }

  .window-bar span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .trending {
    gap: 9px 13px;
    padding: 12px;
  }

  .view-all {
    margin-left: 0;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 17px;
  }

  .featured-grid,
  .resource-grid,
  .topic-list,
  .stats-row,
  .tutorials-resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-row {
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    gap: 10px;
  }

  .article-row h3 {
    overflow-wrap: anywhere;
  }

  .premium {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-art {
    max-width: 100%;
    overflow-x: auto;
  }

  .tool-overview-head {
    align-items: flex-start;
  }

  .footer,
  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 18px;
  }

  .footer .footer-bottom {
    grid-column: auto;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .header {
    padding-inline: 10px;
  }

  .subscribe-btn {
    padding-inline: 8px;
    font-size: 9px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .page-card {
    padding: 14px;
  }

  .article-row {
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    gap: 8px;
  }
}

.site-footer > div {
  min-width: 0;
}

.site-footer .footer-email,
.site-footer .footer-bottom a {
  overflow-wrap: anywhere;
}

.site-footer .footer-tags {
  min-width: 0;
}

@media (max-width: 1100px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-inline: clamp(18px, 4%, 40px);
  }
}

@media (max-width: 820px) {
  .site-footer > .footer-brand,
  .site-footer > .footer-bottom {
    grid-column: 1 / -1;
  }

  .site-footer .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 10px;
  }

  .site-footer .footer-links h4 {
    grid-column: 1 / -1;
  }

  .site-footer > .footer-links a,
  .site-footer .footer-brand .footer-email {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 4px 0;
    overflow-wrap: anywhere;
  }

  .site-footer .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 26px 18px 20px;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.home-page .search kbd,
.home-page .window-bar,
.home-page .code-stat,
.home-page .code-stat small,
.home-page .meta,
.home-page .tool small,
.home-page .footer p,
.home-page .footer > div:not(:first-child) a,
.home-page .footer-category-list li,
.home-page .footer-category-list small,
.home-page .footer-data-message,
.home-page .footer .footer-bottom {
  color: #aeb9c8;
}

.home-page .featured-read-more {
  color: #d29bff;
}

.home-page .filter {
  color: #aeb9c8;
}

.home-page .footer .footer-bottom a {
  color: #d29bff;
}

.home-page.light .search kbd,
.home-page.light .meta,
.home-page.light .tool small,
.home-page.light .footer p,
.home-page.light .footer > div:not(:first-child) a,
.home-page.light .footer-category-list li,
.home-page.light .footer-category-list small,
.home-page.light .footer-data-message,
.home-page.light .footer .footer-bottom,
.home-page.light .filter {
  color: #596579;
}

.home-page.light .featured-read-more,
.home-page.light .footer .footer-bottom a {
  color: #5d20bd;
}

@media (max-width: 820px) {
  .home-page .header .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 10px;
  }

  .home-page .header-actions .icon-btn,
  .home-page .header-actions .menu-btn {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
  }

  .home-page .filter {
    min-width: 44px;
    min-height: 44px;
    padding-inline: 12px;
  }

  .home-page .featured-read-more,
  .home-page .footer > div:not(:first-child) a,
  .home-page .footer .footer-brand .footer-email {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}
