:root {
  --red-900: #4d1015;
  --red-800: #68161d;
  --red-700: #8f1d2c;
  --red-600: #ab2434;
  --red-500: #c43b49;
  --yellow-600: #c28b00;
  --yellow-500: #dcae20;
  --yellow-400: #f0c94a;
  --yellow-300: #f7dc7b;
  --yellow-100: #fff6d9;
  --cream: #fbf8f0;
  --paper: #ffffff;
  --surface: #f6f3ec;
  --surface-2: #eee9df;
  --border: #dfd8cb;
  --ink: #2a2724;
  --muted: #726d65;
  --muted-2: #9a948a;
  --success: #45784e;
  --success-soft: #eaf5ea;
  --danger: #9b3435;
  --shadow-sm: 0 4px 14px rgba(42, 39, 36, 0.06);
  --shadow-md: 0 12px 28px rgba(42, 39, 36, 0.09);
  --shadow-lg: 0 22px 48px rgba(78, 16, 21, 0.14);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(240, 201, 74, 0.95);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 58px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-700);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--yellow-500);
  border-radius: 2px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--red-900);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 650px;
  font-size: 1.04rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 240, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 216, 203, 0.8);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red-800);
  color: var(--yellow-300);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: grid;
  line-height: 1.02;
}

.brand-text strong {
  color: var(--red-900);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--red-800);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 750;
  transition: .2s ease;
}

.website-link:hover {
  border-color: var(--red-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: .2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--red-800);
  background: rgba(171, 36, 52, 0.07);
}

.auth-nav {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}

.auth-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-login {
  color: var(--red-800);
  border: 1px solid transparent;
}

.auth-signup {
  color: #fff;
  background: var(--red-700);
  box-shadow: 0 7px 14px rgba(143, 29, 44, .16);
}

.auth-signup:hover,
.btn-primary:hover {
  background: var(--red-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(143, 29, 44, .2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 72px;
  background:
    radial-gradient(circle at 86% 20%, rgba(240, 201, 74, 0.28), transparent 22%),
    radial-gradient(circle at 4% 70%, rgba(196, 59, 73, 0.12), transparent 23%),
    linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(400px, 0.93fr);
  gap: 58px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  max-width: 760px;
  color: var(--red-900);
  font-size: clamp(3rem, 5.8vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  color: var(--red-600);
  font-style: normal;
}

.hero-copy p {
  max-width: 630px;
  margin: 0;
  font-size: 1.13rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--red-700);
  box-shadow: 0 7px 14px rgba(143, 29, 44, .16);
}

.btn-secondary {
  color: var(--ink);
  background: var(--yellow-400);
  box-shadow: 0 7px 14px rgba(194, 139, 0, .12);
}

.btn-secondary:hover {
  background: var(--yellow-300);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--red-800);
  border-color: var(--border);
  background: rgba(255,255,255,.75);
}

.btn-outline:hover {
  border-color: var(--red-500);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-proof b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.hero-visual {
  position: relative;
  min-height: 450px;
}

.hero-card-main {
  position: absolute;
  left: 18px;
  top: 40px;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid rgba(143,29,44,.1);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}

.hero-card-main::before {
  content: "";
  position: absolute;
  inset: -12px auto auto -12px;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: var(--yellow-100);
  z-index: -1;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.challenge-label {
  color: var(--red-700);
  font-size: .73rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #5e4300;
  background: var(--yellow-100);
  border: 1px solid #f1d889;
  border-radius: 9px;
  font-size: .76rem;
  font-weight: 850;
}

.hero-card-main h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.answer-mini {
  display: grid;
  gap: 8px;
}

.answer-mini span {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: #fffefa;
  font-size: .83rem;
  font-weight: 650;
}

.answer-mini span.active {
  border-color: rgba(194,139,0,.45);
  background: var(--yellow-100);
  color: #604a08;
}

.hero-floating {
  position: absolute;
  right: 4px;
  bottom: 35px;
  width: 205px;
  padding: 20px;
  border-radius: 18px;
  background: var(--red-800);
  color: #fff;
  box-shadow: 0 20px 34px rgba(78, 16, 21, 0.23);
}

.hero-floating .label {
  display: block;
  color: rgba(255,255,255,.74);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 750;
}

.hero-floating strong {
  display: block;
  margin-top: 4px;
  color: var(--yellow-300);
  font-size: 2rem;
  line-height: 1;
}

.hero-floating small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.78);
}

.decor-dot,
.decor-square {
  position: absolute;
  pointer-events: none;
}

.decor-dot {
  right: 2%;
  top: 8%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 18px 14px 0 rgba(194,139,0,.4), 37px -9px 0 rgba(194,139,0,.25);
}

.decor-square {
  left: 3%;
  bottom: 13%;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(171,36,52,.18);
  transform: rotate(18deg);
}

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.48);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 25px 22px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: var(--red-900);
  font-size: 1.55rem;
  line-height: 1.1;
}

.stat-item span {
  color: var(--muted);
  font-size: .8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: .22s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(143,29,44,.2);
}

.course-topline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}

.category-badge {
  color: var(--red-700);
  background: rgba(171, 36, 52, .07);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 800;
}

.course-card .level {
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 750;
}

.course-card h3 {
  margin: 18px 0 8px;
  color: var(--red-900);
  font-size: 1.3rem;
  line-height: 1.2;
}

.course-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .9rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
}

.course-card .card-action {
  margin-top: 22px;
}

.card-action .btn {
  width: 100%;
}

.challenge-section {
  position: relative;
  overflow: hidden;
  background: #3c0e12;
  color: #fff;
}

.challenge-section::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -150px;
  top: -230px;
  background: rgba(240,201,74,.11);
}

.challenge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: 54px;
  align-items: center;
}

.challenge-copy .eyebrow {
  color: var(--yellow-300);
}

.challenge-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.challenge-copy p {
  margin: 0;
  max-width: 520px;
  color: rgba(255,255,255,.72);
}

.challenge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.challenge-stat {
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  font-size: .74rem;
  font-weight: 750;
}

.question-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

.question-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.question-card-header .micro-meta {
  color: rgba(255,255,255,.67);
  font-size: .72rem;
  font-weight: 750;
}

.question-card h3 {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 2.5vw, 1.62rem);
  line-height: 1.38;
}

.answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.answer-card {
  min-height: 53px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.87);
  font-size: .84rem;
  transition: .2s ease;
}

.answer-card strong {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--yellow-100);
  background: rgba(240,201,74,.13);
  font-size: .72rem;
}

.answer-card:hover {
  border-color: rgba(240,201,74,.38);
  background: rgba(240,201,74,.08);
}

.question-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.question-card-footer span {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 24px;
  align-items: stretch;
}

.leaderboard-callout {
  padding: 28px;
  border: 1px solid #eed997;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff8df, #fffdf4);
}

.leaderboard-callout h3 {
  margin: 12px 0 8px;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--red-900);
}

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

.podium-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
  margin-top: 30px;
}

.podium-item {
  text-align: center;
}

.podium-item .avatar {
  margin: 0 auto 8px;
}

.podium-block {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 12px 12px 6px 6px;
  color: var(--red-900);
  background: #f4df97;
  font-size: .8rem;
  font-weight: 900;
}

.podium-item:first-child .podium-block {
  min-height: 88px;
  background: var(--yellow-400);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-900);
  background: var(--yellow-100);
  border: 1px solid #efd885;
  font-size: .72rem;
  font-weight: 850;
}

.leaderboard-card {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.leaderboard-head,
.leader-row {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) 120px 110px;
  gap: 14px;
  align-items: center;
}

.leaderboard-head {
  padding: 12px 14px;
  color: var(--muted-2);
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.leader-row {
  margin-top: 6px;
  padding: 14px;
  border-radius: 12px;
}

.leader-row:hover {
  background: var(--surface);
}

.leader-row.top-one {
  background: #fff7dc;
}

.leader-row .rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--red-900);
  background: var(--surface-2);
  font-weight: 900;
  font-size: .78rem;
}

.leader-row.top-one .rank {
  background: var(--yellow-400);
}

.person {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.person > div:last-child {
  min-width: 0;
}

.person strong,
.person small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.person strong {
  font-size: .88rem;
}

.person small {
  color: var(--muted-2);
  font-size: .7rem;
}

.points-cell,
.streak-cell {
  font-size: .82rem;
  font-weight: 850;
  text-align: right;
}

.points-cell {
  color: var(--red-800);
}

.streak-cell {
  color: #8c6704;
}

.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 24px;
}

.progress-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.progress-panel h3 {
  margin: 0;
  color: var(--red-900);
  font-size: 1.35rem;
}

.progress-panel > p {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: .88rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.metric-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fffefa;
}

.metric-card.accent {
  border-color: #eedb9f;
  background: var(--yellow-100);
}

.metric-card strong {
  display: block;
  color: var(--red-900);
  font-size: 1.35rem;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
}

.metric-card .tiny-good {
  margin-top: 9px;
  color: var(--success);
  font-size: .7rem;
  font-weight: 850;
}

.streak-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #ecd995;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff8df, #fffdf6);
  box-shadow: var(--shadow-sm);
}

.streak-panel::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(240,201,74,.18);
}

.flame-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--red-800);
  background: #ffedab;
}

.streak-panel .streak-number {
  margin-top: 20px;
  color: var(--red-900);
  font-size: 4.2rem;
  line-height: .9;
  letter-spacing: -.05em;
  font-weight: 900;
}

.streak-panel .streak-label {
  color: var(--red-700);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.streak-panel p {
  position: relative;
  z-index: 1;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: .86rem;
}

.streak-detail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.streak-detail div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(194,139,0,.16);
  font-size: .75rem;
}

.streak-detail span:first-child {
  color: var(--muted);
}

.streak-detail span:last-child {
  color: var(--red-900);
  font-weight: 850;
}

.calendar-shell {
  margin-top: 24px;
}

.calendar-wrap {
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  background: var(--paper);
}

.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.calendar-toolbar strong {
  color: var(--red-900);
}

.calendar-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: .65rem;
  font-weight: 800;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-item i,
.calendar-day i {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.legend-item .done,
.calendar-day.done i {
  background: var(--yellow-400);
  border-color: var(--yellow-500);
}

.legend-item .today,
.calendar-day.today i {
  background: #fff;
  border: 2px solid var(--red-600);
}

.calendar-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 6px;
}

.calendar-day {
  min-height: 58px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
}

.calendar-day .day-name {
  display: block;
  color: var(--muted-2);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-day strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: .78rem;
}

.calendar-day.done {
  background: var(--yellow-100);
}

.calendar-day.missed {
  background: #f3f1ec;
}

.calendar-day.today {
  background: #fff;
  border-color: var(--red-500);
  box-shadow: inset 0 0 0 1px rgba(196,59,73,.1);
}

.calendar-day.future {
  opacity: .55;
}

.calendar-day.today strong {
  color: var(--red-700);
}

.promo {
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 89% 15%, rgba(240,201,74,.32), transparent 24%),
    linear-gradient(120deg, var(--red-900), var(--red-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.promo-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: center;
}

.promo .eyebrow {
  color: var(--yellow-300);
}

.promo h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.promo p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.77);
}

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

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0,.9fr);
  gap: 36px;
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--paper);
}

.company-panel h2 {
  margin: 0 0 11px;
  color: var(--red-900);
  font-size: 2rem;
  line-height: 1.1;
}

.company-panel p {
  margin: 0;
  color: var(--muted);
}

.company-pillars {
  display: grid;
  gap: 12px;
}

.company-pillar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffdf8;
}

.pillar-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--red-800);
  background: var(--yellow-100);
}

.company-pillar strong {
  display: block;
  font-size: .85rem;
}

.company-pillar span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}

.footer {
  margin-top: 88px;
  background: var(--red-900);
  color: rgba(255,255,255,.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr .8fr 1fr;
  gap: 34px;
  padding: 58px 0 36px;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text span {
  color: rgba(255,255,255,.48);
}

.footer-brand p {
  max-width: 390px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.6);
  font-size: .84rem;
}

.footer-col h3 {
  margin: 0 0 13px;
  color: var(--yellow-300);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: rgba(255,255,255,.68);
  font-size: .78rem;
}

.footer-col a:hover {
  color: #fff;
}

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

.social-links a {
  width: 34px;
  height: 34px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  color: rgba(255,255,255,.78);
}

.social-links a:hover {
  border-color: rgba(240,201,74,.55);
  color: var(--yellow-300);
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.48);
  font-size: .7rem;
}

.page-hero {
  padding: 62px 0;
  background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 11px 0 10px;
  color: var(--red-900);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.page-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.page-shell {
  padding: 58px 0 88px;
}

.challenge-page-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: 24px;
  align-items: start;
}

.full-question-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.full-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.full-question-card h2 {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.28;
}

.answer-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.answer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffefa;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}

.answer-option:hover {
  border-color: rgba(171,36,52,.33);
  background: #fffdf7;
}

.answer-option .option-letter {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--surface);
  color: var(--red-800);
  font-weight: 900;
  font-size: .73rem;
}

.submit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.submit-row small {
  color: var(--muted);
  font-size: .74rem;
}

.challenge-side {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.side-card.gold {
  border-color: #ecd890;
  background: var(--yellow-100);
}

.side-card h3 {
  margin: 0 0 8px;
  color: var(--red-900);
  font-size: 1rem;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.score-pair {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.score-pair div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(143,29,44,.08);
  font-size: .76rem;
}

.score-pair div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.score-pair span:first-child {
  color: var(--muted);
}

.score-pair span:last-child {
  color: var(--red-900);
  font-weight: 850;
}

.course-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.course-detail-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.course-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.course-detail-card .category-badge {
  display: inline-flex;
}

.course-detail-card h2 {
  margin: 13px 0 8px;
  color: var(--red-900);
  font-size: 1.55rem;
  line-height: 1.18;
}

.course-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0 20px;
}

.topic-list span {
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
}

.login-page {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 50px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(240,201,74,.24), transparent 24%),
    linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%);
}

.login-wrap {
  width: min(100%, 440px);
}

.login-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.login-card .brand {
  margin-bottom: 24px;
}

.login-card h1 {
  margin: 0 0 8px;
  color: var(--red-900);
  font-size: 2rem;
  line-height: 1.1;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .88rem;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .77rem;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fffefa;
  color: var(--ink);
}

.form-field input:hover {
  border-color: #cfc5b4;
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.form-actions .btn {
  width: 100%;
}

.forgot {
  width: fit-content;
  justify-self: end;
  color: var(--red-700);
  font-size: .74rem;
  font-weight: 800;
}

.login-foot {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: .74rem;
}

.login-foot a {
  color: var(--red-700);
  font-weight: 850;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.45);
  text-align: center;
}

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .hero-grid,
  .challenge-grid,
  .leaderboard-grid,
  .progress-grid,
  .company-panel,
  .challenge-page-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 420px; max-width: 580px; width: 100%; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .course-page-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-actions { justify-content: flex-start; }
}

/* Five-question challenge form */
.quiz-question { padding: 22px 0; border-bottom: 1px solid var(--border); }
.quiz-question h2 { margin: 0 0 14px; font-size: 1.12rem; }
.quiz-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 8px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.quiz-option:hover { border-color: var(--yellow-500); background: var(--yellow-100); }
.quiz-option input { accent-color: var(--red-700); width: 17px; height: 17px; }
#challengeResult { margin-top: 20px; }
#challengeResult h3 { margin-top: 0; }
button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.otp-panel {
  margin-top: 2px;
}

.otp-panel strong {
  color: var(--red-700);
  overflow-wrap: anywhere;
}

#signupOtp {
  text-align: center;
  letter-spacing: .28em;
  font-weight: 850;
}

