:root {
  --bg: #07090f;
  --bg-elevated: #0d0f18;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --text: #edf0fa;
  --muted: rgba(237, 240, 250, 0.48);
  --faint: rgba(237, 240, 250, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --sky: #38bdf8;
  --green: #34d399;
  --radius: 16px;
  --container: 1400px;
  --sans: "Noto Sans SC", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --latin: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    linear-gradient(180deg, rgba(129, 140, 248, 0.08), transparent 520px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04), transparent 38%, rgba(167, 139, 250, 0.035)),
    var(--bg);
  overflow-x: hidden;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 64px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 9, 15, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 64px, var(--container));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--latin);
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-mark.small {
  width: 24px;
  height: 24px;
}

.desktop-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.footer-nav a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: rgba(255, 255, 255, 0.9);
}

.desktop-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: rgba(103, 232, 249, 0.9);
}

.header-cta {
  min-height: 36px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

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

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

.site-header.menu-active .menu-icon.open {
  display: none;
}

.site-header.menu-active .menu-icon.close {
  display: block;
}

.mobile-nav {
  display: none;
}

.section-divider {
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 1400px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.hero {
  min-height: 92vh;
  padding: 112px 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 52fr 48fr;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: 86px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, #22d3ee, #67e8f9 48%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-rule {
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.58);
}

.hero-subtitle {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1.75;
}

.browser-row,
.hero-actions {
  display: flex;
  align-items: center;
}

.browser-row {
  gap: 10px;
}

.browser-row svg {
  width: 20px;
  height: 20px;
  opacity: 0.62;
}

.browser-row span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 11px;
}

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

.hero-actions > span {
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
}

.primary-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  color: #07090f;
  font-size: 15px;
  font-weight: 700;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.primary-button:hover {
  background: #ecfeff;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.16);
}

.primary-button:hover svg:last-child {
  transform: translateX(3px);
}

.primary-button svg:last-child {
  transition: transform 180ms ease;
}

.primary-button.compact {
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
}

.hero-visual {
  min-width: 0;
}

.product-stage {
  position: relative;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 26px 28px -22px;
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 22px;
  transform: rotate(-1.5deg);
}

.browser-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.58);
}

.browser-topbar {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #12141f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-lights {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.traffic-lights span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic-lights .red {
  background: #ff5f57;
}

.traffic-lights .yellow {
  background: #febc2e;
}

.traffic-lights .green {
  background: #28c840;
}

.address-bar {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(7, 9, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.address-bar svg {
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}

.address-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-small {
  width: 20px;
  height: 20px;
  opacity: 0.72;
  flex: 0 0 auto;
}

.video-area {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.05), transparent 34%),
    #070910;
}

.video-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 3;
}

.video-progress span {
  position: relative;
  display: block;
  width: 42%;
  height: 100%;
  background: var(--cyan);
}

.video-progress span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
}

.lecture-slide {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background: #0c0e1a;
}

.slide-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-lines span,
.slide-grid span::after {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.slide-lines span:first-child {
  height: 9px;
  background: rgba(255, 255, 255, 0.18);
}

.w-60 {
  width: 60%;
}

.w-80 {
  width: 80%;
}

.w-66 {
  width: 66%;
}

.slide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slide-grid span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.slide-grid span::after {
  content: "";
  width: 66%;
  height: 4px;
}

.ai-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  color: #67e8f9;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.15);
  backdrop-filter: blur(8px);
  z-index: 4;
}

.ai-badge svg {
  width: 13px;
  height: 13px;
}

.subtitle-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 24px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), transparent);
  z-index: 3;
}

.subtitle-overlay p {
  margin: 0;
  line-height: 1.45;
}

.subtitle-overlay p:first-child {
  color: #fff;
  font-family: var(--latin);
  font-size: 15px;
  font-weight: 600;
}

.subtitle-overlay p:last-child {
  margin-top: 6px;
  color: #67e8f9;
  font-size: 13px;
}

.dictionary-card {
  position: absolute;
  right: -24px;
  bottom: 40px;
  width: 288px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(15, 18, 32, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  animation: float-card 5s ease-in-out infinite;
}

.card-glow {
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.44), transparent);
}

.word-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.word-line strong {
  color: #fff;
  font-family: var(--latin);
  font-size: 17px;
}

.word-line span,
.example span {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  font-size: 11px;
}

.meaning {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.example {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.example span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.example p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.example p:nth-of-type(1) {
  color: rgba(255, 255, 255, 0.48);
  font-family: var(--latin);
  font-style: italic;
}

.example p:nth-of-type(2) {
  margin-top: 5px;
  color: rgba(34, 211, 238, 0.68);
}

.features,
.workflow {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}

.section-heading {
  margin-bottom: 64px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.section-kicker span {
  width: 16px;
  height: 1px;
  background: rgba(34, 211, 238, 0.64);
}

.section-kicker.indigo span {
  background: rgba(129, 140, 248, 0.68);
}

.section-kicker p {
  margin: 0;
  color: rgba(255, 255, 255, 0.32);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.section-intro {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(237, 240, 250, 0.58);
  font-size: 16px;
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 20px;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card,
.step-card,
.cta-strip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-panel);
}

.feature-card {
  position: relative;
  min-height: 180px;
  flex: 1;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius);
}

.feature-card-large {
  min-height: 380px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-line,
.step-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.top-line.cyan,
.step-line.cyan {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.64), rgba(34, 211, 238, 0.18), transparent);
}

.top-line.indigo,
.step-line.indigo {
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.64), rgba(129, 140, 248, 0.18), transparent);
}

.top-line.violet,
.step-line.violet {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.64), rgba(167, 139, 250, 0.18), transparent);
}

.step-line.sky {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.64), rgba(56, 189, 248, 0.18), transparent);
}

.background-number {
  position: absolute;
  right: 24px;
  bottom: 2px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 140px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.background-number.small {
  right: 16px;
  font-size: 88px;
}

.feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-content.compact {
  gap: 16px;
}

.feature-icon,
.step-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-icon.cyan,
.step-icon.cyan {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.2);
}

.feature-icon.indigo,
.step-icon.indigo {
  color: var(--indigo);
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.2);
}

.feature-icon.violet,
.step-icon.violet {
  color: var(--violet);
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.2);
}

.step-icon.sky {
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.2);
}

.feature-card h3,
.step-card h3 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.feature-content.compact h3,
.step-card h3 {
  font-size: 20px;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  line-height: 1.75;
}

.feature-card p {
  max-width: 440px;
  font-size: 15px;
}

.feature-content.compact p {
  font-size: 14px;
}

.subtitle-sample {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.subtitle-sample p:first-child {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--latin);
  font-size: 13px;
}

.subtitle-sample p:last-child {
  margin-top: 8px;
  color: rgba(103, 232, 249, 0.76);
  font-size: 13px;
}

.workflow {
  background: rgba(255, 255, 255, 0.005);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.workflow .container {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.step-card {
  position: relative;
  min-height: 258px;
  padding: 32px;
  background: #07090f;
  transition: background-color 200ms ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.step-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.step-head > span {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.step-card:nth-child(1) .step-head > span {
  color: rgba(34, 211, 238, 0.3);
}

.step-card:nth-child(2) .step-head > span {
  color: rgba(129, 140, 248, 0.3);
}

.step-card:nth-child(3) .step-head > span {
  color: rgba(167, 139, 250, 0.3);
}

.step-card:nth-child(4) .step-head > span {
  color: rgba(56, 189, 248, 0.3);
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.step-icon svg {
  width: 18px;
  height: 18px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.cta-strip {
  margin-top: 48px;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
}

.cta-strip p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.cta-strip span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
}

.site-footer {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.36);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
  line-height: 1.75;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--mono);
  font-size: 12px;
}

.legal-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.16), transparent 34%),
    linear-gradient(180deg, #0b1823 0%, #101827 44%, #151629 100%);
}

.legal-main {
  padding: 128px 0 88px;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 48px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(103, 232, 249, 0.72);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(34, 211, 238, 0.7);
}

.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(237, 240, 250, 0.66);
  font-size: 17px;
  line-height: 1.8;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.legal-toc,
.legal-content {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.legal-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
}

.legal-toc strong {
  margin: 0 0 8px 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.legal-toc a {
  padding: 10px 12px;
  color: rgba(237, 240, 250, 0.54);
  font-size: 13px;
  line-height: 1.35;
  border-radius: 10px;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.legal-content {
  padding: 40px;
  border-radius: 24px;
}

.legal-meta {
  margin: 0 0 28px;
  color: rgba(237, 240, 250, 0.52);
  font-size: 14px;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 24px;
  line-height: 1.35;
}

.legal-section h3 {
  margin: 24px 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.legal-section p,
.legal-section li {
  color: rgba(237, 240, 250, 0.68);
  font-size: 15px;
  line-height: 1.9;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-note {
  margin: 20px 0 0;
  padding: 18px 20px;
  color: rgba(237, 240, 250, 0.74);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
}

.legal-link {
  color: rgba(103, 232, 249, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(103, 232, 249, 0.35);
  text-underline-offset: 4px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.install-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.install-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.install-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(14px);
}

.install-panel {
  position: relative;
  width: min(100%, 460px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055)),
    #101827;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.install-dialog.is-open .install-panel {
  transform: translateY(0) scale(1);
}

.install-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.install-close:hover,
.install-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.install-close svg {
  width: 18px;
  height: 18px;
}

.install-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  color: rgba(103, 232, 249, 0.84);
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
}

.install-status span {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.82);
}

.install-status p,
.install-panel h2,
.install-panel p {
  margin: 0;
}

.install-panel h2 {
  max-width: 360px;
  color: #fff;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.install-panel > p {
  margin-top: 16px;
  color: rgba(237, 240, 250, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

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

.install-actions .secondary-button {
  min-height: 44px;
}

.install-note {
  margin-top: 16px !important;
  color: rgba(237, 240, 250, 0.42) !important;
  font-size: 12px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 270ms;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

  .hero {
    padding-top: 104px;
  }

  .hero-grid {
    gap: 56px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .hero-subtitle {
    max-width: 560px;
  }

  .product-stage {
    max-width: 760px;
  }

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

@media (max-width: 860px) {
  .container,
  .header-inner {
    width: min(100% - 40px, var(--container));
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

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

  .mobile-nav {
    position: fixed;
    top: 64px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(9, 12, 21, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18px);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.menu-active .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a,
  .mobile-nav button {
    width: 100%;
    padding: 13px 14px;
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    background: transparent;
    border-radius: 10px;
  }

  .mobile-nav a:hover,
  .mobile-nav button:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .legal-main {
    padding-top: 104px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
    padding: 96px 0 56px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    gap: 24px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .features,
  .workflow {
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .dictionary-card {
    right: 16px;
    bottom: -34px;
    width: min(288px, calc(100% - 32px));
  }

  .product-stage {
    padding-bottom: 48px;
  }

  .cta-strip,
  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  body {
    background:
      linear-gradient(180deg, rgba(103, 232, 249, 0.13) 0%, transparent 28%),
      linear-gradient(150deg, #20576a 0%, #234d6b 38%, #2c4370 68%, #332d5f 100%);
  }

  .container,
  .header-inner {
    width: min(100% - 44px, var(--container));
  }

  .site-header {
    background: rgba(28, 63, 78, 0.52);
    backdrop-filter: blur(18px);
  }

  .site-header.is-scrolled,
  .site-header.menu-active {
    background: rgba(25, 57, 74, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }

  .menu-toggle {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .mobile-nav {
    left: 18px;
    right: 18px;
    background: rgba(29, 59, 77, 0.96);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .legal-page {
    background:
      linear-gradient(180deg, #17394a 0%, #142f45 42%, #252041 100%);
  }

  .brand {
    font-size: 14px;
  }

  .legal-main {
    padding: 92px 0 56px;
  }

  .legal-hero {
    margin-bottom: 30px;
  }

  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-hero p {
    font-size: 15px;
  }

  .legal-toc,
  .legal-content {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .legal-toc {
    position: sticky;
    top: 74px;
    z-index: 3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: none;
  }

  .legal-toc::-webkit-scrollbar {
    display: none;
  }

  .legal-toc strong,
  .legal-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .legal-toc strong {
    margin: 0 4px 0 0;
    padding: 10px 0;
  }

  .legal-toc a {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .legal-content {
    padding: 24px;
    border-radius: 18px;
  }

  .legal-section {
    padding: 24px 0;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-section p,
  .legal-section li {
    color: rgba(237, 240, 250, 0.74);
  }

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

  .secondary-button {
    width: 100%;
  }

  .install-dialog {
    align-items: end;
    padding: 14px;
  }

  .install-panel {
    width: 100%;
    padding: 26px 22px 22px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)),
      #182b43;
  }

  .install-panel h2 {
    padding-right: 36px;
    font-size: 28px;
  }

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

  .install-actions .primary-button,
  .install-actions .secondary-button {
    width: 100%;
  }

  .hero h1 {
    font-size: 41px;
    line-height: 1.04;
  }

  .hero-subtitle {
    font-size: 15.5px;
  }

  .hero {
    padding: 78px 0 42px;
  }

  .hero::before {
    opacity: 0.48;
    background-size: 52px 52px;
  }

  .hero-grid {
    gap: 28px;
    min-width: 0;
    justify-items: start;
  }

  .hero-copy {
    align-items: flex-start;
    gap: 19px;
    text-align: left;
  }

  .eyebrow {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    justify-content: flex-start;
    white-space: normal;
  }

  .hero-subtitle {
    max-width: 350px;
    color: rgba(237, 240, 250, 0.78);
  }

  .hero-actions {
    width: min(100%, 350px);
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .hero-actions > span {
    width: auto;
    font-size: 13px;
    text-align: left;
  }

  .primary-button {
    width: auto;
    max-width: 100%;
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
  }

  .browser-row {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .browser-row span,
  .hero-actions > span {
    color: rgba(237, 240, 250, 0.58);
  }

  .primary-button {
    background: linear-gradient(180deg, #ffffff, #e6fbff);
    box-shadow: 0 14px 34px rgba(13, 148, 166, 0.24);
  }

  .primary-button:hover {
    background: linear-gradient(180deg, #ffffff, #dffaff);
  }

  .browser-window {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 15px;
    background: #19324a;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 52px rgba(5, 13, 24, 0.3);
  }

  .browser-topbar {
    min-width: 0;
    height: 46px;
    background: #1d3851;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    gap: 8px;
    padding: 0 10px;
  }

  .traffic-lights span {
    width: 9px;
    height: 9px;
  }

  .address-bar {
    min-width: 0;
    flex: 1 1 auto;
    color: rgba(237, 240, 250, 0.48);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    height: 27px;
    padding: 0 10px;
    font-size: 10px;
  }

  .chrome-small {
    display: none;
  }

  .lecture-slide {
    background: #1c3350;
    border-color: rgba(255, 255, 255, 0.1);
    inset: 22px 14px 42px;
    padding: 16px;
    gap: 16px;
  }

  .video-area {
    background:
      linear-gradient(180deg, rgba(34, 211, 238, 0.1), transparent 36%),
      #142942;
  }

  .slide-lines span,
  .slide-grid span::after {
    background: rgba(255, 255, 255, 0.14);
  }

  .slide-lines span:first-child {
    background: rgba(255, 255, 255, 0.24);
  }

  .slide-grid span {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.11);
  }

  .slide-grid {
    gap: 8px;
  }

  .slide-grid span {
    min-height: 30px;
  }

  .ai-badge {
    top: 12px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 0 8px;
    font-size: 10px;
  }

  .ai-badge span {
    display: none;
  }

  .subtitle-overlay {
    background: linear-gradient(to top, rgba(12, 25, 42, 0.96), rgba(12, 25, 42, 0.66), transparent);
    padding: 42px 14px 15px;
  }

  .subtitle-overlay p:first-child {
    font-size: 13px;
  }

  .subtitle-overlay p:last-child {
    font-size: 12px;
  }

  .dictionary-card {
    display: none;
  }

  .product-stage {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    margin: 4px 0 0;
    padding-bottom: 0;
  }

  .product-stage::before {
    display: none;
  }

  .section-heading h2 {
    font-size: 32px;
    line-height: 1.22;
  }

  .section-heading {
    text-align: left;
  }

  .section-kicker {
    justify-content: flex-start;
  }

  .features,
  .workflow {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(34, 211, 238, 0.045)),
      rgba(255, 255, 255, 0.025);
    padding: 52px 0 72px;
  }

  .workflow {
    background:
      linear-gradient(180deg, rgba(129, 140, 248, 0.075), rgba(255, 255, 255, 0.055)),
      rgba(255, 255, 255, 0.025);
    padding-top: 64px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .feature-card,
  .feature-card-large,
  .step-card,
  .cta-strip {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.145), rgba(255, 255, 255, 0.09)),
      rgba(24, 48, 70, 0.62);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 42px rgba(8, 16, 28, 0.16);
    padding: 23px;
  }

  .feature-grid,
  .feature-stack,
  .steps-grid,
  .cta-strip {
    width: min(100%, 360px);
  }

  .step-card {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.075)),
      rgba(28, 49, 73, 0.78);
  }

  .section-kicker p {
    color: rgba(237, 240, 250, 0.62);
  }

  .feature-card p,
  .step-card p,
  .cta-strip span {
    color: rgba(237, 240, 250, 0.7);
  }

  .feature-card h3,
  .step-card h3 {
    color: rgba(255, 255, 255, 0.96);
  }

  .feature-icon.cyan,
  .step-icon.cyan {
    background: rgba(34, 211, 238, 0.18);
    border-color: rgba(34, 211, 238, 0.3);
  }

  .feature-icon.indigo,
  .step-icon.indigo {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(129, 140, 248, 0.3);
  }

  .feature-icon.violet,
  .step-icon.violet {
    background: rgba(167, 139, 250, 0.18);
    border-color: rgba(167, 139, 250, 0.3);
  }

  .feature-content {
    align-items: flex-start;
    text-align: left;
  }

  .feature-card p {
    margin: 0;
  }

  .section-intro {
    color: rgba(237, 240, 250, 0.72);
    font-size: 15px;
  }

  .subtitle-sample {
    border-top-color: rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .subtitle-sample p,
  .feature-card p,
  .step-card p {
    overflow-wrap: break-word;
  }

  .feature-card-large {
    min-height: auto;
  }

  .background-number {
    color: rgba(255, 255, 255, 0.06);
    font-size: 88px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .step-card {
    text-align: left;
  }

  .step-head {
    margin-bottom: 22px;
  }

  .step-head > span {
    font-size: 42px;
  }

  .cta-strip {
    margin-top: 32px;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
  }

  .cta-strip .primary-button.compact {
    width: 100%;
  }

  .footer-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding: 48px 0;
    background: rgba(32, 48, 75, 0.72);
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom p {
    max-width: 320px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
