:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: rgba(18, 24, 42, 0.78);
  --panel-strong: #11182a;
  --text: #f7f8fb;
  --muted: #a8b1c6;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #78a7ff;
  --blue-strong: #4e7fff;
  --cyan: #79e6ff;
  --green: #9ae6b4;
  --violet: #c5a7ff;
  --radius: 24px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -20%, rgba(79, 127, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #090d18 0%, #080b14 55%, #090d18 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
code, kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.ambient {
  position: fixed;
  width: 38rem;
  height: 38rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #4d7cff; top: 9rem; right: -16rem; }
.ambient-two { background: #5de0bb; top: 56rem; left: -22rem; }

.section-shell,
.site-header,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.brand img { border-radius: 10px; }
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}
.site-header nav a,
.footer-links a,
.text-button { transition: color .18s ease; }
.site-header nav a:hover,
.footer-links a:hover,
.text-button:hover { color: #fff; }

.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.primary-button {
  background: #f7f8fb;
  color: #0b1020;
  padding-inline: 22px;
  box-shadow: 0 12px 32px rgba(255,255,255,.1);
}

.hero {
  min-height: 720px;
  padding: 94px 0 88px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 72px;
}
.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1,
.section-heading h2,
.learn-intro h2,
.language-copy h2,
.download-section h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: .97;
}
.hero h1 {
  font-size: clamp(64px, 7vw, 102px);
  max-width: 780px;
}
.hero h1 span {
  background: linear-gradient(90deg, #fff 0%, #a9c1ff 42%, #83e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  margin: 28px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.text-button {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.text-button span { margin-left: 6px; }
.platform-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: #79849b;
  font-size: 12px;
}
.platform-line span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: #495267;
}

.demo-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(20,28,48,.92), rgba(12,17,30,.95));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(121,230,255,.11), transparent 35%);
  pointer-events: none;
}
.demo-topbar {
  height: 58px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.window-dots { display: flex; gap: 7px; }
.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a4357;
}
.language-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.2);
}
.demo-language {
  border: 0;
  background: transparent;
  color: #77829a;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}
.demo-language.active {
  color: #fff;
  background: #27334c;
}
.demo-stage {
  padding: 55px 44px 30px;
  min-height: 360px;
}
.demo-label {
  display: block;
  color: #6f7c94;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 10px;
  font-weight: 800;
}
.demo-input, .demo-output {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.04em;
  font-weight: 760;
}
.demo-input {
  margin-top: 8px;
  color: #d5d9e4;
  min-height: 76px;
}
.caret {
  display: inline-block;
  width: 2px;
  height: .9em;
  margin-left: 4px;
  vertical-align: -.05em;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.demo-arrow {
  color: #46536d;
  font-size: 24px;
  margin: 5px 0 16px;
}
.demo-output {
  margin-top: 8px;
  color: #fff;
}
.demo-caption {
  min-height: 66px;
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  color: #8793aa;
  font-size: 12px;
}

.feature-section {
  padding: 90px 0 120px;
}
.section-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -46px; }
.section-heading h2,
.learn-intro h2,
.language-copy h2,
.download-section h2 {
  font-size: clamp(42px, 5vw, 68px);
}
.section-heading p,
.learn-intro p,
.download-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  max-width: 570px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-grid article {
  min-height: 280px;
  padding: 28px 26px 34px;
  border-right: 1px solid var(--line);
}
.feature-grid article:first-child { border-left: 1px solid var(--line); }
.feature-number {
  color: #55627a;
  font: 12px/1 "SFMono-Regular", Consolas, monospace;
}
.feature-grid h3 {
  margin: 60px 0 12px;
  font-size: 19px;
  letter-spacing: -.025em;
}
.feature-grid p {
  margin: 0;
  color: #8e99af;
  font-size: 14px;
  line-height: 1.7;
}

.learn-intro {
  padding: 120px 0 74px;
  text-align: center;
}
.learn-intro .eyebrow { margin-bottom: 18px; }
.learn-intro p { margin: 22px auto 0; }

.language-section {
  border-top: 1px solid var(--line);
  padding: 110px 0;
}
.language-vi {
  background:
    radial-gradient(circle at 15% 20%, rgba(78,127,255,.11), transparent 30%),
    rgba(13,18,31,.48);
}
.language-fr {
  background:
    radial-gradient(circle at 85% 20%, rgba(197,167,255,.1), transparent 30%),
    rgba(11,15,27,.55);
}
.language-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 86px;
  align-items: start;
}
.language-layout.reverse {
  grid-template-columns: .9fr 1.1fr;
}
.language-layout.reverse .language-copy { order: 2; }
.language-layout.reverse .language-guide { order: 1; }

.language-tag {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4ccdb;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}
.language-copy h2 { max-width: 560px; }
.language-lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 24px 0 0;
}
.tip-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.tip-key {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #3a465f;
  border-bottom-width: 3px;
  border-radius: 9px;
  color: #e9edf7;
  background: #1b2335;
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
}
.tip-card strong { display: block; font-size: 13px; }
.tip-card p {
  margin: 4px 0 0;
  color: #8b96ab;
  font-size: 12px;
  line-height: 1.55;
}
.smart-example {
  margin-top: 28px;
  color: #8d98ae;
  font-size: 12px;
}
.smart-example > span {
  display: block;
  margin-bottom: 12px;
}
.smart-example div {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  max-width: 320px;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.smart-example code {
  color: #d8dce6;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
}
.smart-example b { color: #536078; text-align: center; }
.smart-example strong { color: #fff; }

.language-guide {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11,16,29,.75);
  box-shadow: var(--shadow);
}
.guide-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.guide-tab {
  border: 0;
  background: transparent;
  color: #7f8aa0;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.guide-tab.active {
  background: #26324a;
  color: #fff;
}
.guide-panel { display: none; padding-top: 22px; }
.guide-panel.active { display: block; }
.language-guide h3 {
  margin: 0 0 20px;
  font-size: 24px;
  letter-spacing: -.03em;
}
.language-guide h4 {
  margin: 26px 0 12px;
  color: #9aa5ba;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.mapping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.mapping-grid div {
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mapping-grid code {
  color: #75829b;
  font-size: 11px;
}
.mapping-grid span {
  font-size: 24px;
  font-weight: 750;
}
.tone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tone-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #aab3c5;
  font-size: 11px;
}
.tone-row kbd {
  color: #fff;
  font-weight: 800;
}
.french-guide { padding-top: 30px; }

.language-more {
  background:
    radial-gradient(circle at 50% 0%, rgba(121,230,255,.07), transparent 34%),
    rgba(10,14,25,.7);
}
.compact-heading {
  margin-bottom: 38px;
}
.mini-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mini-language-card {
  min-height: 430px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.mini-language-card h3 {
  margin: 10px 0 14px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.mini-language-card > p {
  margin: 0;
  color: #909bb0;
  font-size: 14px;
  line-height: 1.7;
}
.compact-map {
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.word-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  margin-top: 22px;
  color: #8793aa;
  font-size: 12px;
}
.word-example code {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: #d8dce6;
  overflow-wrap: anywhere;
}
.word-example b { text-align: center; color: #536078; }
.word-example strong { color: #fff; overflow-wrap: anywhere; }

.download-section {
  padding: 130px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 86px;
  align-items: start;
}
.download-section p { margin-top: 22px; }
.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.download-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.2);
}
.primary-download {
  background: linear-gradient(145deg, rgba(78,127,255,.22), rgba(121,230,255,.07));
}
.download-card span {
  color: #7f8aa2;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.download-card strong {
  margin-top: 38px;
  font-size: 20px;
  letter-spacing: -.025em;
}
.download-card small {
  margin-top: 8px;
  color: #8d98ad;
}
.download-card b {
  margin-top: auto;
  align-self: flex-end;
  font-size: 20px;
  color: #8491a8;
}

.site-footer {
  min-height: 120px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  color: #78849b;
  font-size: 12px;
}
.footer-brand { color: #cfd5e1; }
.site-footer p { text-align: center; }
.footer-links { display: flex; gap: 20px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { display: none; }
  .site-header .ghost-button { justify-self: end; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; gap: 52px; }
  .demo-card { max-width: 680px; width: 100%; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid article:nth-child(3) { border-left: 1px solid var(--line); }
  .language-layout,
  .language-layout.reverse,
  .download-section { grid-template-columns: 1fr; gap: 52px; }
  .mini-language-grid { grid-template-columns: 1fr; }
  .mini-language-card { min-height: auto; }
  .language-layout.reverse .language-copy { order: 1; }
  .language-layout.reverse .language-guide { order: 2; }
}

@media (max-width: 680px) {
  .section-shell,
  .site-header,
  .site-footer { width: min(100% - 28px, 1160px); }
  .site-header { height: 68px; }
  .ghost-button { min-height: 38px; padding-inline: 14px; font-size: 12px; }
  .hero { min-height: auto; padding: 64px 0 76px; }
  .hero h1 { font-size: clamp(54px, 17vw, 76px); }
  .hero-lede { font-size: 16px; }
  .demo-stage { padding: 42px 24px 26px; min-height: 310px; }
  .feature-section { padding: 70px 0 86px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article,
  .feature-grid article:nth-child(3) { border-left: 1px solid var(--line); }
  .learn-intro { padding: 86px 0 56px; }
  .language-section { padding: 82px 0; }
  .mapping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-section { padding: 92px 0; }
  .download-actions { grid-template-columns: 1fr; }
  .site-footer { padding: 30px 0; grid-template-columns: 1fr; justify-items: center; }
  .site-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .download-card { transition: none; }
}
