:root {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #10161a;
  --panel-raised: #151d21;
  --line: rgba(209, 235, 220, .12);
  --text: #e9f1eb;
  --muted: #92a09a;
  --accent: #d97745;
  --accent-soft: rgba(217, 119, 69, .12);
  --teal: #8fe2ce;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inconsolata", "Xanh Mono", Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 82% 7%, rgba(108, 48, 28, .18), transparent 34rem),
    radial-gradient(ellipse at 2% 48%, rgba(84, 37, 27, .11), transparent 38rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(220, 245, 228, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 245, 228, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 86%);
  pointer-events: none;
}

a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

button, a { -webkit-tap-highlight-color: transparent; }

.site-header, body.page-capture header, body.page-text2speech header {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1160px, calc(100% - 64px));
  height: 82px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header { border-bottom: 0; }

.site-brand, body.page-capture .brand, body.page-text2speech header strong {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font: 500 15px/1 var(--mono);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-glyph {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(217, 119, 69, .4);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 14px/1 var(--mono);
  letter-spacing: -.08em;
}

.site-brand strong { color: var(--text); font-weight: 500; }
.site-brand .period { color: var(--accent); }

.site-nav, body.page-capture nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font: 15px/1 var(--mono);
}

.site-nav a, body.page-capture nav a, body.page-text2speech header a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover, body.page-capture nav a:hover, body.page-text2speech header a:hover { color: var(--accent); }

.shell { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }

.eyebrow, .terminal-label, .app-index, .platform, .status-line {
  color: var(--accent);
  font: 14px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before { color: var(--muted); content: "// "; }

.home-hero {
  display: grid;
  min-height: 510px;
  padding: 82px 0 74px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr);
  gap: 50px;
}

.hero-copy { position: relative; z-index: 1; animation: rise-in .8s both; }

h1, h2, h3, p { margin-top: 0; }

.hero-title, .page-title {
  margin: 22px 0 20px;
  color: var(--text);
  font: 400 clamp(54px, 8vw, 94px)/.98 var(--serif);
  letter-spacing: -.055em;
}

.hero-title em, .page-title em { color: var(--accent); font-weight: 400; }

.hero-deck, .page-deck {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  animation: rise-in .9s .12s both;
}

.orbit {
  position: absolute;
  width: min(100%, 390px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 119, 69, .11);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(100, 177, 108, .08), inset 0 0 60px rgba(100, 177, 108, .04);
  animation: orbit-breathe 8s ease-in-out infinite;
}

.orbit::before, .orbit::after {
  position: absolute;
  border: 1px solid rgba(143, 226, 206, .1);
  border-radius: 50%;
  content: "";
  inset: 12%;
}

.orbit::after { inset: 26%; border-color: rgba(217, 119, 69, .13); }

.terminal-window {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(217, 119, 69, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 29, 30, .96), rgba(11, 16, 18, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35), 0 0 55px rgba(217, 119, 69, .08);
  transform: rotate(-2deg);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s ease;
}

.terminal-window:hover { border-color: rgba(217, 119, 69, .48); transform: rotate(0) translateY(-4px); }
.terminal-top { display: flex; padding: 14px 17px; align-items: center; justify-content: space-between; color: var(--muted); font: 13px var(--mono); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #45554d; }
.terminal-dots i:first-child { background: var(--accent); box-shadow: 0 0 10px rgba(217, 119, 69, .7); }
.terminal-body { padding: 25px 24px 27px; color: var(--muted); font: 16px/1.9 var(--mono); }
.terminal-body p { margin: 0; }
.terminal-body .command { color: var(--text); }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .comment { color: var(--accent); }
.terminal-body .value { color: var(--teal); }
.cursor { display: inline-block; width: 8px; height: 17px; margin-left: 4px; vertical-align: -3px; background: var(--accent); animation: cursor-blink 1.1s steps(2, start) infinite; }

.section-head {
  display: flex;
  margin: 8px 0 21px;
  align-items: end;
  justify-content: space-between;
}

.section-title { margin: 7px 0 0; font: 400 clamp(27px, 3.2vw, 38px)/1.1 var(--serif); letter-spacing: -.03em; }
.section-count { color: var(--muted); font: 14px var(--mono); }

.app-grid {
  display: grid;
  margin-bottom: 90px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(18, 25, 27, .94), rgba(12, 17, 19, .96));
  color: var(--text);
  text-decoration: none;
  animation: rise-in .7s both;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.app-card:nth-child(2) { animation-delay: .1s; }
.app-card::after {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -100px;
  bottom: -155px;
  border-radius: 50%;
  background: var(--card-glow, rgba(217, 119, 69, .12));
  content: "";
  filter: blur(35px);
  transition: transform .5s ease;
}

.app-card:hover { border-color: rgba(217, 119, 69, .38); box-shadow: 0 18px 48px rgba(0, 0, 0, .22); color: var(--text); transform: translateY(-4px); }
.app-card:hover::after { transform: scale(1.35); }
.app-card[data-product="speech"] { --card-accent: #bb9cff; --card-glow: rgba(157, 125, 239, .16); }
.app-card-top, .app-card-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card-top { margin-bottom: 34px; }
.app-index { color: var(--muted); }
.platform { color: var(--muted); font-size: 12px; }
.app-card h2 { position: relative; z-index: 1; margin: 0 0 7px; font: 400 clamp(31px, 4vw, 42px)/1.1 var(--serif); letter-spacing: -.04em; }
.app-card[data-product="speech"] h2 { color: #d7c8ff; }
.app-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 15px; }
.app-card-bottom { margin-top: 30px; padding-top: 18px; }
.app-card-link { color: var(--text); font: 15px var(--mono); text-decoration: none; transition: color .2s ease; }
.app-card-link span { display: inline-block; margin-left: 7px; color: var(--accent); transition: transform .2s ease; }
.app-card[data-product="speech"] .app-card-link span { color: #d7c8ff; }
.app-card:hover .app-card-link { color: var(--accent); }
.app-card:hover .app-card-link span { transform: translate(3px, -3px); }
.app-version { position: relative; z-index: 1; color: var(--muted); font: 13px var(--mono); text-align: right; }

.site-footer {
  display: flex;
  width: min(1160px, calc(100% - 64px));
  min-height: 74px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 13px var(--mono);
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

body.page-capture .site-topline {
  display: flex;
  width: min(1160px, calc(100% - 64px));
  margin: auto !important;
  padding: 15px 0 13px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 14px var(--mono);
}

body.page-capture {
  --accent: #e31837;
  --accent-soft: rgba(227, 24, 55, .12);
  background:
    radial-gradient(ellipse at 82% 7%, rgba(108, 20, 37, .18), transparent 34rem),
    radial-gradient(ellipse at 2% 48%, rgba(84, 20, 33, .11), transparent 38rem),
    var(--bg);
}

body.page-capture::before {
  background-image: linear-gradient(rgba(245, 220, 224, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 220, 224, .025) 1px, transparent 1px);
}

body.page-capture .site-topline a { color: var(--muted); font-weight: 400; text-decoration: none; }
body.page-capture .site-topline > a { color: var(--text); letter-spacing: .1em; }
body.page-capture .site-topline > a span { color: var(--accent); }
body.page-capture .site-topline nav { gap: 20px; font-size: 13px; }
body.page-capture header { border-color: var(--line); }
body.page-capture .brand { letter-spacing: .04em; }
body.page-capture .brand .mark { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
body.page-capture nav { gap: 24px; }
body.page-capture main { width: min(900px, calc(100% - 64px)); margin: 0 auto; padding: 0; }
body.page-capture .hero { padding: 70px 0 35px; }
body.page-capture .hero h1, body.page-text2speech h1 { margin: 17px 0; font: 400 clamp(52px, 7vw, 78px)/1 var(--serif); letter-spacing: -.05em; }
body.page-text2speech h1 { max-width: 760px; }
body.page-capture .hero h1 em { color: var(--accent); }
body.page-capture .lead, body.page-text2speech .intro { max-width: 580px; color: var(--muted); font-size: 17px; }
body.page-capture .card, body.page-text2speech .card {
  position: relative;
  overflow: hidden;
  padding: 29px;
  border: 1px solid rgba(227, 24, 55, .22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(21, 31, 29, .96), rgba(13, 19, 20, .98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .24);
}

body.page-capture .card::before, body.page-text2speech .card::before {
  position: absolute;
  width: 240px;
  height: 240px;
  top: -160px;
  right: -80px;
  border-radius: 50%;
  background: rgba(227, 24, 55, .12);
  content: "";
  filter: blur(32px);
  pointer-events: none;
}

body.page-capture .card { background: linear-gradient(135deg, rgba(31, 17, 21, .96), rgba(13, 15, 17, .98)); }

body.page-capture .badge, body.page-text2speech .eyebrow { border: 1px solid rgba(227, 24, 55, .25); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 13px var(--mono); letter-spacing: .08em; }
body.page-capture .version { color: var(--text); font: 400 clamp(42px, 6vw, 60px)/1.1 var(--serif); letter-spacing: -.04em; }
body.page-capture .small, body.page-text2speech .meta, body.page-capture #status { color: var(--muted); }
body.page-capture .button, body.page-text2speech .download {
  display: inline-flex;
  min-height: 48px;
  margin: 0;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #10160e;
  font: 500 15px var(--mono);
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.page-capture .button:hover, body.page-text2speech .download:hover { background: #eda47b; box-shadow: 0 0 28px rgba(217, 119, 69, .2); color: #10160e; transform: translateY(-2px); }
body.page-capture .button:hover { background: #ff4058; box-shadow: 0 0 28px rgba(227, 24, 55, .22); }
body.page-capture .action { position: relative; z-index: 1; }
body.page-capture #installer-notice { margin: 15px 0 34px; font: 13px/1.55 var(--mono); }
body.page-capture section.content { padding: 34px 0; border-color: var(--line); }
body.page-capture h2, body.page-text2speech h2 { margin: 8px 0; font: 400 32px/1.15 var(--serif); letter-spacing: -.03em; }
body.page-capture ol { grid-template-columns: repeat(3, 1fr); gap: 20px; }
body.page-capture li::before { color: var(--accent); font: 13px var(--mono); }
body.page-capture li p, body.page-capture .section-head .small { color: var(--muted); }
body.page-capture #versions { margin-bottom: 25px; }
body.page-capture .release { border-color: var(--line); }
body.page-capture .release strong { font: 18px var(--mono); }
body.page-capture .links { font: 14px var(--mono); }
body.page-capture footer, body.page-text2speech footer {
  display: flex;
  width: min(1160px, calc(100% - 64px));
  margin: auto;
  padding: 24px 0;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 13px var(--mono);
}

body.page-capture footer a, body.page-text2speech footer a { color: var(--muted); text-decoration: none; }
body.page-capture footer a:hover, body.page-text2speech footer a:hover { color: var(--accent); }

body.page-text2speech header { border-color: var(--line); }
body.page-text2speech header strong { letter-spacing: .04em; }
body.page-text2speech header a { font: 14px var(--mono); }
body.page-text2speech main { width: min(900px, calc(100% - 64px)); margin: 55px auto; padding: 0; }
body.page-text2speech .card { border-color: rgba(187, 156, 255, .25); }
body.page-text2speech .card::before { background: rgba(157, 125, 239, .15); }
body.page-text2speech .eyebrow { border-color: rgba(187, 156, 255, .3); background: rgba(187, 156, 255, .1); color: #d7c8ff; }
body.page-text2speech .download { border-color: #c2aaff; background: #c2aaff; }
body.page-text2speech .download:hover { background: #d6c5ff; box-shadow: 0 0 28px rgba(187, 156, 255, .22); }
body.page-text2speech .release-history { margin-top: 34px; }
body.page-text2speech .release-history h2 { font-size: 26px; }
body.page-text2speech .release-list { padding: 0; list-style: none; }
body.page-text2speech .release-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
body.page-text2speech .release-list a { color: var(--text); font: 15px var(--mono); }
body.page-text2speech .release-status, body.page-text2speech .release-date { color: var(--muted); font: 13px var(--mono); }
body.page-text2speech .details { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
body.page-text2speech .detail { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
body.page-text2speech .detail strong { color: #d7c8ff; font: 14px var(--mono); }
body.page-text2speech .detail p { color: var(--muted); font-size: 13px; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes orbit-breathe {
  0%, 100% { opacity: .7; transform: scale(.98); }
  50% { opacity: 1; transform: scale(1.025); }
}

@media (max-width: 760px) {
  .site-header, body.page-capture header, body.page-text2speech header { width: calc(100% - 40px); height: 70px; }
  .shell { width: calc(100% - 40px); }
  .home-hero { min-height: auto; padding: 60px 0 54px; grid-template-columns: 1fr; gap: 20px; }
  .hero-title, .page-title { font-size: clamp(54px, 13vw, 76px); }
  .hero-visual { min-height: 250px; }
  .orbit { width: min(82vw, 320px); }
  .terminal-window { width: min(100%, 360px); }
  .app-grid { grid-template-columns: 1fr; margin-bottom: 60px; }
  .app-card { min-height: 230px; }
  .site-footer, body.page-capture footer, body.page-text2speech footer { width: calc(100% - 40px); }
  body.page-capture .site-topline { width: calc(100% - 40px); }
  body.page-capture main, body.page-text2speech main { width: calc(100% - 40px); }
  body.page-capture .hero { padding-top: 52px; }
}

@media (max-width: 520px) {
  .site-nav, body.page-capture nav { gap: 14px; font-size: 12px; }
  .site-brand, body.page-capture .brand { font-size: 13px; }
  .hero-title, .page-title { font-size: clamp(49px, 14vw, 66px); }
  .terminal-body { padding: 21px 18px; font-size: 14px; }
  .app-card { padding: 22px; }
  .app-card-bottom { align-items: flex-start; flex-direction: column; }
  .app-version { text-align: left; }
  body.page-capture .card { display: block; padding: 22px; }
  body.page-capture .action { margin-top: 22px; text-align: left; }
  body.page-capture ol, body.page-text2speech .details { grid-template-columns: 1fr; }
  body.page-capture .section-head { align-items: flex-start; flex-direction: column; }
  body.page-capture .release { display: block; }
  body.page-capture .links { margin-top: 12px; }
  body.page-capture footer, body.page-text2speech footer, .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; justify-content: center; }
  body.page-text2speech .card { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
