/* 브랜드 값은 공통 토큰(matths-brand-tokens.css)에서 온다 — 독립 hex 를 다시 만들지 않는다 */
@import url("/css/matths-brand-tokens.css");

:root {
  --ink: #12152a;
  --muted: #697089;
  --line: #e1e5ef;
  --paper: #f7f8fc;
  --white: #ffffff;
  /* Compatibility alias for informational progress accents only.
     Primary actions use .c-button--primary / --matths-action-primary. */
  --primary: var(--matths-progress-blue);
  --primary-dark: var(--matths-primary-dark);
  --primary-soft: var(--matths-primary-soft);
  --violet: var(--matths-violet);
  --green: #1fa278;
  --nav-height: 76px;
  --shadow-sm: 0 14px 34px rgba(27, 38, 85, 0.09);
  --shadow-lg: 0 32px 75px rgba(32, 47, 112, 0.16);

  /* 모션 계약 — hover 는 translateY(-1px) + 보더/섀도 미세 변화 또는 배경 틴트만.
     scale(1 초과) 금지, 컬러 글로우(blur 20px+) 금지, 인터랙션 트랜지션 240ms 초과 금지. */
  --motion-fast: 120ms;
  --motion-base: 160ms;
  --motion-slow: 240ms;
  --motion-ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform var(--motion-base) var(--motion-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 680;
  line-height: 1;
  transition: transform var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease),
    background var(--motion-base) var(--motion-ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(50, 127, 250,0.28);
  outline-offset: 3px;
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.button-large {
  min-height: 57px;
  padding: 0 26px;
  font-size: 15px;
}

.button-primary {
  color: var(--matths-on-brand);
  background: var(--matths-action-primary);
  box-shadow: none;
}

.button-primary:hover {
  background: var(--matths-action-primary-pressed);
  box-shadow: var(--motion-hover-shadow);
}

.button-secondary {
  color: #373d55;
  background: rgba(255, 255, 255, 0.76);
  border-color: #dfe2eb;
}

.button-secondary:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(53, 68, 131, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 68, 131, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 72% at 68% 48%, #000, transparent 80%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 23px;
  padding: 8px 12px;
  color: #4f5b8b;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #e1e4ed;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(32, 41, 79, 0.05);
  font-size: 12px;
  font-weight: 750;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(50, 127, 250,0.11);
}

.hero-description {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.25px;
}

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

.hero-visual {
  position: relative;
  padding: 55px 0;
}

.lesson-window {
  --base-curve-left: 20%;
  --moved-curve-left: 45%;
  --base-curve-top: 23%;
  --raised-curve-top: 16%;
  --vertex-offset-x: 82px;
  --vertex-offset-y: 201px;
  --label-offset-x: 102px;
  --label-offset-y: 190px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dce1ee;
  border-radius: 27px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1300px) rotateY(-2.5deg) rotateX(1deg);
}

/* The lesson preview uses a slight 3D perspective; keep the projected step
   controls at least 44px on screen, not merely 44px before transformation. */
.step-button {
  flex: 0 0 48px;
  inline-size: 48px;
  block-size: 48px;
}

.window-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 23px;
  border-bottom: 1px solid #e8eaf1;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  background: #d5d9e5;
  border-radius: 50%;
}

.lesson-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lesson-title small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.lesson-title strong {
  font-size: 13px;
}

.step-label {
  padding: 7px 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.5px;
}

.lesson-canvas {
  position: relative;
  min-height: 395px;
  background: linear-gradient(145deg, #fafbff, #f1f4ff);
}

.formula-box {
  position: absolute;
  top: 17px;
  left: 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e0e4ee;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.formula-box span {
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

.formula-box small {
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.graph {
  position: absolute;
  top: 90px;
  right: 42px;
  bottom: 22px;
  left: 95px;
  overflow: hidden;
  background-image: linear-gradient(rgba(70, 86, 150, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 86, 150, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: 8px;
}

.axis {
  position: absolute;
  z-index: 2;
  background: #71788d;
}

.axis-x {
  top: 70%;
  left: 0;
  width: 100%;
  height: 1px;
}

.axis-y {
  top: 0;
  left: 25%;
  width: 1px;
  height: 100%;
}

.axis-name {
  position: absolute;
  z-index: 3;
  color: #71788d;
  font-family: "SUIT Variable", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 12px;
  font-style: italic;
}

.axis-name-x {
  top: calc(70% + 6px);
  right: 6px;
}

.axis-name-y {
  top: 5px;
  left: calc(25% + 7px);
}

.original-curve,
.moved-curve {
  position: absolute;
  z-index: 2;
  width: 175px;
  height: 210px;
  top: var(--base-curve-top);
  border: 3px solid;
  border-top: 0;
  border-radius: 0 0 48% 48%;
  transition: top 0.72s cubic-bezier(0.2, 0.72, 0.3, 1),
    opacity 0.35s ease, border-color 0.35s ease;
}

.original-curve {
  left: var(--base-curve-left);
  border-color: #c1c7d9;
  opacity: 0.7;
}

.moved-curve {
  left: var(--moved-curve-left);
  border-color: var(--primary);
  opacity: 0;
  filter: drop-shadow(0 7px 5px rgba(50, 127, 250,0.14));
}

.vertex,
.vertex-pulse {
  position: absolute;
  z-index: 4;
  left: calc(var(--base-curve-left) + var(--vertex-offset-x));
  top: calc(var(--base-curve-top) + var(--vertex-offset-y));
  border-radius: 50%;
  transition: left 0.72s cubic-bezier(0.2, 0.72, 0.3, 1),
    top 0.72s cubic-bezier(0.2, 0.72, 0.3, 1);
}

.vertex {
  width: 11px;
  height: 11px;
  background: #fff;
  border: 3px solid var(--primary);
}

.vertex-pulse {
  width: 25px;
  height: 25px;
  margin: -7px;
  border: 1px solid rgba(50, 127, 250,0.35);
  animation: pulse 2.2s ease-out infinite;
}

.move-arrow {
  position: absolute;
  z-index: 5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

.move-arrow-horizontal {
  top: 42%;
  left: 34%;
  transform: translateX(-8px);
}

.move-arrow-vertical {
  top: 32%;
  left: 72%;
  transform: translateY(8px);
}

.point-label {
  position: absolute;
  z-index: 5;
  left: calc(var(--base-curve-left) + var(--label-offset-x));
  top: calc(var(--base-curve-top) + var(--label-offset-y));
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  transition: left 0.72s cubic-bezier(0.2, 0.72, 0.3, 1),
    top 0.72s cubic-bezier(0.2, 0.72, 0.3, 1), opacity 0.25s ease;
}

.lesson-window[data-current-step="1"] .original-curve {
  border-color: var(--primary);
  opacity: 1;
  filter: drop-shadow(0 7px 5px rgba(50, 127, 250,0.14));
  animation: base-curve-in 0.75s ease both;
}

.lesson-window[data-current-step="1"] .moved-curve {
  opacity: 0;
}

.lesson-window[data-current-step="2"] .original-curve,
.lesson-window[data-current-step="3"] .original-curve {
  border-color: #c1c7d9;
  opacity: 0.58;
  filter: none;
}

.lesson-window[data-current-step="4"] .original-curve {
  border-color: #c1c7d9;
  opacity: 0.22;
  filter: none;
}

.lesson-window[data-current-step="2"] .moved-curve {
  top: var(--base-curve-top);
  opacity: 1;
  animation: curve-shift-right 0.85s cubic-bezier(0.2, 0.72, 0.3, 1) both;
}

.lesson-window[data-current-step="3"] .moved-curve {
  top: var(--raised-curve-top);
  opacity: 1;
  animation: curve-shift-up 0.85s cubic-bezier(0.2, 0.72, 0.3, 1) both;
}

.lesson-window[data-current-step="4"] .moved-curve {
  top: var(--raised-curve-top);
  opacity: 1;
  animation: final-curve-settle 0.7s ease both;
}

.lesson-window[data-current-step="2"] .vertex,
.lesson-window[data-current-step="2"] .vertex-pulse {
  left: calc(var(--moved-curve-left) + var(--vertex-offset-x));
  top: calc(var(--base-curve-top) + var(--vertex-offset-y));
}

.lesson-window[data-current-step="3"] .vertex,
.lesson-window[data-current-step="3"] .vertex-pulse,
.lesson-window[data-current-step="4"] .vertex,
.lesson-window[data-current-step="4"] .vertex-pulse {
  left: calc(var(--moved-curve-left) + var(--vertex-offset-x));
  top: calc(var(--raised-curve-top) + var(--vertex-offset-y));
}

.lesson-window[data-current-step="2"] .point-label {
  left: calc(var(--moved-curve-left) + var(--label-offset-x));
  top: calc(var(--base-curve-top) + var(--label-offset-y));
}

.lesson-window[data-current-step="3"] .point-label,
.lesson-window[data-current-step="4"] .point-label {
  left: calc(var(--moved-curve-left) + var(--label-offset-x));
  top: calc(var(--raised-curve-top) + var(--label-offset-y));
}

.lesson-window[data-current-step="2"] .move-arrow-horizontal {
  opacity: 1;
  transform: translateX(0);
}

.lesson-window[data-current-step="3"] .move-arrow-vertical {
  opacity: 1;
  transform: translateY(0);
}

.coach-note {
  position: absolute;
  right: 18px;
  top: 17px;
  bottom: auto;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e4ee;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.coach-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.coach-note p {
  margin: 0;
  color: #757b90;
  font-size: 12px;
  line-height: 1.45;
}

.coach-note strong {
  color: var(--ink);
  font-size: 12px;
}

.window-footer {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 23px;
  background: #fff;
}

.progress-dots {
  display: flex;
  gap: 5px;
}

.progress-dots button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  background: #dfe2eb;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  color: #7f869b;
  font-size: 12px;
  font-weight: 800;
  transition: width var(--motion-slow) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    transform var(--motion-fast) var(--motion-ease);
}

.progress-dots .active {
  width: 68px;
  background: var(--primary);
  color: #fff;
}

.progress-dots .active span::before {
  content: "STEP ";
  font-size: 12px;
  letter-spacing: 0.4px;
}

.progress-dots button:hover {
  background: #aebcf6;
  transform: translateY(-1px);
}

.progress-dots button:focus-visible {
  outline: 3px solid rgba(50, 127, 250,0.28);
  outline-offset: 4px;
}

.window-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.home-summary {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dfe3ed;
  border-radius: 17px;
  box-shadow: 0 10px 28px rgba(29, 39, 79, 0.05);
  backdrop-filter: blur(10px);
}

.home-summary > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
}

.home-summary strong {
  font-size: 13px;
}

.home-summary span {
  color: #7b8194;
  font-size: 12px;
}

.home-summary > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  color: #8a90a4;
  background: var(--matths-ink);
}

.footer-inner {
  min-height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner > div {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
}

.footer-inner a {
  transition: color var(--motion-fast) var(--motion-ease);
}

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

@keyframes base-curve-in {
  from { opacity: 0.35; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes curve-shift-right {
  from { opacity: 0.25; transform: translateX(-90px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes curve-shift-up {
  from { opacity: 0.45; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes final-curve-settle {
  0% { transform: scale(0.97); }
  55% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0%, 20% { opacity: 0.8; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.7); }
}

@media (max-width: 1050px) {
  .hero-layout {
    gap: 35px;
  }

  .graph {
    left: 60px;
  }

}

@media (max-width: 900px) {
  :root {
    --nav-height: 68px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-copy {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
  }

  .eyebrow,
  .hero-actions {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-visual {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .lesson-window {
    transform: none;
  }

  .home-summary {
    width: min(680px, calc(100% - 48px));
  }

}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    padding-block: 10px;
  }

  .lesson-window {
    --base-curve-left: 14%;
    --moved-curve-left: 46%;
    --vertex-offset-x: 58px;
    --vertex-offset-y: 146px;
    --label-offset-x: 76px;
    --label-offset-y: 137px;
    min-height: 420px;
    border-radius: 20px;
  }

  .window-header {
    grid-template-columns: 1fr auto;
    padding: 0 15px;
  }

  .window-dots {
    display: none;
  }

  .lesson-title strong {
    font-size: 12px;
  }

  .lesson-canvas {
    min-height: 300px;
  }

  .formula-box {
    top: 14px;
    left: 14px;
  }

  .formula-box span {
    font-size: 17px;
  }

  .graph {
    top: 60px;
    right: 14px;
    bottom: 14px;
    left: 28px;
    background-size: 28px 28px;
  }

  .original-curve,
  .moved-curve {
    width: 125px;
    height: 155px;
  }

  .move-arrow-horizontal {
    left: 34%;
  }

  .coach-note {
    display: none;
  }

  .window-footer {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 15px;
  }

  .window-footer a {
    white-space: nowrap;
  }

  .arena-hero h2,
  .arena-live-facts,
  .learning-proof .hero-copy h2,
  .hero-description,
  .home-summary {
    word-break: keep-all;
  }

  .home-summary {
    width: min(100% - 32px, 680px);
    margin-top: 26px;
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p {
    display: none;
  }

  .footer-inner > div a:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 60차 — 회의 결정 ①·②: 랜딩의 주인공을 학습 데모에서 GOAT Arena로 전환한다. */
.arena-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 8vw, 108px) 0;
  color: #f7f9ff;
  background: #070a18;
  isolation: isolate;
}

.arena-atmosphere,
.arena-atmosphere i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.arena-atmosphere {
  z-index: -1;
  overflow: hidden;
}

.arena-grid {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(50, 218, 238, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 218, 238, 0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 75%, transparent);
  transform: perspective(700px) rotateX(64deg) scale(1.65) translateY(19%);
  transform-origin: 50% 60%;
}

.arena-orbit {
  width: 760px;
  height: 760px;
  margin: auto;
  border: 1px solid rgba(64, 225, 242, 0.14);
  border-radius: 50%;
  animation: arena-orbit 28s linear infinite;
}

.arena-orbit::before,
.arena-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.arena-orbit::before {
  inset: 14%;
  border: 1px dashed rgba(117, 88, 255, 0.18);
}

.arena-orbit::after {
  top: 8%;
  left: 50%;
  width: 7px;
  height: 7px;
  background: #2ce2f4;
  box-shadow: 0 0 18px rgba(44, 226, 244, 0.8);
}

.arena-orbit-one {
  translate: 35% -13%;
}

.arena-orbit-two {
  width: 520px;
  height: 520px;
  translate: -65% 34%;
  animation-direction: reverse;
  animation-duration: 36s;
}

.arena-scan {
  width: 1px;
  left: 67%;
  opacity: 0.55;
  background: linear-gradient(to bottom, transparent, #22d7ec 42%, transparent 68%);
  animation: arena-scan 7s var(--motion-ease) infinite;
}

.arena-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(500px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

/*
 * 320px 컨테이너에서 window-footer의 최소 콘텐츠 폭이 grid track을
 * 밀어내지 않게 한다. 반응형 소유권은 EJS가 아니라 이 파일에 둔다.
 */
.hero-layout > *,
.arena-hero-layout > * {
  min-width: 0;
}

.arena-hero-copy {
  position: relative;
  z-index: 2;
}

.arena-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #75eaf6;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 1.8px;
}

.arena-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  color: #07111d;
  background: #2ce2f4;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.arena-hero h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 70px);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.arena-hero h2 span {
  color: #f4f6ff;
  font-weight: 480;
}

.arena-hero h2 strong {
  color: #72eaf5;
  font-weight: 880;
}

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

.arena-hero-support-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: #d7def1;
  border-bottom: 1px solid #56618e;
  font-size: 13px;
  font-weight: 680;
}

.arena-hero-support-link:hover {
  color: #fff;
  border-color: #fff;
}

.button-arena-primary {
  color: var(--matths-on-brand);
  background: var(--matths-action-primary);
  border-color: var(--matths-action-primary);
  box-shadow: 0 4px 0 var(--matths-action-primary-pressed);
}

.button-arena-primary:hover {
  background: var(--matths-action-primary-pressed);
  box-shadow: 0 2px 0 var(--matths-action-primary-pressed);
}

.button-arena-secondary {
  color: #d7def1;
  background: rgba(18, 24, 49, 0.82);
  border-color: #343d63;
}

.button-arena-secondary:hover {
  background: #171e3c;
  border-color: #56618e;
}

.arena-live-facts {
  display: flex;
  gap: 28px;
  margin: 42px 0 0;
}

.arena-live-facts div {
  min-width: 82px;
}

.arena-live-facts dt {
  margin-bottom: 7px;
  color: #707b9b;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 1px;
}

.arena-live-facts dd {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 760;
}

.arena-console {
  position: relative;
  z-index: 1;
  min-height: 492px;
  padding: 22px;
  overflow: hidden;
  background: rgba(12, 17, 39, 0.92);
  border: 1px solid #30395c;
  border-radius: 28px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.38);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1.5deg);
}

.arena-console::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background: linear-gradient(120deg, rgba(44, 226, 244, 0.13), transparent 32%, transparent 70%, rgba(117, 88, 255, 0.15));
  pointer-events: none;
}

.arena-console-head,
.arena-console-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arena-console-head {
  min-height: 70px;
  padding: 0 8px 19px;
  border-bottom: 1px solid #2a3354;
}

.arena-console-head div {
  display: grid;
  gap: 5px;
}

.arena-console-head div span,
.arena-console-foot span {
  color: #7682a5;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 1.5px;
}

.arena-console-head strong {
  font-size: 20px;
  font-weight: 760;
}

.arena-console-head > i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #71eaf5;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 1px;
}

.arena-console-head > i span {
  width: 7px;
  height: 7px;
  background: #2ce2f4;
  border-radius: 50%;
  animation: arena-live 1.8s ease-in-out infinite;
}

.arena-ranking-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.arena-ranking-board li {
  min-height: 91px;
  display: grid;
  grid-template-columns: 40px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 9px;
  background: #111731;
  border: 1px solid #293253;
  border-radius: 17px;
  transition: transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease),
    background var(--motion-base) var(--motion-ease);
}

.arena-ranking-board li:first-child {
  background: #151b38;
  border-color: #46517b;
}

.arena-ranking-board li:hover {
  background: #171e3b;
  border-color: #4d5a86;
  transform: translateY(-1px);
}

.arena-rank-number {
  color: #5d6889;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
}

.arena-ranking-board li:first-child .arena-rank-number {
  color: #2ce2f4;
}

.arena-ranking-board img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.arena-player {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.arena-player strong {
  overflow: hidden;
  color: #f7f9ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-player small,
.arena-ranking-board li > b small {
  color: #7d89aa;
  font-size: 12px;
  font-weight: 520;
}

.arena-ranking-board li > b {
  color: #aef4fa;
  font-size: 13px;
  white-space: nowrap;
}

.arena-my-standing {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px 8px 18px;
}

.arena-my-standing-main {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.arena-my-standing-main img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(39, 226, 244, 0.16));
}

.arena-my-standing-main > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.arena-my-standing-main span {
  color: #6deaf5;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.arena-my-standing-main strong {
  overflow: hidden;
  color: #f8f9ff;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 820;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-my-standing-main small {
  overflow: hidden;
  color: #8d98b7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-my-standing-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.arena-my-standing-stats div {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(18, 25, 54, 0.88);
  border: 1px solid #2b365c;
  border-radius: 14px;
}

.arena-my-standing-stats dt {
  margin-bottom: 5px;
  color: #7783a5;
  font-size: 11px;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.arena-my-standing-stats dd {
  margin: 0;
  color: #f4f7ff;
  font-size: 17px;
  font-weight: 790;
  overflow-wrap: anywhere;
}

.arena-my-standing > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #071021;
  background: linear-gradient(135deg, #79edf7, #56cadc);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 13px 30px rgba(44, 226, 244, 0.14);
  transition: transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
}

.arena-my-standing > a:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.arena-my-standing > a:focus-visible {
  outline: 3px solid rgba(121, 237, 247, 0.42);
  outline-offset: 4px;
}

.arena-ranking-unavailable {
  position: relative;
  z-index: 1;
  min-height: 285px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 36px;
  text-align: center;
}

.arena-ranking-unavailable strong {
  font-size: 18px;
}

.arena-ranking-unavailable p {
  max-width: 340px;
  margin: 10px 0 20px;
  color: #8994b2;
  font-size: 13px;
  line-height: 1.6;
}

.arena-ranking-unavailable a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #72eaf5;
  font-size: 13px;
  font-weight: 680;
}

.arena-console-foot {
  min-height: 40px;
  padding: 12px 8px 0;
  border-top: 1px solid #2a3354;
}

.arena-console-foot p {
  margin: 0;
  color: #cbd3e8;
  font-size: 12px;
  font-weight: 500;
}

.learning-proof {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 10vw, 136px) 0 58px;
  background: var(--paper);
}

.learning-proof .hero-layout {
  position: relative;
  z-index: 2;
}

.learning-proof .hero-copy h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.learning-proof .hero-copy h2 em {
  color: var(--violet);
  font-style: normal;
  font-weight: 850;
}

.learning-proof .home-summary {
  position: relative;
  z-index: 2;
}

.site-footer-arena {
  color: #8791ad;
  background: #0a0e20;
  border-top-color: #202843;
}

.site-footer-arena .footer-social-link {
  border-color: #424c6c;
}

@keyframes arena-orbit {
  to { transform: rotate(360deg); }
}

@keyframes arena-scan {
  0%, 18% { opacity: 0; transform: translateX(-420px); }
  30%, 68% { opacity: 0.55; }
  82%, 100% { opacity: 0; transform: translateX(420px); }
}

@keyframes arena-live {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@media (max-width: 1050px) {
  .arena-hero-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
    gap: 36px;
  }

  .arena-console {
    transform: perspective(1100px) rotateY(-2deg);
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .arena-hero h2 {
    white-space: normal;
  }

  .arena-hero h2 span,
  .arena-hero h2 strong {
    display: block;
  }
}

@media (max-width: 900px) {
  .arena-hero {
    min-height: auto;
    padding: 72px 0 78px;
  }

  .arena-hero-layout {
    grid-template-columns: 1fr;
  }

  .arena-hero-copy {
    max-width: 700px;
  }

  .arena-console {
    width: min(680px, 100%);
    min-height: 0;
    transform: none;
  }

  .learning-proof .hero-copy h2 {
    font-size: 56px;
  }
}

@media (max-width: 640px) {
  .arena-hero {
    padding: 54px 0 58px;
  }

  .arena-kicker {
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 1.2px;
  }

  .arena-hero h2 {
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: -0.035em;
    white-space: normal;
  }

  .arena-hero h2 span,
  .arena-hero h2 strong {
    display: block;
  }

  .arena-hero h2 strong {
    margin-inline-start: 0;
    white-space: nowrap;
  }

  .arena-hero-actions {
    display: grid;
    margin-top: 28px;
  }

  .arena-hero-actions .button {
    width: 100%;
  }

  .arena-hero-support-link {
    justify-self: start;
  }

  .arena-live-facts {
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
  }

  .arena-live-facts div {
    min-width: 0;
  }

  .arena-console {
    padding: 15px;
    border-radius: 22px;
  }

  .arena-ranking-board li {
    grid-template-columns: 30px 52px minmax(0, 1fr);
    min-height: 78px;
    padding-right: 10px;
  }

  .arena-ranking-board img {
    width: 52px;
    height: 52px;
  }

  .arena-ranking-board li > b {
    display: none;
  }

  .arena-my-standing-main {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
  }

  .arena-my-standing-main img {
    width: 108px;
    height: 108px;
  }

  .arena-my-standing-main strong {
    font-size: 30px;
  }

  .arena-console-foot p {
    display: none;
  }

  .learning-proof {
    padding-top: 72px;
  }

  .learning-proof .hero-copy h2 {
    font-size: 41px;
    letter-spacing: -2.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arena-orbit,
  .arena-scan,
  .arena-console-head > i span {
    animation: none !important;
  }
}

/* 통합 메인 — 개념 학습, 실전, 역할별 서비스와 iPad 앱을 한 흐름으로 묶는다. */
.platform-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(78px, 10vw, 132px) 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(121, 91, 242, 0.12), transparent 32%),
    linear-gradient(145deg, #fbfcff 0%, #f4f6ff 52%, #eef8ff 100%);
  isolation: isolate;
}

.platform-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(60, 78, 148, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 78, 148, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.platform-hero-glow {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(113, 79, 231, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.platform-hero-glow-one {
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
}

.platform-hero-glow-two {
  right: 220px;
  bottom: -250px;
  width: 430px;
  height: 380px;
}

.platform-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(470px, 0.98fr);
  align-items: center;
  gap: clamp(54px, 7vw, 94px);
}

.platform-hero-layout > *,
.weekly-proof-layout > *,
.app-download-layout > * {
  min-width: 0;
}

.platform-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #5542aa;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.1px;
}

.platform-kicker span {
  width: 9px;
  height: 9px;
  background: var(--matths-action-primary);
  border: 3px solid #ded5ff;
  border-radius: 50%;
  box-sizing: content-box;
}

.platform-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #12152a;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.platform-hero h1 em {
  color: var(--matths-violet-text, #6240cf);
  font-style: normal;
  font-weight: 850;
}

.platform-hero-copy > p:not(.platform-kicker) {
  margin: 28px 0 0;
  color: #616981;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: -0.25px;
}

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

.platform-app-button {
  gap: 9px;
}

.apple-mark {
  width: 19px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  background: #25293b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.platform-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 38px 0 0;
}

.platform-hero-facts div {
  min-width: 126px;
  display: grid;
  gap: 5px;
  padding: 0 22px;
  border-left: 1px solid #d7ddea;
}

.platform-hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.platform-hero-facts dt {
  color: #8a90a4;
  font-size: 11px;
  font-weight: 650;
}

.platform-hero-facts dd {
  margin: 0;
  color: #24283c;
  font-size: 15px;
  font-weight: 820;
}

.platform-flow-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce2f0;
  border-radius: 30px;
  box-shadow: 0 34px 78px rgba(36, 48, 100, 0.15);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.platform-flow-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, transparent 42%, rgba(105, 74, 226, 0.08));
  pointer-events: none;
}

.platform-flow-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 22px;
  border-bottom: 1px solid #e6e9f1;
}

.platform-flow-head > div {
  display: grid;
  gap: 5px;
}

.platform-flow-head > div span {
  color: #7c849b;
  font-size: 11px;
  font-weight: 660;
}

.platform-flow-head > div strong {
  color: #1a1e33;
  font-size: 20px;
  font-weight: 820;
}

.platform-flow-head > i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #168769;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.platform-flow-head > i span {
  width: 8px;
  height: 8px;
  background: #22ad83;
  border-radius: 50%;
  animation: platform-status 2s ease-in-out infinite;
}

.platform-flow-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.platform-flow-steps li {
  min-height: 88px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8f9fc;
  border: 1px solid #e5e8f0;
  border-radius: 17px;
}

.platform-flow-steps li.is-current {
  background: #f2efff;
  border-color: #cfc3fa;
}

.platform-flow-steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #646b7e;
  background: #fff;
  border: 1px solid #dfe3ed;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 820;
}

.platform-flow-steps li.is-complete > span,
.platform-flow-steps li.is-current > span {
  color: #fff;
  background: var(--matths-action-primary);
  border-color: var(--matths-action-primary);
}

.platform-flow-steps div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.platform-flow-steps strong {
  color: #24283d;
  font-size: 14px;
  font-weight: 780;
}

.platform-flow-steps small {
  color: #7d8497;
  font-size: 12px;
}

.platform-flow-steps li > i {
  min-width: 38px;
  color: #8990a2;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  text-align: right;
}

.platform-flow-steps li.is-complete > i {
  color: #168769;
  font-size: 15px;
}

.platform-flow-steps li.is-current > i {
  color: var(--matths-violet-text, #6240cf);
}

.platform-flow-progress {
  display: grid;
  gap: 10px;
  padding: 4px;
}

.platform-flow-progress > span {
  height: 7px;
  overflow: hidden;
  background: #e9ebf2;
  border-radius: 999px;
}

.platform-flow-progress > span i {
  width: 68%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--matths-action-primary), #51b9da);
  border-radius: inherit;
}

.platform-flow-progress p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #777f94;
  font-size: 11px;
}

.platform-flow-progress p strong,
.platform-flow-progress p b {
  color: #4c5368;
}

.service-entry,
.audience-proof {
  padding: clamp(86px, 10vw, 126px) 0;
  background: #fff;
}

.section-heading {
  max-width: 570px;
}

.section-heading-centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p {
  margin: 0 0 16px;
  color: var(--matths-violet-text, #6240cf);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.section-heading > h2 {
  margin: 0;
  color: #171a2d;
  font-size: clamp(38px, 4.5vw, 57px);
  font-weight: 820;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.section-heading > span {
  display: block;
  margin-top: 21px;
  color: #737a8e;
  font-size: 16px;
  line-height: 1.75;
}

.service-entry-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 50px;
}

.service-entry-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  background: #f7f8fc;
  border: 1px solid #e0e4ed;
  border-radius: 22px;
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) var(--motion-ease),
    box-shadow var(--motion-base) var(--motion-ease);
}

.service-entry-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.service-entry-card:nth-child(n + 4) {
  grid-column: span 3;
  min-height: 172px;
}

.service-entry-card:hover {
  border-color: #bfc7dd;
  box-shadow: 0 18px 42px rgba(31, 41, 86, 0.1);
  transform: translateY(-1px);
}

.service-entry-card.is-student {
  background: linear-gradient(145deg, #f6f3ff, #fbfaff);
}

.service-entry-card.is-academy {
  background: linear-gradient(145deg, #f0f7ff, #fafcff);
}

.service-entry-card.is-parent {
  background: linear-gradient(145deg, #effaf7, #fbfffd);
}

.service-entry-card.is-mock {
  background: linear-gradient(145deg, #fff9eb, #fffdf8);
}

.service-entry-card.is-arena {
  color: #f8faff;
  background: #0b1024;
  border-color: #242d4d;
}

.service-entry-icon {
  min-width: 43px;
  height: 43px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--matths-action-primary);
  border-radius: 13px;
  font-size: 11px;
  font-weight: 820;
}

.is-academy .service-entry-icon { background: #397ad5; }
.is-parent .service-entry-icon { background: #17765e; }
.is-mock .service-entry-icon { color: #5d4300; background: #f0c85d; }
.is-arena .service-entry-icon { color: #07121f; background: #62dce9; }

.service-entry-card > div {
  margin-top: auto;
}

.service-entry-card strong {
  display: block;
  color: #25293c;
  font-size: 18px;
  font-weight: 820;
}

.service-entry-card p {
  margin: 9px 0 0;
  color: #777f93;
  font-size: 13px;
  line-height: 1.6;
}

.service-entry-card > i {
  position: absolute;
  top: 25px;
  right: 24px;
  color: #7d8498;
  font-size: 19px;
  font-style: normal;
}

.service-entry-card.is-arena strong,
.service-entry-card.is-arena > i {
  color: #f8faff;
}

.service-entry-card.is-arena p {
  color: #98a3c1;
}

.learning-journey {
  padding: clamp(88px, 11vw, 138px) 0;
  background: #f2f4f9;
}

.learning-journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: start;
  gap: clamp(54px, 8vw, 110px);
}

.learning-journey .section-heading {
  position: sticky;
  top: calc(var(--nav-height) + 42px);
}

.learning-journey .section-heading > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--matths-violet-text, #6240cf);
  font-size: 13px;
  font-weight: 800;
}

.learning-journey-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-journey-list li {
  min-height: 190px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  padding: 29px;
  background: #fff;
  border: 1px solid #dfe3ed;
  border-radius: 22px;
}

.learning-journey-list li > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--matths-action-primary);
  border-radius: 15px;
  font-size: 11px;
  font-weight: 820;
}

.learning-journey-list li:nth-child(2) > span {
  background: #397ad5;
}

.learning-journey-list li:nth-child(3) > span {
  color: #07121f;
  background: #62dce9;
}

.learning-journey-list li > div > strong {
  color: #7b8296;
  font-size: 11px;
  font-weight: 760;
}

.learning-journey-list h3 {
  margin: 9px 0 0;
  color: #202438;
  font-size: 21px;
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.learning-journey-list p {
  margin: 12px 0 0;
  color: #747c90;
  font-size: 13px;
  line-height: 1.72;
}

.weekly-proof {
  overflow: hidden;
  padding: clamp(90px, 11vw, 142px) 0;
  background: #f2f4f9;
}

.weekly-proof-layout {
  display: grid;
  grid-template-columns: minmax(470px, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(58px, 8vw, 106px);
}

.weekly-proof-preview {
  padding: 28px;
  background: #fff;
  border: 1px solid #dde2ed;
  border-radius: 28px;
  box-shadow: 0 30px 74px rgba(31, 42, 88, 0.13);
  transform: perspective(1200px) rotateY(2deg);
}

.weekly-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e7eaf1;
}

.weekly-preview-head > div {
  display: grid;
  gap: 4px;
}

.weekly-preview-head span {
  color: #7c8499;
  font-size: 11px;
  font-weight: 650;
}

.weekly-preview-head strong {
  color: #1c2034;
  font-size: 20px;
  font-weight: 820;
}

.weekly-preview-head > i {
  padding: 7px 10px;
  color: #16785e;
  background: #e9f8f3;
  border-radius: 99px;
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
}

.weekly-score {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px 4px 24px;
}

.weekly-score > div {
  display: flex;
  align-items: baseline;
  color: var(--matths-violet-text, #6240cf);
}

.weekly-score > div strong {
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.weekly-score > div span {
  margin-left: 5px;
  font-size: 15px;
  font-weight: 760;
}

.weekly-score p {
  display: grid;
  gap: 8px;
  margin: 0;
}

.weekly-score p b {
  color: #1c2034;
  font-size: 14px;
}

.weekly-score p small {
  color: #7b8296;
  font-size: 12px;
  line-height: 1.55;
}

.weekly-bars {
  min-height: 142px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 12px;
  padding: 18px 18px 0;
  background: #f7f8fc;
  border: 1px solid #e7eaf1;
  border-radius: 18px;
}

.weekly-bars > span {
  height: 105px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 9px;
  text-align: center;
}

.weekly-bars i {
  width: min(38px, 68%);
  height: var(--bar);
  justify-self: center;
  background: linear-gradient(to top, #7450e5, #6cbcd8);
  border-radius: 7px 7px 3px 3px;
}

.weekly-bars b {
  color: #757d91;
  font-size: 10px;
}

.weekly-proof-preview > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--matths-violet-text, #6240cf);
  font-size: 12px;
  font-weight: 800;
}

.weekly-proof-copy ul {
  display: grid;
  gap: 12px;
  margin: 27px 0 30px;
  padding: 0;
  list-style: none;
}

.weekly-proof-copy li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f566d;
  font-size: 13px;
  font-weight: 660;
}

.weekly-proof-copy li i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #17765e;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
}

.audience-proof {
  background: #fff;
}

.audience-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 50px;
}

.audience-proof-grid article {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: #f8f9fc;
  border: 1px solid #e1e5ee;
  border-radius: 22px;
}

.audience-proof-grid article > span {
  padding: 7px 10px;
  color: var(--matths-violet-text, #6240cf);
  background: #eee9ff;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 780;
}

.audience-proof-grid h3 {
  margin: 24px 0 0;
  color: #22263a;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.audience-proof-grid p {
  margin: 14px 0 24px;
  color: #747c90;
  font-size: 13px;
  line-height: 1.72;
}

.audience-proof-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #343a52;
  font-size: 12px;
  font-weight: 800;
}

.app-download {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 11vw, 140px) 0;
  color: #f8f9ff;
  background:
    radial-gradient(circle at 82% 28%, rgba(74, 211, 229, 0.12), transparent 30%),
    #090d20;
}

.app-download::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(105, 123, 188, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 123, 188, 0.18) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 70%);
  pointer-events: none;
}

.app-download-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(60px, 9vw, 118px);
}

.app-download-copy > p {
  margin: 0 0 18px;
  color: #70e4f1;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.app-download-copy h2 {
  margin: 0;
  color: #f8f9ff;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.app-download-copy > span {
  display: block;
  margin-top: 24px;
  color: #a8b1cb;
  font-size: 15px;
  line-height: 1.8;
}

.app-store-badge {
  min-height: 62px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 9px 18px;
  color: #090b12;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 13px;
  transition: transform var(--motion-base) var(--motion-ease), background var(--motion-base) var(--motion-ease);
}

.app-store-badge:hover {
  background: #eef1f8;
  transform: translateY(-1px);
}

.app-store-symbol {
  width: 27px;
  height: 31px;
  display: inline-block;
  background: #090b12;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.79 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.1zM12.03 7.25C11.88 5.02 13.69 3.18 15.77 3c.29 2.58-2.34 4.5-3.74 4.25z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-store-badge > span:last-child {
  display: grid;
  gap: 1px;
}

.app-store-badge small {
  font-size: 9px;
  font-weight: 650;
}

.app-store-badge strong {
  font-size: 19px;
  line-height: 1;
}

.app-download-note {
  display: block;
  margin-top: 13px;
  color: #76809f;
  font-size: 11px;
}

.app-device {
  position: relative;
  width: min(590px, 100%);
  justify-self: end;
  padding: 16px;
  background: #242b42;
  border: 1px solid #48526f;
  border-radius: 32px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}

.app-device-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 6px;
  height: 6px;
  background: #090c15;
  border-radius: 50%;
}

.app-device-screen {
  overflow: hidden;
  color: #1a1e31;
  background: #f7f8fc;
  border-radius: 21px;
}

.app-device-top,
.app-device-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 24px;
  background: #fff;
}

.app-device-top {
  min-height: 62px;
  border-bottom: 1px solid #e4e7ef;
}

.app-device-top span {
  color: #25293b;
  font-size: 17px;
  font-weight: 850;
}

.app-device-top i {
  padding: 7px 10px;
  color: #6240cf;
  background: #eee9ff;
  border-radius: 99px;
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.app-device-content {
  padding: 30px;
}

.app-device-content > small {
  color: #7f879b;
  font-size: 10px;
  font-weight: 680;
}

.app-device-content > strong {
  display: block;
  margin-top: 7px;
  font-size: 21px;
}

.app-device-graph {
  position: relative;
  height: 210px;
  overflow: hidden;
  margin-top: 22px;
  background-image:
    linear-gradient(rgba(81, 94, 145, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 94, 145, 0.09) 1px, transparent 1px);
  background-size: 30px 30px;
  border: 1px solid #e0e4ed;
  border-radius: 15px;
}

.app-device-graph::before,
.app-device-graph::after {
  content: "";
  position: absolute;
  background: #9da4b6;
}

.app-device-graph::before {
  top: 67%;
  left: 0;
  width: 100%;
  height: 1px;
}

.app-device-graph::after {
  top: 0;
  left: 32%;
  width: 1px;
  height: 100%;
}

.app-device-graph i {
  position: absolute;
  left: 39%;
  bottom: 32%;
  width: 150px;
  height: 120px;
  border: 3px solid #7050dd;
  border-top: 0;
  border-radius: 0 0 50% 50%;
}

.app-device-graph b {
  position: absolute;
  left: calc(39% + 72px);
  bottom: calc(32% - 5px);
  width: 11px;
  height: 11px;
  background: #fff;
  border: 3px solid #7050dd;
  border-radius: 50%;
}

.app-device-graph span {
  position: absolute;
  left: calc(39% + 89px);
  bottom: calc(32% - 7px);
  color: #6240cf;
  font-size: 10px;
  font-weight: 780;
}

.app-device-content > p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  color: #50576d;
  font-size: 11px;
  font-weight: 670;
}

.app-device-content > p i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #17765e;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.app-device-footer {
  min-height: 54px;
  justify-content: space-around;
  color: #8a91a5;
  border-top: 1px solid #e4e7ef;
  font-size: 10px;
}

.app-device-footer strong {
  color: #6543d3;
}

.closing-cta {
  padding: 62px 0;
  background: #fff;
}

.closing-cta-inner {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 54px;
  background: linear-gradient(135deg, #f0ecff, #edf8ff);
  border: 1px solid #dce2ee;
  border-radius: 28px;
}

.closing-cta p {
  margin: 0 0 12px;
  color: #6240cf;
  font-size: 12px;
  font-weight: 800;
}

.closing-cta h2 {
  margin: 0;
  color: #171b2e;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.closing-cta-inner > div:last-child {
  display: grid;
  justify-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.closing-cta-inner > div:last-child > a:last-child {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #6c7389;
  font-size: 11px;
  font-weight: 700;
}

@keyframes platform-status {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@media (max-width: 1050px) {
  .platform-hero-layout,
  .weekly-proof-layout,
  .app-download-layout {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .platform-hero h1 {
    font-size: 55px;
  }

  .service-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-entry-card:nth-child(n) {
    grid-column: span 1;
  }

  .service-entry-card:last-child {
    grid-column: span 2;
  }

  .app-download-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(450px, 1.15fr);
  }

  .learning-journey-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(470px, 1.2fr);
    gap: 42px;
  }
}

@media (max-width: 900px) {
  .platform-hero {
    min-height: auto;
  }

  .platform-hero-layout,
  .weekly-proof-layout,
  .app-download-layout {
    grid-template-columns: 1fr;
  }

  .platform-hero-copy,
  .weekly-proof-copy,
  .app-download-copy {
    max-width: 680px;
  }

  .platform-flow-card,
  .weekly-proof-preview,
  .app-device {
    width: min(680px, 100%);
    transform: none;
  }

  .weekly-proof-preview {
    order: 2;
  }

  .weekly-proof-copy {
    order: 1;
  }

  .app-device {
    justify-self: start;
  }

  .audience-proof-grid {
    grid-template-columns: 1fr;
  }

  .learning-journey-layout {
    grid-template-columns: 1fr;
  }

  .learning-journey .section-heading {
    position: static;
    max-width: 680px;
  }

  .audience-proof-grid article {
    min-height: 230px;
  }

  .closing-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-cta-inner > div:last-child {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .platform-hero {
    padding: 64px 0 74px;
  }

  .platform-hero h1 {
    font-size: 43px;
    letter-spacing: -0.05em;
  }

  .platform-hero-copy > p:not(.platform-kicker) {
    font-size: 15px;
  }

  .platform-hero-copy > p br {
    display: none;
  }

  .platform-hero-actions {
    display: grid;
  }

  .platform-hero-actions .button {
    width: 100%;
  }

  .platform-hero-facts {
    justify-content: space-between;
  }

  .platform-hero-facts div {
    min-width: 0;
    padding: 0 13px;
  }

  .platform-flow-card,
  .weekly-proof-preview {
    padding: 17px;
    border-radius: 22px;
  }

  .platform-flow-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .platform-flow-steps li > i {
    display: none;
  }

  .service-entry,
  .audience-proof,
  .learning-journey {
    padding: 76px 0;
  }

  .section-heading > h2 {
    font-size: 36px;
  }

  .section-heading > span {
    font-size: 14px;
  }

  .service-entry-grid {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .service-entry-card:nth-child(n) {
    grid-column: span 1;
    min-height: 170px;
  }

  .weekly-proof {
    padding: 76px 0;
  }

  .weekly-score {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }

  .weekly-score > div strong {
    font-size: 56px;
  }

  .audience-proof-grid {
    margin-top: 38px;
  }

  .learning-journey-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
    padding: 22px 19px;
  }

  .learning-journey-list li > span {
    width: 44px;
    height: 44px;
  }

  .app-download {
    padding: 76px 0;
  }

  .app-download-copy h2 {
    font-size: 40px;
  }

  .app-device {
    padding: 9px;
    border-radius: 23px;
  }

  .app-device-screen {
    border-radius: 16px;
  }

  .app-device-content {
    padding: 22px 18px;
  }

  .app-device-graph {
    height: 180px;
  }

  .app-device-graph i {
    left: 30%;
    width: 130px;
    height: 105px;
  }

  .app-device-graph b {
    left: calc(30% + 62px);
  }

  .app-device-graph span {
    left: calc(30% + 79px);
  }

  .closing-cta {
    padding: 24px 0;
  }

  .closing-cta-inner {
    min-height: 0;
    padding: 34px 25px;
    border-radius: 22px;
  }

  .closing-cta-inner > div:last-child,
  .closing-cta-inner .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-flow-head > i span {
    animation: none !important;
  }
}

/* 메인 전용 화면 모드 전환과 실제 앱 화면 */
.site-header .home-theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  margin-left: 2px;
  padding: 0;
  color: #858da2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  opacity: 0.76;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--motion-ease),
    background var(--motion-fast) var(--motion-ease),
    opacity var(--motion-fast) var(--motion-ease);
}

.site-header .home-theme-toggle:hover {
  color: #5f6679;
  background: rgba(106, 82, 198, 0.07);
  opacity: 1;
}

.site-header .home-theme-toggle:focus-visible {
  outline: 3px solid rgba(99, 64, 207, 0.27);
  outline-offset: 3px;
}

.home-theme-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.home-theme-icon-sun {
  display: none;
}

.matths-brand-lockup--theme-switchable {
  position: relative;
}

.matths-brand-lockup.matths-brand-lockup--theme-switchable > .brand-logo.matths-brand-lockup__image--light {
  display: none;
}

.app-device-gallery {
  position: relative;
  min-height: 545px;
}

.real-device {
  margin: 0;
}

.real-device figcaption {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #aab4d0;
  font-size: 11px;
}

.real-device figcaption span {
  padding: 6px 9px;
  color: #09101f;
  background: #70e4f1;
  border-radius: 99px;
  font-weight: 850;
}

.real-device figcaption strong {
  font-weight: 680;
}

.real-device-frame {
  position: relative;
  overflow: hidden;
  line-height: 0;
  background: #f1f4ff;
  border: 9px solid #343c54;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.32);
}

.real-device-ipad {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 590px);
}

.real-device-ipad .real-device-frame {
  border-radius: 25px;
}

.real-device-iphone {
  position: absolute;
  right: 20px;
  bottom: 0;
  z-index: 2;
  width: 178px;
}

.real-device-iphone figcaption {
  justify-content: flex-end;
}

.real-device-iphone figcaption strong {
  display: none;
}

.real-device-iphone .real-device-frame {
  border-width: 7px;
  border-radius: 31px;
}

.theme-device-shot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: scale(0.93);
  transform-origin: center;
}

.real-device-iphone .theme-device-shot {
  transform: scale(0.9);
}

.theme-device-shot-dark {
  display: none;
}

html[data-home-theme="dark"] {
  --ink: #f4f6ff;
  --muted: #9ba5c1;
  --line: #2a3351;
  --paper: #070a18;
  --white: #11162a;
  color-scheme: dark;
}

html[data-home-theme="dark"] body {
  color: #f4f6ff;
  background: #070a18;
}

html[data-home-theme="dark"] .site-header {
  background: rgba(7, 10, 24, 0.95);
  border-bottom-color: #222a45;
}

html[data-home-theme="dark"] .site-header .nav-links a,
html[data-home-theme="dark"] .site-header .nav-cluster summary,
html[data-home-theme="dark"] .site-header .login-link {
  color: #a6afc9;
}

html[data-home-theme="dark"] .site-header .nav-links a:hover,
html[data-home-theme="dark"] .site-header .nav-cluster summary:hover,
html[data-home-theme="dark"] .site-header .nav-cluster[open] summary,
html[data-home-theme="dark"] .site-header .login-link:hover {
  color: #fff;
}

html[data-home-theme="dark"] .site-header .nav-cluster summary:hover,
html[data-home-theme="dark"] .site-header .nav-cluster[open] summary {
  background: #171d34;
}

html[data-home-theme="dark"] .site-header .nav-cluster-menu,
html[data-home-theme="dark"] .site-header .mobile-menu > div {
  background: #11162a;
  border-color: #2a3351;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

html[data-home-theme="dark"] .site-header .nav-cluster-menu a:hover,
html[data-home-theme="dark"] .site-header .nav-cluster-menu a.active,
html[data-home-theme="dark"] .site-header .mobile-menu > div a:hover,
html[data-home-theme="dark"] .site-header .mobile-menu > div a.active {
  color: #c8baff;
  background: #222039;
}

html[data-home-theme="dark"] .site-header .mobile-menu summary {
  background: #11162a;
  border-color: #2a3351;
}

html[data-home-theme="dark"] .site-header .mobile-menu summary span {
  background: #f4f6ff;
}

html[data-home-theme="dark"] .site-header .home-theme-toggle {
  color: #9aa3ba;
  background: transparent;
  border-color: transparent;
}

html[data-home-theme="dark"] .site-header .home-theme-toggle:hover {
  color: #d8c56f;
  background: rgba(255, 255, 255, 0.055);
}

html[data-home-theme="dark"] .home-theme-icon-moon {
  display: none;
}

html[data-home-theme="dark"] .home-theme-icon-sun {
  display: block;
}

html[data-home-theme="dark"] .matths-brand-lockup--theme-switchable .matths-brand-lockup__image--dark {
  visibility: hidden;
}

html[data-home-theme="dark"] .matths-brand-lockup.matths-brand-lockup--theme-switchable > .brand-logo.matths-brand-lockup__image--light {
  position: absolute;
  inset: 0;
  display: block;
}

html[data-home-theme="dark"] .platform-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(117, 88, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #070a18 0%, #0c1024 56%, #0a1726 100%);
}

html[data-home-theme="dark"] .platform-hero::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(102, 121, 188, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 121, 188, 0.11) 1px, transparent 1px);
}

html[data-home-theme="dark"] .platform-hero h1,
html[data-home-theme="dark"] .section-heading > h2,
html[data-home-theme="dark"] .learning-proof .hero-copy h2,
html[data-home-theme="dark"] .closing-cta h2 {
  color: #f4f6ff;
}

html[data-home-theme="dark"] .platform-hero-copy > p:not(.platform-kicker),
html[data-home-theme="dark"] .section-heading > span,
html[data-home-theme="dark"] .hero-description {
  color: #9ba5c1;
}

html[data-home-theme="dark"] .platform-kicker,
html[data-home-theme="dark"] .section-heading > p {
  color: #baa9ff;
}

html[data-home-theme="dark"] .platform-hero-facts div {
  border-left-color: #2b3451;
}

html[data-home-theme="dark"] .platform-hero-facts dt {
  color: #828dab;
}

html[data-home-theme="dark"] .platform-hero-facts dd {
  color: #eef1fb;
}

html[data-home-theme="dark"] .button-secondary {
  color: #e8ebf6;
  background: #141a30;
  border-color: #303a5d;
}

html[data-home-theme="dark"] .button-secondary:hover {
  background: #1b223b;
}

html[data-home-theme="dark"] .platform-app-button .apple-mark {
  background: #f4f6ff;
}

html[data-home-theme="dark"] .platform-flow-card,
html[data-home-theme="dark"] .weekly-proof-preview {
  background: rgba(16, 22, 43, 0.96);
  border-color: #303a5d;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.34);
}

html[data-home-theme="dark"] .platform-flow-head {
  border-bottom-color: #2a3351;
}

html[data-home-theme="dark"] .platform-flow-head > div span,
html[data-home-theme="dark"] .platform-flow-steps small,
html[data-home-theme="dark"] .platform-flow-progress p,
html[data-home-theme="dark"] .weekly-preview-head span,
html[data-home-theme="dark"] .weekly-score p small {
  color: #8e99b7;
}

html[data-home-theme="dark"] .platform-flow-head > div strong,
html[data-home-theme="dark"] .platform-flow-steps strong,
html[data-home-theme="dark"] .weekly-preview-head strong,
html[data-home-theme="dark"] .weekly-score p b {
  color: #f4f6ff;
}

html[data-home-theme="dark"] .platform-flow-steps li,
html[data-home-theme="dark"] .weekly-bars {
  background: #0c1124;
  border-color: #283251;
}

html[data-home-theme="dark"] .platform-flow-steps li.is-current {
  background: #211c3f;
  border-color: #594a96;
}

html[data-home-theme="dark"] .platform-flow-steps li > span {
  color: #aab4cf;
  background: #151b31;
  border-color: #303a5a;
}

html[data-home-theme="dark"] .platform-flow-progress > span {
  background: #252e49;
}

html[data-home-theme="dark"] .platform-flow-progress p strong,
html[data-home-theme="dark"] .platform-flow-progress p b {
  color: #bec6dc;
}

html[data-home-theme="dark"] .service-entry,
html[data-home-theme="dark"] .audience-proof,
html[data-home-theme="dark"] .learning-proof,
html[data-home-theme="dark"] .closing-cta {
  background: #070a18;
}

html[data-home-theme="dark"] .learning-journey,
html[data-home-theme="dark"] .weekly-proof {
  background: #0b1022;
}

html[data-home-theme="dark"] .service-entry-card,
html[data-home-theme="dark"] .service-entry-card.is-student,
html[data-home-theme="dark"] .service-entry-card.is-academy,
html[data-home-theme="dark"] .service-entry-card.is-parent,
html[data-home-theme="dark"] .service-entry-card.is-mock,
html[data-home-theme="dark"] .audience-proof-grid article,
html[data-home-theme="dark"] .learning-journey-list li {
  background: #11162a;
  border-color: #293351;
}

html[data-home-theme="dark"] .service-entry-card.is-arena {
  background: #101a2d;
  border-color: #2a6a76;
}

html[data-home-theme="dark"] .service-entry-card strong,
html[data-home-theme="dark"] .audience-proof-grid h3,
html[data-home-theme="dark"] .learning-journey-list h3 {
  color: #f2f4fb;
}

html[data-home-theme="dark"] .service-entry-card p,
html[data-home-theme="dark"] .audience-proof-grid p,
html[data-home-theme="dark"] .learning-journey-list p,
html[data-home-theme="dark"] .weekly-proof-copy li {
  color: #9aa5c0;
}

html[data-home-theme="dark"] .service-entry-card > i,
html[data-home-theme="dark"] .audience-proof-grid a {
  color: #bec7dc;
}

html[data-home-theme="dark"] .lesson-window {
  background: #11162a;
  border-color: #303a5b;
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.32);
}

html[data-home-theme="dark"] .window-header,
html[data-home-theme="dark"] .window-footer {
  background: #11162a;
  border-color: #293351;
}

html[data-home-theme="dark"] .lesson-title strong,
html[data-home-theme="dark"] .formula-box span,
html[data-home-theme="dark"] .coach-note strong {
  color: #f3f5fc;
}

html[data-home-theme="dark"] .lesson-canvas {
  background: linear-gradient(145deg, #0d1226, #10172d);
}

html[data-home-theme="dark"] .formula-box,
html[data-home-theme="dark"] .coach-note {
  background: #171d33;
  border-color: #303a5b;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-home-theme="dark"] .coach-note p {
  color: #9da7c1;
}

html[data-home-theme="dark"] .graph {
  background-image:
    linear-gradient(rgba(126, 142, 196, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 142, 196, 0.13) 1px, transparent 1px);
}

html[data-home-theme="dark"] .axis {
  background: #717d9d;
}

html[data-home-theme="dark"] .axis-name {
  color: #8994b2;
}

html[data-home-theme="dark"] .home-summary {
  background: #11162a;
  border-color: #293351;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

html[data-home-theme="dark"] .home-summary span {
  color: #919bb8;
}

html[data-home-theme="dark"] .weekly-preview-head {
  border-bottom-color: #293351;
}

html[data-home-theme="dark"] .weekly-bars i {
  background: linear-gradient(to top, #8b6bf0, #58c6df);
}

html[data-home-theme="dark"] .weekly-bars b {
  color: #99a3bf;
}

html[data-home-theme="dark"] .audience-proof-grid article > span {
  color: #c8baff;
  background: #24203d;
}

html[data-home-theme="dark"] .closing-cta-inner {
  background: linear-gradient(135deg, #17142d, #102032);
  border-color: #303a5b;
}

html[data-home-theme="dark"] .closing-cta p {
  color: #b9a8ff;
}

html[data-home-theme="dark"] .closing-cta-inner > div:last-child > a:last-child {
  color: #9ba5c1;
}

html[data-home-theme="dark"] .theme-device-shot-light {
  display: none;
}

html[data-home-theme="dark"] .real-device-frame {
  background: #070a18;
}

html[data-home-theme="dark"] .theme-device-shot-dark {
  display: block;
}

@media (max-width: 1050px) {
  .app-device-gallery {
    min-height: 490px;
  }

  .real-device-iphone {
    width: 158px;
  }
}

@media (max-width: 900px) {
  .app-device-gallery {
    width: min(680px, 100%);
    min-height: 610px;
  }

  .real-device-ipad {
    right: auto;
    left: 0;
  }

  .real-device-iphone {
    right: 24px;
    width: 190px;
  }
}

@media (max-width: 640px) {
  .site-header .nav-actions {
    margin-left: auto;
  }

  .app-device-gallery {
    min-height: 430px;
  }

  .real-device-ipad {
    width: 100%;
  }

  .real-device-ipad .real-device-frame {
    border-width: 6px;
    border-radius: 18px;
  }

  .real-device-iphone {
    right: 12px;
    bottom: 0;
    width: 126px;
  }

  .real-device-iphone figcaption {
    margin-bottom: 7px;
  }

  .real-device-iphone .real-device-frame {
    border-width: 5px;
    border-radius: 22px;
  }
}
