:root {
  --ink: #16377a;
  --ink-deep: #0f2457;
  --accent: #f23544;
  --accent-soft: #ffd8dc;
  --canvas: #ffffff;
  --surface: #f6f8ff;
  --line: #d7e2ff;
  --shadow: 0 30px 80px rgba(16, 38, 86, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink-deep);
  background:
    radial-gradient(circle at top left, rgba(58, 102, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 70%, #ffffff 100%);
  overflow-x: hidden;
}

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

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

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

.page-glow {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.page-glow--blue {
  top: -10rem;
  right: -10rem;
  background: rgba(56, 110, 255, 0.2);
}

.page-glow--red {
  left: -12rem;
  bottom: -14rem;
  background: rgba(242, 53, 68, 0.15);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0.75rem;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: min(21rem, 58vw);
}

.header-note {
  margin: 0;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(22, 55, 122, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  color: rgba(15, 36, 87, 0.78);
  box-shadow: 0 12px 30px rgba(16, 38, 86, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
}

.hero-copy {
  max-width: 36rem;
}

.section-heading__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--ink);
}

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

.hero-description {
  margin: 1.5rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: rgba(15, 36, 87, 0.88);
}

.hero-highlights {
  display: grid;
  gap: 0.9rem;
  margin: 1.9rem 0 2.2rem;
}

.hero-highlight {
  margin: 0;
  padding-left: 1.15rem;
  border-left: 4px solid var(--accent);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-deep);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.35rem;
  padding: 0.95rem 2rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #ff4150 0%, #df1c2c 100%);
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 24px 44px rgba(242, 53, 68, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 30px 48px rgba(242, 53, 68, 0.32);
}

.hero-visual {
  position: relative;
}

.visual-panel {
  position: relative;
  min-height: 42rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 85% 12%, rgba(22, 55, 122, 0.12), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(242, 53, 68, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.98));
  border: 1px solid rgba(22, 55, 122, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report-sheet {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  z-index: 1;
  width: min(21rem, 52%);
  padding: 1.35rem;
  border-radius: 1.8rem;
  background: #ffffff;
  box-shadow: 0 26px 50px rgba(12, 33, 82, 0.14);
}

.report-sheet__top,
.report-bar__copy,
.exam-card__time {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report-sheet__eyebrow,
.report-sheet__label,
.report-sheet__date,
.report-summary__eyebrow,
.exam-card__meta,
.exam-card__caption,
.exam-card__time span {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 36, 87, 0.55);
}

.report-sheet__test {
  margin: 0.2rem 0 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.report-sheet__scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.75rem;
  margin: 1.3rem 0 1.1rem;
}

.report-sheet__score {
  margin: 0.2rem 0 0;
  font-size: 3.55rem;
  line-height: 0.95;
  font-weight: 900;
  color: var(--ink-deep);
}

.report-sheet__stats {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  max-width: 6.3rem;
  justify-items: start;
}

.report-sheet__stats span,
.report-bar__copy span,
.report-summary__grid span {
  display: block;
  font-size: 0.76rem;
  color: rgba(15, 36, 87, 0.58);
}

.report-sheet__stats strong,
.report-bar__copy strong,
.report-summary__grid strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.96rem;
  color: var(--ink-deep);
}

.report-sheet__stats strong {
  max-width: 6.3rem;
  font-size: 0.88rem;
  line-height: 1.1;
  text-align: left;
  overflow-wrap: anywhere;
}

.report-bars {
  display: grid;
  gap: 0.85rem;
}

.report-bar__copy strong {
  margin-top: 0;
}

.report-bar__track {
  height: 0.65rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: rgba(22, 55, 122, 0.08);
  overflow: hidden;
}

.report-bar__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16377a 0%, #f23544 100%);
}

.report-summary {
  position: absolute;
  right: 1.25rem;
  bottom: 4.25rem;
  z-index: 3;
  width: min(17rem, 46%);
  padding: 1.35rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #345eff 0%, #2241b2 100%);
  color: #ffffff;
  box-shadow: 0 30px 55px rgba(34, 65, 178, 0.32);
}

.report-summary__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.report-summary__score {
  margin: 0.55rem 0 1rem;
  font-size: 3.3rem;
  line-height: 0.95;
  font-weight: 900;
}

.report-summary__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.report-summary__grid span,
.report-summary__grid strong {
  color: #ffffff;
}

.report-summary__grid span {
  opacity: 0.72;
}

.mascot-frame {
  position: absolute;
  left: -0.8rem;
  bottom: 0;
  z-index: 2;
  width: min(24rem, 58%);
}

.mascot-frame img {
  width: 100%;
  filter: drop-shadow(0 24px 36px rgba(16, 38, 86, 0.12));
}

.ticker {
  margin-top: 1rem;
  padding: 1rem 0;
  background: linear-gradient(90deg, #11224f 0%, #16377a 50%, #11224f 100%);
}

.ticker__viewport {
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation-name: ticker-scroll;
  animation-duration: var(--ticker-duration, 26s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 0 0.5rem;
}

.ticker__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 11.75rem;
  min-height: 5.3rem;
  padding: 1rem 1.3rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.ticker__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.8rem;
}

.tests {
  padding: 3.25rem 0 5.5rem;
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.exam-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  aspect-ratio: 1 / 1;
  padding: 1.2rem;
  border-radius: 1.8rem;
  background: #ffffff;
  border: 1px solid rgba(22, 55, 122, 0.09);
  box-shadow: 0 18px 36px rgba(16, 38, 86, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  isolation: isolate;
  overflow: hidden;
}

.exam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.95;
}

.exam-card:hover,
.exam-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px rgba(16, 38, 86, 0.14);
}

.exam-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.72rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.exam-card__body {
  display: grid;
  align-content: start;
  gap: 0.15rem;
}

.exam-card__score {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.exam-card__caption {
  font-size: 0.78rem;
  color: rgba(15, 36, 87, 0.62);
}

.exam-card__actions {
  display: grid;
  gap: 0.7rem;
}

.exam-card__time {
  align-items: end;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(22, 55, 122, 0.1);
}

.exam-card__time strong {
  font-size: 1rem;
}

.exam-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.exam-card__button:hover,
.exam-card__button:focus-visible {
  transform: translateY(-1px);
  background: #102b69;
}

.exam-card--sat::before {
  background:
    radial-gradient(circle at top right, rgba(36, 82, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eff4ff 100%);
}

.exam-card--toefl::before {
  background:
    radial-gradient(circle at top right, rgba(242, 53, 68, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff1f3 100%);
}

.exam-card--ielts::before {
  background:
    radial-gradient(circle at top right, rgba(22, 55, 122, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f3f5ff 100%);
}

.exam-card--ege::before {
  background:
    radial-gradient(circle at top right, rgba(255, 166, 0, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fff8eb 100%);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--ticker-distance, 0px)));
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .visual-panel {
    min-height: 36rem;
  }

  .mascot-frame {
    left: 0;
    width: min(21rem, 52%);
  }

  .report-sheet {
    right: 1.5rem;
  }

  .report-summary {
    bottom: 2rem;
  }

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

@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: start;
    padding-top: 1rem;
  }

  .hero {
    padding-top: 1.25rem;
  }

  .hero-highlight {
    font-size: 1.05rem;
  }

  .visual-panel {
    min-height: 40rem;
  }

  .report-sheet {
    top: 3.9rem;
    right: 1rem;
    width: 15.5rem;
  }

  .report-sheet__score {
    font-size: 3rem;
  }

  .report-summary {
    right: 0.9rem;
    bottom: 1.2rem;
    width: 14.2rem;
    z-index: 2;
  }

  .mascot-frame {
    left: -1rem;
    width: 16rem;
    z-index: 4;
  }

  .ticker__item {
    min-width: 10rem;
    min-height: 4.8rem;
  }

  .ticker__item img {
    height: 2.3rem;
  }

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

  .exam-card {
    aspect-ratio: auto;
    min-height: 17rem;
  }
}

@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;
  }
}
