:root {
  --ink: #132036;
  --muted: #657186;
  --paper: #f6f8fb;
  --white: #fff;
  --blue: #1458e0;
  --blue-dark: #0b3faa;
  --cyan: #30c5e8;
  --line: #dce3ed;
  --navy: #0e192b;
  --green: #087a55;
  --red: #bd3f45;
  --purple: #7454d6;
  --shadow: 0 24px 70px rgba(30, 54, 95, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 237, 0.85);
  display: flex;
  height: 80px;
  justify-content: space-between;
  padding: 0 max(4.5vw, 24px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { align-items: center; display: flex; gap: 11px; }
.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 9px;
  color: var(--white);
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  transform: skew(-7deg);
  width: 36px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: .9rem; }
.brand-copy small {
  color: #7a8699;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-top: 5px;
  text-transform: uppercase;
}
nav { display: flex; gap: 27px; }
.nav-link {
  color: #48566c;
  font-size: .85rem;
  font-weight: 700;
  position: relative;
}
.nav-link span { color: #a0aaba; font-size: .6rem; margin-right: 5px; }
.nav-link::after {
  background: var(--blue);
  bottom: -28px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-coming-soon {
  align-items: center;
  color: #929cac;
  cursor: default;
  display: flex;
}
.nav-coming-soon small {
  background: #edf1f7;
  border-radius: 999px;
  color: #7d899b;
  font-size: .52rem;
  letter-spacing: .06em;
  margin-left: 7px;
  padding: 2px 6px;
  text-transform: uppercase;
}
.nav-coming-soon::after { display: none; }
.nav-coming-soon:hover { color: #929cac; }

.button {
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 13px 20px;
  transition: 160ms ease;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.button-small { font-size: .82rem; padding: 9px 15px; }
.button-outline { background: transparent; color: var(--blue); }
.text-link { color: var(--blue); font-weight: 700; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }

.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(48, 197, 232, .13), transparent 24%),
    linear-gradient(125deg, #f7faff 0%, #fff 54%, #f3f8ff 100%);
  display: grid;
  gap: 7vw;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .72fr);
  min-height: 680px;
  padding: 102px max(7vw, 28px) 88px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 5.5vw, 5.8rem); margin: 0 0 28px; }
h1 span { color: var(--blue); }
.hero-intro { color: #4e5b70; font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 700px; }
.hero-actions { align-items: center; display: flex; gap: 28px; margin: 36px 0 25px; }
.publishing-signal { align-items: center; color: #68758a; display: flex; font-size: .78rem; font-weight: 700; gap: 9px; }
.pulse {
  background: #29b977;
  border: 4px solid #dff6ec;
  border-radius: 50%;
  display: inline-block;
  height: 13px;
  width: 13px;
}

.terminal-card {
  align-self: center;
  background: var(--navy);
  border: 1px solid #26354e;
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: #dfe7f5;
  overflow: hidden;
}
.terminal-bar {
  align-items: center;
  background: #17253b;
  border-bottom: 1px solid #293850;
  display: flex;
  gap: 7px;
  padding: 13px 17px;
}
.terminal-bar > span { background: #ff6961; border-radius: 50%; height: 8px; width: 8px; }
.terminal-bar > span:nth-child(2) { background: #f5bd4f; }
.terminal-bar > span:nth-child(3) { background: #56c96f; }
.terminal-bar small { color: #8290a5; font-family: monospace; margin-left: auto; }
.terminal-body { font-family: monospace; font-size: .84rem; padding: 28px; }
.prompt { color: #67d7ee; font-weight: 800; }
.topic-output { border-left: 1px solid #34445e; display: flex; flex-direction: column; gap: 13px; margin: 20px 0 24px 5px; padding-left: 18px; }
.topic-output span { color: #e4ebf6; }
.topic-output i { color: #5e8fec; font-style: normal; margin-right: 14px; }
.terminal-comment { color: #718098; line-height: 1.8; }
.cursor { animation: blink 1s infinite; background: #70daf0; display: inline-block; height: 15px; vertical-align: middle; width: 7px; }
@keyframes blink { 50% { opacity: 0; } }

.topic-rail {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 16px max(7vw, 28px);
  white-space: nowrap;
}
.topic-rail > span { color: #8994a5; font-size: .72rem; font-weight: 800; letter-spacing: .09em; margin-right: 10px; text-transform: uppercase; }
.topic-rail a, .topic-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; color: #566379; font-size: .75rem; font-weight: 700; padding: 6px 12px; }
.topic-rail a:hover { border-color: var(--blue); color: var(--blue); }
.topic-pill { color: #8994a5; }

.section { padding: 100px max(7vw, 28px); }
.section-heading { align-items: end; display: flex; gap: 40px; justify-content: space-between; margin-bottom: 50px; }
.section-heading h2, .quiz-intro h2, .about-copy h2, .cta-section h2 { font-size: clamp(2.1rem, 3.5vw, 3.4rem); margin: 0; }
.section-heading > p { color: var(--muted); margin: 0; max-width: 500px; }
.loops-section { background: var(--paper); }

.featured-loop {
  background: var(--navy);
  border-radius: 18px;
  color: var(--white);
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  min-height: 430px;
  overflow: hidden;
}
.loop-visual {
  align-items: center;
  background: radial-gradient(circle, rgba(35, 99, 225, .38), transparent 62%);
  display: flex;
  justify-content: center;
  min-height: 430px;
  position: relative;
}
.loop-core {
  align-items: center;
  background: var(--blue);
  border: 8px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(48,197,232,.2);
  display: flex;
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  height: 105px;
  justify-content: center;
  position: relative;
  width: 105px;
  z-index: 2;
}
.orbit { border: 1px solid rgba(125,162,235,.36); border-radius: 50%; position: absolute; }
.orbit-one { height: 220px; width: 220px; }
.orbit-two { height: 330px; width: 330px; }
.orbit-label { color: #aebbd0; font-size: .69rem; font-weight: 800; letter-spacing: .08em; position: absolute; text-transform: uppercase; }
.label-learn { left: 17%; top: 24%; }
.label-test { right: 12%; top: 48%; }
.label-apply { bottom: 18%; left: 25%; }
.loop-content { align-self: center; padding: 50px 7vw 50px 35px; }
.loop-content .eyebrow { color: #83a8f4; margin-top: 28px; }
.loop-content h3 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 18px; }
.loop-content > p:not(.eyebrow) { color: #b5c0d1; max-width: 650px; }
.loop-meta { color: #a9b4c6; display: flex; flex-wrap: wrap; font-size: .72rem; font-weight: 700; gap: 10px 20px; text-transform: uppercase; }
.status-badge { background: rgba(42,192,229,.13); border: 1px solid rgba(83,206,236,.35); border-radius: 999px; color: #75d9ef; padding: 3px 9px; }
.loop-actions { align-items: center; display: flex; gap: 24px; margin-top: 28px; }

.curriculum-drawer { background: #fff; border: 1px solid var(--line); border-radius: 0 0 16px 16px; padding: 35px; }
.curriculum-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 25px; }
.curriculum-heading h3 { font-size: 1.6rem; margin: 0; }
.curriculum-heading > span { color: var(--muted); font-size: .78rem; }
.curriculum-grid { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; list-style: none; margin: 0; padding: 0; }
.curriculum-grid li { align-items: center; background: var(--paper); border: 1px solid #e8edf4; border-radius: 8px; display: flex; font-size: .83rem; font-weight: 700; gap: 12px; padding: 12px; }
.curriculum-grid li span { color: var(--blue); font-size: .68rem; }

.future-loops { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.future-loop { align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 17px; padding: 21px; }
.loop-icon {
  align-items: center;
  background: #ecf2ff;
  border-radius: 9px;
  color: var(--blue);
  display: flex;
  flex: 0 0 50px;
  font-family: monospace;
  font-size: .72rem;
  font-weight: 800;
  height: 50px;
  justify-content: center;
}
.future-loop small { color: #929cac; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.future-loop h3 { font-size: 1rem; margin: 2px 0; }
.future-loop p { color: var(--muted); font-size: .76rem; margin: 0; }
.add-loop { border-style: dashed; }
.plus { color: #8e99aa; font-size: 2rem; text-align: center; width: 50px; }

.notes-section { background: #fff; }
.coming-soon-panel {
  align-items: center;
  background: linear-gradient(135deg, #f4f7fd, #fff);
  border: 1px dashed #bdc9dc;
  border-radius: 18px;
  display: grid;
  gap: 7vw;
  grid-template-columns: 1.25fr .75fr;
  padding: 55px;
}
.coming-soon-label {
  align-items: center;
  color: #788599;
  display: flex;
  font-size: .7rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: .1em;
  margin-bottom: 27px;
  text-transform: uppercase;
}
.coming-soon-copy h2 { font-size: clamp(2.1rem, 3.5vw, 3.4rem); margin: 0; }
.coming-soon-copy > p:last-child { color: var(--muted); max-width: 650px; }
.featured-note-link {
  background: var(--navy);
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.featured-note-link:hover {
  box-shadow: 0 20px 45px rgba(14, 25, 43, .2);
  transform: translateY(-3px);
}
.featured-note-meta {
  color: #75d9ef;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-note-link strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  line-height: 1.35;
}
.featured-note-action {
  align-items: center;
  color: #aebbd0;
  display: flex;
  font-size: .76rem;
  font-weight: 700;
  justify-content: space-between;
}
.featured-note-action i { color: #fff; font-size: 1.1rem; font-style: normal; }

.quiz-section { align-items: center; background: #fbfcfe; display: grid; gap: 8vw; grid-template-columns: .75fr 1.25fr; }
.quiz-intro > p:last-child { color: var(--muted); margin-top: 22px; }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 30px; }
.quiz-meta { color: #7b8799; display: flex; font-size: .7rem; font-weight: 700; justify-content: space-between; letter-spacing: .05em; text-transform: uppercase; }
.quiz-card h3 { font-size: 1.35rem; line-height: 1.4; margin: 27px 0 23px; }
.answer { align-items: flex-start; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; display: flex; gap: 12px; margin: 10px 0; padding: 14px; }
.answer:hover, .answer:has(input:checked) { background: #f4f7ff; border-color: #7da4f1; }
.answer input { accent-color: var(--blue); margin-top: 5px; }
.quiz-submit { margin-top: 14px; width: 100%; }
.quiz-result { border-radius: 9px; font-size: .9rem; margin-top: 16px; padding: 15px; }
.quiz-result.correct { background: #e9f8f2; color: var(--green); }
.quiz-result.incorrect { background: #fff0f0; color: var(--red); }

.about-section { align-items: center; display: grid; gap: 7vw; grid-template-columns: .5fr 1.5fr; }
.about-monogram {
  align-items: center;
  background: var(--navy);
  border-radius: 25% 45% 30% 50%;
  color: #fff;
  display: flex;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  height: min(28vw, 300px);
  justify-content: center;
  transform: rotate(-4deg);
  width: min(28vw, 300px);
}
.about-copy { max-width: 760px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; }
.disclosure { border-left: 3px solid var(--blue); font-size: .82rem !important; margin-top: 28px; padding-left: 16px; }

.cta-section { background: var(--blue); color: #fff; padding: 85px max(10vw, 28px); text-align: center; }
.cta-section .eyebrow { color: #bdd1fa; }
.cta-section p:not(.eyebrow) { color: #dbe5fa; margin: 22px auto 30px; max-width: 680px; }
.button-light { background: #fff; border-color: #fff; color: var(--blue); }
footer {
  align-items: center;
  background: var(--navy);
  color: #8f9bad;
  display: grid;
  font-size: .72rem;
  gap: 30px;
  grid-template-columns: 1fr 1.4fr 1fr;
  padding: 30px max(7vw, 28px);
}
.footer-brand { color: #fff; }
footer p { margin: 0; text-align: center; }
footer > span { text-align: right; }

@media (max-width: 1000px) {
  nav { display: none; }
  .hero, .quiz-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .terminal-card { max-width: 630px; }
  .future-loops { grid-template-columns: 1fr 1fr; }
  .future-loop:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .site-header .button { display: none; }
  .site-header { height: 68px; }
  .hero { min-height: auto; padding-bottom: 65px; }
  h1 { font-size: 3rem; }
  .hero-actions, .section-heading, .loop-actions, .curriculum-heading { align-items: flex-start; flex-direction: column; }
  .section { padding-bottom: 70px; padding-top: 70px; }
  .featured-loop { grid-template-columns: 1fr; }
  .loop-visual { min-height: 340px; }
  .loop-content { padding: 35px 25px 45px; }
  .curriculum-grid, .future-loops, .coming-soon-panel { grid-template-columns: 1fr; }
  .coming-soon-panel { padding: 30px; }
  .future-loop:last-child { grid-column: auto; }
  .about-section { grid-template-columns: 1fr; }
  .about-monogram { height: 180px; width: 180px; }
  footer { grid-template-columns: 1fr; }
  footer p, footer > span { text-align: left; }
}
