:root {
  --ink: #0b1220;
  --ink-2: #172033;
  --text: #303b4f;
  --muted: #667085;
  --canvas: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --line: #dfe3eb;
  --line-strong: #cbd1dc;
  --accent: #4055d6;
  --accent-dark: #2f43b7;
  --accent-soft: #e9edff;
  --accent-faint: #f3f5ff;
  --success: #2f6f5e;
  --shadow-sm: 0 8px 24px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 22px 70px rgba(11, 18, 32, 0.11);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --header-height: 78px;
  --transition: 180ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.25rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

::selection {
  color: var(--surface);
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(64, 85, 214, 0.38);
  outline-offset: 4px;
}

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

.section {
  position: relative;
  padding-block: clamp(88px, 10vw, 150px);
}

.section-tinted {
  background: var(--surface-2);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 9px;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section-intro {
  max-width: 760px;
  margin-bottom: clamp(44px, 6vw, 74px);
}

.section-intro h2 {
  margin-bottom: 22px;
}

.section-intro p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

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

.section-intro-center .eyebrow,
.section-intro-center p {
  justify-content: center;
  margin-inline: auto;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button .icon {
  transition: transform var(--transition);
}

.button:hover .icon {
  transform: translateX(3px);
}

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

.button-primary {
  color: var(--surface);
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(64, 85, 214, 0.2);
}

.button-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 15px 30px rgba(64, 85, 214, 0.26);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--surface);
  border-color: #afb7c5;
  box-shadow: var(--shadow-sm);
}

.button-light {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.button-light:hover {
  background: var(--accent-faint);
}

.button-text {
  min-height: auto;
  justify-content: flex-start;
  padding: 8px 0;
  color: var(--accent-dark);
  border-radius: 0;
}

.button-text:hover {
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(247, 248, 251, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(203, 209, 220, 0.72);
  background: rgba(247, 248, 251, 0.94);
  box-shadow: 0 10px 35px rgba(11, 18, 32, 0.05);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.wordmark-mark {
  display: grid;
  width: 24px;
  height: 24px;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  background: var(--ink);
  border-radius: 7px;
}

.wordmark-mark span {
  display: block;
  background: var(--surface);
  border-radius: 1.5px;
}

.wordmark-mark span:last-child {
  background: var(--accent);
}

.site-nav,
.nav-links {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 28px;
}

.nav-links {
  gap: 26px;
}

.nav-link {
  position: relative;
  padding-block: 10px;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 620;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  min-height: 44px;
  padding: 11px 16px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.menu-icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon-close {
  display: block;
}

.menu-icon .icon {
  width: 23px;
  height: 23px;
}

/* Home hero */
.hero {
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(70px, 9vw, 120px);
  background:
    radial-gradient(circle at 82% 26%, rgba(64, 85, 214, 0.13), transparent 32%),
    radial-gradient(circle at 15% 82%, rgba(64, 85, 214, 0.06), transparent 27%);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 88%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 88%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: clamp(50px, 7vw, 100px);
}

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

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 28px;
}

.hero-copy h1 span,
.page-hero-copy h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
}

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

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero-note .icon {
  width: 14px;
  height: 14px;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.visual-grid {
  position: absolute;
  top: 4%;
  right: -6%;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(64, 85, 214, 0.2);
  border-radius: 50%;
}

.visual-grid::before,
.visual-grid::after {
  position: absolute;
  border: 1px solid rgba(64, 85, 214, 0.13);
  border-radius: inherit;
  content: "";
}

.visual-grid::before {
  inset: 12%;
}

.visual-grid::after {
  inset: 24%;
}

.equation-card {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 209, 220, 0.86);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.equation-card-main {
  top: 9%;
  right: 0;
  width: min(100%, 500px);
  overflow: hidden;
  border-radius: 26px;
}

.equation-card-header,
.equation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.equation-card-header {
  padding: 18px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.status-dot::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 111, 94, 0.1);
  content: "";
}

.graph {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
}

.equation-row {
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.equation-row code {
  font-size: 0.95rem;
  font-weight: 700;
}

.equation-row span {
  color: var(--muted);
  font-size: 0.78rem;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-md);
}

.floating-card-a {
  bottom: 7%;
  left: -8%;
  width: 235px;
  flex-direction: column;
  padding: 22px;
}

.floating-card-a .floating-label {
  margin-bottom: 26px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.floating-card-a strong {
  margin-bottom: 6px;
  font-size: 1rem;
}

.floating-card-a > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.floating-card-b {
  right: -7%;
  bottom: 16%;
  align-items: center;
  gap: 12px;
  width: 245px;
  padding: 16px;
}

.floating-card-b .mini-check {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--surface);
  background: var(--accent);
  border-radius: 12px;
}

.floating-card-b strong,
.floating-card-b span {
  display: block;
}

.floating-card-b strong {
  font-size: 0.92rem;
}

.floating-card-b div span {
  color: var(--muted);
  font-size: 0.74rem;
}

/* Trust strip */
.trust-strip {
  color: var(--surface);
  background: var(--ink);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  display: flex;
  min-height: 102px;
  align-items: center;
  gap: 14px;
  padding: 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-index {
  color: #96a3ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
}

.trust-grid strong {
  font-size: 0.94rem;
  font-weight: 620;
}

/* Problems */
.problem-grid {
  display: grid;
  margin-bottom: clamp(64px, 8vw, 104px);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-card {
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 50px rgba(11, 18, 32, 0.045);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quote-card:hover {
  border-color: #bec5d3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.quote-number {
  display: block;
  margin-bottom: 64px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.quote-card p {
  margin-bottom: 0;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.solution-bridge {
  display: grid;
  overflow: hidden;
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius-lg);
  grid-template-columns: 0.85fr 1.15fr;
}

.solution-copy {
  padding: clamp(42px, 6vw, 72px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.solution-copy .eyebrow {
  color: #aeb8ff;
}

.solution-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}

.solution-copy p {
  color: #bec6d5;
}

.solution-sequence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.solution-sequence > div {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-sequence > div:nth-child(2n) {
  border-right: 0;
}

.solution-sequence > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.solution-sequence span {
  margin-bottom: auto;
  color: #8796ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.solution-sequence strong,
.solution-sequence small {
  display: block;
}

.solution-sequence strong {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.solution-sequence small {
  color: #9ea8ba;
  font-size: 0.82rem;
}

/* Subjects */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.subject-card {
  position: relative;
  display: flex;
  min-height: 610px;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(30px, 4.5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.subject-card::after {
  position: absolute;
  z-index: 0;
  top: 90px;
  right: -70px;
  width: 270px;
  height: 270px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
}

.subject-card:hover {
  border-color: #bfc6d4;
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.subject-card > * {
  position: relative;
  z-index: 1;
}

.subject-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.subject-code,
.subject-level {
  font-size: 0.74rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.subject-code {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.subject-level {
  color: var(--muted);
}

.subject-symbol {
  min-height: 115px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 580;
  letter-spacing: -0.06em;
  line-height: 1;
}

.subject-card h3 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 3.5vw, 3.65rem);
}

.subject-card > p {
  max-width: 540px;
  margin-bottom: 26px;
  color: var(--text);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}

.topic-chips li {
  padding: 7px 11px;
  color: var(--text);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 620;
}

.subject-card .button-text {
  margin-top: auto;
}

/* Process */
.process-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.75fr) minmax(480px, 1.25fr);
  gap: clamp(70px, 9vw, 130px);
}

.process-sticky {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: grid;
  min-height: 190px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: 85px 1fr;
}

.step-card:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.step-number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.step-card p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--text);
}

.step-list-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.step-list-horizontal .step-card {
  min-height: 290px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  padding: 30px;
  border-top: 0;
  border-right: 1px solid var(--line-strong);
}

.step-list-horizontal .step-card:last-child {
  border-right: 0;
  border-bottom: 0;
}

.step-list-horizontal .step-number {
  margin-bottom: 55px;
}

.step-list-horizontal .step-card p {
  font-size: 0.92rem;
}

/* Why */
.why-section {
  color: var(--surface);
  background: var(--ink);
}

.why-header {
  display: grid;
  align-items: end;
  margin-bottom: clamp(55px, 8vw, 90px);
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
}

.why-header .eyebrow {
  color: #aeb8ff;
}

.why-header h2 {
  margin-bottom: 0;
}

.why-header > p {
  margin-bottom: 7px;
  color: #b8c1d2;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-card {
  min-height: 330px;
  padding: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-card:last-child {
  border-right: 0;
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 72px;
  place-items: center;
  color: #aeb8ff;
  border: 1px solid rgba(174, 184, 255, 0.34);
  border-radius: 14px;
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 14px;
  font-size: 1.28rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #aeb7c8;
  font-size: 0.9rem;
}

/* CTA */
.cta-section {
  overflow: hidden;
}

.cta-panel {
  position: relative;
  display: flex;
  min-height: 380px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding: clamp(42px, 7vw, 78px);
  color: var(--surface);
  background: var(--accent);
  border-radius: var(--radius-lg);
}

.cta-panel::before,
.cta-panel::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.cta-panel::before {
  top: -160px;
  right: -80px;
  width: 430px;
  height: 430px;
}

.cta-panel::after {
  top: -100px;
  right: -20px;
  width: 310px;
  height: 310px;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel .eyebrow {
  color: #e3e7ff;
}

.cta-panel h2 {
  max-width: 760px;
  margin-bottom: 18px;
}

.cta-panel p {
  max-width: 700px;
  margin-bottom: 0;
  color: #e1e5ff;
}

.cta-formula {
  position: absolute;
  z-index: 0;
  top: 36px;
  right: 55px;
  color: rgba(255, 255, 255, 0.18);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.2rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

/* Internal page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 28px clamp(78px, 10vw, 135px);
  background:
    radial-gradient(circle at 88% 18%, rgba(64, 85, 214, 0.13), transparent 31%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.48), transparent);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 18, 32, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 18, 32, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(45px, 7vw, 78px);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: clamp(60px, 9vw, 125px);
}

.page-hero-copy h1 {
  max-width: 860px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.2vw, 5.85rem);
}

.page-hero-copy > p {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.page-hero-aside {
  min-width: 0;
}

.formula-panel,
.price-status,
.intake-summary {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(30px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.formula-panel::after,
.price-status::after,
.intake-summary::after {
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  content: "";
}

.formula-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 90px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.formula-dots {
  display: flex;
  gap: 6px;
}

.formula-dots i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--line-strong);
  border-radius: 50%;
}

.formula-dots i:last-child {
  background: var(--accent);
}

.formula-expression {
  position: relative;
  z-index: 1;
  margin-bottom: 38px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.25rem, 2.4vw, 2.05rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.formula-panel h2,
.formula-panel p {
  position: relative;
  z-index: 1;
}

.formula-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
}

.formula-panel p {
  max-width: 400px;
  color: var(--text);
}

/* Internal content */
.split-section {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(70px, 10vw, 145px);
}

.statement-stack {
  border-top: 1px solid var(--line-strong);
}

.statement-card {
  display: grid;
  min-height: 125px;
  align-items: center;
  padding: 25px 0;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: 64px 1fr;
}

.statement-card span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.statement-card p {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 540;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.topic-card {
  min-height: 275px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.4);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background var(--transition);
}

.topic-card:hover {
  background: var(--surface);
}

.topic-card > span {
  display: block;
  margin-bottom: 70px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.topic-card h3 {
  margin-bottom: 14px;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.lesson-card {
  min-height: 510px;
  padding: clamp(34px, 5vw, 62px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.lesson-card-dark {
  display: flex;
  flex-direction: column;
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.lesson-card .eyebrow {
  margin-bottom: 45px;
}

.lesson-card-dark .eyebrow {
  color: #aeb8ff;
}

.lesson-card h2,
.lesson-card h3 {
  margin-bottom: 22px;
}

.lesson-card h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.lesson-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.lesson-card > p {
  color: var(--text);
}

.lesson-card-dark > p {
  color: #b8c1d2;
}

.mini-formula {
  margin-top: auto;
  padding-top: 45px;
  color: #97a5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.85rem, 1.7vw, 1.2rem);
}

.check-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  align-items: start;
  color: var(--text);
  grid-template-columns: 30px 1fr;
}

.check-icon {
  display: grid;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
}

.check-icon .icon {
  width: 13px;
  height: 13px;
}

.faq-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(70px, 10vw, 140px);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 22px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 10px;
  transition: transform var(--transition), background var(--transition);
}

.faq-plus .icon {
  width: 18px;
  height: 18px;
}

.faq-item[open] .faq-plus {
  background: var(--accent);
  color: var(--surface);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 65px 28px 0;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--text);
}

/* Method page */
.method-timeline {
  border-top: 1px solid var(--line-strong);
}

.method-row {
  display: grid;
  min-height: 190px;
  align-items: center;
  padding-block: 34px;
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: 100px 1fr 130px;
  gap: 34px;
}

.method-number {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.method-row h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.method-row p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text);
}

.method-tag {
  justify-self: end;
  padding: 7px 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(70px, 10vw, 140px);
}

.principle-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.principle-cards article {
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.42);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.principle-cards span {
  display: block;
  margin-bottom: 72px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.principle-cards h3 {
  margin-bottom: 12px;
}

.principle-cards p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

/* Pricing */
.price-status {
  display: flex;
  min-height: 370px;
  flex-direction: column;
  justify-content: flex-end;
}

.price-status .status-pulse,
.form-status-banner .status-pulse,
.legal-status .status-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(64, 85, 214, 0.12);
}

.price-status p,
.price-status strong,
.price-status small {
  position: relative;
  z-index: 1;
  display: block;
}

.price-status p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-status strong {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 4.3vw, 4.1rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-status small {
  max-width: 360px;
  color: var(--text);
}

.pricing-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pricing-card {
  display: flex;
  min-height: 625px;
  flex-direction: column;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pricing-card-featured {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-14px);
}

.pricing-kicker {
  margin-bottom: 55px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-card-featured .pricing-kicker {
  color: #aeb8ff;
}

.pricing-card h2 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
}

.pricing-card > p {
  min-height: 95px;
  margin-bottom: 26px;
  color: var(--text);
}

.pricing-card-featured > p,
.pricing-card-featured .check-list li {
  color: #b8c1d2;
}

.price-placeholder {
  margin-bottom: 34px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-card-featured .price-placeholder {
  border-color: rgba(255, 255, 255, 0.15);
}

.price-placeholder strong,
.price-placeholder span {
  display: block;
}

.price-placeholder strong {
  margin-bottom: 5px;
  font-size: 1.45rem;
}

.price-placeholder span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pricing-card-featured .price-placeholder span {
  color: #98a3b7;
}

.pricing-card .check-list {
  margin-bottom: 34px;
}

.pricing-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-card-featured .button-primary {
  color: var(--ink);
  background: var(--surface);
}

.pricing-note {
  display: grid;
  align-items: start;
  margin-top: 42px;
  padding: 24px 26px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 15px;
  grid-template-columns: 30px 1fr;
}

.pricing-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--surface);
  border-radius: 50%;
}

.pricing-note p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

/* Form */
.intake-summary {
  display: grid;
  min-height: 430px;
  align-content: center;
  grid-template-columns: 54px 1fr;
  row-gap: 12px;
}

.intake-summary > * {
  position: relative;
  z-index: 1;
}

.intake-summary .intake-index {
  grid-row: span 2;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.intake-summary h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.intake-summary p {
  margin-bottom: 40px;
  color: var(--text);
  font-size: 0.9rem;
}

.form-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(260px, 0.68fr) minmax(560px, 1.32fr);
  gap: clamp(60px, 9vw, 125px);
}

.form-intro {
  position: sticky;
  top: calc(var(--header-height) + 50px);
}

.form-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.form-intro > p {
  color: var(--text);
}

.form-side-note {
  display: grid;
  align-items: start;
  margin-top: 40px;
  padding: 22px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 15px;
  grid-template-columns: 38px 1fr;
  gap: 14px;
}

.form-side-note > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--surface);
  border-radius: 10px;
}

.form-side-note strong,
.form-side-note p {
  display: block;
}

.form-side-note p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 0.82rem;
}

.form-card {
  padding: clamp(28px, 4.5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-status-banner {
  display: grid;
  align-items: start;
  margin-bottom: 36px;
  padding: 18px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 13px;
  grid-template-columns: 26px 1fr;
}

.form-status-banner .status-pulse {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  box-shadow: 0 0 0 5px rgba(64, 85, 214, 0.12);
}

.form-status-banner p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.84rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 680;
}

.optional {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field input,
.field select {
  min-height: 52px;
  padding: 12px 14px;
}

.field textarea {
  min-height: 125px;
  padding: 14px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #aeb7c5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(64, 85, 214, 0.11);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8e98aa;
}

.radio-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.radio-field legend {
  margin-bottom: 10px;
}

.radio-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.radio-options label {
  position: relative;
  cursor: pointer;
}

.radio-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.radio-options label > span {
  display: flex;
  min-height: 90px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.radio-options label:hover > span {
  border-color: #aeb7c5;
}

.radio-options input:checked + span {
  background: var(--accent-faint);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(64, 85, 214, 0.09);
}

.radio-options input:focus-visible + span {
  outline: 3px solid rgba(64, 85, 214, 0.34);
  outline-offset: 3px;
}

.radio-options strong,
.radio-options small {
  display: block;
}

.radio-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.privacy-check {
  display: grid;
  align-items: start;
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
  grid-template-columns: 24px 1fr;
  gap: 10px;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.privacy-check a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit {
  width: 100%;
  margin-top: 30px;
  border: 0;
  cursor: pointer;
}

.form-connection-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.form-feedback {
  margin-top: 18px;
  padding: 16px;
  color: var(--ink);
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: 11px;
  font-size: 0.86rem;
}

/* About */
.origin-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(70px, 11vw, 160px);
}

.large-index {
  display: block;
  margin-bottom: 85px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
}

.origin-statement h2 {
  font-size: clamp(2.2rem, 4.2vw, 4.2rem);
}

.origin-copy {
  padding-top: 94px;
}

.origin-copy p {
  color: var(--text);
  font-size: 1.02rem;
}

.origin-copy .lead-paragraph {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.value-grid article {
  min-height: 330px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
}

.value-grid article:last-child {
  border-right: 0;
}

.value-grid span {
  display: block;
  margin-bottom: 85px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.value-grid h3 {
  margin-bottom: 12px;
}

.value-grid p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.team-placeholder {
  display: grid;
  align-items: center;
  min-height: 440px;
  padding: clamp(38px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-template-columns: 1fr 0.55fr;
  gap: 80px;
}

.team-placeholder h2 {
  max-width: 720px;
  margin-bottom: 20px;
}

.team-placeholder p {
  max-width: 680px;
  color: var(--text);
}

.profile-placeholder {
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding: 26px;
  background: var(--canvas);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.profile-shape {
  width: 92px;
  height: 92px;
  margin-bottom: 30px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 16px var(--accent-faint);
}

.profile-placeholder strong,
.profile-placeholder small {
  display: block;
}

.profile-placeholder small {
  margin-top: 5px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  min-height: 360px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.contact-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 90px;
  place-items: center;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 14px;
}

.contact-icon .icon {
  width: 24px;
  height: 24px;
}

.contact-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  letter-spacing: -0.025em;
}

.contact-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.placeholder-value {
  color: var(--text);
  font-weight: 560;
}

.contact-note {
  display: grid;
  align-items: end;
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
}

.contact-note h2 {
  margin-bottom: 0;
}

.contact-note > p {
  margin-bottom: 8px;
  color: var(--text);
}

/* Legal */
.legal-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(60px, 9vw, 120px);
}

.legal-status {
  position: sticky;
  top: calc(var(--header-height) + 50px);
  padding: 28px;
  background: var(--accent-faint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-md);
}

.legal-status .status-pulse {
  margin-bottom: 28px;
}

.legal-status strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.legal-status p {
  color: var(--text);
  font-size: 0.84rem;
}

.legal-copy {
  max-width: 780px;
}

.legal-copy h2 {
  margin-bottom: 48px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}

.legal-copy h3 {
  margin: 45px 0 12px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}

.legal-copy p {
  color: var(--text);
}

/* 404 */
.not-found {
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  padding-block: 80px;
}

.not-found-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 0.7fr;
  gap: 80px;
}

.not-found h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.not-found p {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 1.1rem;
}

.not-found-formula {
  display: grid;
  min-height: 380px;
  place-items: center;
  align-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.not-found-formula span,
.not-found-formula code {
  display: block;
}

.not-found-formula span {
  color: var(--accent);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}

.not-found-formula code {
  margin-top: 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding-top: 80px;
  color: var(--surface);
  background: var(--ink);
}

.footer-main {
  display: grid;
  padding-bottom: 75px;
  grid-template-columns: 1.7fr repeat(3, 0.75fr);
  gap: 55px;
}

.footer-brand .wordmark {
  margin-bottom: 26px;
}

.footer-brand .wordmark-mark {
  background: var(--surface);
}

.footer-brand .wordmark-mark span {
  background: var(--ink);
}

.footer-brand .wordmark-mark span:last-child {
  background: var(--accent);
}

.footer-brand p {
  max-width: 360px;
  color: #9fa9bb;
  font-size: 0.9rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-column h2 {
  margin-bottom: 13px;
  color: #838ea1;
  font-size: 0.72rem;
  font-weight: 740;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-column a {
  color: #d7dce5;
  font-size: 0.88rem;
  transition: color var(--transition), transform var(--transition);
}

.footer-column a:hover {
  color: var(--surface);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #7e899d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
}

.footer-bottom p {
  margin: 0;
}

/* Reveal animations */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-links {
    gap: 18px;
  }

  .site-nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 45px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .floating-card-a {
    left: -2%;
  }

  .floating-card-b {
    right: -2%;
  }

  .feature-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(2),
  .value-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-card:nth-child(-n + 2),
  .value-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .value-grid article:nth-child(-n + 2) {
    border-bottom-color: var(--line-strong);
  }

  .page-hero-grid {
    grid-template-columns: 1fr minmax(330px, 0.7fr);
    gap: 55px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-inline: auto;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card > p {
    min-height: auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    display: grid;
    min-height: auto;
    align-items: center;
    grid-template-columns: 70px 1fr;
  }

  .contact-icon {
    margin-bottom: 0;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
    padding: 30px 18px 40px;
    background: rgba(247, 248, 251, 0.98);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.12rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    min-height: 54px;
  }

  .hero-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    width: min(100%, 660px);
    min-height: 560px;
    margin: 0 auto;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .quote-card {
    min-height: 210px;
  }

  .quote-number {
    margin-bottom: 45px;
  }

  .solution-bridge,
  .why-header,
  .split-section,
  .principles-grid,
  .origin-grid,
  .contact-note,
  .legal-layout,
  .not-found-grid {
    grid-template-columns: 1fr;
  }

  .solution-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .subject-grid,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 560px;
  }

  .process-grid,
  .faq-grid,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .process-sticky,
  .form-intro,
  .legal-status {
    position: static;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero-aside {
    width: min(100%, 620px);
  }

  .page-hero-grid {
    gap: 55px;
  }

  .topic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-list-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-list-horizontal .step-card:nth-child(2) {
    border-right: 0;
  }

  .step-list-horizontal .step-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }

  .origin-copy {
    padding-top: 0;
  }

  .large-index {
    margin-bottom: 45px;
  }

  .team-placeholder {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .profile-placeholder {
    max-width: 430px;
  }

  .footer-main {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding-block: 82px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .home-hero {
    padding-top: 58px;
  }

  .hero-lead {
    font-size: 1.03rem;
  }

  .hero-visual {
    min-height: 475px;
  }

  .equation-card-main {
    top: 6%;
  }

  .equation-card-header {
    padding: 14px 16px;
    font-size: 0.65rem;
  }

  .equation-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 15px 16px;
  }

  .floating-card-a {
    bottom: 0;
    left: 0;
    width: 190px;
    padding: 17px;
  }

  .floating-card-a .floating-label {
    margin-bottom: 16px;
  }

  .floating-card-b {
    right: 0;
    bottom: 12%;
    width: 205px;
    padding: 12px;
  }

  .visual-grid {
    top: 7%;
    right: -20%;
    width: 108%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    min-height: 72px;
    padding: 18px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .quote-card {
    padding: 24px;
  }

  .solution-sequence {
    grid-template-columns: 1fr;
  }

  .solution-sequence > div {
    min-height: 155px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .solution-sequence > div:last-child {
    border-bottom: 0 !important;
  }

  .subject-card {
    min-height: 530px;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .subject-card-top {
    margin-bottom: 40px;
  }

  .subject-symbol {
    min-height: 95px;
  }

  .step-card {
    min-height: 170px;
    grid-template-columns: 55px 1fr;
  }

  .why-header {
    gap: 25px;
  }

  .feature-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .value-grid article {
    min-height: 260px;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .value-grid article {
    padding-inline: 22px;
    border-bottom-color: var(--line-strong);
  }

  .feature-card:last-child,
  .value-grid article:last-child {
    border-bottom: 0;
  }

  .feature-icon,
  .value-grid span {
    margin-bottom: 48px;
  }

  .cta-panel {
    min-height: 440px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 24px;
    border-radius: 22px;
  }

  .cta-panel .button {
    margin-top: 18px;
  }

  .cta-formula {
    top: 28px;
    right: 24px;
    font-size: 1rem;
  }

  .page-hero {
    padding-top: 20px;
  }

  .page-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.25rem);
  }

  .breadcrumb {
    margin-bottom: 38px;
  }

  .formula-panel,
  .price-status,
  .intake-summary {
    min-height: 380px;
    padding: 28px 24px;
    border-radius: 22px;
  }

  .formula-panel-top {
    margin-bottom: 70px;
  }

  .statement-card {
    grid-template-columns: 45px 1fr;
  }

  .topic-card-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 230px;
    padding: 25px;
  }

  .topic-card > span {
    margin-bottom: 50px;
  }

  .lesson-card {
    min-height: 460px;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .step-list-horizontal {
    grid-template-columns: 1fr;
  }

  .step-list-horizontal .step-card {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong) !important;
  }

  .step-list-horizontal .step-card:last-child {
    border-bottom: 0 !important;
  }

  .step-list-horizontal .step-number {
    margin-bottom: 35px;
  }

  .faq-item summary {
    min-height: 88px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding-right: 0;
  }

  .method-row {
    align-items: start;
    grid-template-columns: 45px 1fr;
    gap: 18px;
  }

  .method-tag {
    display: none;
  }

  .principle-cards {
    grid-template-columns: 1fr;
  }

  .principle-cards article {
    min-height: 240px;
  }

  .principle-cards span {
    margin-bottom: 48px;
  }

  .pricing-card {
    padding: 28px 24px;
  }

  .pricing-kicker {
    margin-bottom: 40px;
  }

  .form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .form-grid,
  .radio-options {
    grid-template-columns: 1fr;
  }

  .team-placeholder {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .contact-card {
    display: block;
    padding: 26px;
  }

  .contact-icon {
    margin-bottom: 55px;
  }

  .contact-note {
    gap: 24px;
  }

  .legal-status,
  .legal-copy {
    width: 100%;
  }

  .not-found-formula {
    min-height: 270px;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-main .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 105px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button,
  .cta-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .page-hero {
    padding-block: 30px;
  }
}
