/* Kampus — the platform's own page (deploy/platform). No school lives here. */

:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --card: #ffffff;
  --ink: #0f1226;
  --ink-2: #4a4e66;
  --ink-3: #7b7f96;
  --line: #e2ded3;
  --accent: #ff8a3d;
  --accent-2: #ffb547;
  --violet: #6c5ce7;
  --teal: #2bab83;
  --night: #0f1226;
  --night-2: #1b2045;
  --on-night: #f2f0ff;
  --on-night-2: #b9bbd6;
  --shadow: 0 24px 60px -24px rgba(15, 18, 38, .35);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1022;
    --paper-2: #13172e;
    --card: #171b36;
    --ink: #f2f0ff;
    --ink-2: #c3c5de;
    --ink-3: #8f92b0;
    --line: #262b4d;
    --night: #070914;
    --night-2: #12162f;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper);
}
.skip:focus { top: 12px; }

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

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.top__in { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -.02em; }
.logo__mark { width: 30px; height: 30px; border-radius: 9px; background: url(favicon.svg?v=2) center / cover no-repeat; flex: none; }
.logo--small { font-size: 16px; }
.logo--small .logo__mark { width: 22px; height: 22px; border-radius: 7px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--ink); }


/* ---------- hero ---------- */

.hero { position: relative; z-index: 0; padding: 88px 0 96px; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -280px; width: 640px; height: 640px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 20%, transparent), transparent 70%);
}
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 34em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; }
.chips li {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
}

/* the three school windows */
.stack { position: relative; height: 460px; }
.win {
  position: absolute; width: 74%; border-radius: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}
.win__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.win__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.win__bar span {
  margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--card);
  font-size: 11.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.win--house { top: 0; right: 0; z-index: 1; transform: rotate(2deg); }
.win--classic { top: 150px; left: 0; z-index: 2; width: 62%; transform: rotate(-3deg); animation-delay: -3s; }
.win--quiz { bottom: 0; right: 6%; z-index: 3; width: 50%; transform: rotate(1.5deg); animation-delay: -6s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@media (prefers-reduced-motion: reduce) { .win { animation: none; } }

/* window 1: a night house with doors */
.house { position: relative; height: 230px; background: linear-gradient(180deg, #151a3d 0%, #2a2160 60%, #3d2658 100%); }
.house__moon { position: absolute; top: 22px; right: 30px; width: 34px; height: 34px; border-radius: 50%; background: #ffe7b3; box-shadow: 0 0 30px 8px rgba(255, 214, 140, .35); }
.house__hall { position: absolute; left: 8%; right: 8%; bottom: 46px; display: flex; gap: 6%; align-items: flex-end; }
.door {
  flex: 1; height: 112px; border-radius: 6px 6px 0 0; position: relative;
  background: linear-gradient(180deg, #4b3a2e, #2f241c); border: 2px solid #6b5444; border-bottom: 0;
}
.door b {
  position: absolute; top: 10px; left: 50%; translate: -50% 0;
  font: inherit; font-weight: 700; font-size: 12px; line-height: 1; color: #ffd9a0; padding: 3px 7px; border-radius: 4px; background: rgba(0, 0, 0, .35);
}
.door--lit { background: linear-gradient(180deg, #ffcf7a, #ff8a3d); border-color: #ffd89a; box-shadow: 0 0 40px 6px rgba(255, 160, 80, .45); }
.door--lit b { color: #3a2410; background: rgba(255, 255, 255, .45); }
.door--shut { opacity: .55; filter: blur(.6px); }
.house__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, #3a2b30, #1e1720); }

/* window 2: a clean course page */
.classic { padding: 18px 18px 20px; display: grid; gap: 12px; }
.classic__head { height: 14px; width: 56%; border-radius: 6px; background: var(--ink); opacity: .85; }
.row { display: flex; align-items: center; gap: 10px; }
.row__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.row__dot--done { background: var(--teal); border-color: var(--teal); }
.row__dot--now { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 8px var(--accent); }
.row__line { height: 9px; flex: 1; border-radius: 5px; background: var(--paper-2); }
.row__line--b { flex: .8; }
.row__line--c { flex: .65; }
.row__pct { font-size: 11px; font-weight: 700; color: var(--ink-3); width: 34px; text-align: right; }
.bar { height: 8px; border-radius: 5px; background: var(--paper-2); overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--violet)); }

/* window 3: a quiz */
.quiz { padding: 16px; display: grid; gap: 9px; background: linear-gradient(160deg, color-mix(in srgb, var(--violet) 14%, var(--card)), var(--card)); }
.quiz__q { height: 12px; width: 80%; border-radius: 6px; background: var(--ink); opacity: .8; margin-bottom: 4px; }
.quiz__opt { height: 30px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--card); }
.quiz__opt--ok {
  border-color: var(--teal); background: color-mix(in srgb, var(--teal) 14%, var(--card));
  color: var(--teal); font-weight: 800; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
}

/* ---------- sections ---------- */

.section { padding: 104px 0; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; max-width: 18em; }

.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  font-size: 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card));
}
.card h3 { font-size: 19px; font-weight: 750; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.section--ink { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.section--ink::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px;
  background: radial-gradient(closest-side, rgba(108, 92, 231, .35), transparent 70%);
}
.section--ink .wrap { position: relative; }
.section--ink .eyebrow { color: var(--accent-2); }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
  padding: 30px 28px 32px; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid rgba(255, 255, 255, .08);
}
.steps__n { display: block; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--accent-2); margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 750; }
.steps p { margin-top: 10px; color: var(--on-night-2); font-size: 15.5px; }
.note {
  margin-top: 36px; padding: 16px 20px; border-radius: 14px; max-width: 46em;
  background: rgba(43, 171, 131, .12); border: 1px solid rgba(43, 171, 131, .35); color: var(--on-night); font-size: 15.5px;
}
.note::before { content: "🔒 "; }

.closing { padding: 40px 0 110px; }
.closing__text {
  font-size: clamp(34px, 6vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(90deg, var(--ink) 20%, var(--accent) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-3); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot .logo { color: var(--ink); }

/* ---------- smaller screens ---------- */

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 48px; }
  .stack { height: 420px; max-width: 560px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .top__in { gap: 12px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .top__in { height: 58px; }
  .section { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; margin-top: 36px; }
  .card { padding: 24px 22px 26px; }
  .stack { height: 360px; }
  .win--house { width: 82%; }
  .win--classic { top: 130px; width: 66%; }
  .win--quiz { width: 56%; right: 2%; }
  .house { height: 180px; }
  .door { height: 84px; }
  .closing { padding: 24px 0 80px; }
}

@media (max-width: 359px) {
  .logo { font-size: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
}
