/* MiraiSkills — site styles */

:root {
  color-scheme: dark;

  --bg: #08090a;
  --bg-2: #0f1011;
  --bg-3: #141516;
  --bg-4: #1c1d20;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);

  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --muted: #8a8f98;
  --faint: #62666d;

  --accent: #7c7ff5;
  --accent-soft: rgba(124, 127, 245, 0.14);
  --green: #4cb782;
  --yellow: #f2c94c;
  --orange: #f2994a;
  --red: #eb5757;
  --blue: #4ea7fc;

  --font: "Inter", "SF Pro Display", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1136px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(124, 127, 245, 0.4); }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 6px; font-size: 14px;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 510; letter-spacing: -0.022em; color: var(--text); }

.h-display {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h-section { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
.h-sub { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.h-card { font-size: 20px; line-height: 1.3; letter-spacing: -0.014em; }

.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 600px; text-wrap: pretty; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); font-weight: 450;
}
.eyebrow .num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 510; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform 0.16s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: #e6e6e6; color: #08090a; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--line-3); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 510; color: var(--text-2);
  transition: color 0.16s var(--ease);
}
.link-arrow svg { width: 12px; height: 12px; transition: transform 0.16s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 64px; gap: 32px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 590; font-size: 16px; letter-spacing: -0.02em; }
.wordmark svg { width: 22px; height: 22px; flex: none; }
.wordmark .dot { color: var(--accent); }

.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-block; padding: 6px 10px; border-radius: 6px;
  font-size: 14px; color: var(--muted); transition: color 0.16s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-actions .contact { font-size: 14px; color: var(--muted); padding: 6px 10px; }
.nav-actions .contact:hover { color: var(--text); }

.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.2s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.is-open .nav-mobile { display: block; }
  .nav-mobile { padding: 8px var(--gutter) 24px; }
  .nav-mobile a:not(.btn) { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--text-2); }
  .nav-mobile .btn { margin-top: 20px; width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(64px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 72px); max-width: 760px; }
.section-head.split {
  max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px 64px;
}
.section-head.split .lead { justify-self: end; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } .section-head.split .lead { justify-self: start; } }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(72px, 10vw, 128px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(124, 127, 245, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 30% at 80% 20%, rgba(78, 167, 252, 0.06), transparent 70%);
}
.hero-inner { position: relative; display: grid; gap: 28px; }
.hero h1 { max-width: 920px; }
.hero .lead { max-width: 560px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  height: 32px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-size: 13px; color: var(--text-2); transition: border-color 0.16s var(--ease), background 0.16s;
}
.pill:hover { border-color: var(--line-3); background: rgba(255, 255, 255, 0.05); }
.pill .tag {
  height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--accent-soft); color: #b9bbff; font-size: 12px; font-weight: 510;
}
.pill svg { width: 12px; height: 12px; color: var(--muted); }

.hero-visual { position: relative; margin-top: clamp(56px, 8vw, 88px); }
.hero-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 45%; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}

/* ---------- App mockup (hero) ---------- */

.app {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 120px -20px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(124, 127, 245, 0.18);
  font-size: 13px; line-height: 1.4;
  user-select: none;
}
.app::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%);
}
.app-body { display: grid; grid-template-columns: 220px 1fr 300px; min-height: 520px; }

.app-side { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 2px; }
.app-team { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; font-weight: 510; }
.av {
  width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; flex: none;
  font-size: 10px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #7c7ff5, #4ea7fc);
}
.av.round { border-radius: 50%; }
.av.c2 { background: linear-gradient(135deg, #f2994a, #eb5757); }
.av.c3 { background: linear-gradient(135deg, #4cb782, #26a69a); }
.av.c4 { background: linear-gradient(135deg, #bb87fc, #7c7ff5); }
.av.c5 { background: linear-gradient(135deg, #f2c94c, #f2994a); }
.side-label { padding: 14px 8px 4px; font-size: 12px; color: var(--faint); font-weight: 510; }
.side-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--text-2); }
.side-item .ico { width: 14px; height: 14px; color: var(--muted); flex: none; }
.side-item .count { margin-left: auto; font-size: 12px; color: var(--faint); }
.side-item.active { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-head { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.app-head .crumb { color: var(--muted); }
.app-head .crumb b { color: var(--text); font-weight: 510; }
.app-tabs { display: flex; gap: 4px; margin-left: auto; }
.app-tabs span { padding: 3px 9px; border-radius: 6px; border: 1px solid transparent; color: var(--muted); font-size: 12px; }
.app-tabs span.on { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); }

.group-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; background: rgba(255, 255, 255, 0.025); color: var(--text-2); font-weight: 510; }
.group-row .count { color: var(--faint); font-weight: 400; }
.row {
  display: grid; grid-template-columns: 16px 56px 1fr auto auto; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-2);
}
.row.sel { background: rgba(124, 127, 245, 0.08); box-shadow: inset 2px 0 0 var(--accent); }
.row .id { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.row .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.row .labels { display: flex; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 11.5px; color: var(--text-2); white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip.g i { background: var(--green); }
.chip.y i { background: var(--yellow); }
.chip.o i { background: var(--orange); }
.chip.b i { background: var(--blue); }

.status { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); position: relative; }
.status.prog { border-color: var(--yellow); }
.status.prog::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: conic-gradient(var(--yellow) 0 50%, transparent 50%); }
.status.done { border-color: var(--accent); background: var(--accent); }
.status.done::after { content: ""; position: absolute; left: 4px; top: 1.5px; width: 3px; height: 6px; border: solid var(--bg-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.status.todo { border-color: var(--text-2); }

.app-detail { border-left: 1px solid var(--line); padding: 16px; display: grid; align-content: start; gap: 16px; }
.detail-title { font-size: 15px; font-weight: 510; letter-spacing: -0.01em; line-height: 1.35; }
.detail-meta { display: grid; grid-template-columns: 88px 1fr; gap: 10px 8px; font-size: 12.5px; }
.detail-meta dt { color: var(--faint); }
.detail-meta dd { margin: 0; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }
.steps .n { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.steps .agent { margin-left: auto; font-size: 11px; color: #b9bbff; }
.detail-note { display: flex; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12.5px; }

@media (max-width: 1080px) { .app-body { grid-template-columns: 200px 1fr; } .app-detail { display: none; } }
@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; min-height: 420px; }
  .app-side { display: none; }
  .row { grid-template-columns: 16px 1fr auto; }
  .row .id, .row .av { display: none; }
  .app-tabs { display: none; }
}

/* ---------- Statement ---------- */

.statement { font-size: clamp(24px, 3.2vw, 40px); line-height: 1.22; letter-spacing: -0.024em; font-weight: 510; max-width: 980px; text-wrap: pretty; }
.statement span { color: var(--faint); }

.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.triad > div { padding: 28px 28px 0 0; }
.triad > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.triad h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.012em; }
.triad p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .triad { grid-template-columns: 1fr; }
  .triad > div, .triad > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Feature cards (approach) ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  overflow: hidden; transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%);
}
a.card:hover, .card.hoverable:hover { border-color: var(--line-2); background: #111213; }

.feature { display: flex; flex-direction: column; }
.feature-visual {
  position: relative; height: 240px; border-bottom: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 127, 245, 0.07), transparent 70%);
}
.feature-body { padding: 24px 28px 28px; display: grid; gap: 8px; }
.feature-body .num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.feature-body p { color: var(--muted); font-size: 15px; }

/* visual: live call */
.v-call { display: grid; grid-template-columns: repeat(3, 76px); gap: 8px; }
.v-tile { height: 58px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.v-tile .av { width: 28px; height: 28px; font-size: 11px; }
.v-tile.speaking { border-color: rgba(76, 183, 130, 0.6); box-shadow: 0 0 0 3px rgba(76, 183, 130, 0.12); }
.v-live {
  position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2);
}
.v-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* visual: checklist */
.v-list { width: 100%; max-width: 340px; display: grid; gap: 8px; }
.v-list div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.v-list .status { flex: none; }
.v-list .meta { margin-left: auto; font-size: 11.5px; color: var(--faint); font-family: var(--mono); }

/* visual: files */
.v-files { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.v-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.v-file:nth-child(2) { transform: translateX(20px); }
.v-file:nth-child(3) { transform: translateX(40px); opacity: 0.7; }
.v-file svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.v-file b { font-weight: 510; font-size: 13px; }
.v-file span { margin-left: auto; font-size: 11.5px; color: var(--faint); }

/* visual: segmented */
.v-seg { display: grid; gap: 14px; justify-items: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--bg-3); border: 1px solid var(--line); }
.seg span { padding: 6px 14px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.seg span.on { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }

/* ---------- Course cards ---------- */

.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .courses-grid { grid-template-columns: 1fr; } }

.course-card { display: flex; flex-direction: column; padding: 28px; gap: 20px; min-height: 100%; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-num { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 510; color: var(--text-2); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.tag.accent { color: #c3c5ff; border-color: rgba(124, 127, 245, 0.35); background: var(--accent-soft); }
.course-card h3 em { font-style: normal; color: var(--muted); }
.course-card .short { color: var(--muted); font-size: 15px; }
.specs { display: grid; gap: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs dt { color: var(--faint); }
.specs dd { margin: 0; color: var(--text-2); }
.specs dd .sub { display: block; color: var(--muted); }
.course-card .link-arrow { margin-top: 4px; }

.course-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.course-wide .course-card { padding: 32px; }
.course-wide .wide-visual { border-left: 1px solid var(--line); padding: 32px; display: grid; align-content: center; gap: 14px; background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(124, 127, 245, 0.08), transparent 70%); }
@media (max-width: 860px) { .course-wide { grid-template-columns: 1fr; } .course-wide .wide-visual { border-left: 0; border-top: 1px solid var(--line); } }

/* sprint timeline */
.timeline { display: grid; gap: 10px; }
.tl-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); font-size: 14px; }
.tl-row .n { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.tl-row b { font-weight: 510; }
.tl-row small { display: block; font-size: 12.5px; color: var(--muted); }
.tl-bar { height: 6px; border-radius: 99px; background: var(--bg-4); overflow: hidden; margin-top: 4px; }
.tl-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), #4ea7fc); border-radius: inherit; }
.tl-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); }

/* ---------- Audiences ---------- */

.aud { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aud .ico-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2); margin-bottom: 8px; }
.aud .ico-box svg { width: 18px; height: 18px; color: var(--text-2); }
.aud p { color: var(--muted); font-size: 15px; }
.aud .starts { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.aud .starts span { font-size: 12.5px; color: var(--faint); }
.aud .starts a { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.aud .starts a:hover { color: var(--text); }
.aud .starts a .mono { color: var(--faint); }

/* ---------- Sprint band ---------- */

.band { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }
.band-copy { display: grid; gap: 24px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv > div { background: var(--bg); padding: 18px 20px; display: grid; gap: 4px; }
.kv dt { font-size: 13px; color: var(--faint); }
.kv dd { margin: 0; font-size: 15px; color: var(--text); font-weight: 510; letter-spacing: -0.01em; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta { position: relative; text-align: center; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; left: 50%; bottom: -260px; width: 1100px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(124, 127, 245, 0.16), transparent 65%);
}
.cta .container { position: relative; display: grid; justify-items: center; gap: 24px; }
.cta .lead { margin: 0 auto; text-align: center; }
.cta .btn-row { justify-content: center; }
.cta-note { font-size: 13px; color: var(--faint); }
.cta-note a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.cta-note a:hover { color: var(--text); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 280px; }
.footer h4 { font-size: 13px; font-weight: 510; color: var(--text); margin-bottom: 14px; letter-spacing: -0.005em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color 0.16s var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer-legal {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--faint); font-size: 13px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Course page ---------- */

.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse 45% 40% at 30% 0%, rgba(124, 127, 245, 0.13), transparent 70%);
}
.page-hero .container { position: relative; display: grid; gap: 24px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 12px; height: 12px; color: var(--faint); }
.page-hero h1 { max-width: 900px; }
.page-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; }

.specbar {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 16, 17, 0.7); overflow: hidden;
}
.specbar > div { padding: 20px 24px; display: grid; gap: 6px; align-content: start; }
.specbar > div + div { border-left: 1px solid var(--line); }
.specbar dt { font-size: 13px; color: var(--faint); }
.specbar dd { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.specbar dd .sub { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .specbar { grid-template-columns: 1fr; } .specbar > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.prose-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px 64px; }
.prose-grid .label { font-size: 14px; color: var(--muted); padding-top: 6px; }
.prose { display: grid; gap: 20px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; letter-spacing: -0.012em; color: var(--text-2); max-width: 720px; }
.prose p:first-child { color: var(--text); }
@media (max-width: 760px) { .prose-grid { grid-template-columns: 1fr; gap: 12px; } }

.track { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.track-item { padding: 20px; display: grid; gap: 28px; align-content: space-between; min-height: 150px; }
.track-item .n { font-family: var(--mono); font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; }
.track-item b { font-weight: 510; font-size: 16px; letter-spacing: -0.012em; display: block; }
.track-item small { color: var(--muted); font-size: 13.5px; }
.track-item.keep { border-style: dashed; border-color: rgba(124, 127, 245, 0.4); background: rgba(124, 127, 245, 0.05); }
@media (max-width: 960px) { .track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .track { grid-template-columns: 1fr; } .track-item { min-height: 0; } }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.how > div { padding: 28px 28px 0 0; display: grid; gap: 8px; align-content: start; }
.how > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.how .mono { color: var(--accent); }
.how h3 { font-size: 17px; letter-spacing: -0.012em; }
.how p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .how > div, .how > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* function tabs (course 2) */
.fn-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); width: fit-content; }
.fn-tabs button {
  border: 0; background: transparent; cursor: pointer; padding: 7px 14px; border-radius: 7px;
  font-size: 14px; color: var(--muted); transition: color 0.16s, background 0.16s;
}
.fn-tabs button:hover { color: var(--text); }
.fn-tabs button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.09); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.fn-label { font-size: 13px; color: var(--faint); }
html:not(.js) .fn-switch { display: none !important; }
[data-fn] { transition: opacity 0.2s var(--ease); }

/* other courses list */
.other { display: grid; border-top: 1px solid var(--line); }
.other a {
  display: grid; grid-template-columns: 48px 1fr auto 20px; gap: 16px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line); transition: background 0.16s var(--ease), padding 0.2s var(--ease);
}
.other a:hover { background: rgba(255, 255, 255, 0.02); padding-left: 12px; }
.other .mono { color: var(--faint); }
.other b { font-weight: 510; font-size: 17px; letter-spacing: -0.012em; }
.other .p { color: var(--muted); font-size: 14px; text-align: right; }
.other svg { width: 14px; height: 14px; color: var(--muted); }
@media (max-width: 640px) { .other a { grid-template-columns: 36px 1fr 16px; } .other .p { display: none; } }

/* compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 510; color: var(--faint); font-size: 13px; padding-top: 0; }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); }
.compare td:first-child a { display: grid; gap: 4px; }
.compare td:first-child b { font-weight: 510; font-size: 16px; letter-spacing: -0.012em; }
.compare td:first-child .mono { color: var(--faint); }
.compare tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
@media (max-width: 860px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .compare td { border: 0; padding: 4px 0; }
  .compare td[data-k]::before { content: attr(data-k); display: block; font-size: 12px; color: var(--faint); margin-top: 8px; }
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .v-live i { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- Small-screen refinements ---------- */

.pill, .pill .tag { white-space: nowrap; }
@media (max-width: 480px) {
  .pill { font-size: 12px; gap: 8px; padding-right: 10px; max-width: 100%; }
  .pill .tag { padding: 0 7px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .row .labels .chip + .chip { display: none; }
}
