:root {
  --ink: #14377b;
  --ink-2: #214fbc;
  --violet: #7c5cf6;
  --cyan: #2fc2dd;
  --cyan-soft: #8de2ea;
  --mist: #f3f7fb;
  --line: #dfe8f1;
  --white: #ffffff;
  --text: #26364d;
  --muted: #64748b;
  --shadow: 0 24px 80px rgba(20, 55, 123, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, #eef7fb 44%, #ffffff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(223, 232, 241, 0.78);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: min(330px, 58vw);
}

.brand-link img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: clamp(620px, 78vh, 760px);
  padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(30px, 4vw, 54px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 0;
  left: clamp(20px, 5vw, 72px);
  height: 1px;
  content: "";
  background: var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  right: -9vw;
  width: 58vw;
  min-width: 520px;
  height: 58vw;
  min-height: 520px;
  border: 1px solid rgba(47, 194, 221, 0.23);
  border-radius: 50%;
}

.wave-one {
  top: -18vw;
}

.wave-two {
  top: -12vw;
  right: -17vw;
  border-color: rgba(124, 92, 246, 0.22);
}

.hero-content,
.hero-panel,
.tool-band,
.platform,
.cta {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(4rem, 8.2vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

h1::first-letter {
  color: var(--ink);
}

h1 span {
  color: var(--violet);
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: #304660;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.24;
  font-weight: 650;
}

.hero-content .eyebrow {
  font-size: 0.86rem;
  font-weight: 900;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink-2), var(--violet));
  box-shadow: 0 16px 34px rgba(33, 79, 188, 0.25);
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(20, 55, 123, 0.16);
  background: rgba(255, 255, 255, 0.78);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: center;
}

.hero-tool {
  display: grid;
  aspect-ratio: 1;
  align-items: center;
  justify-items: center;
  min-height: 0;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(223, 232, 241, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(20, 55, 123, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(20, 55, 123, 0.14);
}

.hero-tool:focus-visible {
  outline: 3px solid rgba(47, 194, 221, 0.7);
  outline-offset: 4px;
}

.hero-tool.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 250, 252, 0.92));
  box-shadow: var(--shadow);
}

.hero-tool img {
  width: min(100%, 158px);
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(20, 55, 123, 0.16));
}

.hero-tool span {
  align-self: end;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.tool-band {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: var(--white);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading h2 {
  max-width: 920px;
}

.section-heading .eyebrow {
  margin: 34px 0 -18px;
}

.section-heading h2,
.platform h2,
.cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.tool-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(243, 247, 251, 0.42), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.tool-card:target {
  border-color: rgba(47, 194, 221, 0.7);
  box-shadow: 0 20px 58px rgba(20, 55, 123, 0.16);
}

.tool-card img {
  width: min(100%, 380px);
  height: auto;
  margin-bottom: 8px;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.48;
  max-width: 32ch;
}

.tool-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.tool-action.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink-2), var(--violet));
  box-shadow: 0 14px 28px rgba(33, 79, 188, 0.22);
}

.tool-action.secondary {
  color: var(--ink);
  border-color: rgba(20, 55, 123, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.tool-action:focus-visible {
  outline: 3px solid rgba(47, 194, 221, 0.7);
  outline-offset: 3px;
}

.custom-tool {
  align-items: flex-start;
}

.tool-mark {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--ink-2) 58%, var(--violet));
  box-shadow: 0 18px 38px rgba(33, 79, 188, 0.2);
}

.tool-mark span {
  position: relative;
  z-index: 2;
  font-size: 2rem;
  font-weight: 900;
}

.tool-mark svg {
  position: absolute;
  inset: auto -14px 10px;
  width: 112px;
  height: 48px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6px;
}

.score-mark {
  background: linear-gradient(135deg, #1f4eac, var(--cyan));
}

.mastery-mark {
  background: linear-gradient(135deg, #7c5cf6, #2fc2dd);
}

.tool-card h3,
.feature-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.08;
}

.tool-card h3 + p {
  margin-top: -4px;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.64fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(62px, 9vw, 112px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(47, 194, 221, 0.09), transparent 42%),
    #f6fbfe;
}

.platform-copy {
  max-width: 760px;
}

.platform-copy p:last-child {
  max-width: 680px;
  margin: 26px 0 0;
  color: #36506d;
  font-size: 1.18rem;
  line-height: 1.62;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px 18px;
  padding: 22px;
  border: 1px solid rgba(223, 232, 241, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.feature-list span {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border-radius: 8px;
  background: var(--ink);
  font-weight: 850;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 7vw, 74px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #2051b7 52%, var(--violet));
}

.cta .eyebrow,
.cta h2 {
  color: var(--white);
}

.cta .button.primary {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

@media (max-width: 980px) {
  .hero,
  .platform {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .brand-link {
    width: min(100%, 360px);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(2.9rem, 13vw, 5.2rem);
  }

  .hero-copy {
    font-size: 1.2rem;
  }

  .hero-tool {
    padding: 10px;
  }

  .hero-tool img {
    width: min(100%, 88px);
  }

  .hero-tool span {
    font-size: 0.78rem;
  }

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

  .tool-card {
    min-height: 238px;
  }

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

@media (max-width: 440px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

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