:root {
  --bg: #0b1017;
  --surface: #111925;
  --surface-raised: #162131;
  --surface-soft: #1b293a;
  --line: #2a3a4d;
  --text: #f2f6fb;
  --muted: #9babc0;
  --muted-strong: #c2cede;
  --accent: #8bd3b2;
  --accent-strong: #b4efd2;
  --accent-ink: #10241e;
  --positive: #8bd3b2;
  --focus: #b7d8ff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 80px rgb(0 0 0 / 0.35);
  --content: 1160px;
  --hero-content: 1840px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: radial-gradient(ellipse 50% 32% at 73% 11%, rgb(8 122 126 / 0.28), transparent 68%), radial-gradient(ellipse 30% 25% at 40% 61%, rgb(41 203 172 / 0.11), transparent 72%), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
.skip-link { position: fixed; left: var(--space-2); top: -80px; padding: var(--space-1) var(--space-2); background: var(--focus); color: var(--accent-ink); border-radius: var(--radius-sm); z-index: 10; }
.skip-link:focus { top: var(--space-2); }
.site-header, .site-footer { width: min(calc(100% - 48px), var(--content)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.site-header { width: min(calc(100% - 48px), var(--hero-content)); }
.site-header { min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 720; letter-spacing: -0.03em; }
.brand img { border-radius: 9px; }
nav { display: flex; gap: var(--space-3); }
nav a, .bug-link { color: var(--muted-strong); font-size: 0.9rem; text-decoration: none; }
nav a:hover, .bug-link:hover { color: var(--accent-strong); }
.nav-support { border: 1px solid rgb(139 211 178 / 0.38); border-radius: 999px; color: var(--accent-strong); padding: 4px 10px; }
.nav-support:hover { background: rgb(139 211 178 / 0.12); }
.language-switcher { align-items: center; color: var(--muted); display: inline-flex; font-size: 0.72rem; gap: 5px; letter-spacing: 0.08em; }
.language-button { background: transparent; border: 0; border-radius: 7px; color: var(--muted); cursor: pointer; font: inherit; font-weight: 750; min-height: 30px; padding: 4px 6px; }
.language-button[aria-pressed="true"] { color: var(--accent-strong); background: rgb(139 211 178 / 0.12); }
.language-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hero, .section { width: min(calc(100% - 48px), var(--content)); margin: auto; }
.hero { display: grid; grid-template-columns: minmax(330px, 0.76fr) minmax(0, 1.42fr); gap: clamp(24px, 3vw, 62px); align-items: center; min-height: min(700px, calc(100svh - 84px)); padding: clamp(48px, 4vw, 68px) 0 clamp(54px, 5vw, 72px); position: relative; width: min(calc(100% - 48px), var(--hero-content)); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-size: 0.74rem; font-weight: 750; letter-spacing: 0.12em; margin: 0 0 var(--space-2); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; font-size: clamp(3.2rem, 4vw, 5rem); letter-spacing: -0.075em; line-height: 0.94; margin-bottom: 28px; }
h1 span { background: linear-gradient(118deg, #89e4bd 12%, #65dcb5 55%, #b5d8e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { max-width: 740px; font-size: clamp(2rem, 3.7vw, 3.4rem); letter-spacing: -0.055em; line-height: 1.02; margin-bottom: var(--space-2); }
.hero-description, .section-intro > p:last-child { color: var(--muted-strong); font-size: 1.1rem; max-width: 590px; }
.hero-description { font-size: clamp(1.05rem, 1.35vw, 1.32rem); line-height: 1.46; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .button { min-height: 62px; padding-inline: 29px; }
.button { min-height: 48px; align-items: center; border-radius: 999px; display: inline-flex; font-weight: 720; gap: 10px; justify-content: center; padding: 0 21px; text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: var(--accent-strong); }
.button-primary.is-loading { pointer-events: none; opacity: 0.72; }
.button-secondary { border: 1px solid var(--line); color: var(--muted-strong); }
.button-secondary:hover { background: var(--surface); color: var(--text); }
.button-icon { font-size: 1.2rem; line-height: 1; }
.release-status { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }
.release-status.error { color: #efb1a5; }
.hero-product { margin: 0; min-width: 0; position: relative; }
.hero-product::before { background: radial-gradient(ellipse, rgb(0 229 191 / 0.34), rgb(0 125 118 / 0.13) 43%, transparent 72%); content: ""; filter: blur(15px); inset: -16% -11% -18% -8%; pointer-events: none; position: absolute; }
.hero-banner { margin: 0; min-width: 0; overflow: hidden; position: relative; z-index: 1; }
.hero-banner:hover { transform: translateY(-3px); }
.hero-banner img { display: block; height: auto; max-width: 100%; object-fit: contain; width: 100%; }
.trust-strip { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 1300px; }
.trust-strip div { border-right: 1px solid var(--line); display: grid; gap: 3px; padding: 25px clamp(18px, 4vw, 42px); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip b { font-size: 0.95rem; }
.trust-strip span { color: var(--muted); font-size: 0.82rem; }
.section { padding: var(--space-6) 0; }
.section-intro { margin-bottom: var(--space-4); }
.feature-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); min-height: 205px; padding: var(--space-3); }
.feature-icon { align-items: center; background: var(--surface-soft); border-radius: 10px; color: var(--accent); display: inline-flex; font-size: 1.25rem; height: 38px; justify-content: center; width: 38px; }
.feature-card h3 { font-size: 1.04rem; letter-spacing: -0.025em; margin: 22px 0 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }
.screenshots { border-top: 1px solid var(--line); }
.screenshot-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screenshot-slot { aspect-ratio: 1.38; background: radial-gradient(circle at 20% 20%, rgb(139 211 178 / 0.13), transparent 35%), var(--surface); border: 1px dashed #496276; border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: end; padding: var(--space-3); }
.screenshot-slot span { color: var(--accent); font-size: 0.8rem; font-weight: 800; margin-bottom: auto; }
.screenshot-slot b { font-size: 1.05rem; }
.screenshot-slot small { color: var(--muted); margin-top: 5px; }
.gallery { display: grid; gap: var(--space-2); }
.gallery-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.gallery-image-button { background: #070a0f; border: 0; cursor: zoom-in; display: block; padding: 0; width: 100%; }
.gallery-image-button:focus-visible, .gallery-thumbnail:focus-visible, .gallery-arrow:focus-visible, .gallery-dialog button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery-image-button img { display: block; height: min(62vw, 630px); object-fit: contain; width: 100%; }
.gallery-controls { align-items: center; display: grid; gap: var(--space-2); grid-template-columns: auto minmax(0, 1fr) auto; padding: 17px 20px; }
.gallery-caption { display: grid; gap: 2px; min-width: 0; }
.gallery-caption strong { font-size: 1rem; }
.gallery-caption span { color: var(--muted); font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-arrow, .gallery-dialog-arrow, .gallery-dialog-close { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer; display: inline-flex; font-size: 1.2rem; height: 38px; justify-content: center; width: 38px; }
.gallery-arrow:hover, .gallery-dialog-arrow:hover, .gallery-dialog-close:hover { background: #314258; }
.gallery-thumbnails { display: grid; gap: 10px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery-thumbnail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-strong); cursor: pointer; min-width: 0; overflow: hidden; padding: 0; text-align: left; transition: border-color 160ms ease, transform 160ms ease; }
.gallery-thumbnail:hover { border-color: #618e7d; transform: translateY(-2px); }
.gallery-thumbnail.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbnail img { aspect-ratio: 1.55; display: block; object-fit: cover; width: 100%; }
.gallery-thumbnail span { display: block; font-size: 0.72rem; overflow: hidden; padding: 8px 9px; text-overflow: ellipsis; white-space: nowrap; }
.gallery-dialog { background: #090d14; border: 1px solid var(--line); border-radius: 0; color: var(--text); height: 100dvh; max-height: 100dvh; max-width: 100vw; padding: 0; width: min(100vw, 1540px); }
.gallery-dialog::backdrop { background: rgb(0 0 0 / 0.86); }
.gallery-dialog-content { align-items: center; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto; height: 100%; padding: clamp(16px, 3vw, 38px); position: relative; }
.gallery-dialog img { grid-column: 2; height: 100%; max-height: calc(100dvh - 136px); object-fit: contain; width: 100%; }
.gallery-dialog-close { position: absolute; right: clamp(16px, 3vw, 38px); top: clamp(16px, 3vw, 30px); z-index: 1; }
.gallery-dialog-previous { grid-column: 1; }
.gallery-dialog-next { grid-column: 3; }
.gallery-dialog-caption { display: grid; gap: 3px; grid-column: 1 / -1; padding-top: 14px; text-align: center; }
.gallery-dialog-caption span { color: var(--muted); font-size: 0.9rem; }
.support { padding-top: 0; }
.support-card { align-items: center; background: linear-gradient(135deg, rgb(139 211 178 / 0.14), rgb(22 33 49 / 0.96)); border: 1px solid #3b665a; border-radius: var(--radius-md); display: flex; gap: var(--space-4); justify-content: space-between; padding: clamp(24px, 4vw, 42px); }
.support-card h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 10px; }
.support-card p:last-child { color: var(--muted-strong); margin-bottom: 0; max-width: 610px; }
.support-button { background: #efb971; color: #30200d; flex: 0 0 auto; white-space: nowrap; }
.support-button:hover { background: #f4c98a; }
.install { padding-bottom: 80px; }
.install-card { align-items: center; background: linear-gradient(135deg, #17352d, #112d28 56%, #12283a); border: 1px solid #3b665a; border-radius: var(--radius-lg); display: flex; gap: var(--space-4); justify-content: space-between; padding: clamp(28px, 5vw, 58px); }
.install-card h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); max-width: 620px; }
.install-card p:last-child { color: #d0e8de; margin: 0; }
.install-guide { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-4) 0; }
.install-guide div { padding-right: var(--space-2); }
.install-guide span { color: var(--accent); font-size: 0.82rem; font-weight: 800; }
.install-guide h3 { font-size: 1.05rem; margin: 8px 0; }
.install-guide p, .unsigned-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }
.unsigned-note { border-left: 3px solid #d6b976; padding-left: var(--space-2); }
.unsigned-note strong { color: #ead59d; }
.site-footer { border-top: 1px solid var(--line); min-height: 105px; }
.site-footer p { color: var(--muted); font-size: 0.85rem; margin: 0 auto 0 0; }

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; padding: 16px 0; }
  .language-switcher { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 68px; }
  .hero-copy { max-width: 650px; }
  .hero-product { margin: 8px auto 0; max-width: 860px; width: 100%; }
  .feature-grid, .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-thumbnails { grid-auto-columns: minmax(118px, 20vw); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; padding-bottom: 4px; }
  .install-card, .support-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 580px) {
  .site-header, .site-footer, .hero, .section { width: min(calc(100% - 32px), var(--content)); }
  .site-header { min-height: 72px; gap: 8px 14px; }
  .site-header nav { order: 3; width: 100%; }
  nav { flex-wrap: wrap; gap: 10px 14px; }
  .nav-support { padding: 3px 8px; }
  nav { gap: 14px; }
  nav a { font-size: 0.78rem; }
  .hero { padding-bottom: 64px; }
  h1 { font-size: clamp(2.85rem, 13.5vw, 4.2rem); line-height: 0.96; }
  .hero .button { min-height: 56px; padding-inline: 22px; }
  .hero-product { margin-top: 16px; }
  .hero-banner { border-radius: 0; }
  .hero-banner:hover { transform: translateY(-3px); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border-bottom: 1px solid var(--line); border-right: 0; }
  .trust-strip div:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
  .feature-grid, .screenshot-grid, .install-guide { grid-template-columns: 1fr; }
  .feature-card { min-height: unset; }
  .gallery-image-button img { height: min(72vw, 420px); }
  .gallery-controls { padding: 13px; }
  .gallery-thumbnail { min-width: 118px; }
  .gallery-dialog-content { gap: 8px; grid-template-columns: 38px minmax(0, 1fr) 38px; padding: 12px; }
  .gallery-dialog-arrow, .gallery-dialog-close { height: 34px; width: 34px; }
  .gallery-dialog img { max-height: calc(100dvh - 122px); }
  .gallery-dialog-close { right: 12px; top: 12px; }
  .support-button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
  .site-footer p { margin: 0; }
}
