/* GenNal download site — v2 */
:root {
  --s0: #03050a;
  --s1: #080b12;
  --s2: #0d111a;
  --s3: #121827;
  --s4: #1a2232;
  --bd: #1c2430;
  --bd2: #2a3444;
  --tx: #e6edf3;
  --tx2: #8b98a9;
  --tx3: #5a6675;
  --tx4: #434d5a;
  --accent: #7f49ff;
  --accent2: #13d6e8;
  --accent-pink: #f45fae;
  --accent-warm: #ff9a6c;
  --accent-teal: #13d6e8;
  --codex: #22c55e;
  --blue: #79c0ff;
  --orange: #ff9e64;
  --pink: #ff7b9c;
  --teal: #28d9c7;
  --claude: #d97757;
  --gemini: #4285f4;
  --maxw: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: Inter, "Kantumruy Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Kantumruy Pro", ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  background: var(--s0);
  color: var(--tx);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(19, 214, 232, 0.18);
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

:lang(km) {
  font-family: "Kantumruy Pro", var(--font-sans);
}

.lang-km {
  line-height: 1.75;
}

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 42% at 16% -10%, rgba(127, 73, 255, 0.2), transparent 58%),
    radial-gradient(ellipse 58% 38% at 84% 2%, rgba(19, 214, 232, 0.16), transparent 52%),
    radial-gradient(ellipse 44% 28% at 52% 84%, rgba(244, 95, 174, 0.1), transparent 62%),
    var(--s0);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(26, 36, 48, 0.55) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  opacity: 0.5;
}

img {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: calc(var(--maxw) + 56px);
  margin: 0 auto;
  height: 60px;
  padding: 0 28px;
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid rgba(28, 36, 48, 0.8);
  backdrop-filter: blur(18px) saturate(1.4);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--tx);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), top 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }

.site-nav.is-open .nav-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  white-space: nowrap;
}

.brand-pill {
  border: 1px solid rgba(19, 214, 232, 0.34);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(19, 214, 232, 0.1);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--tx2);
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--tx);
}

.nav-links-cta {
  display: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-option {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tx2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(19, 214, 232, 0.16);
  color: var(--tx);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #031015;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px -12px rgba(19, 214, 232, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(19, 214, 232, 0.85);
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 62px 28px 76px;
}

.hero-copy-block {
  display: grid;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-wordmark {
  width: min(420px, 82vw);
  margin-bottom: 14px;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-teal);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-copy-block .eyebrow {
  margin-top: 2px;
}

.hero-copy-block h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 690px;
  margin-top: 16px;
  color: var(--tx2);
  font-size: 18px;
}

.hero-meaning {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b98a9;
  font-weight: 600;
}

.meaning-gen,
.meaning-nal {
  color: #7f49ff;
  font-weight: 700;
}

.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #031015;
  box-shadow: 0 12px 32px -14px rgba(19, 214, 232, 0.9);
}

.button-primary:hover {
  box-shadow: 0 16px 36px -12px rgba(19, 214, 232, 0.95);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bd2);
  color: var(--tx);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(19, 214, 232, 0.4);
}

.hero-stats {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: grid;
  gap: 2px;
}

.stat strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--tx), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--tx3);
  font-size: 12px;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.hero-visual .app-mock {
  width: 100%;
}

.hero-frame {
  overflow: hidden;
  border: 1px solid var(--bd2);
  border-radius: var(--radius-lg);
  background: var(--s2);
  box-shadow:
    0 0 0 1px rgba(124, 92, 255, 0.08),
    0 32px 80px -24px rgba(0, 0, 0, 0.85),
    0 0 60px -20px rgba(124, 92, 255, 0.25);
}

.hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--s3);
  border-bottom: 1px solid var(--bd);
}

.hero-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bd2);
}

.hero-frame-bar span:first-child { background: #ef4444; opacity: 0.7; }
.hero-frame-bar span:nth-child(2) { background: #e3b341; opacity: 0.7; }
.hero-frame-bar span:nth-child(3) { background: #22c55e; opacity: 0.7; }

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.hero-chip {
  position: absolute;
  padding: 6px 12px;
  border: 1px solid var(--bd2);
  border-radius: 999px;
  background: rgba(15, 19, 26, 0.88);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

.chip-codex {
  top: 12%;
  left: -6%;
  color: var(--codex);
  border-color: rgba(34, 197, 94, 0.35);
}

.chip-claude {
  top: 42%;
  right: -8%;
  color: var(--claude);
  border-color: rgba(217, 119, 87, 0.35);
}

.chip-gemini {
  bottom: 14%;
  left: 4%;
  color: var(--gemini);
  border-color: rgba(66, 133, 244, 0.35);
}

/* ── Download ── */
.download-band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 80px;
}

.download-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.kicker {
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-head h2,
.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.download-head p,
.section-head p:last-child {
  margin-top: 12px;
  color: var(--tx2);
  font-size: 16px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.download-grid-all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--bd);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--tx2);
  font-size: 13px;
  font-weight: 600;
}

.platform-badge svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.device-matrix {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--s2);
  font-size: 13px;
}

.device-row {
  display: grid;
  grid-template-columns: 88px 72px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bd);
  color: var(--tx2);
}

.device-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.device-row span:first-child {
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-note a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-note a:hover {
  color: var(--tx);
}

/* Device download list */
.device-download-list {
  margin-top: 28px;
}

.device-list-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

.device-list-head,
.device-list-item {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(0, 1.4fr) minmax(140px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.device-list-head {
  padding: 0 16px 10px;
  color: var(--tx3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.device-list-item {
  padding: 14px 16px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: rgba(15, 19, 26, 0.82);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.device-list-item:hover {
  border-color: var(--bd2);
}

.device-list-item.featured {
  border-color: rgba(19, 214, 232, 0.34);
  background: rgba(19, 214, 232, 0.07);
}

.device-list-device {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.device-list-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.device-list-icon svg {
  width: 16px;
  height: 16px;
}

.device-list-icon.win { color: #79c0ff; }
.device-list-icon.mac { color: var(--tx2); }
.device-list-icon.linux { color: #ff9e64; }
.device-list-icon.appimage { color: #8bd3ff; }
.device-list-icon.debian { color: #d70a53; }
.device-list-icon.snap { color: #82c91e; }

.device-list-device strong {
  display: block;
  font-size: 14px;
}

.device-list-device small {
  display: block;
  margin-top: 2px;
  color: var(--tx3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.device-list-compat {
  color: var(--tx2);
  font-size: 13px;
}

.device-list-file {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--s3);
  border: 1px solid var(--bd);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #031015;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px -12px rgba(19, 214, 232, 0.9);
  transition: transform 0.15s ease;
}

.device-list-btn:hover {
  transform: translateY(-1px);
}

.download-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: rgba(15, 19, 26, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  border-color: var(--bd2);
  transform: translateY(-2px);
}

.download-card.featured {
  border-color: rgba(19, 214, 232, 0.34);
  background: rgba(19, 214, 232, 0.07);
}

.download-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--tx2);
}

.platform-icon.win { color: #79c0ff; }
.platform-icon.mac { color: var(--tx2); }
.platform-icon.linux { color: #ff9e64; }
.platform-icon.appimage { color: #8bd3ff; }
.platform-icon.debian { color: #d70a53; }
.platform-icon.snap { color: #82c91e; }

.platform-icon svg {
  width: 16px;
  height: 16px;
}

.platform {
  color: var(--tx3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-card h3 {
  font-size: 20px;
}

.download-card p {
  min-height: 44px;
  color: var(--tx2);
  font-size: 14px;
}

.download-card .button {
  justify-self: start;
  margin-top: 4px;
}

.minor-link {
  justify-self: start;
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
}

.minor-link:hover {
  text-decoration: underline;
}

.download-note {
  margin-top: 18px;
  color: var(--tx3);
  font-size: 13px;
}

.download-note strong {
  color: var(--tx2);
  font-weight: 600;
}

/* ── Sections ── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 28px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ── What's new bento ── */
.whats-new-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bento-card {
  padding: 24px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: rgba(15, 19, 26, 0.82);
  transition: border-color 0.2s ease;
}

.bento-card:hover {
  border-color: var(--bd2);
}

.bento-wide {
  grid-column: span 2;
}

.bento-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(19, 214, 232, 0.11);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.bento-card h3 {
  font-size: 18px;
}

.bento-card p {
  margin-top: 8px;
  color: var(--tx2);
  font-size: 14px;
}

/* ── Two windows ── */
.windows-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.windows-note {
  max-width: 700px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--tx2);
  font-size: 14px;
}

/* ── Experience ── */
.experience-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.experience-copy h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
}

.experience-copy > p {
  margin-top: 12px;
  color: var(--tx2);
  font-size: 16px;
}

.steps {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  padding-top: 2px;
}

.steps h3 {
  font-size: 16px;
}

.steps p {
  margin-top: 4px;
  color: var(--tx2);
  font-size: 14px;
}

.steps kbd {
  padding: 1px 5px;
  border: 1px solid var(--bd2);
  border-radius: 4px;
  background: var(--s3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx2);
}

.screen-frame {
  overflow: hidden;
  border: 1px solid var(--bd2);
  border-radius: var(--radius-lg);
  background: var(--s2);
  box-shadow: 0 28px 64px -32px rgba(0, 0, 0, 0.9);
}

.screen-frame .app-mock {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 200px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: rgba(15, 19, 26, 0.82);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--bd2);
  transform: translateY(-2px);
}

.feature-icon {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
  box-shadow: 0 0 16px var(--card-accent, var(--accent));
}

.feature-card h3 {
  font-size: 16px;
}

.feature-card p {
  margin-top: 8px;
  color: var(--tx2);
  font-size: 14px;
}

.feature-card kbd {
  padding: 1px 4px;
  border: 1px solid var(--bd2);
  border-radius: 4px;
  background: var(--s3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.accent-codex { --card-accent: var(--codex); }
.accent-blue { --card-accent: var(--blue); }
.accent-purple { --card-accent: var(--accent2); }
.accent-orange { --card-accent: var(--orange); }
.accent-pink { --card-accent: var(--pink); }
.accent-teal { --card-accent: var(--teal); }
.accent-green { --card-accent: #4ade80; }
.accent-slate { --card-accent: #8b98a9; }

/* ── Tour ── */
.tour-section {
  border-top: 1px solid var(--bd);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--s2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tour-card .app-mock {
  width: 100%;
  flex: 1 1 auto;
}

.tour-card:hover {
  border-color: var(--bd2);
  transform: translateY(-2px);
}

.tour-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border-bottom: 1px solid var(--bd);
  background: var(--s0);
}

.tour-card > div:last-child {
  padding: 20px;
}

.tour-card h3 {
  font-size: 16px;
}

.tour-card p {
  margin-top: 6px;
  color: var(--tx2);
  font-size: 14px;
}

/* ── Models ── */
.models-section {
  padding-top: 40px;
}

.model-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.model-chip {
  display: grid;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--s2);
  transition: border-color 0.2s ease;
}

.model-chip:hover {
  border-color: var(--bd2);
}

.model-chip strong {
  color: var(--chip, var(--tx));
  font-size: 18px;
}

.model-chip small {
  color: var(--tx3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.model-chip.codex { --chip: var(--codex); border-color: rgba(34, 197, 94, 0.3); }
.model-chip.claude { --chip: var(--claude); border-color: rgba(217, 119, 87, 0.3); }
.model-chip.gemini { --chip: var(--gemini); border-color: rgba(66, 133, 244, 0.3); }
.model-chip.custom { --chip: var(--accent2); border-color: rgba(154, 123, 255, 0.3); }

.models-note {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--tx2);
  text-align: center;
  font-size: 14px;
}

/* ── System ── */
.system-section {
  padding-top: 40px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-item {
  padding: 20px;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: var(--s2);
  color: var(--tx2);
  font-size: 14px;
}

.system-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FAQ ── */
.faq-section {
  padding-top: 40px;
  border-top: 1px solid var(--bd);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: var(--s2);
  padding: 0 20px;
  transition: border-color 0.15s ease;
}

.faq-list details[open] {
  border-color: var(--bd2);
}

.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 650;
  font-size: 15px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent2);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  padding: 0 0 18px;
  color: var(--tx2);
  font-size: 14px;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
  border-top: 1px solid var(--bd);
  color: var(--tx3);
  font-size: 13px;
}

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

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--tx);
}

/* Music player */
.music-player {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.music-select {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 999px;
  background: rgba(15, 19, 26, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.music-toggle,
.music-choice {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(15, 19, 26, 0.88);
  color: var(--tx);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.music-choice {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.music-toggle svg {
  width: 17px;
  height: 17px;
  color: var(--accent2);
}

.music-toggle:hover,
.music-choice:hover,
.music-choice.is-active,
.music-player.is-open .music-toggle {
  border-color: rgba(124, 92, 255, 0.65);
  background: rgba(27, 34, 45, 0.96);
}

.music-choice.is-active {
  color: var(--accent2);
}

.music-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .hero {
    gap: 40px;
    padding-top: 48px;
  }

  .hero-chip {
    display: none;
  }

  .bento-wide {
    grid-column: span 1;
  }

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

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

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

  .device-list-head,
  .device-list-item {
    grid-template-columns: 1fr 1fr;
  }

  .device-list-compat {
    grid-column: 1 / -1;
  }

  .device-list-file {
    grid-column: 1;
  }

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

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

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

@media (max-width: 780px) {
  .site-nav {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    flex-wrap: wrap;
    gap: 0;
  }

  .site-nav .brand,
  .site-nav .nav-actions {
    height: 56px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
    border-top: 1px solid var(--bd);
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    font-size: 15px;
    color: var(--tx);
    white-space: normal;
  }

  .site-nav.is-open {
    background: rgba(8, 11, 18, 0.96);
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links-cta {
    display: flex;
    margin-top: 6px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #031015;
    font-weight: 700;
    justify-content: center;
  }

  .nav-links-cta:hover {
    color: #031015;
  }

  .nav-actions {
    margin-left: auto;
    gap: 8px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .lang-option {
    min-height: 32px;
    padding: 0 8px;
  }

  .hero,
  .download-band,
  .section,
  .footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .brand-pill {
    display: none;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 22px;
  }

  .hero-wordmark {
    width: min(280px, 78vw);
    margin-bottom: 8px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-copy-block h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-actions {
    width: 100%;
    margin-top: 22px;
  }

  .hero-actions .button,
  .download-card .button,
  .minor-link {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-content: initial;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .stat {
    min-width: 0;
    flex: unset;
    text-align: center;
  }

  .stat strong {
    font-size: 22px;
  }

  .stat span {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-head {
    margin-bottom: 28px;
    text-align: left;
  }

  .download-head,
  .section-head h2,
  .download-head h2 {
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .download-head h2,
  .section-head h2 {
    font-size: clamp(24px, 7vw, 34px);
  }

  .download-head p,
  .section-head p:last-child {
    font-size: 15px;
  }

  .platform-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .platform-badge {
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
    min-width: 0;
  }

  .download-grid,
  .download-grid-all,
  .tour-grid,
  .tour-grid-4,
  .bento-grid,
  .showcase-strip,
  .feature-grid,
  .system-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download-card,
  .feature-card,
  .bento-card,
  .tour-card,
  .showcase-item,
  .system-item,
  .model-chip,
  .device-list-item {
    width: 100%;
    min-height: 0;
  }

  .download-card {
    padding: 18px;
    gap: 8px;
  }

  .download-card p {
    min-height: 0;
  }

  .feature-card {
    min-height: 0;
    padding: 18px;
  }

  .feature-icon {
    margin-bottom: 12px;
  }

  .bento-card {
    padding: 18px;
  }

  .tour-card img,
  .hero-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
  }

  .tour-card > div:last-child {
    padding: 16px 18px 18px;
  }

  .showcase-item figcaption {
    padding: 16px 18px 18px;
  }

  .device-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .device-row span:nth-child(3),
  .device-row span:nth-child(4) {
    grid-column: 1 / -1;
  }

  .device-list-head {
    display: none;
  }

  .device-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .device-list-file {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .device-list-btn {
    width: 100%;
    min-height: 44px;
  }

  .model-row {
    grid-template-columns: 1fr 1fr;
  }

  .faq-list details {
    padding: 0 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .music-player {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .music-toggle {
    min-height: 40px;
    padding: 0 12px;
  }

  .music-toggle span {
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .model-row {
    grid-template-columns: 1fr;
  }

  .lang-switch {
    padding: 2px;
    gap: 1px;
  }

  .lang-option {
    font-size: 10px;
    min-height: 28px;
    padding: 0 6px;
  }

  .nav-cta {
    display: none;
  }

  .hero-copy {
    font-size: 14px;
  }

  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyebrow-dot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ─── Chinese font ─── */
body.lang-zh {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

.button i[class*="hgi-"] {
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-flex;
}
.platform-badge i[class*="hgi-"] {
  font-size: 15px;
  line-height: 1;
  opacity: 0.85;
  vertical-align: middle;
}
.platform-icon i[class*="hgi-"] {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.device-list-icon i[class*="hgi-"] {
  font-size: 20px;
  line-height: 1;
  display: block;
}
.music-toggle i[class*="hgi-"] {
  font-size: 18px;
  line-height: 1;
}

/* ── GenNal Remote (phone access through the relay) ── */
.platform-icon.phone { color: var(--accent2); }

.remote-card {
  position: relative;
  border-color: rgba(127, 73, 255, 0.38);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(127, 73, 255, 0.16), transparent 60%),
    rgba(15, 19, 26, 0.82);
}

.remote-card:hover {
  border-color: rgba(127, 73, 255, 0.6);
}

.remote-new {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #031015;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.remote-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  margin-top: 28px;
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(127, 73, 255, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 100% 50%, rgba(19, 214, 232, 0.12), transparent 70%),
    radial-gradient(60% 80% at 0% 0%, rgba(127, 73, 255, 0.16), transparent 70%),
    var(--s1);
  scroll-margin-top: 90px;
}

.remote-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.remote-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 0 rgba(19, 214, 232, 0.6);
  animation: remote-pulse 2s ease-out infinite;
}

@keyframes remote-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 214, 232, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(19, 214, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 214, 232, 0); }
}

.remote-copy h3 {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.remote-lead {
  margin-top: 12px;
  max-width: 560px;
  color: var(--tx2);
  font-size: 16px;
}

.remote-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.remote-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
}

.remote-features i {
  color: var(--accent2);
  font-size: 18px;
  line-height: 1;
}

.remote-steps {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  list-style: none;
}

.remote-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.remote-step-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(19, 214, 232, 0.4);
  border-radius: 50%;
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.remote-steps strong {
  display: block;
  font-size: 15px;
}

.remote-steps span:not(.remote-step-num) {
  display: block;
  color: var(--tx2);
  font-size: 14px;
}

.remote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.remote-url {
  padding: 9px 12px;
  border: 1px dashed var(--bd2);
  border-radius: var(--radius);
  color: var(--accent2);
  font-family: var(--font-mono);
  font-size: 13px;
}

.remote-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--tx3);
  font-size: 13px;
}

.remote-note i {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1;
}

/* Phone mockup */
.remote-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.remote-link-line {
  display: flex;
  align-items: center;
  width: min(100%, 300px);
}

.remote-node {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bd2);
  border-radius: 12px;
  background: var(--s3);
  color: var(--tx);
  font-size: 19px;
}

.remote-node-cloud {
  border-color: rgba(127, 73, 255, 0.5);
  color: #b89bff;
}

.remote-wire {
  position: relative;
  flex: 1;
  height: 2px;
  margin: 0 6px;
  overflow: hidden;
  background: var(--bd2);
}

.remote-wire i {
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  animation: remote-flow 1.8s linear infinite;
}

.remote-wire + .remote-node + .remote-wire i {
  animation-delay: 0.9s;
}

@keyframes remote-flow {
  to { left: 100%; }
}

.remote-phone {
  display: grid;
  gap: 10px;
  width: 260px;
  padding: 14px 14px 16px;
  border: 1px solid #2c2c2c;
  border-radius: 34px;
  background: #0a0a0a;
  box-shadow:
    0 0 0 6px #151515,
    0 40px 80px -30px rgba(19, 214, 232, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
  font-size: 12px;
  transform: rotate(-3deg);
}

.remote-phone-notch {
  justify-self: center;
  width: 72px;
  height: 18px;
  border-radius: 999px;
  background: #000;
}

.remote-phone-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}

.remote-phone-bar em {
  margin-left: auto;
  color: #4ade80;
  font-size: 11px;
  font-style: normal;
}

.remote-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.remote-phone-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #171717;
}

.remote-phone-tabs span {
  flex: 1;
  padding: 4px 0;
  border-radius: 7px;
  color: #8a8a8a;
  font-size: 11px;
  text-align: center;
}

.remote-phone-tabs .on {
  background: #f5f5f5;
  color: #0a0a0a;
  font-weight: 700;
}

.remote-phone-chat {
  display: grid;
  gap: 8px;
  min-height: 210px;
  align-content: start;
  padding: 4px 2px;
}

.remote-bubble {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px 12px 12px 4px;
  background: #1a1a1a;
  line-height: 1.45;
}

.remote-bubble i {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-style: normal;
  color: var(--accent2);
}

.remote-bubble.me {
  justify-self: end;
  border-radius: 12px 12px 4px 12px;
  background: #f5f5f5;
  color: #0a0a0a;
}

.remote-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9a9a9a;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.remote-spin {
  width: 10px;
  height: 10px;
  border: 1.5px solid #3a3a3a;
  border-top-color: var(--accent2);
  border-radius: 50%;
  animation: remote-spin 0.9s linear infinite;
}

@keyframes remote-spin {
  to { transform: rotate(360deg); }
}

.remote-diff {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #262626;
  border-radius: 10px;
  font-size: 11px;
}

.remote-diff span { margin-right: auto; color: #bdbdbd; }
.remote-diff b { color: #4ade80; }
.remote-diff s { color: #f87171; text-decoration: none; }

.remote-phone-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 12px;
  border: 1px solid #262626;
  border-radius: 14px;
  color: #6b6b6b;
}

.remote-phone-input i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #0a0a0a;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1020px) {
  .remote-spotlight {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .remote-visual {
    grid-row: 1;
  }
}

@media (max-width: 780px) {
  .remote-spotlight {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .remote-features {
    grid-template-columns: 1fr;
  }

  .remote-phone {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remote-pulse,
  .remote-wire i,
  .remote-spin {
    animation: none;
  }
}
