@font-face {
  font-family: Satoshi;
  src: url(/fonts/satoshi.ttf) format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Matches the 100xdevs.com palette */
  --bg: hsl(224 25% 5%);
  --card: hsl(224 30% 7%);
  --card-raised: hsl(224 28% 9%);
  --border: hsl(215 27.9% 16.9%);
  --fg: hsl(210 50% 98%);
  --muted: hsl(217.9 10.6% 64.9%);
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --blue-soft: rgb(59 130 246 / .12);
  --green: #22c55e;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: .5rem;
  --font: Satoshi, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgb(37 99 235 / .22), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgb(10 12 18 / .8);
  backdrop-filter: blur(10px);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.logo .mark { height: 30px; padding: 0 7px; border-radius: 8px; background: linear-gradient(135deg, #60a5fa, #2563eb); display: grid; place-items: center; font-size: 12px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.logo .word { background: linear-gradient(90deg, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 500 15px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, opacity .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--blue-strong); color: #fff; box-shadow: 0 0 0 1px rgb(59 130 246 / .4), 0 8px 24px -8px rgb(37 99 235 / .6); }
.btn-primary:hover { background: var(--blue); }
.btn-light { background: #fff; color: #0b1120; }
.btn-light:hover { background: #e2e8f0; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--card-raised); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* Hero */
.hero { text-align: center; padding: 88px 0 56px; }
.hero h1 {
  margin: 0 auto 20px; max-width: 14ch;
  font-size: clamp(44px, 8vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(180deg, #f8fafc 20%, #94a3b8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent { background: linear-gradient(90deg, #60a5fa, #2563eb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 auto 32px; max-width: 46ch; color: var(--muted); font-size: 19px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 28px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; color: var(--blue); font-size: 14px; }

/* Cards, pills */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card-raised);
  font-size: 13px; color: var(--fg); white-space: nowrap;
}
.pill.blue { border-color: rgb(59 130 246 / .4); background: var(--blue-soft); color: #93c5fd; }
.pill.muted { color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Course page layout */
.course-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-bottom: 72px; }
.section-title { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 20px; }

.modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.module { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; transition: border-color .15s; }
.module:hover { border-color: rgb(59 130 246 / .45); }
.module .num { font-weight: 700; font-size: 15px; color: var(--blue); padding-top: 2px; }
.module h3 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.module p { margin: 0; color: var(--muted); font-size: 15px; }

.buy { position: sticky; top: 88px; padding: 24px; }
.buy .label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.price { font-size: 44px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 0 0 6px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.buy .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.input {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font: 16px var(--font);
}
.input::placeholder { color: hsl(218 10% 45%); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(59 130 246 / .25); }
.perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2360a5fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.status { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.status.warn { color: var(--amber); }
.status.error { color: var(--red); }
.owned { display: none; }
.buy.is-owned .owned { display: block; }
.buy.is-owned .for-sale { display: none; }
.notice { margin: 24px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid rgb(251 191 36 / .3); background: rgb(251 191 36 / .08); color: var(--amber); font-size: 15px; }

.banner {
  margin: 0 0 72px; padding: 44px 40px; border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #3b82f6);
  box-shadow: 0 20px 60px -20px rgb(37 99 235 / .55);
}
.banner h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.01em; }
.banner p { margin: 0 0 22px; max-width: 52ch; color: rgb(255 255 255 / .82); }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Learn page */
.learn-grid { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0 80px; align-items: start; }
.toc { position: sticky; top: 88px; padding: 16px; }
.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc a { display: flex; gap: 10px; padding: 9px 8px; border-radius: 6px; text-decoration: none; font-size: 15px; line-height: 1.35; }
.toc a:hover { background: var(--card-raised); }
.toc .num { color: var(--blue); font-weight: 700; font-size: 14px; }
.learn-head h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -.02em; }
.learn-head p { margin: 0 0 24px; color: var(--muted); }
.lesson { padding: 28px; margin-bottom: 20px; scroll-margin-top: 88px; }
.lesson-head { display: flex; gap: 8px; margin-bottom: 12px; }
.lesson h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.lesson h3 { margin: 24px 0 6px; font-size: 18px; font-weight: 600; }
.lesson p, .lesson li { color: hsl(214 20% 82%); font-size: 17px; }
.lesson ul { padding-left: 20px; }
.lesson li { margin: 6px 0; }
.lesson pre { margin: 14px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: hsl(224 30% 4%); font: 14px/1.65 var(--mono); color: #e2e8f0; }
.tip { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgb(59 130 246 / .35); background: var(--blue-soft); color: #bfdbfe; font-size: 15px; }
.access { padding: 18px 20px; margin-bottom: 20px; border-color: rgb(59 130 246 / .4); }
.access strong { display: block; margin-bottom: 2px; }
.access p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.access .row { display: flex; gap: 8px; }
.access .input { height: 40px; font: 13px var(--mono); }

@media (max-width: 900px) {
  .course-grid, .learn-grid { grid-template-columns: 1fr; }
  .buy { position: static; order: -1; }
  .toc { position: static; }
  .hero { padding: 56px 0 40px; }
  .banner { padding: 32px 24px; }
  .lesson { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .module { grid-template-columns: 34px 1fr; }
  .module .pill { grid-column: 2; justify-self: start; }
  .nav .hide-sm { display: none; }
}
