/* ==========================================================================
   Zumrut Labs — brand stylesheet
   Palette lifted from the course posters: #111827 ground, emerald accent,
   violet secondary, amber for offers.
   ========================================================================== */

:root {
  /* --- surfaces --- */
  --bg:            #080d18;
  --bg-2:          #0b1120;
  --panel:         #111827;   /* the exact backdrop baked into the logo */
  --panel-2:       #151d2e;
  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .14);

  /* --- brand --- */
  --green:         #22c55e;
  --green-bright:  #4ade80;
  --green-soft:    #34d399;
  --green-deep:    #16a34a;
  --violet:        #8b5cf6;
  --violet-deep:   #6d28d9;
  --amber:         #fbbf24;
  --cyan:          #38bdf8;

  /* --- type --- */
  --text:          #e8edf5;
  --text-2:        #b3c0d4;
  --muted:         #8494ac;
  --faint:         #64748b;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;

  /* --- geometry --- */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --shell:      1180px;
  --gutter:     clamp(20px, 5vw, 40px);
  --header-h:   74px;

  --shadow:      0 24px 60px -20px rgba(0, 0, 0, .75);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(34, 197, 94, .3); color: #fff; }

/* thin brand scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #26324a; border-radius: 99px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #33415c; }

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--green);
  color: #04140a;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 130px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 90px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 62px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green));
}
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--green), transparent);
}

h2.section-title { font-size: clamp(2rem, 4.3vw, 3.05rem); }
h3.section-title { font-size: clamp(1.5rem, 3vw, 2.05rem); }

.section-sub {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 62ch;
}
.section-head--center .section-sub { margin-inline: auto; }

.grad-em {
  background: linear-gradient(105deg, var(--green-bright) 10%, var(--green-soft) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  color: #04160b;
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, .65);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(34, 197, 94, .8);
}

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, .5);
  background: rgba(34, 197, 94, .08);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: rgba(34, 197, 94, .38);
  color: var(--green-bright);
}
.btn--outline:hover { background: rgba(34, 197, 94, .1); border-color: var(--green); }

.btn--sm { padding: 10px 19px; font-size: .875rem; }
.btn--lg { padding: 17px 34px; font-size: 1.03rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.section-head--center .btn-row { justify-content: center; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.topbar {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, rgba(22, 163, 74, .2), rgba(139, 92, 246, .18));
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.topbar[hidden] { display: none; }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px calc(var(--gutter) + 24px);
  text-align: center;
  color: var(--text-2);
}
.topbar__inner strong { color: var(--green-bright); font-weight: 600; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.topbar a:hover { text-decoration-color: #fff; }
.topbar__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 8px;
  line-height: 1;
}
.topbar__close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck {
  background: rgba(8, 13, 24, .82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: .07em;
  color: #fff;
}
.brand__name em { font-style: normal; color: var(--green-bright); }
.brand__tag {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .935rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--green-bright); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: background-color .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .28s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  background: rgba(8, 13, 24, .97);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text);
}
.drawer a.btn { margin-top: 22px; border-bottom: 0; justify-content: center; }

/* ==========================================================================
   Decorative background
   ========================================================================== */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.aurora::before {
  width: 620px; height: 620px;
  top: -240px; left: -140px;
  background: radial-gradient(circle, rgba(34, 197, 94, .42), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 560px; height: 560px;
  top: -120px; right: -180px;
  background: radial-gradient(circle, rgba(109, 40, 217, .4), transparent 68%);
  animation: drift 26s var(--ease) infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 50px, 0) scale(1.14); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 22%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 22%, #000 25%, transparent 78%);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 118px);
  background: radial-gradient(ellipse 120% 80% at 50% -10%, #0e1a2c 0%, var(--bg) 62%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  letter-spacing: -.035em;
  margin-bottom: 22px;
}

.hero__lede {
  font-size: clamp(1.04rem, 1.6vw, 1.175rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero .btn-row { margin-bottom: 30px; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .875rem;
  color: var(--faint);
}
.hero__note svg { width: 16px; height: 16px; color: var(--green); flex: none; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #fff;
  letter-spacing: -.02em;
}
.hero__stat span {
  font-size: .795rem;
  color: var(--faint);
  letter-spacing: .04em;
}

.hero__visual { position: relative; min-width: 0; }

/* --- the code window --- */
.codewin {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #131c2e, #0c1322);
  box-shadow: var(--shadow), 0 0 90px -40px rgba(34, 197, 94, .55);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

.codewin__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
}
.codewin__dot { width: 11px; height: 11px; border-radius: 50%; }
.codewin__name {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.codewin__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-bright);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: 99px;
  padding: 3px 10px;
}

.codewin pre {
  margin: 0;
  padding: 22px 20px 26px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: clamp(.72rem, 1.15vw, .845rem);
  line-height: 1.85;
  color: #ccd6e6;
  tab-size: 2;
}
.c-com { color: #5c6b83; font-style: italic; }
.c-key { color: #60a5fa; }
.c-fn  { color: #fbbf24; }
.c-str { color: var(--green-bright); }
.c-typ { color: #c4b5fd; }
.c-num { color: #f0abfc; }

.codewin__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  /* right padding keeps the text clear of the badge that overlaps this corner */
  padding: 13px 200px 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(34, 197, 94, .06);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--green-soft);
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: pulse 2.1s infinite;
  flex: none;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 11px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, .32);
  background: rgba(11, 17, 32, .93);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hero__badge img { width: 34px; height: 34px; }
.hero__badge b { display: block; font-family: var(--font-display); font-size: .93rem; color: #fff; }
.hero__badge span { font-size: .765rem; color: var(--muted); }

/* --- marquee --- */
.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  padding-block: 20px;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #46536b;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee__track span::after { content: "\25C6"; color: rgba(34, 197, 94, .45); font-size: .6rem; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Cards (shared)
   ========================================================================== */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  padding: clamp(24px, 3vw, 32px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, .34);
  box-shadow: 0 22px 50px -26px rgba(34, 197, 94, .5);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, .26);
  background: rgba(34, 197, 94, .1);
  color: var(--green-bright);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { font-size: .955rem; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 20px; }

/* ==========================================================================
   Free trial
   ========================================================================== */

.trial {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, .26);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 130% at 12% 0%, rgba(34, 197, 94, .17), transparent 62%),
    radial-gradient(ellipse 70% 120% at 92% 100%, rgba(109, 40, 217, .2), transparent 60%),
    var(--panel);
  padding: clamp(30px, 4.5vw, 58px);
}
.trial__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: center;
}
.trial h2 { font-size: clamp(1.85rem, 3.7vw, 2.6rem); margin-bottom: 16px; }
.trial p { color: var(--text-2); }

.trial__price {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.trial__price b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: 1;
  color: var(--green-bright);
  letter-spacing: -.04em;
}
.trial__price span { font-size: 1rem; color: var(--muted); }

.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 24, .55);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.step:hover { border-color: rgba(34, 197, 94, .32); transform: translateX(3px); }
.step__n {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(34, 197, 94, .22), rgba(34, 197, 94, .06));
  border: 1px solid rgba(34, 197, 94, .3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  color: var(--green-bright);
}
.step > div b { display: block; font-family: var(--font-display); color: var(--text); font-size: 1rem; margin-bottom: 3px; }
.step > div span { font-size: .9rem; color: var(--muted); line-height: 1.55; display: block; }

.ticks { display: grid; gap: 11px; margin: 22px 0 30px; padding: 0; list-style: none; }
.ticks li {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .96rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  width: 21px; height: 21px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==========================================================================
   Course cards
   ========================================================================== */

/* 2 x 2. grid-auto-rows: 1fr makes every row as tall as the tallest card, so
   all four frames end up identical instead of each one hugging its content. */
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }

.course {
  --accent: var(--green);
  --accent-bright: var(--green-bright);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(172deg, var(--panel-2), #0c1220);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.course:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 30px 64px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.course[data-accent="violet"] { --accent: var(--violet); --accent-bright: #a78bfa; }
.course[data-accent="cyan"]   { --accent: var(--cyan);   --accent-bright: #7dd3fc; }
.course[data-accent="amber"]  { --accent: var(--amber);  --accent-bright: #fcd34d; }

.course__top {
  position: relative;
  padding: 26px 26px 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 140% at 88% -20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 66%);
  overflow: hidden;
}
.course__top::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(200deg, #000, transparent 72%);
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 72%);
  pointer-events: none;
}

.course__tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 13, 24, .5);
  font-family: var(--font-mono);
  font-size: .655rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-2);
}
.tag--accent {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-bright);
}
.tag--amber { border-color: rgba(251, 191, 36, .42); background: rgba(251, 191, 36, .12); color: var(--amber); }

.course__title { position: relative; z-index: 1; font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin-bottom: 8px; }
.course__sub { position: relative; z-index: 1; font-size: .96rem; color: var(--muted); }

.course__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.price__now {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.price__was { font-size: 1.05rem; color: var(--faint); text-decoration: line-through; }
.price__ask { font-family: var(--font-display); font-size: 1.35rem; color: #fff; letter-spacing: -.02em; }
.price__note { font-size: .8rem; color: var(--amber); margin-bottom: 20px; }
.price__note--plain { color: var(--faint); }

.meta {
  display: grid;
  gap: 1px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}
.meta > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(8, 13, 24, .72);
  font-size: .875rem;
}
.meta svg { width: 15px; height: 15px; color: var(--accent-bright); flex: none; }
.meta dt { color: var(--faint); min-width: 74px; }
.meta dd { margin: 0; color: var(--text); font-weight: 500; }

.course__h4 {
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.course__learn { display: grid; gap: 9px; margin: 0 0 22px; padding: 0; list-style: none; }
.course__learn li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: .91rem;
  color: var(--text-2);
  line-height: 1.5;
}
.course__learn li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  margin-left: 5px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent-bright);
}

details.syllabus {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 24, .5);
  overflow: hidden;
}
details.syllabus > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  transition: background-color .2s var(--ease);
}
details.syllabus > summary::-webkit-details-marker { display: none; }
details.syllabus > summary:hover { background: rgba(255, 255, 255, .04); }
details.syllabus > summary::after {
  content: "";
  margin-left: auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
details.syllabus[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.syllabus__list { display: grid; padding: 4px 16px 16px; }
.syllabus__week {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.syllabus__week > span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding-top: 3px;
}
.syllabus__week b { display: block; font-family: var(--font-display); font-size: .95rem; color: var(--text); margin-bottom: 3px; }
.syllabus__week p { font-size: .865rem; color: var(--muted); line-height: 1.55; }

.course__outcome {
  display: flex;
  gap: 12px;
  padding: 15px 17px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: .89rem;
  color: var(--text-2);
  line-height: 1.55;
  /* soaks up the slack left by shorter cards, so the outcome boxes and the
     buttons below them line up across the whole grid */
  margin-top: auto;
}
.course__outcome svg { width: 19px; height: 19px; color: var(--accent-bright); flex: none; margin-top: 2px; }
.course__outcome b { color: #fff; }

.course__actions { display: grid; gap: 10px; }
.course .btn--primary {
  background: linear-gradient(135deg, var(--accent-bright), color-mix(in srgb, var(--accent) 80%, #000));
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  color: #05130b;
}
.course[data-accent="violet"] .btn--primary,
.course[data-accent="cyan"] .btn--primary { color: #060c1a; }
.course[data-accent="amber"] .btn--primary { color: #1a1204; }

/* ==========================================================================
   How it works
   ========================================================================== */

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: flow; }
.flow__item {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  counter-increment: flow;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.flow__item:hover { border-color: rgba(34, 197, 94, .32); transform: translateY(-4px); }
.flow__item::before {
  content: "0" counter(flow);
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--green-bright), rgba(34, 197, 94, .18));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.flow__item h3 { font-size: 1.1rem; margin-bottom: 9px; }
.flow__item p { font-size: .93rem; color: var(--muted); }

/* ==========================================================================
   About / split
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 66px);
  align-items: center;
}
.split p + p { margin-top: 16px; }
.split p { color: var(--muted); }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.figure {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
}
.figure b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  letter-spacing: -.035em;
  color: var(--green-bright);
  line-height: 1;
  margin-bottom: 7px;
}
.figure span { font-size: .89rem; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 12px; max-width: 850px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(168deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .25s var(--ease);
}
.faq details[open] { border-color: rgba(34, 197, 94, .3); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238494ac' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq__a { padding: 0 22px 21px; color: var(--muted); font-size: .96rem; }
.faq .faq__a a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 197, 94, .28);
  padding: clamp(42px, 6vw, 76px) clamp(26px, 5vw, 60px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(34, 197, 94, .22), transparent 62%),
    radial-gradient(ellipse 60% 110% at 15% 100%, rgba(109, 40, 217, .22), transparent 60%),
    var(--panel);
}
.cta > * { position: relative; z-index: 1; }
.cta img { width: 62px; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); margin-bottom: 16px; }
.cta p { color: var(--text-2); max-width: 56ch; margin: 0 auto 32px; font-size: 1.05rem; }
.cta .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), #060a13);
  padding-block: clamp(52px, 6vw, 76px) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: 46px;
}
.footer__about .brand { margin-bottom: 18px; margin-right: 0; }
.footer__about p { font-size: .93rem; color: var(--muted); max-width: 40ch; margin-bottom: 22px; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  transition: color .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease), transform .22s var(--ease);
}
.socials a:hover { color: var(--green-bright); border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .09); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer h4 {
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 17px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a {
  font-size: .93rem;
  color: var(--text-2);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer ul a:hover { color: var(--green-bright); padding-left: 4px; }

.footer__meta { display: grid; gap: 9px; font-size: .89rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.footer__meta a:hover { color: var(--green-bright); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--faint);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bottom a:hover { color: var(--text-2); }

/* ==========================================================================
   Legal / content pages
   ========================================================================== */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.08rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: .985rem; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }
.prose a { color: var(--green-bright); text-decoration: underline; text-underline-offset: 3px; }
.prose .note {
  padding: 16px 20px;
  border: 1px dashed rgba(251, 191, 36, .4);
  background: rgba(251, 191, 36, .07);
  border-radius: var(--radius-sm);
  color: var(--amber);
  font-size: .9rem;
  margin-bottom: 30px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(50px, 7vw, 84px) clamp(30px, 4vw, 48px);
  background: radial-gradient(ellipse 110% 90% at 50% -30%, #101b2e, var(--bg) 66%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); margin-bottom: 12px; }
.page-hero__date { font-family: var(--font-mono); font-size: .82rem; color: var(--faint); }

/* 404 */
.err { text-align: center; padding-block: clamp(80px, 14vw, 170px); }
.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: .9;
  letter-spacing: -.05em;
  background: linear-gradient(160deg, var(--green-bright), rgba(34, 197, 94, .12));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.err h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 14px; }
.err p { color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.err .btn-row { justify-content: center; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  /* minmax(0,…) — a bare 1fr lets the code block's long lines blow out the row */
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; max-width: 560px; }
  .trial__grid, .split { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  /* stacked, so equal-height rows would only add dead space */
  .courses { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .nav, .header .btn { display: none; }
  .burger { display: inline-flex; }
  .drawer .btn { display: inline-flex; }
  /* legal and 404 pages have no burger, so their back button has to stay */
  .header .btn--back { display: inline-flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar__inner { font-size: .78rem; padding-inline: 40px; }
  .topbar__inner > a { display: none; }   /* the hero CTA is right below anyway */
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  /* the badge drops below the card here, so the footer reclaims its space */
  .hero__badge { position: static; margin-top: 16px; right: auto; bottom: auto; }
  .codewin__foot { padding-right: 20px; }
  .figures, .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .syllabus__week { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .topbar, .header, .drawer, .aurora, .grid-lines, .marquee, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
