.home {
  --ink: #19374e;
  --accent: #745328;
  --line: #dbe1e4;
  --frame: 76rem;
  display: block;
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
  color: var(--ink);
  background: #f6f7f7;
}

.site-header {
  max-width: var(--frame);
  width: 100%;
  min-height: 5rem;
  margin-inline: auto;
  display: flex;
  gap: .75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .25rem 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  white-space: nowrap;
}

.school-name { color: #4b5d6b; font-size: .86rem; text-align: end; }
.how-link { color: var(--ink); padding-inline: .65rem; font-size: .9rem; font-weight: 690; white-space: nowrap; }
.how-link:hover { text-decoration: underline; text-underline-offset: .24rem; }
.landing { max-width: var(--frame); margin-inline: auto; }

.landing-hero {
  min-height: clamp(22rem, 43vw, 32rem);
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) 1.05fr;
  align-items: stretch;
  border-radius: clamp(1.2rem, 3vw, 2.25rem);
  overflow: hidden;
  color: #f9fcff;
  background: #17394f;
  isolation: isolate;
}

.landing-copy {
  align-self: center;
  z-index: 1;
  padding: clamp(1.6rem, 5vw, 4.5rem);
  padding-inline-end: 0;
  animation: arrive 480ms ease-out both;
}

.exam-languages { color: #f0d8ab; margin: 0 0 1.4rem; letter-spacing: .04em; font-weight: 650; }
.exam-languages span { margin-inline-start: .4rem; }
.landing-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 9.8vw, 8.8rem);
  font-weight: 760;
  line-height: .83;
  letter-spacing: -.065em;
}
.landing-intro { margin: 1.65rem 0 0; color: #dce9f0; max-width: 32ch; line-height: 1.5; font-size: clamp(.98rem, 1.6vw, 1.2rem); }

.voice-visual {
  min-width: 0;
  padding: clamp(1.4rem, 5vw, 4rem);
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #356483 0%, #1e475f 45%, transparent 78%);
}

.voice-grid {
  inline-size: 100%;
  min-height: 14rem;
  display: grid;
  place-items: center;
  position: relative;
  background-image: linear-gradient(#bbd8ef25 1px, transparent 1px), linear-gradient(90deg, #bbd8ef25 1px, transparent 1px);
  background-size: 30px 30px;
  border: 1px solid #d0e3ee35;
  border-radius: 1.4rem;
  box-shadow: 0 1.25rem 2.5rem #0a263842, inset 0 0 44px #173c56;
}

.voice-bars {
  width: 82%;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.voice-bars i {
  height: var(--level, 20%);
  width: 4.1%;
  border-radius: 20px;
  background: linear-gradient(#f8e3b7, #d1a364);
  box-shadow: 0 0 10px #f4d7a94d;
  animation: speak 1.45s ease-in-out var(--delay, 0ms) 3;
}
.voice-bars i:nth-child(3n) { --level: 40%; --delay: 110ms; }
.voice-bars i:nth-child(4n) { --level: 63%; --delay: 210ms; }
.voice-bars i:nth-child(5n) { --level: 85%; --delay: 250ms; }
.voice-bars i:nth-child(7n) { --level: 100%; --delay: 290ms; }
.voice-bars i:nth-child(2), .voice-bars i:nth-last-child(2) { --level: 32%; }
.voice-bars i:first-child, .voice-bars i:last-child { --level: 13%; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-block-start: 1rem;
}

.role-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .7rem;
  min-height: 7rem;
  padding: clamp(.9rem, 1.8vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: #fff;
  color: var(--ink);
  transition: translate 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out;
  animation: arrive 320ms ease-out both;
}
.role-card:nth-child(2) { animation-delay: 65ms; }
.role-card:nth-child(3) { animation-delay: 110ms; }
.role-card:hover { border-color: #9daeba; translate: 0 -3px; box-shadow: 0 12px 20px #16364920; }
.role-student { background: #f3e8d2; border-color: #dcc8a0; }
.role-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: .66rem;
  background: #eaf1f6;
  color: #245476;
}
.role-student .role-icon { background: #e9d9b6; color: var(--accent); }
.role-icon svg { stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.role-copy { display: grid; gap: .3rem; justify-self: start; }
.role-copy strong { font-size: clamp(1rem, 1.5vw, 1.23rem); line-height: 1.25; }
.role-copy small { font-size: .86rem; color: #405b6d; font-weight: 500; line-height: 1.42; }
.role-arrow { color: #315b77; font-size: 1.25rem; line-height: 1; }
.role-student .role-arrow { color: var(--accent); }

.how-it-works {
  margin-block-start: clamp(3.25rem, 8vw, 7rem);
  padding-block: clamp(2rem, 5vw, 4rem);
  border-block-start: 1px solid #d5dce0;
  scroll-margin-top: 1rem;
}
.how-it-works header { margin-block-end: 1.7rem; }
.how-it-works h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.055em; }
.how-it-works p { color: #475d6d; line-height: 1.6; margin: .45rem 0 0; }
.exam-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}
.exam-steps li { counter-increment: workflow; padding-block-start: 1.15rem; border-block-start: 2px solid #bd9d6f; }
.exam-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  color: var(--accent);
  font-size: .83rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.exam-steps h3 { margin: .55rem 0 0; font-size: 1.18rem; }
[data-scroll-reveal] { transition: translate 450ms cubic-bezier(.2,.7,.25,1), opacity 450ms ease-out; }
[data-scroll-reveal="waiting"] { opacity: .42; translate: 0 .9rem; }
.exam-steps li:nth-child(2) { transition-delay: 55ms; }
.exam-steps li:nth-child(3) { transition-delay: 100ms; }

@media (prefers-reduced-motion: no-preference) {
  html:has(body.home) { scroll-behavior: smooth; }
}

@keyframes speak { 0%, 100% { transform: scaleY(1); } 34% { transform: scaleY(.62); } 67% { transform: scaleY(1.18); } }
@keyframes arrive { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 58rem) {
  .role-card { grid-template-columns: auto minmax(0, 1fr); }
  .role-arrow { grid-column: 2; }
}
@media (max-width: 47rem) {
  .landing-hero { grid-template-columns: 1fr; min-height: 0; }
  .landing-copy { padding-inline-end: clamp(1.6rem, 5vw, 4.5rem); }
  .landing-copy h1 { font-size: clamp(4rem, 13vw, 6.6rem); }
  .voice-visual { padding-block-start: 0; }
  .voice-grid { min-height: 7rem; background-size: 22px 22px; border-radius: .9rem; }
  .voice-bars { height: 5.2rem; }
  .exam-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .exam-steps li:nth-child(n) { transition-delay: 0ms; }
}
@media (max-width: 38rem) {
  .site-header { min-height: 4.5rem; }
  .school-name { display: none; }
  .brand .school-logo { inline-size: 87px; }
  .brand span { font-size: .88rem; }
  .role-grid { grid-template-columns: 1fr; gap: .6rem; }
  .role-card { min-height: 4.9rem; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .role-arrow { grid-column: auto; }
}
@media (max-width: 23rem) {
  .site-header { gap: .35rem; }
  .brand { gap: .4rem; }
  .brand .school-logo { inline-size: 68px; }
  .how-link { padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-copy, .voice-bars i, .role-card { animation: none; }
  .role-card { transition: none; }
  .role-card:hover { translate: none; }
  [data-scroll-reveal] { transition: none; translate: none; opacity: 1; }
}

.home { background: radial-gradient(ellipse at 85% 22%, #e7eef4 0, transparent 42%), #f7f5ef; }
.landing-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: var(--ink);
  min-height: clamp(20rem, 42vw, 32rem);
}
.landing-copy { padding-inline: 0 clamp(1rem, 3vw, 3rem); }
.exam-languages { color: #745328; }
.landing-copy h1 { color: #19394f; font-size: clamp(3.3rem, 8.8vw, 8rem); line-height: .98; max-inline-size: 9ch; }
.landing-intro { color: #4b5d6b; }
.voice-visual { background: none; }
.voice-grid {
  position: relative;
  inline-size: min(100%, 22rem);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(.25rem, 2vw, 1.25rem);
  border-radius: 50%;
  overflow: visible;
  background: radial-gradient(circle at 29% 23%, #527b9a, #244f70 47%, #132c42 90%);
  border: 1px solid #50748d;
  box-shadow: 0 1.7rem 3.6rem #183e5740, inset 0 -.9rem 2.5rem #14283960;
}
.voice-grid::before, .voice-grid::after { content: ""; position: absolute; inset: -5%; border-radius: 50%; border: 1px solid #a6855875; pointer-events: none; }
.voice-grid::after { inset: -10%; border-color: #a6855839; }
.voice-mic { width: 18%; stroke: #f8e3bb; stroke-width: 1.6; stroke-linecap: round; }
.voice-bars { width: 58%; height: 21%; }
.role-card { border-radius: 1.35rem; background: #ffffffc7; box-shadow: 0 .5rem 1.25rem #19374e0b; }
.role-student { background: #f2e4c8; }
.exam-steps li { border: 1px solid #ded8cd; border-block-start: 2px solid #bd9d6f; border-radius: .95rem; padding: 1.15rem; background: #ffffffaa; }
@media (max-width: 47rem) {
  .landing-hero { grid-template-columns: 1fr; text-align: center; }
  .landing-copy { padding: 1.75rem .35rem 1.35rem; }
  .landing-copy h1, .landing-intro { margin-inline: auto; }
  .voice-visual { padding: .5rem .5rem 1.25rem; }
  .voice-grid { inline-size: min(58vw, 12rem); min-height: 0; }
}
@media (max-width: 32rem) {
  .site-header { gap: .3rem; flex-wrap: wrap; }
  .site-header .how-link { padding-inline: .3rem; font-size: .78rem; }
}
