/* ============================================================
   EdSight 學見 — "EdSight OS" design system · LIGHT primary
   Light engineered canvas + dark console "islands"
   Type: Space Grotesk (Latin display) · Noto Sans HK · JetBrains Mono
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #f7f9fc;
  --surface-1: #ffffff;
  --surface-2: #f2f6fb;
  --elevated: #ffffff;

  /* Lines */
  --line: rgba(13, 27, 48, 0.09);
  --line-strong: rgba(13, 27, 48, 0.18);
  --line-accent: rgba(2, 132, 199, 0.45);

  /* Text */
  --text: #0b1524;
  --body: #45536b;
  --muted: #64748b;
  --subtle: #64748b;

  /* Accent system */
  --accent: #0369a1;          /* labels, mono, links */
  --accent-strong: #0284c7;   /* large numbers */
  --cyan: #38bdf8;            /* decorative fills */
  --cyan-2: #22d3ee;
  --tint: rgba(2, 132, 199, 0.07);
  --tint-border: rgba(2, 132, 199, 0.28);

  --teal: #0f766e;
  --violet: #6d28d9;
  --gold-border: #f59e0b;
  --gold-text: #b45309;
  --success: #059669;
  --danger: #dc2626;
  --whatsapp: #25d366;
  --white: #ffffff;

  /* Effects */
  --shadow-card: 0 12px 32px rgba(13, 27, 48, 0.07);
  --shadow-panel: 0 24px 64px rgba(13, 27, 48, 0.12);
  --glow-cyan: 0 0 0 1px rgba(2, 132, 199, 0.16), 0 16px 48px rgba(2, 132, 199, 0.1);

  /* Type */
  --font-body: "Noto Sans HK", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Noto Sans HK", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --r-card: 12px;
  --r-chip: 8px;
}

/* ---------- Dark console islands (scoped token override) ---------- */
.screen, .student-mock, .comparison-column.highlighted, .tb-col.new,
.mock-strip, .pilot-card, .download-card, .video-frame {
  --surface-1: #0a0f18;
  --surface-2: #0d1420;
  --elevated: #101826;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --line-accent: rgba(56, 189, 248, 0.38);
  --text: #f2f6fc;
  --body: rgba(226, 232, 240, 0.78);
  --muted: #94a3b8;
  --subtle: #7c8aa0;
  --accent: #7dd3fc;
  --accent-strong: #22d3ee;
  --tint: rgba(56, 189, 248, 0.12);
  --tint-border: rgba(56, 189, 248, 0.32);
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --gold-border: #f5c451;
  --gold-text: #f5c451;
  --success: #34d399;
  --danger: #f87171;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-panel: 0 24px 64px rgba(4, 10, 22, 0.5);
  --glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.22), 0 16px 48px rgba(34, 211, 238, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(2, 132, 199, 0.2); color: var(--text); }

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

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--text); }

/* ============ Background field ============ */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(13, 27, 48, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 18%, transparent 76%);
}
.bg-glow {
  position: absolute;
  top: -340px; left: 50%;
  width: 1100px; height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.13), rgba(34, 211, 238, 0.04) 45%, transparent 70%);
}

/* ============ Scroll progress ============ */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-strong), var(--cyan-2));
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
  transition: width 0.08s linear;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 68px; padding: 0 5vw;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.site-header.scrolled {
  background: rgba(250, 252, 255, 0.94);
  border-color: var(--line-strong);
  box-shadow: 0 8px 28px rgba(13, 27, 48, 0.05);
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-by {
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  position: relative;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.nav-links a {
  padding: 9px 13px;
  border-radius: 8px;
  position: relative;
  white-space: nowrap;
  z-index: 1;
  transition: color 0.18s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-indicator {
  position: absolute; top: 50%; left: 0;
  height: 34px; border-radius: 8px;
  background: rgba(13, 27, 48, 0.045);
  border: 1px solid var(--line);
  transform: translateY(-50%);
  transition: left 0.35s var(--ease-snap), width 0.35s var(--ease-snap), opacity 0.25s;
  pointer-events: none; opacity: 0; z-index: 0;
}
.nav-indicator.visible { opacity: 1; }

/* Buttons */
.nav-cta, .button, .contact-form button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background 0.18s var(--ease-out), border-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
}
.nav-cta {
  background: #0b1524;
  color: var(--white);
  padding: 0 18px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover { background: #14233c; box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28); transform: translateY(-1px); }
.nav-cta svg { width: 13px; height: 13px; }

.button { border: 1px solid transparent; padding: 0 20px; font-size: 0.96rem; }
.button svg { width: 13px; height: 13px; transition: transform 0.2s var(--ease-out); }
.button:hover svg { transform: translateX(3px); }
.button.primary { background: #0b1524; color: var(--white); }
.button.primary:hover { background: #14233c; box-shadow: 0 10px 32px rgba(2, 132, 199, 0.3); transform: translateY(-1px); }
.button.secondary {
  background: var(--surface-1);
  border-color: var(--line-strong);
  color: var(--body);
}
.button.secondary:hover { border-color: var(--line-accent); color: var(--text); background: var(--tint); }

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-1);
  cursor: pointer; padding: 0; flex: none;
  transition: border-color 0.2s var(--ease-out);
}
.nav-toggle:hover { border-color: var(--line-accent); }
.nav-toggle span {
  position: absolute; left: 50%;
  width: 17px; height: 1.6px; border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.28s var(--ease-snap), opacity 0.18s var(--ease-out), top 0.28s var(--ease-snap);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.site-header.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 39;
  background: rgba(250, 252, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(13, 27, 48, 0.1);
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 2px;
  transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: transform 0.28s var(--ease-snap), opacity 0.22s var(--ease-out), visibility 0s linear 0.28s;
}
.mobile-menu.open {
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform 0.3s var(--ease-snap), opacity 0.22s var(--ease-out);
}
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  transition: background 0.18s var(--ease-out);
}
.mobile-menu a::after { content: "→"; color: var(--subtle); font-weight: 500; }
.mobile-menu a:active { background: var(--tint); }
.mobile-menu .mobile-cta { margin-top: 8px; justify-content: center; background: #0b1524; color: var(--white); }
.mobile-menu .mobile-cta::after { content: none; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 38;
  background: rgba(9, 16, 28, 0.32);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0s linear 0.28s;
}
.menu-scrim.open { opacity: 1; visibility: visible; transition: opacity 0.28s var(--ease-out); }
body.menu-locked { overflow: hidden; }

/* ============ Hero ============ */
.hero {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  min-height: calc(100vh - 68px);
  padding: 8vh 5vw 6vh;
  position: relative; z-index: 1;
  align-items: center;
}
.hero-copy { max-width: 680px; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.eyebrow .dot {
  width: 6px; height: 6px; flex: none;
  background: var(--accent-strong);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.6);
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.22;
  letter-spacing: 0.005em;
  margin-bottom: 24px;
  font-weight: 700;
}
.hero h1 .line { display: block; }

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
}
h3 { font-size: 1.14rem; line-height: 1.35; margin-bottom: 10px; font-weight: 700; }

.gradient-text {
  background: linear-gradient(105deg, #0369a1 0%, #0284c7 50%, #0891b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text-light {
  background: linear-gradient(105deg, #a5e3ff 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
  margin-bottom: 30px;
}
.lead strong { color: var(--text); font-weight: 700; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats {
  border-top: 1px solid var(--line);
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 24px;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-stats span { color: var(--muted); display: block; font-size: 0.82rem; line-height: 1.5; margin-top: 4px; }

/* ============ Hero dashboard console (dark island) ============ */
.hero-visual { display: flex; align-items: center; min-width: 0; position: relative; z-index: 2; }

.screen {
  width: 100%;
  min-height: 560px;
  background: var(--surface-1);
  border: 1px solid rgba(11, 21, 36, 0.5);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-panel);
}
.screen-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(56, 189, 248, 0.65) 50%, transparent 95%);
  z-index: 3; pointer-events: none;
}

.screen-topbar {
  display: flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.screen-topbar > span:nth-child(-n+3) { width: 9px; height: 9px; border-radius: 50%; display: block; }
.screen-topbar span:nth-child(1) { background: rgba(148, 163, 184, 0.28); }
.screen-topbar span:nth-child(2) { background: rgba(148, 163, 184, 0.28); }
.screen-topbar span:nth-child(3) { background: var(--cyan-2); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
.screen-topbar p {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0 10px;
}

.live-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--success);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 8px; border-radius: 4px;
}
.live-pill i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse-live 1.8s ease-out infinite;
}
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

.screen-grid { display: grid; grid-template-columns: 152px 1fr; min-height: 516px; position: relative; z-index: 2; }

.mini-sidebar {
  background: #070b12;
  border-right: 1px solid var(--line);
  color: var(--subtle);
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px 12px;
}
.mini-sidebar strong {
  color: var(--text);
  font-family: var(--font-display);
  margin: 0 0 16px 8px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.mini-sidebar span {
  border-radius: 7px;
  font-size: 0.76rem; font-weight: 600;
  padding: 9px 10px;
  transition: color 0.18s, background 0.18s;
  cursor: default;
}
.mini-sidebar span:hover { color: var(--muted); background: rgba(148, 163, 184, 0.05); }
.mini-sidebar .active {
  background: rgba(56, 189, 248, 0.09);
  box-shadow: inset 2px 0 0 var(--cyan);
  color: var(--text);
}
.mini-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem !important;
  color: var(--subtle) !important;
  letter-spacing: 0.08em;
  padding: 8px 10px !important;
}

.dashboard-preview {
  background:
    radial-gradient(circle at 85% 0%, rgba(56, 189, 248, 0.06), transparent 34%),
    var(--surface-1);
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px;
}

.preview-header, .metrics-row, .chart-title, .student-row { display: flex; align-items: center; }
.preview-header { justify-content: space-between; }
.preview-header p, .preview-header h2 { margin: 0; }
.preview-header p { color: var(--subtle); font-size: 0.74rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.preview-header h2 { color: var(--text); font-size: 1.35rem; letter-spacing: 0; }

.status, .tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px;
  white-space: nowrap;
}
.status { color: var(--success); background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.28); }
.status i { width: 5px; height: 5px; background: var(--success); border-radius: 50%; animation: pulse-live 1.8s ease-out infinite; }
.tag {
  color: var(--accent); background: var(--tint);
  border: 1px solid var(--tint-border);
  cursor: pointer;
  transition: background 0.18s;
}
.tag:hover { background: rgba(56, 189, 248, 0.2); }

.metrics-row { gap: 10px; }
.metrics-row article, .chart-card, .student-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metrics-row article { flex: 1; min-height: 100px; padding: 13px 14px; transition: border-color 0.2s var(--ease-out); }
.metrics-row article:hover { border-color: var(--line-strong); }
.metrics-row span, .metrics-row small { display: block; font-size: 0.72rem; color: var(--subtle); }
.metrics-row strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.34rem; font-weight: 700;
  margin: 6px 0 3px;
}
.trend-up { color: var(--success); font-size: 0.66rem; }

.chart-card { padding: 16px; }
.chart-title { justify-content: space-between; margin-bottom: 14px; }
.chart-title strong { color: var(--text); font-size: 0.94rem; }
.chart-title span { color: var(--subtle); font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.03em; }

.bar-chart {
  display: grid; align-items: end; gap: 10px;
  grid-template-columns: repeat(6, 1fr);
  height: 150px;
}
.bar-chart span {
  display: block; position: relative; height: 0;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.45));
  border-radius: 3px 3px 0 0;
  transition: height 1.1s var(--ease-snap);
}
.bar-chart.in-view span { height: var(--h); }
.bar-chart span:nth-child(2) { transition-delay: 70ms; }
.bar-chart span:nth-child(3) { transition-delay: 140ms; }
.bar-chart span:nth-child(4) { transition-delay: 210ms; }
.bar-chart span:nth-child(5) { transition-delay: 280ms; }
.bar-chart span:nth-child(6) { transition-delay: 350ms; }
.bar-chart span i {
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 500; font-style: normal;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s 0.9s;
}
.bar-chart.in-view span i { opacity: 1; }

.student-row { gap: 12px; justify-content: space-between; padding: 13px 14px; }
.student-row div { flex: 1; }
.student-row strong { color: var(--text); font-size: 0.9rem; }
.student-row p { color: var(--muted); font-size: 0.78rem; margin: 3px 0 0; line-height: 1.5; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(167, 139, 250, 0.22));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text);
  font-weight: 700; font-size: 0.9rem;
}

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--subtle);
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em;
}
.scroll-cue i { width: 1px; height: 30px; background: linear-gradient(180deg, var(--accent-strong), transparent); position: relative; overflow: hidden; }
.scroll-cue i::before {
  content: "";
  position: absolute; top: -14px; left: 0; right: 0; height: 14px;
  background: var(--cyan-2);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { top: -14px; } 100% { top: 30px; } }

/* ============ Marquee ticker ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.6);
  position: relative; z-index: 1;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 34px;
  white-space: nowrap;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.marquee-track span em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-right: 7px;
}
.marquee-track i { color: var(--subtle); font-style: normal; opacity: 0.5; font-size: 0.8rem; font-family: var(--font-mono); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: 104px 5vw; position: relative; z-index: 1; }
.section-heading { max-width: 880px; margin-bottom: 52px; }
.section-lead { color: var(--muted); font-size: 1.02rem; line-height: 1.8; margin-bottom: 0; max-width: 800px; }
.section-heading p + h2 { margin-bottom: 20px; }
.section-heading h2 + .section-lead { margin-top: 14px; }

/* Mono section index — auto numbering (increments only where displayed) */
body { counter-reset: sec; }
.section-heading { counter-increment: sec; }
.section-heading .eyebrow::before {
  content: counter(sec, decimal-leading-zero) " / ";
  color: var(--subtle);
  letter-spacing: 0.1em;
}
.section-heading .eyebrow .dot { order: -1; }

/* Section tints */
.experts, .sse, .roles { background: linear-gradient(180deg, transparent, rgba(13, 27, 48, 0.028) 16%, rgba(13, 27, 48, 0.028) 84%, transparent); }

/* ============ Generic card grid ============ */
.grid-cards { display: grid; gap: 14px; }
.grid-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cards + .grid-cards { margin-top: 14px; }

.gcard {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  position: relative;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.gcard:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.gcard h3 { font-size: 1.08rem; margin-bottom: 9px; }
.gcard h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.gcard h4 em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.gcard p { color: var(--muted); line-height: 1.72; font-size: 0.9rem; margin: 0; }
.gcard-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gcard-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.gcard-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid;
}
.gcard-ic svg { width: 19px; height: 19px; }
.gcard-ic.teal { color: var(--teal); background: rgba(15, 118, 110, 0.07); border-color: rgba(15, 118, 110, 0.3); }
.gcard-ic.blue { color: var(--accent); background: var(--tint); border-color: var(--tint-border); }
.gcard-ic.violet { color: var(--violet); background: rgba(109, 40, 217, 0.06); border-color: rgba(109, 40, 217, 0.28); }

/* ============ Transform bar ============ */
.transform-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px; align-items: center;
  margin-top: 26px;
}
.tb-col { border-radius: var(--r-card); padding: 22px 26px; }
.tb-col.old { background: var(--surface-1); border: 1px solid var(--line); }
.tb-col.new {
  position: relative;
  background: var(--elevated);
  border: 1px solid var(--line-accent);
  box-shadow: var(--glow-cyan);
}
.tb-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 13px;
}
.tb-col.old .tb-tag { color: var(--subtle); background: rgba(13, 27, 48, 0.05); }
.tb-col.new .tb-tag { color: var(--accent); background: var(--tint); border: 1px solid var(--tint-border); }
.tb-col ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.tb-col li { font-weight: 600; font-size: 0.94rem; position: relative; padding-left: 14px; }
.tb-col li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 5px; height: 5px; }
.tb-col.old li { color: var(--subtle); }
.tb-col.old li::before { background: var(--subtle); }
.tb-col.new li { color: var(--text); }
.tb-col.new li::before { background: var(--cyan-2); box-shadow: 0 0 8px rgba(34, 211, 238, 0.7); }
.tb-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--accent-strong);
  min-width: 116px; text-align: center;
}
.tb-arrow svg { width: 26px; height: 26px; }
.tb-arrow small { color: var(--subtle); font-weight: 600; font-size: 0.74rem; line-height: 1.5; }

/* ============ Flow steps ============ */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.flow-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-step {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 20px;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.flow-step:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(2, 132, 199, 0.45);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.86rem;
  color: var(--accent);
  background: var(--tint);
  margin-bottom: 13px;
}
.flow-ic { display: block; color: var(--muted); margin-bottom: 10px; }
.flow-ic svg { width: 24px; height: 24px; }
.flow-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 7px; }
.flow-step h4 em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 3px;
}
.flow-step p { color: var(--muted); line-height: 1.68; font-size: 0.88rem; margin: 0; }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute; right: -11px; top: 38px;
  width: 8px; height: 8px;
  border-top: 1.6px solid var(--line-strong);
  border-right: 1.6px solid var(--line-strong);
  transform: rotate(45deg);
  z-index: 2;
}
.flow-layers .flow-num { background: rgba(15, 118, 110, 0.07); border-color: rgba(15, 118, 110, 0.45); color: var(--teal); }
.flow-layers .flow-step:hover { border-color: rgba(15, 118, 110, 0.4); }
.flow-5 .flow-step { text-align: center; padding: 20px 14px; }
.flow-5 .flow-num { margin-left: auto; margin-right: auto; }
.flow-5 .flow-step h4 { margin-bottom: 0; font-size: 0.94rem; }
.flow-5 .flow-step::after { display: none; }

/* ============ Sub-heading ============ */
.sub-heading { margin: 48px 0 20px; max-width: 820px; }
.sub-heading h3 { font-size: clamp(1.24rem, 2.2vw, 1.56rem); margin-bottom: 7px; }
.sub-heading p { color: var(--muted); margin: 0; line-height: 1.65; font-size: 0.98rem; }

/* ============ Pull quote ============ */
.pullquote {
  margin: 48px 0 0;
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold-border);
  border-radius: var(--r-card);
  padding: 36px 42px 36px 88px;
  box-shadow: var(--shadow-card);
}
.pullquote::before {
  content: "\201C";
  position: absolute; left: 28px; top: 16px;
  font-size: 4.6rem; line-height: 1;
  color: var(--gold-border);
  font-family: Georgia, "Times New Roman", serif;
  opacity: 0.9;
}
.pullquote p {
  margin: 0;
  font-size: clamp(1.1rem, 1.9vw, 1.44rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}
.pullquote .hl { color: var(--gold-text); }

/* ============ Comparison ============ */
.comparison { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-column {
  border-radius: var(--r-card);
  padding: 32px;
  position: relative;
  transition: transform 0.25s var(--ease-out);
}
.comparison-column:hover { transform: translateY(-2px); }
.comparison-column.muted { background: var(--surface-1); border: 1px solid var(--line); }
.comparison-column.muted h3 { color: var(--muted); }
.comparison-column.highlighted {
  background: #0b1220;
  border: 1px solid var(--line-accent);
  box-shadow: var(--glow-cyan), var(--shadow-panel);
  overflow: hidden;
}
.comparison-column.highlighted h3 { color: var(--text); font-size: 1.4rem; }
.hl-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 13px;
  letter-spacing: 0.1em;
}
.hl-glow {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  bottom: -90px; right: -70px;
  pointer-events: none;
  filter: blur(30px);
}
.comparison ul { list-style: none; margin: 20px 0 0; padding: 0; }
.comparison li {
  border-top: 1px solid var(--line);
  padding: 15px 0 15px 24px;
  position: relative;
  line-height: 1.68;
  font-size: 0.94rem;
  color: var(--muted);
}
.comparison li::before {
  content: "";
  position: absolute; left: 0; top: 24px;
  width: 12px; height: 1.6px;
  background: var(--subtle);
}
.comparison li strong { color: var(--body); }
.comparison-column.highlighted li { color: var(--body); border-color: rgba(148, 163, 184, 0.16); }
.comparison-column.highlighted li strong { color: var(--text); }
.comparison-column.highlighted li::before { background: var(--cyan); box-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }

/* ============ Teacher pattern ============ */
.pattern-block {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 30px;
  margin-top: 32px;
  align-items: start;
}
.pattern-intro h3 { font-size: 1.34rem; margin-bottom: 11px; }
.pattern-intro p { color: var(--muted); line-height: 1.78; margin: 0; }
.pattern-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pattern-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 17px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.pattern-list li:hover { border-color: var(--line-accent); transform: translateX(3px); }
.pl-key {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(2, 132, 199, 0.45);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.84rem;
  color: var(--accent);
  background: var(--tint);
}
.pattern-list strong { color: var(--text); display: block; font-size: 0.96rem; margin-bottom: 2px; }
.pattern-list p { color: var(--muted); margin: 0; font-size: 0.87rem; line-height: 1.58; }

/* ============ Insight cards / charts ============ */
.insight-board { display: grid; gap: 14px; margin-top: 40px; }
.analytics .insight-board, .benchmark .insight-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.insight-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.insight-card:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.insight-card p { margin: 16px 0 0; color: var(--muted); line-height: 1.7; font-size: 0.9rem; }

.skill-map { display: grid; gap: 13px; margin-top: 16px; }
.skill-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 84px 1fr 42px;
}
.skill-row span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.skill-row strong {
  font-family: var(--font-mono);
  font-size: 0.8rem; font-weight: 600;
  color: var(--text);
  text-align: right;
}
.skill-row div {
  background: rgba(13, 27, 48, 0.07);
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}
.skill-row i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, var(--cyan));
  transition: width 1.2s var(--ease-snap);
}
.skill-row i.i-mid { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.skill-row i.i-soft { background: #b6c2d4; }
.insight-card.in-view .skill-row i { width: var(--w); }
.insight-card.in-view .skill-row:nth-child(2) i { transition-delay: 100ms; }
.insight-card.in-view .skill-row:nth-child(3) i { transition-delay: 200ms; }
.insight-card.in-view .skill-row:nth-child(4) i { transition-delay: 300ms; }
.bm-board .skill-row { grid-template-columns: 88px 1fr 48px; }

.progress-chart {
  background:
    linear-gradient(rgba(13, 27, 48, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 48, 0.045) 1px, transparent 1px),
    #fbfdff;
  background-size: 28px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 210px;
  margin-top: 16px;
  padding: 10px;
}
.progress-chart svg { display: block; height: 100%; width: 100%; overflow: visible; }
.progress-chart .grid-line { fill: none; stroke: rgba(13, 27, 48, 0.08); stroke-width: 1; }
.progress-chart .trend {
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-width: 3.5;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.8s var(--ease-snap);
}
.progress-chart .trend-main { stroke: var(--accent-strong); filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.35)); }
.progress-chart .trend-soft { stroke: #b6c2d4; stroke-width: 2.5; transition-delay: 0.15s; }
.progress-chart circle {
  fill: #ffffff; stroke: var(--accent-strong); stroke-width: 2.5;
  transform-origin: center; transform: scale(0);
  transition: transform 0.35s var(--ease-snap);
}
.insight-card.in-view .progress-chart .trend { stroke-dashoffset: 0; }
.insight-card.in-view .progress-chart circle { transform: scale(1); }
.insight-card.in-view .progress-chart circle:nth-of-type(1) { transition-delay: 0.5s; }
.insight-card.in-view .progress-chart circle:nth-of-type(2) { transition-delay: 0.75s; }
.insight-card.in-view .progress-chart circle:nth-of-type(3) { transition-delay: 1s; }
.insight-card.in-view .progress-chart circle:nth-of-type(4) { transition-delay: 1.25s; }
.insight-card.in-view .progress-chart circle:nth-of-type(5) { transition-delay: 1.5s; }

/* ============ Subject cases ============ */
.cases-wrap { margin-top: 6px; }
.case-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.case-tab {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  font-weight: 600; font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s, background 0.2s, border-color 0.16s;
  min-height: 42px;
}
.case-tab:hover { color: var(--text); background: rgba(13, 27, 48, 0.04); }
.case-tab.is-active {
  background: var(--tint);
  border-color: rgba(2, 132, 199, 0.4);
  color: var(--text);
}
.case-panel { display: none; }
.case-panel.is-active { display: block; animation: case-in 0.32s var(--ease-out); }
@keyframes case-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 26px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.case-text h3 { font-size: 1.28rem; margin-bottom: 11px; }
.case-text p { color: var(--muted); line-height: 1.78; margin: 0; font-size: 0.95rem; }
.case-text p strong { color: var(--text); }
.case-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.case-steps li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.case-steps li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--tint);
  border: 1px solid rgba(2, 132, 199, 0.4);
}
.case-steps li::after {
  content: "";
  position: absolute; left: 4.5px; top: 8px;
  width: 3.5px; height: 7px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
}
.case-steps strong { color: var(--text); }
.case-side { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.case-figure {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.case-figure img { display: block; width: 100%; height: auto; border-radius: 4px; }

/* Teaching-scene photo at top of each case */
.case-photo {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.case-photo img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }

/* Prominent full-width section photo (always visible, not in a tab) */
.section-photo {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
}
.section-photo img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.section-photo figcaption {
  padding: 13px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* 由 leaflet cap 出嚟嘅品牌圖（自帶標題）：完整顯示、白底融合、唔 crop */
.brochure-figure {
  max-width: 920px;
  margin: 12px auto 6px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.brochure-figure img { display: block; width: 100%; height: auto; }
/* 產品截圖版：細啲、置中、附說明（用於學習分析段） */
.brochure-figure.compact { max-width: 560px; }
.brochure-figure figcaption {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .brochure-figure { padding: 12px 12px; border-radius: 12px; }
}

.stat-ba {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 16px;
}
.stat-ba-item { flex: 1; text-align: center; }
.stat-ba-item span { display: block; color: var(--subtle); font-size: 0.7rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.stat-ba-item strong {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  color: #8a97ab;
  line-height: 1;
}
.stat-ba-item strong em { font-style: normal; font-size: 0.95rem; }
.stat-ba-item.up strong { color: var(--accent-strong); }
.stat-ba-arrow { color: var(--accent-strong); font-weight: 700; font-size: 1.4rem; flex: none; font-family: var(--font-mono); }
.case-quote {
  margin: 0;
  color: var(--body);
  font-weight: 600; font-size: 0.94rem; line-height: 1.66;
  border-left: 2px solid var(--gold-border);
  padding-left: 14px;
}
.case-bilingual {
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: 10px;
  padding: 16px 18px;
}
.cb-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  color: var(--accent);
  background: rgba(2, 132, 199, 0.1);
  padding: 3px 9px; border-radius: 4px;
  margin-bottom: 9px;
  letter-spacing: 0.08em;
}
.case-bilingual p { color: var(--body); margin: 0; line-height: 1.66; font-size: 0.9rem; }

/* Mock exam strip (dark island) */
.mock-strip {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
  background: #0b1220;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.mock-strip::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
}
.mock-text { max-width: 620px; }
.mock-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 11px;
}
.mock-text h3 { font-size: 1.18rem; margin-bottom: 7px; }
.mock-text p { color: var(--muted); line-height: 1.68; margin: 0; font-size: 0.9rem; }
.stat-ba.compact { background: rgba(5, 7, 12, 0.5); border-color: var(--line); min-width: 300px; }
.stat-ba.compact .stat-ba-item strong { color: var(--subtle); }
.stat-ba.compact .stat-ba-item.up strong { color: var(--accent-strong); text-shadow: 0 0 24px rgba(34, 211, 238, 0.4); }

/* ============ Student space ============ */
.student-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: start;
}
.student-mock {
  background: var(--surface-1);
  border: 1px solid rgba(11, 21, 36, 0.5);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-panel);
}
.student-mock::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(167, 139, 250, 0.6) 50%, transparent 95%);
  z-index: 3;
}
.sm-bar {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.sm-bar > span:nth-child(-n+3) { width: 9px; height: 9px; border-radius: 50%; display: block; }
.sm-bar span:nth-child(1) { background: rgba(148, 163, 184, 0.28); }
.sm-bar span:nth-child(2) { background: rgba(148, 163, 184, 0.28); }
.sm-bar span:nth-child(3) { background: var(--violet); box-shadow: 0 0 8px rgba(167, 139, 250, 0.7); }
.sm-bar p { margin: 0 0 0 9px; color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; }
.sm-adaptive {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.09);
  border: 1px solid rgba(167, 139, 250, 0.32);
  padding: 3px 8px; border-radius: 4px;
}
.sm-adaptive i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.8);
}
.sm-body {
  padding: 18px;
  display: grid; gap: 12px;
  background:
    radial-gradient(circle at 88% 4%, rgba(167, 139, 250, 0.07), transparent 32%),
    var(--surface-1);
}
.sm-head { display: flex; align-items: center; gap: 12px; }
.sm-head strong { color: var(--text); font-size: 0.94rem; display: block; }
.sm-head small { color: var(--subtle); font-size: 0.76rem; }
.sm-avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.24), rgba(56, 189, 248, 0.24));
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.sm-weak {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem; font-weight: 600;
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 4px 9px; border-radius: 4px;
  white-space: nowrap;
}
.sm-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
}
.sm-q { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; flex-wrap: wrap; }
.sm-qtag {
  font-family: var(--font-mono);
  font-size: 0.64rem; font-weight: 600;
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 2px 8px; border-radius: 4px;
}
.sm-q p { margin: 0; color: var(--text); font-size: 0.88rem; font-weight: 600; }

.ask-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; min-height: 32px; }
.ask-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ask-box {
  width: 20px; height: 20px; flex: none;
  border-radius: 6px;
  border: 1.4px solid var(--line-strong);
  background: var(--surface-1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #05070c;
  transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.ask-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(0.6); transition: opacity 0.18s var(--ease-snap), transform 0.18s var(--ease-snap); }
.ask-text { font-size: 0.84rem; font-weight: 700; color: var(--accent); }
.ask-done {
  font-size: 0.76rem; font-weight: 600;
  color: var(--success);
  margin-left: auto;
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.ask-toggle input:checked + .ask-box { background: var(--cyan-2); border-color: var(--cyan-2); }
.ask-toggle input:checked + .ask-box svg { opacity: 1; transform: scale(1); }
.ask-toggle input:checked ~ .ask-done { opacity: 1; transform: none; }
.ask-toggle input:checked ~ .ask-text { color: var(--subtle); }
.ask-toggle input:focus-visible + .ask-box { outline: 2px solid var(--cyan); outline-offset: 2px; }

.sm-history small { color: var(--subtle); font-size: 0.7rem; font-weight: 600; display: block; margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-chips span {
  font-size: 0.74rem; font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 4px 10px; border-radius: 5px;
}
.sm-chips span:last-child { color: var(--subtle); background: transparent; border-style: dashed; border-color: var(--line-strong); }

.sm-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.sm-prow strong { color: var(--text); font-size: 0.88rem; }
.sm-diff { display: inline-flex; align-items: center; gap: 4px; font-size: 0.66rem; font-weight: 600; color: var(--subtle); font-family: var(--font-mono); }
.sm-diff i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.sm-diff i.off { background: rgba(167, 139, 250, 0.22); }
.sm-pbar { height: 6px; border-radius: 99px; background: rgba(148, 163, 184, 0.1); overflow: hidden; margin-bottom: 8px; }
.sm-pbar i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 1.2s var(--ease-snap);
}
.student-mock.in-view .sm-pbar i { width: var(--w); }
.sm-practice small { color: var(--subtle); font-size: 0.76rem; }

.student-features { display: grid; gap: 12px; }
.student-feat {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px 22px 20px 62px;
  position: relative;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.student-feat:hover { border-color: rgba(109, 40, 217, 0.38); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feat-tag {
  position: absolute; left: 19px; top: 21px;
  width: 28px; height: 28px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.84rem;
  color: var(--violet);
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.35);
}
.student-feat h3 { font-size: 1.02rem; margin-bottom: 7px; }
.student-feat p { color: var(--muted); line-height: 1.7; font-size: 0.89rem; margin: 0; }

/* ============ Roles ============ */
.role-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-grid article {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.role-grid article:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.role-grid article p { color: var(--muted); line-height: 1.72; font-size: 0.92rem; }
.role-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid var(--tint-border);
  margin-bottom: 16px;
}
.role-icon svg { width: 21px; height: 21px; }
.role-bar { height: 5px; background: rgba(13, 27, 48, 0.07); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.role-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #0ea5e9, var(--cyan));
  border-radius: inherit;
  transition: width 1.2s var(--ease-snap);
}
.role-grid article.in-view .role-bar i { width: var(--w); }

/* ============ Before/After flow ============ */
.ba-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px; align-items: stretch;
  margin-top: 8px;
}
.ba-flow.two { grid-template-columns: 1fr auto 1fr; }
.ba-col {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
}
.ba-col.mid {
  background: rgba(2, 132, 199, 0.045);
  border-color: rgba(2, 132, 199, 0.42);
  box-shadow: var(--glow-cyan);
}
.ba-col.after { border-color: rgba(5, 150, 105, 0.32); background: rgba(5, 150, 105, 0.035); }
.ba-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.74rem;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.ba-col.before .ba-label { color: var(--subtle); }
.ba-col.mid .ba-label { color: var(--accent); }
.ba-col.after .ba-label { color: var(--success); }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ba-col li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.ba-col li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #b6c2d4; }
.ba-col.mid li { color: var(--body); }
.ba-col.mid li::before { background: var(--accent-strong); }
.ba-col.after li { color: var(--body); }
.ba-col.after li::before { background: var(--success); }
.ba-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent-strong); }
.ba-arrow svg { width: 24px; height: 24px; }

/* ============ Chip row ============ */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.chip-row-label {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.76rem;
  color: var(--text);
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.chip-row span:not(.chip-row-label) {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 7px 13px;
  border-radius: 6px;
  transition: border-color 0.18s, background 0.18s;
}
.chip-row span:not(.chip-row-label):hover { background: rgba(2, 132, 199, 0.12); border-color: rgba(2, 132, 199, 0.4); }

/* ============ Benchmark note ============ */
.benchmark-note {
  display: flex; align-items: flex-start; gap: 13px;
  margin: 26px 0 0;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 19px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.93rem;
}
.benchmark-note strong { color: var(--text); }
.bn-ic {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  color: var(--accent);
  display: grid; place-content: center;
}
.bn-ic svg { width: 16px; height: 16px; }

/* ============ Video (dark island) ============ */
.demo-video .section-heading { text-align: center; margin-left: auto; margin-right: auto; }
.video-frame {
  position: relative;
  width: min(920px, 100%);
  margin: 36px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 21, 36, 0.5);
  box-shadow: var(--shadow-panel);
  background: var(--surface-1);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 13px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.12), transparent 55%),
    var(--surface-1);
}
.video-placeholder p { color: var(--text); font-size: 1.04rem; font-weight: 700; margin: 0; }
.video-placeholder span { color: var(--subtle); font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.06em; }
.video-play {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 0; cursor: pointer;
  display: grid; place-content: center;
  color: #05070c;
  background: #f2f6fc;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-play::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  animation: video-ring 2.4s ease-out infinite;
}
.video-play:hover { transform: scale(1.06); box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35); }
@keyframes video-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ============ Pilot (dark island) ============ */
.pilot-card {
  position: relative;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  background: #0b1220;
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  box-shadow: var(--glow-cyan), var(--shadow-panel);
  padding: 48px;
  overflow: hidden;
}
.pilot-bg { position: absolute; inset: 0; pointer-events: none; }
.pilot-bg span:nth-child(1) {
  position: absolute;
  width: 420px; height: 420px;
  top: -180px; right: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13), transparent 70%);
  filter: blur(30px);
}
.pilot-bg span:nth-child(2) {
  position: absolute;
  width: 320px; height: 320px;
  bottom: -140px; left: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.09), transparent 70%);
  filter: blur(30px);
}
.pilot-bg span:nth-child(3) {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 75%);
}
.pilot-text { position: relative; z-index: 2; }
.pilot-card h2 { margin-bottom: 16px; }
.pilot-card .pilot-text > p { color: var(--body); line-height: 1.82; margin-bottom: 20px; }
.pilot-card .button.primary { background: #f2f6fc; color: #05070c; }
.pilot-card .button.primary:hover { background: #ffffff; box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3); }

.pilot-benefits { display: grid; gap: 9px; margin: 20px 0 26px; }
.pilot-benefits span { display: flex; align-items: center; gap: 11px; color: var(--body); font-size: 0.94rem; }
.pilot-benefits i {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--tint);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan);
  display: grid; place-content: center;
  font-size: 0.6rem; font-style: normal; font-weight: 700;
}

.pilot-side { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }
.limited-badge {
  position: relative;
  text-align: center;
  background: rgba(245, 196, 81, 0.05);
  border: 1px solid rgba(245, 196, 81, 0.45);
  border-radius: var(--r-card);
  padding: 22px;
}
.limited-badge::before, .limited-badge::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: #f5c451;
  border-style: solid;
}
.limited-badge::before { top: -1px; left: -1px; border-width: 1.6px 0 0 1.6px; border-radius: 3px 0 0 0; }
.limited-badge::after { bottom: -1px; right: -1px; border-width: 0 1.6px 1.6px 0; border-radius: 0 0 3px 0; }
.lb-top { color: var(--muted); font-weight: 600; font-size: 0.8rem; display: block; }
.lb-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 700;
  line-height: 1;
  color: #f5c451;
  margin: 6px 0;
  text-shadow: 0 0 32px rgba(245, 196, 81, 0.45);
}
.lb-bot { color: var(--text); font-weight: 700; font-size: 0.95rem; display: block; }

.pilot-subjects {
  background: rgba(5, 7, 12, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 19px;
}
.ps-title { color: var(--text); font-weight: 700; margin: 0 0 11px; font-size: 0.94rem; }
.ps-title small {
  display: block;
  color: var(--subtle);
  font-weight: 500; font-size: 0.66rem;
  margin-top: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.ps-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.ps-flags span {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 10px; border-radius: 5px;
}
.ps-note { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin: 0; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 26px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.timeline li {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px;
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.timeline li:hover { border-color: var(--line-accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.tl-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 0.74rem;
  color: var(--accent);
  background: var(--tint);
  border: 1px solid rgba(2, 132, 199, 0.22);
  padding: 3px 10px; border-radius: 4px;
  letter-spacing: 0.04em;
}
.tl-dot { display: block; width: 28px; height: 2px; background: linear-gradient(90deg, var(--accent-strong), transparent); margin: 14px 0; }
.timeline strong { color: var(--text); display: block; font-size: 0.98rem; margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; font-size: 0.87rem; line-height: 1.58; }
.pilot-note {
  text-align: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ============ Download (dark island) ============ */
.download-card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 26px;
  padding: 38px 42px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-panel);
}
.download-glow {
  position: absolute;
  width: 440px; height: 440px;
  right: -130px; top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  pointer-events: none;
}
.download-text { position: relative; z-index: 1; max-width: 620px; }
.download-text h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 10px; }
.download-text p { color: var(--muted); line-height: 1.72; margin: 0; }
.download-meta { display: flex; gap: 8px; margin-top: 16px; }
.download-meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 5px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.download-btn { position: relative; z-index: 1; flex: none; min-height: 52px; padding: 0 26px; font-size: 0.98rem; }
.download-card .button.primary { background: #f2f6fc; color: #05070c; }
.download-card .button.primary:hover { background: #ffffff; box-shadow: 0 8px 32px rgba(56, 189, 248, 0.3); }
.download-btn svg { width: 17px; height: 17px; }

/* ============ Contact ============ */
.contact {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  align-items: start;
}
.contact p { color: var(--muted); line-height: 1.78; font-size: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list li { color: var(--body); display: flex; align-items: center; gap: 11px; font-size: 0.94rem; }
.ck {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--tint);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700;
}

.whatsapp-link {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px;
  padding: 15px 17px;
  border-radius: var(--r-card);
  border: 1px solid rgba(22, 163, 74, 0.3);
  background: rgba(34, 197, 94, 0.05);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.whatsapp-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.5);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.12);
}
.wa-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-content: center;
  color: var(--white);
  background: var(--whatsapp);
}
.wa-icon svg { width: 22px; height: 22px; }
.whatsapp-link strong { display: block; color: var(--text); font-size: 0.96rem; }
.whatsapp-link small { color: var(--muted); font-size: 0.78rem; font-family: var(--font-mono); }
.wa-arrow { width: 15px; height: 15px; margin-left: auto; color: #16a34a; transition: transform 0.2s var(--ease-out); }
.whatsapp-link:hover .wa-arrow { transform: translateX(3px); }

.contact-form {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
  display: grid; gap: 15px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.contact-form[hidden], .booking-panel[hidden] { display: none; }
.contact-form::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(2, 132, 199, 0.55) 50%, transparent 95%);
}
.form-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
.form-head strong { color: var(--text); font-size: 0.98rem; }
.form-meta { color: var(--subtle); font-size: 0.68rem; margin-left: auto; font-family: var(--font-mono); letter-spacing: 0.04em; }
.form-dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}
.contact-form label { color: var(--muted); display: grid; font-size: 0.84rem; font-weight: 600; gap: 8px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f7fafd;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.contact-form input,
.contact-form select {
  min-height: 46px;
  padding: 0 14px;
}
.contact-form textarea {
  min-height: 86px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa7ba; }
.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover { border-color: var(--line-strong); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-strong);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
  outline: 0;
}
.contact-form button {
  background: var(--whatsapp);
  border: 0;
  color: #04120a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 50px;
}
.contact-form button:hover { box-shadow: 0 10px 32px rgba(37, 211, 102, 0.3); transform: translateY(-1px); }
.form-note { color: var(--muted); font-size: 0.76rem; line-height: 1.6; margin: 0; }

/* Tour teaser inside the booking form */
.tour-teaser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--tint-border);
  background: linear-gradient(90deg, var(--tint), rgba(2, 132, 199, 0.02));
  margin: 2px 0 4px;
}
.tour-teaser-ic {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-strong), #0891b2);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
}
.tour-teaser-ic svg { width: 15px; height: 15px; margin-left: 2px; }
.tour-teaser-text strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.tour-teaser-text small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 2px;
}

.subject-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.subject-field legend { color: var(--muted); font-size: 0.84rem; font-weight: 600; padding: 0; margin-bottom: 10px; }
.subject-options,
.need-options { display: flex; flex-wrap: wrap; gap: 8px; }
.need-other-input { margin-top: 10px; }
.subject-chip,
.need-option { cursor: pointer; }
.subject-chip input,
.need-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.subject-chip span,
.need-option span {
  display: inline-flex; align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7fafd;
  color: var(--muted);
  font-size: 0.84rem; font-weight: 600;
  transition: all 0.16s var(--ease-out);
}
.need-option span { border-radius: 9px; }
.subject-chip:hover span,
.need-option:hover span { border-color: var(--line-strong); color: var(--text); }
.subject-chip input:checked + span,
.need-option input:checked + span {
  border-color: rgba(2, 132, 199, 0.55);
  background: var(--tint);
  color: var(--text);
}
.subject-chip input:focus-visible + span,
.need-option input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

.form-status {
  min-height: 18px;
  margin: -3px 0 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.contact-form .form-submit {
  min-height: 56px;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 2px;
}
.contact-form .form-submit .wa-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(4, 18, 10, 0.14);
  color: #04120a;
}
.contact-form .form-submit .wa-icon svg { width: 15px; height: 15px; }
.contact-form .form-submit > svg { width: 15px; height: 15px; flex: none; }

.booking-panel {
  align-self: start;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.12), transparent 48%),
    var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-panel);
  display: grid;
  gap: 14px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.booking-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(5, 150, 105, 0.65) 50%, transparent 95%);
}
.panel-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  color: var(--success);
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.22);
  display: grid;
  place-content: center;
}
.panel-icon svg { width: 24px; height: 24px; }
.booking-panel h3 {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.12;
  margin: 0;
}
.booking-panel p { margin: 0; }
.interactive-panel {
  align-items: center;
  background: #0b1524;
  border: 1px solid rgba(2, 132, 199, 0.38);
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 86px;
  padding: 18px 20px;
  text-align: left;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.interactive-panel:hover {
  background: #111f35;
  box-shadow: 0 14px 36px rgba(2, 132, 199, 0.24);
  transform: translateY(-2px);
}
.interactive-panel strong { display: block; font-size: 1rem; }
.interactive-panel small { color: rgba(255, 255, 255, 0.68); display: block; font-size: 0.78rem; margin-top: 5px; }
.interactive-panel svg { flex: none; width: 18px; height: 18px; }
.panel-edit {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  justify-self: start;
  padding: 0;
}
.panel-edit:hover { color: var(--accent-strong); }

/* ============ Footer ============ */
.footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 30px 5vw;
  position: relative; z-index: 2;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 30px; width: auto; display: block; }
.footer-brand strong { color: var(--text); font-weight: 700; display: block; font-size: 0.94rem; }
.footer-brand p { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); }
.footer-meta { margin: 0; font-size: 0.74rem; font-family: var(--font-mono); color: var(--subtle); letter-spacing: 0.04em; }

/* ============ Floating quick-action dock ============ */
.fab-dock {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.fab-dock.show { opacity: 1; transform: none; pointer-events: auto; }
body.menu-locked .fab-dock { opacity: 0; pointer-events: none; transform: translateY(16px); }

.fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.fab:active { transform: scale(0.96); }

.fab-wa {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #04120a;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.36);
}
.fab-wa svg { width: 27px; height: 27px; }
.fab-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.46); }

.fab-book {
  height: 54px;
  padding: 0 22px;
  border-radius: 27px;
  background: #0b1524;
  color: #fff;
  font-size: 0.98rem;
  box-shadow: 0 12px 30px rgba(11, 21, 36, 0.32), 0 0 0 1px rgba(2, 132, 199, 0.14);
}
.fab-book svg { width: 18px; height: 18px; }
.fab-book:hover {
  transform: translateY(-2px);
  background: #14233c;
  box-shadow: 0 16px 38px rgba(2, 132, 199, 0.34), 0 0 0 1px rgba(2, 132, 199, 0.3);
}

@media (max-width: 680px) {
  .fab-dock {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .fab-wa { width: 50px; height: 50px; }
  .fab-wa svg { width: 25px; height: 25px; }
  .fab-book { height: 50px; padding: 0 18px; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fab-dock { transition: opacity 0.3s var(--ease-out); transform: none; }
  .fab-dock:not(.show) { transform: none; }
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

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

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .grid-cards.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-card { padding: 38px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 74px 5vw; }
  .section-heading { margin-bottom: 38px; }
  .hero, .pilot-card, .contact { grid-template-columns: 1fr; }
  .student-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 44px 5vw 54px; gap: 38px; }
  .hero-copy { max-width: none; }
  .scroll-cue { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .grid-cards.cols-3, .grid-cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-4, .flow-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:not(:last-child)::after { display: none; }
  .pattern-block { grid-template-columns: 1fr; gap: 22px; }
  .case-body { grid-template-columns: 1fr; }
  .transform-bar { grid-template-columns: 1fr; }
  .tb-arrow { flex-direction: row; justify-content: center; min-width: 0; }
  .tb-arrow svg { transform: rotate(90deg); }
  .ba-flow, .ba-flow.two { grid-template-columns: 1fr; }
  .ba-arrow svg { transform: rotate(90deg); }
  .analytics .insight-board, .benchmark .insight-board { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { height: 62px; padding: 0 16px; gap: 12px; }
  .mobile-menu { top: 62px; }
  .brand-by { display: none; }
  .brand-logo { height: 26px; }
  .section { padding: 58px 18px; }
  .section-heading { margin-bottom: 30px; }
  .hero { padding: 34px 18px 46px; gap: 30px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); margin-bottom: 20px; }
  .lead { font-size: 0.98rem; line-height: 1.75; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 30px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-stats { gap: 10px; padding-top: 20px; }
  .hero-stats strong { font-size: 1.3rem; }
  .hero-stats span { font-size: 0.7rem; }
  .grid-cards.cols-2, .grid-cards.cols-3, .grid-cards.cols-4 { grid-template-columns: 1fr; }
  .flow-4, .flow-5 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .screen { min-height: 0; }
  .screen-grid { grid-template-columns: 1fr; }
  .mini-sidebar { display: none; }
  .dashboard-preview { padding: 15px; }
  .preview-header, .student-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .metrics-row { display: grid; grid-template-columns: 1fr; }
  .bar-chart { height: 130px; }
  .comparison-column { padding: 26px 22px; }
  .pilot-card { padding: 26px 22px; gap: 26px; }
  .contact-form { padding: 22px 18px; }
  .skill-row { grid-template-columns: 70px 1fr 40px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .marquee-track span { font-size: 0.82rem; }
  .pullquote { padding: 28px 24px; }
  .pullquote::before { position: static; display: block; margin-bottom: 2px; font-size: 3rem; }
  .case-body { padding: 22px 18px; }
  .mock-strip { padding: 22px 18px; }
  .stat-ba.compact { min-width: 0; width: 100%; }
  .tb-col ul { gap: 14px; }
  .sub-heading { margin: 38px 0 16px; }
  .pullquote, .transform-bar, .mock-strip { margin-top: 22px; }
  .download-card { padding: 26px 20px; }
  .download-btn { width: 100%; }
  .video-play { width: 58px; height: 58px; }
  .video-play svg { width: 25px; height: 25px; }
  .case-tabs { display: flex; }
  .case-tab { flex: 1 1 auto; padding: 10px 12px; font-size: 0.84rem; }
}
