:root {
  color-scheme: light;
  --ink: #101416;
  --muted: #5f686d;
  --soft: #f4f6f2;
  --line: #d8ded6;
  --green: #158f49;
  --green-dark: #0b6a36;
  --blue: #1f6feb;
  --yellow: #f0b429;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(26, 38, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--soft);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(244, 246, 242, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 222, 214, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-symbol {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: conic-gradient(from 20deg, var(--green), var(--blue), var(--yellow), var(--green));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.nav-link {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 246, 242, 0.95) 0%, rgba(244, 246, 242, 0.78) 42%, rgba(244, 246, 242, 0.18) 100%),
    repeating-linear-gradient(90deg, rgba(16, 20, 22, 0.045) 0 1px, transparent 1px 68px);
}

.home-hero::after,
.product-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(0deg, var(--soft), rgba(244, 246, 242, 0));
}

.hero-compact {
  min-height: 560px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 20, 22, 0.08);
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-home .device-chat {
  position: absolute;
  right: max(4vw, 24px);
  top: 86px;
  transform: rotate(4deg);
}

.scene-home .exam-visual {
  position: absolute;
  right: clamp(16px, 18vw, 280px);
  bottom: 62px;
  transform: rotate(-3deg);
}

.scene-chat .device-chat {
  position: absolute;
  right: clamp(12px, 9vw, 140px);
  top: clamp(70px, 11vw, 130px);
}

.scene-a2 .exam-visual {
  position: absolute;
  right: clamp(12px, 10vw, 150px);
  top: clamp(80px, 12vw, 150px);
}

.device {
  width: min(330px, 40vw);
  min-width: 250px;
  height: 610px;
  max-height: 74vh;
  padding: 18px;
  border: 10px solid #111618;
  border-radius: 44px;
  background: #111618;
  box-shadow: var(--shadow);
}

.device-bar {
  width: 92px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #050607;
}

.screen {
  height: calc(100% - 34px);
  padding: 22px;
  border-radius: 30px;
  background: var(--white);
}

.screen-title {
  margin-bottom: 28px;
  font-size: 28px;
  font-weight: 900;
}

.transcript-line {
  margin: 0 0 14px;
  padding: 15px 16px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.transcript-line.source {
  background: #e8f3eb;
}

.transcript-line.target {
  background: #e8efff;
}

.transcript-line.small {
  color: var(--muted);
  background: #f0f1ee;
}

.wave-row {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 76px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wave-row span {
  width: 18%;
  min-width: 20px;
  border-radius: 999px;
  background: var(--green);
}

.wave-row span:nth-child(1) { height: 28px; }
.wave-row span:nth-child(2) { height: 46px; }
.wave-row span:nth-child(3) { height: 62px; }
.wave-row span:nth-child(4) { height: 38px; }
.wave-row span:nth-child(5) { height: 52px; }

.exam-visual {
  width: min(410px, 42vw);
  min-width: 280px;
  padding: 22px;
  border: 1px solid rgba(16, 20, 22, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.paper {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9faf8 100%);
}

.paper-heading {
  margin-bottom: 26px;
  font-size: 26px;
  font-weight: 900;
}

.answer-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.answer-row span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eff2ef;
  font-weight: 900;
}

.answer-row.active {
  border-color: var(--green);
  background: #edf7ef;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.score-line b {
  color: var(--green-dark);
  font-size: 42px;
}

.score-line em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: -34px auto 80px;
  padding: 0 clamp(20px, 5vw, 72px);
  position: relative;
  z-index: 3;
}

.product-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card h2 {
  margin: 22px 0 12px;
  font-size: 32px;
  line-height: 1.05;
}

.product-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.product-card a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.product-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.chat-mark {
  background: linear-gradient(135deg, var(--green), #75c76f);
}

.a2-mark {
  background: linear-gradient(135deg, var(--blue), var(--yellow));
}

.detail-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto 90px;
  padding: 0 clamp(20px, 5vw, 72px);
}

.detail-band > div {
  padding: 0;
}

.detail-band h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.detail-band p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.legal-body {
  background: #ffffff;
}

.legal-page {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 94px) clamp(20px, 5vw, 72px) 88px;
}

.legal-page h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.legal-page h2 {
  margin: 42px 0 10px;
  font-size: 25px;
}

.legal-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.legal-page a {
  color: var(--green-dark);
  font-weight: 800;
}

.legal-meta {
  margin-top: 22px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-bottom: 390px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 246, 242, 0.97) 0%, rgba(244, 246, 242, 0.88) 54%, rgba(244, 246, 242, 0.18) 100%),
      repeating-linear-gradient(90deg, rgba(16, 20, 22, 0.04) 0 1px, transparent 1px 58px);
  }

  .scene-home .device-chat,
  .scene-chat .device-chat {
    right: 20px;
    top: auto;
    bottom: 28px;
    width: 245px;
    min-width: 245px;
    height: 360px;
    transform: rotate(2deg);
  }

  .scene-home .exam-visual,
  .scene-a2 .exam-visual {
    right: auto;
    left: 20px;
    top: auto;
    bottom: 44px;
    width: 270px;
    min-width: 270px;
    transform: rotate(-2deg);
  }

  .scene-a2 .exam-visual {
    left: auto;
    right: 20px;
  }

  .screen {
    padding: 14px;
    border-radius: 24px;
  }

  .screen-title {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .transcript-line {
    padding: 10px;
    font-size: 11px;
  }

  .wave-row {
    height: 46px;
    margin-top: 12px;
    padding: 8px;
  }

  .product-grid,
  .detail-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 2px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 46px);
    line-height: 1.04;
  }

  .hero {
    padding-bottom: 420px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .product-grid {
    margin-top: -12px;
  }
}
