@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --ink: #f5f6f2;
  --muted: #a6b2bc;
  --deep: #08121f;
  --deep-two: #0d1b2b;
  --line: rgba(220, 232, 237, 0.14);
  --gold: #d5aa4f;
  --gold-bright: #f0ca73;
  --mint: #a7dbc7;
  --coral: #f09b78;
  --card: rgba(16, 31, 47, 0.84);
  --mono: 'DM Mono', 'Microsoft YaHei', monospace;
  --sans: 'Manrope', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--deep);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.modal-open { overflow: hidden; }

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: '';
  background: linear-gradient(180deg, #07111e 0%, #0a1726 46%, #091321 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: '';
  opacity: 0.2;
  background-image: radial-gradient(rgba(255,255,255,0.55) 0.6px, transparent 0.6px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }

.shell {
  width: min(1160px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.ambient, .grid-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.ambient {
  width: 38vw;
  height: 38vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.18;
}

.ambient-one { top: -12vw; right: -4vw; background: var(--gold); animation: drift 14s ease-in-out infinite alternate; }
.ambient-two { bottom: -18vw; left: -11vw; background: #3a9b9a; animation: drift 18s ease-in-out infinite alternate-reverse; }

.grid-glow {
  top: 80px;
  right: 0;
  left: 0;
  height: 780px;
  opacity: 0.55;
  background-image: linear-gradient(rgba(197, 221, 226, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(197, 221, 226, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 72%);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding-top: env(safe-area-inset-top);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  position: relative;
  display: grid;
  width: 130px;
  height: 48px;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,0.2);
}
.brand-mark img { position: absolute; top: 50%; left: 0; width: 100%; height: auto; object-fit: cover; transform: translateY(-50%); }
.brand-copy { display: grid; gap: 2px; }
.brand-copy small, .eyebrow, .subject-number, .local-pill, .sheet-caption, .modal-kicker { font-family: var(--mono); }
.brand-copy small { color: var(--muted); font-size: 7px; letter-spacing: 0.15em; }

.topnav { display: flex; gap: 34px; margin-left: 130px; }
.topnav a { position: relative; color: var(--muted); font-size: 12px; font-weight: 700; transition: color 180ms ease; }
.topnav a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 1px; content: ''; transform: scaleX(0); background: var(--gold-bright); transition: transform 180ms ease; }
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); }
.local-pill { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(167, 219, 199, 0.08); animation: pulse 2s infinite; }

.hero { display: grid; min-height: min(650px, 100svh); grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 56px; padding: 48px 0 84px; }
.hero-copy { padding-top: 16px; }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 23px; color: var(--gold-bright); font-size: 10px; letter-spacing: 0.18em; }
.eyebrow span { display: inline-grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(240, 202, 115, 0.5); border-radius: 50%; color: var(--gold-bright); font-size: 9px; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 690px; margin-bottom: 24px; color: var(--ink); font-size: clamp(43px, 5vw, 76px); font-weight: 800; line-height: 1.11; letter-spacing: -0.075em; }
h1 em, h2 em { color: var(--gold-bright); font-style: normal; }
.hero-lead { max-width: 540px; margin-bottom: 34px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 800; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1e1b14; background: var(--gold-bright); box-shadow: 0 10px 30px rgba(213, 170, 79, 0.18); }
.button-primary:hover { background: #f7d889; box-shadow: 0 14px 34px rgba(213, 170, 79, 0.3); }
.button-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.button-ghost:hover { border-color: rgba(240,202,115,0.45); background: rgba(255,255,255,0.06); }
.selection-spot { position: relative; z-index: 8; }
.quick-picker { position: absolute; bottom: calc(100% + 13px); left: 0; display: grid; width: 310px; gap: 5px; padding: 11px; border: 1px solid rgba(240,202,115,0.35); border-radius: 11px; background: linear-gradient(145deg, rgba(35,53,60,0.94), rgba(9,24,39,0.96)); box-shadow: 0 22px 50px rgba(0,0,0,0.32), inset 0 1px rgba(255,255,255,0.12); opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98); font-family: var(--sans); line-height: 1.2; backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); transition: opacity 180ms ease, transform 180ms ease; }
.selection-spot:hover .quick-picker, .selection-spot:focus-within .quick-picker, .selection-spot.is-open .quick-picker { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.quick-picker-head { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 8px 8px; }
.quick-picker-head span { color: var(--gold-bright); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }
.quick-picker-head small { color: var(--muted); font-size: 9px; }
.quick-picker button { appearance: none; -webkit-appearance: none; font-family: var(--sans); line-height: 1.2; }
.quick-picker > button { display: grid; grid-template-columns: 58px minmax(0, 1fr) 19px; gap: 7px; align-items: center; min-width: 0; min-height: 46px; padding: 11px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; text-align: left; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.quick-picker > button:hover, .quick-picker > button:focus-visible { border-color: rgba(240,202,115,0.2); outline: none; background: rgba(240,202,115,0.1); transform: translateX(3px); }
.quick-picker > button strong { font-size: 12px; }
.quick-picker > button span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.quick-picker > button b { color: var(--gold-bright); font-size: 15px; font-weight: 400; }
.quick-math { padding: 10px 8px 8px; border: 1px solid rgba(240,202,115,0.14); border-radius: 6px; background: rgba(240,202,115,0.035); }
.quick-row-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr) 19px; gap: 7px; align-items: center; min-width: 0; }
.quick-row-heading strong { color: var(--ink); font-size: 12px; }
.quick-row-heading span { color: var(--muted); font-size: 9px; }
.quick-row-heading b { color: var(--gold-bright); font-size: 15px; font-weight: 400; }
.quick-grade-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 9px; }
.quick-grade-buttons button { min-height: 44px; padding: 7px 4px; border: 1px solid rgba(240,202,115,0.18); border-radius: 4px; color: var(--gold-bright); background: rgba(240,202,115,0.07); font-size: 10px; transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease; }
.quick-grade-buttons button:hover, .quick-grade-buttons button:focus-visible { border-color: rgba(240,202,115,0.55); outline: none; color: #1e1b14; background: var(--gold-bright); transform: translateY(-1px); }
.hero-stats { display: flex; gap: 38px; margin-top: 72px; }
.hero-stats div { display: grid; gap: 6px; }
.hero-stats strong { color: var(--ink); font-size: 21px; letter-spacing: -0.04em; }
.hero-stats span { color: var(--muted); font-size: 10px; }

.hero-visual { position: relative; display: grid; min-height: 520px; place-items: center; }
.visual-ring { position: absolute; border: 1px solid rgba(213, 170, 79, 0.18); border-radius: 50%; transform: rotate(-18deg); }
.ring-one { width: 420px; height: 420px; }
.ring-two { width: 520px; height: 300px; border-color: rgba(167, 219, 199, 0.12); transform: rotate(36deg); }
.logo-sheet { position: relative; z-index: 2; display: grid; width: min(350px, 74%); aspect-ratio: 1 / 1.05; place-items: center; border-radius: 22px; background: #fff; box-shadow: 18px 24px 0 rgba(213, 170, 79, 0.85), 0 28px 70px rgba(0,0,0,0.32); transform: rotate(-4deg); animation: levitate 5.5s ease-in-out infinite; }
.logo-sheet::before { position: absolute; inset: 10px; border: 1px solid rgba(8,18,31,0.12); border-radius: 15px; content: ''; }
.logo-sheet img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.sheet-caption { position: absolute; z-index: 3; color: #4a5150; font-size: 9px; letter-spacing: 0.2em; }
.sheet-caption:first-child { top: 26px; left: 27px; }
.sheet-caption-bottom { right: 27px; bottom: 25px; color: #b58c3b; }
.orbit { position: absolute; z-index: 3; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: rgba(8,18,31,0.7); font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; }
.orbit-one { top: 16%; right: 4%; transform: rotate(10deg); }
.orbit-two { bottom: 16%; left: 0; color: var(--gold-bright); transform: rotate(-10deg); }
.floating-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: rgba(12, 28, 43, 0.76); box-shadow: 0 12px 32px rgba(0,0,0,0.2); font-size: 11px; backdrop-filter: blur(12px); }
.floating-note span { color: var(--gold-bright); font-size: 15px; }
.note-top { top: 25%; left: 5%; animation: levitate 4.8s 0.3s ease-in-out infinite; }
.note-bottom { right: 3%; bottom: 22%; animation: levitate 5.6s 0.9s ease-in-out infinite; }

.subjects-section { padding: 70px 0 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
h2 { margin-bottom: 0; color: var(--ink); font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.14; letter-spacing: -0.065em; }
.section-note { margin: 0 0 5px; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: right; }
.subject-grid { display: grid; grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)); gap: 15px; }
.subject-card { position: relative; min-height: 410px; overflow: hidden; padding: 25px 25px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); backdrop-filter: blur(15px) saturate(130%); -webkit-backdrop-filter: blur(15px) saturate(130%); box-shadow: inset 0 1px rgba(255,255,255,0.09), inset 0 -1px rgba(0,0,0,0.16); transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease; }
.subject-card::before, .glass-panel::before { position: absolute; top: -65%; left: -20%; width: 75%; height: 180%; content: ''; pointer-events: none; transform: rotate(27deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); opacity: 0.42; transition: transform 650ms ease, opacity 650ms ease; }
.subject-card:hover::before, .glass-panel:hover::before { opacity: 0.8; transform: translateX(70%) rotate(27deg); }
.subject-card:hover, .subject-card:focus-within { border-color: rgba(240,202,115,0.46); box-shadow: 0 25px 65px rgba(0,0,0,0.2); transform: translateY(-8px); }
.subject-math { min-height: 440px; background: linear-gradient(145deg, rgba(45, 49, 44, 0.95), rgba(18, 35, 45, 0.93)); }
.subject-physics { background: linear-gradient(145deg, rgba(37, 38, 54, 0.94), rgba(14, 27, 44, 0.93)); }
.subject-chemistry { background: linear-gradient(145deg, rgba(54, 39, 43, 0.94), rgba(18, 29, 44, 0.93)); }
.subject-english { background: linear-gradient(145deg, rgba(19, 42, 49, 0.93), rgba(14, 29, 46, 0.93)); }
.card-shine { position: absolute; top: -20%; right: -25%; width: 220px; height: 220px; border-radius: 50%; background: rgba(240, 202, 115, 0.11); filter: blur(35px); transition: transform 450ms ease; }
.subject-card:hover .card-shine { transform: translate(-35px, 28px) scale(1.3); }
.subject-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.subject-number { color: rgba(245,246,242,0.65); font-size: 9px; letter-spacing: 0.12em; }
.card-label { color: rgba(167,219,199,0.78); font-family: var(--mono); font-size: 8px; letter-spacing: 0.09em; }
.subject-symbol { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; margin: 57px 0 24px; border: 1px solid rgba(255,255,255,0.13); border-radius: 17px; color: var(--gold-bright); background: rgba(255,255,255,0.06); font-size: 39px; font-weight: 800; box-shadow: inset 0 1px rgba(255,255,255,0.12); }
.symbol-english { color: var(--mint); font-size: 29px; }
.symbol-physics { color: #d2b9f2; font-family: Georgia, serif; font-size: 45px; font-style: italic; }
.symbol-chemistry { color: var(--coral); font-family: Georgia, serif; font-size: 42px; }
.subject-card h3 { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; font-size: 28px; letter-spacing: -0.06em; }
.subject-card h3 small { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0; }
.subject-card p { position: relative; z-index: 1; max-width: 280px; margin-bottom: 29px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.subject-entry, .math-entry { position: absolute; right: 25px; bottom: 22px; left: 25px; display: flex; align-items: center; justify-content: space-between; padding-top: 17px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--ink); font-size: 11px; font-weight: 800; }
.entry-arrow { color: var(--gold-bright); font-size: 17px; transition: transform 180ms ease; }
.subject-card:hover .entry-arrow { transform: translate(4px, -3px); }
.math-entry { cursor: default; }
.grade-menu { position: absolute; right: -1px; bottom: 47px; left: -1px; z-index: 10; display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(240,202,115,0.38); border-radius: 9px; background: rgba(11, 27, 41, 0.98); box-shadow: 0 20px 42px rgba(0,0,0,0.38); opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity 180ms ease, transform 180ms ease; }
.subject-math:hover .grade-menu, .subject-math:focus-within .grade-menu, .subject-math.touch-open .grade-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.menu-label { padding: 2px 8px 8px; color: var(--gold-bright); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }
.grade-menu button { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 8px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; font-size: 11px; text-align: left; transition: background 150ms ease, padding 150ms ease; }
.grade-menu button:hover, .grade-menu button:focus-visible { padding-left: 12px; outline: none; background: rgba(240,202,115,0.13); }
.grade-menu button span { color: var(--muted); font-family: var(--mono); font-size: 9px; }

.dashboard-section { padding: 80px 0 96px; }
.dashboard-heading { align-items: flex-end; }
.dashboard-controls { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,0.035); backdrop-filter: blur(12px); }
.dashboard-tab { min-height: 44px; padding: 9px 13px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.dashboard-tab:hover { color: var(--ink); transform: translateY(-1px); }
.dashboard-tab.is-active { color: #1f1c15; background: var(--gold-bright); box-shadow: 0 5px 18px rgba(213,170,79,0.2); }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr); gap: 15px; }
.glass-panel { position: relative; overflow: hidden; border: 1px solid rgba(214,231,232,0.14); border-radius: 14px; background: linear-gradient(135deg, rgba(32,52,61,0.7), rgba(14,28,44,0.82)); box-shadow: inset 0 1px rgba(255,255,255,0.08), 0 24px 62px rgba(0,0,0,0.16); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); }
.dashboard-main { --accent: var(--gold-bright); padding: 28px; }
.dashboard-topline, .dashboard-identity, .dashboard-score-row, .dashboard-trend, .knowledge-heading, .focus-heading, .week-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dashboard-identity { justify-content: flex-start; gap: 12px; }
.dashboard-avatar { display: inline-grid; width: 43px; height: 43px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 13px; color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.dashboard-identity div { display: grid; gap: 4px; }
.dashboard-identity strong { color: var(--ink); font-size: 14px; }
.dashboard-identity small { color: var(--muted); font-size: 9px; }
.demo-badge, .sample-count, .week-label { color: #8da5ae; font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; }
.demo-badge { padding: 7px 9px; border: 1px solid rgba(167,219,199,0.17); border-radius: 4px; color: var(--mint); background: rgba(167,219,199,0.06); }
.dashboard-score-row { align-items: flex-end; margin-top: 26px; }
.score-number { color: var(--ink); font-size: clamp(56px, 7vw, 86px); font-weight: 800; line-height: 0.9; letter-spacing: -0.09em; }
.score-denominator { margin-left: 8px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.score-caption { max-width: 330px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.score-orb { position: relative; display: grid; width: 114px; height: 114px; padding: 8px; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress), rgba(255,255,255,0.08) var(--progress)); box-shadow: 0 0 35px color-mix(in srgb, var(--accent) 14%, transparent); }
.score-orb::before { position: absolute; width: 98px; height: 98px; border-radius: 50%; content: ''; background: #122436; }
.score-orb > div { position: relative; z-index: 1; display: grid; gap: 3px; place-items: center; }
.score-orb strong { color: var(--ink); font-size: 20px; }
.score-orb span { color: var(--muted); font-size: 8px; }
.progress-track { position: relative; z-index: 1; height: 5px; margin-top: 25px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,0.09); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.85)); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); transition: width 450ms cubic-bezier(.22,1,.36,1); }
.dashboard-trend { justify-content: flex-start; margin-top: 10px; color: var(--mint); font-family: var(--mono); font-size: 9px; }
.dashboard-trend small { margin-left: auto; color: #8da5ae; font-family: var(--sans); font-size: 10px; }
.knowledge-heading { align-items: flex-end; margin-top: 42px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mini-label { margin: 0 0 5px; color: var(--gold-bright); font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }
.knowledge-heading h3, .focus-heading h3 { margin: 0; color: var(--ink); font-size: 18px; letter-spacing: -0.04em; }
.knowledge-list { position: relative; z-index: 1; }
.knowledge-group { padding: 17px 0 14px; border-bottom: 1px solid rgba(220,232,237,0.09); }
.knowledge-group:last-child { border-bottom: 0; }
.knowledge-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.knowledge-group-title { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 800; }
.knowledge-group-title::before { width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 2px; content: ''; transform: rotate(45deg); }
.knowledge-group-score { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.knowledge-bar { height: 4px; margin: 11px 0 12px 16px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,0.08); }
.knowledge-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); opacity: 0.8; }
.knowledge-children { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; margin-left: 16px; }
.knowledge-point { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; padding: 9px 10px; border: 1px solid rgba(220,232,237,0.08); border-radius: 6px; background: rgba(255,255,255,0.025); }
.knowledge-point span:first-child { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-point strong { color: var(--ink); font-family: var(--mono); font-size: 9px; }
.knowledge-point small { color: #8aa09e; font-size: 8px; }
.point-mini-bar { grid-column: span 2; height: 2px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,0.08); }
.point-mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.dashboard-side { display: grid; gap: 15px; }
.focus-panel, .weekly-panel { padding: 25px; }
.focus-heading { align-items: flex-start; }
.focus-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(240,202,115,0.27); border-radius: 50%; color: var(--gold-bright); background: rgba(240,202,115,0.07); }
.focus-intro { position: relative; z-index: 1; margin: 17px 0 15px; color: var(--muted); font-size: 10px; }
.weak-list { position: relative; z-index: 1; display: grid; gap: 7px; margin: 0 0 21px; padding: 0; list-style: none; counter-reset: weak; }
.weak-list li { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(220,232,237,0.1); counter-increment: weak; }
.weak-list li::before { content: '0' counter(weak); color: #778c95; font-family: var(--mono); font-size: 9px; }
.weak-list li strong { display: block; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weak-list li small { display: block; margin-top: 3px; color: #80959c; font-size: 8px; }
.weak-score { color: var(--coral); font-family: var(--mono); font-size: 11px; }
.focus-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: var(--gold-bright); font-size: 10px; font-weight: 800; }
.focus-link span { font-size: 16px; transition: transform 180ms ease; }
.focus-link:hover span { transform: translate(4px, -3px); }
.week-label { padding-top: 3px; }
.week-chart { position: relative; z-index: 1; display: flex; align-items: end; gap: 7px; height: 102px; margin: 25px 0 16px; padding: 0 4px; border-bottom: 1px solid rgba(220,232,237,0.12); background: repeating-linear-gradient(to top, transparent 0, transparent 24px, rgba(220,232,237,0.06) 25px); }
.week-chart i { flex: 1; min-height: 8px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--mint), rgba(167,219,199,0.12)); box-shadow: 0 0 14px rgba(167,219,199,0.15); animation: bar-rise 800ms both; }
.week-chart i:nth-child(2) { animation-delay: 80ms; }.week-chart i:nth-child(3) { animation-delay: 140ms; }.week-chart i:nth-child(4) { animation-delay: 200ms; }.week-chart i:nth-child(5) { animation-delay: 260ms; }.week-chart i:nth-child(6) { animation-delay: 320ms; }.week-chart i:nth-child(7) { animation-delay: 380ms; }
.week-footer { align-items: flex-end; }
.week-footer span:first-child { display: grid; gap: 4px; }
.week-footer strong { color: var(--ink); font-size: 22px; letter-spacing: -0.06em; }
.week-footer small { color: var(--muted); font-size: 9px; }
.week-up { color: var(--mint); font-family: var(--mono); font-size: 10px; }

.team-section { padding: 48px 0 98px; }
.team-heading { margin-bottom: 29px; }
.team-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 25px; border-color: rgba(167,219,199,0.18); background: linear-gradient(110deg, rgba(28,53,56,0.73), rgba(16,29,44,0.83)); }
.team-intro-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; }
.team-seal { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(240,202,115,0.43); border-radius: 14px; color: var(--gold-bright); background: rgba(240,202,115,0.08); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.team-seal span { color: var(--mint); font-size: 13px; }
.team-intro-main div { display: grid; gap: 5px; }
.team-intro-main strong { color: var(--ink); font-size: 13px; }
.team-intro-main p { max-width: 640px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.team-tag { position: relative; z-index: 1; flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(167,219,199,0.2); border-radius: 4px; color: var(--mint); font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.mentor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 15px; }
.mentor-card { --mentor-accent: var(--gold-bright); position: relative; min-height: 250px; overflow: hidden; contain: paint; padding: 22px 22px 20px; border: 1px solid rgba(214,231,232,0.13); border-radius: 12px; background: linear-gradient(145deg, rgba(28,45,57,0.76), rgba(12,26,42,0.9)); box-shadow: inset 0 1px rgba(255,255,255,0.07), 0 18px 45px rgba(0,0,0,0.1); backdrop-filter: blur(15px) saturate(125%); -webkit-backdrop-filter: blur(15px) saturate(125%); transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.mentor-card::before { position: absolute; top: 0; right: 0; width: 170px; height: 170px; border-radius: 50%; content: ''; background: color-mix(in srgb, var(--mentor-accent) 13%, transparent); filter: blur(22px); transition: transform 350ms ease; }
.mentor-card::after { position: absolute; inset: 0; width: auto; height: auto; content: ''; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.12) 50%, transparent 80%); background-size: 220% 100%; background-position: 120% 0; opacity: 0.24; transition: background-position 600ms ease, opacity 600ms ease; }
.mentor-card:hover { border-color: color-mix(in srgb, var(--mentor-accent) 52%, transparent); box-shadow: 0 23px 55px rgba(0,0,0,0.2); transform: translateY(-5px); }
.mentor-card:hover::before { transform: translate(-20px, 24px) scale(1.2); }
.mentor-card:hover::after { opacity: 0.68; background-position: -20% 0; }
.mentor-gold { --mentor-accent: var(--gold-bright); }.mentor-mint { --mentor-accent: var(--mint); }.mentor-lilac { --mentor-accent: #d2b9f2; }.mentor-coral { --mentor-accent: var(--coral); }.mentor-blue { --mentor-accent: #99c8ec; }.mentor-sand { --mentor-accent: #e5c98e; }
.mentor-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; }
.mentor-initial { display: inline-grid; width: 41px; height: 41px; place-items: center; border: 1px solid color-mix(in srgb, var(--mentor-accent) 55%, transparent); border-radius: 12px; color: var(--mentor-accent); background: color-mix(in srgb, var(--mentor-accent) 11%, transparent); font-size: 17px; font-weight: 900; }
.mentor-index { color: #738991; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; }
.mentor-credential { position: relative; z-index: 1; display: block; margin-top: 19px; color: var(--mentor-accent); font-family: var(--mono); font-size: 8px; letter-spacing: 0.01em; }
.mentor-card h3 { position: relative; z-index: 1; margin: 8px 0 9px; color: var(--ink); font-size: 23px; letter-spacing: -0.06em; }
.mentor-card p { position: relative; z-index: 1; min-height: 45px; margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.mentor-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 5px; }
.mentor-tags span { padding: 5px 7px; border: 1px solid rgba(220,232,237,0.12); border-radius: 4px; color: #a3b4b8; background: rgba(255,255,255,0.035); font-size: 8px; }

.resources-section { padding: 18px 0 76px; }
.resources-heading { margin-bottom: 24px; }
.resource-panel { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 32px; padding: 28px 30px; border-color: rgba(167,219,199,0.18); background: linear-gradient(120deg, rgba(27,51,56,0.76), rgba(14,28,44,0.88)); }
.resource-panel-copy { position: relative; z-index: 1; }
.resource-flag { color: var(--gold-bright); font-family: var(--mono); font-size: 8px; letter-spacing: 0.13em; }
.resource-panel-copy h3 { margin: 14px 0 10px; color: var(--ink); font-size: 22px; letter-spacing: -0.05em; }
.resource-panel-copy p { max-width: 340px; margin-bottom: 21px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.resource-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.resource-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 72px; padding: 10px; border: 1px solid rgba(220,232,237,0.11); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,0.035); transition: min-height 220ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.resource-item:hover, .resource-item:focus-visible { min-height: 104px; border-color: rgba(240,202,115,0.38); outline: none; background: rgba(240,202,115,0.08); transform: translateY(-2px); }
.resource-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(240,202,115,0.28); border-radius: 10px; color: var(--gold-bright); font-family: Georgia, serif; font-size: 18px; font-style: italic; }
.resource-physics .resource-icon { color: #d2b9f2; border-color: rgba(210,185,242,0.3); }
.resource-chemistry .resource-icon { color: var(--coral); border-color: rgba(240,155,120,0.3); }
.resource-english .resource-icon { color: var(--mint); border-color: rgba(167,219,199,0.3); font-family: var(--sans); font-size: 12px; font-style: normal; }
.resource-meta { display: grid; gap: 4px; min-width: 0; }
.resource-item strong { color: var(--ink); font-size: 11px; }
.resource-item small { overflow: hidden; color: #8da2a6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.resource-item b { align-self: start; color: #778c95; font-family: var(--mono); font-size: 8px; font-weight: 400; }
.resource-details { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-4px); transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease; }
.resource-item:hover .resource-details, .resource-item:focus-visible .resource-details { max-height: 28px; opacity: 1; transform: translateY(0); }
.resource-details em { padding: 4px 6px; border: 1px solid rgba(240,202,115,0.22); border-radius: 4px; color: var(--gold-bright); background: rgba(240,202,115,0.08); font-size: 8px; font-style: normal; }

.about-section { padding: 30px 0 130px; }
.about-section h2 { font-size: clamp(38px, 6vw, 76px); }
.contact-section { padding: 0 0 86px; }
.contact-card { display: grid; grid-template-columns: 1fr 0.72fr; gap: 30px; align-items: center; padding: 38px 45px; background: linear-gradient(120deg, rgba(38,55,57,0.78), rgba(16,30,45,0.88)); }
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 55px); }
.contact-copy > p:not(.eyebrow) { max-width: 380px; margin-bottom: 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.contact-signature { display: flex; align-items: center; gap: 11px; color: var(--mint); font-family: var(--mono); font-size: 9px; letter-spacing: 0.09em; }
.contact-signature span { padding-right: 11px; border-right: 1px solid rgba(167,219,199,0.36); color: #80969a; }
.contact-signature strong { font-weight: 400; }
.qr-block { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; }
.qr-frame { width: min(156px, 25vw); padding: 8px; border: 1px solid rgba(240,202,115,0.5); border-radius: 13px; background: #fff; box-shadow: 8px 10px 0 rgba(213,170,79,0.65), 0 18px 32px rgba(0,0,0,0.2); transform: rotate(3deg); transition: transform 250ms ease, box-shadow 250ms ease; }
.contact-card:hover .qr-frame { box-shadow: 14px 16px 0 rgba(213,170,79,0.75), 0 25px 45px rgba(0,0,0,0.24); transform: rotate(0deg) translateY(-4px); }
.qr-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 7px; }
.qr-block > span { color: #a4b2b0; font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; }
.footer { display: flex; justify-content: space-between; padding: 0 0 max(28px, env(safe-area-inset-bottom)); color: rgba(166,178,188,0.65); font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.back-to-top { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 12; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(240,202,115,0.42); border-radius: 50%; color: var(--gold-bright); background: rgba(13,31,45,0.82); box-shadow: 0 12px 30px rgba(0,0,0,0.22), inset 0 1px rgba(255,255,255,0.1); opacity: 0; pointer-events: none; transform: translateY(8px); backdrop-filter: blur(15px) saturate(135%); -webkit-backdrop-filter: blur(15px) saturate(135%); transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus-visible { border-color: var(--gold-bright); outline: none; background: rgba(240,202,115,0.16); transform: translateY(-3px); }
.back-to-top span { font-size: 22px; line-height: 1; }

.modal-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(2, 8, 15, 0.7); opacity: 0; pointer-events: none; backdrop-filter: blur(10px); transition: opacity 220ms ease; }
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.login-modal { position: relative; width: min(450px, 100%); padding: 35px; border: 1px solid rgba(240,202,115,0.32); border-radius: 15px; background: #0e1e2e; box-shadow: 0 30px 90px rgba(0,0,0,0.42); transform: translateY(14px) scale(0.98); transition: transform 220ms ease; }
.is-open .login-modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 15px; right: 17px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 22px; line-height: 1; transition: color 160ms ease, border-color 160ms ease; }
.modal-close:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.modal-kicker { margin-bottom: 17px; color: var(--gold-bright); font-size: 9px; letter-spacing: 0.14em; }
.modal-lock { margin-right: 7px; color: var(--mint); }
.login-modal h2 { margin-bottom: 10px; font-size: 35px; }
.modal-description { margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.modal-access { margin-bottom: 20px; padding: 11px 13px; border-left: 2px solid var(--mint); color: var(--mint); background: rgba(167,219,199,0.07); font-size: 11px; line-height: 1.6; }
.modal-access.is-locked { border-left-color: var(--coral); color: #f3baa3; background: rgba(240,155,120,0.07); }
.login-modal form { display: grid; gap: 8px; }
.login-modal label { margin-top: 5px; color: var(--ink); font-size: 11px; font-weight: 700; }
.login-modal input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; outline: none; color: var(--ink); background: rgba(255,255,255,0.04); font-size: 12px; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.login-modal input::placeholder { color: #70818d; }
.login-modal input:focus { border-color: rgba(240,202,115,0.72); background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(240,202,115,0.1); }
.form-helper { display: flex; justify-content: space-between; margin: 5px 0 13px; color: #7d909c; font-size: 9px; }
.button-full { width: 100%; margin-top: 2px; }
.login-feedback { min-height: 17px; margin: 7px 0 0; color: var(--mint); font-size: 11px; line-height: 1.5; }
.login-feedback.error { color: #f3baa3; }
.modal-footnote { margin: 21px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #728390; font-size: 9px; line-height: 1.7; }

.reveal { animation: reveal-up 700ms both; }
.reveal-delay { animation-delay: 180ms; }
.reveal-delay-1 { animation-delay: 100ms; }
.reveal-delay-2 { animation-delay: 200ms; }

@keyframes reveal-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes levitate { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@keyframes drift { from { transform: translate3d(-2%, -2%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.12); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(167,219,199,0.08); } 50% { box-shadow: 0 0 0 8px rgba(167,219,199,0.02); } }
@keyframes bar-rise { from { opacity: 0; transform: scaleY(0); transform-origin: bottom; } to { opacity: 1; transform: scaleY(1); transform-origin: bottom; } }

@media (max-width: 900px) {
  .topnav { margin-left: 20px; gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-lead { margin-right: auto; margin-left: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .quick-picker { right: 0; left: auto; }
  .hero-visual { min-height: 460px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-note { margin: 0; text-align: left; }
  .subject-grid { grid-template-columns: 1fr 1fr; }
  .subject-math { grid-column: auto; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .resource-panel { grid-template-columns: 1fr; }
  .mentor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 34px, 540px); }
  .topbar { height: 80px; }
  .brand-mark { width: 112px; height: 42px; border-radius: 12px; }
  .brand-mark img { width: 112px; height: 112px; }
  .brand-copy { display: none; }
  .topnav { display: none; }
  .local-pill { margin-left: auto; }
  .hero { min-height: auto; padding: 58px 0 70px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-stats { gap: 23px; margin-top: 52px; }
  .hero-visual { min-height: 385px; }
  .ring-one { width: 290px; height: 290px; }
  .ring-two { width: 350px; height: 230px; }
  .logo-sheet { width: min(275px, 75%); box-shadow: 12px 16px 0 rgba(213,170,79,0.85), 0 22px 50px rgba(0,0,0,0.32); }
  .floating-note { padding: 9px 10px; font-size: 9px; }
  .note-top { left: 0; }
  .note-bottom { right: 0; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-math { grid-column: auto; }
  .subject-card, .subject-math { min-height: 390px; }
  .dashboard-controls { width: 100%; overflow-x: auto; }
  .dashboard-controls { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dashboard-controls::-webkit-scrollbar { display: none; }
  .dashboard-tab { flex: 1 0 auto; }
  .dashboard-main { padding: 22px 18px; }
  .dashboard-side .glass-panel { padding: 22px 18px; }
  .dashboard-topline { align-items: flex-start; flex-direction: column; }
  .score-orb { width: 92px; height: 92px; }
  .score-orb::before { width: 78px; height: 78px; }
  .knowledge-children { grid-template-columns: 1fr; }
  .point-mini-bar { grid-column: auto; }
  .quick-picker { right: auto; left: 0; width: 310px; max-width: calc(100vw - 40px); transform: translateY(8px) scale(0.98); }
  .selection-spot:hover .quick-picker, .selection-spot:focus-within .quick-picker, .selection-spot.is-open .quick-picker { transform: translateY(0) scale(1); }
  .quick-picker > button { min-height: 46px; }
  .quick-grade-buttons button { min-height: 46px; }
  .login-modal input { height: 49px; font-size: 16px; }
  .contact-section { padding-bottom: 70px; }
  .contact-card { grid-template-columns: 1fr; gap: 33px; padding: 29px 22px 34px; }
  .contact-copy h2 { font-size: 42px; }
  .contact-copy > p:not(.eyebrow) { max-width: 290px; }
  .qr-frame { width: min(156px, 48vw); }
  .team-intro { align-items: flex-start; flex-direction: column; padding: 23px 19px; }
  .team-intro-main { align-items: flex-start; }
  .team-intro-main p { max-width: 250px; }
  .team-tag { margin-left: 63px; }
  .mentor-grid { grid-template-columns: 1fr; }
  .resources-section { padding-top: 6px; }
  .resource-panel { gap: 24px; padding: 23px 19px; }
  .resource-list { grid-template-columns: 1fr; }
  .resource-item { min-height: 104px; align-content: start; }
  .resource-details { max-height: 28px; opacity: 1; transform: none; }
  .mentor-card { min-height: 236px; padding: 21px 19px 19px; }
  .footer { flex-direction: column; gap: 8px; }
  .login-modal { padding: 28px 22px; }
  .form-helper { gap: 8px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
