:root {
  color-scheme: light dark;
  --bg: #f3f4f1;
  --surface: #ffffff;
  --surface-soft: #e9eeec;
  --ink: #15191d;
  --muted: #4f5a60;
  --line: #cbd2cf;
  --orange: #c65f23;
  --orange-bright: #e27631;
  --teal: #08736f;
  --teal-ink: #075956;
  --focus: #a94b18;
  --hero-shade: rgba(9, 16, 22, 0.74);
  --shadow: rgba(17, 25, 29, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131923;
  --surface: #1d2631;
  --surface-soft: #263342;
  --ink: #f4f6f4;
  --muted: #b9c3c8;
  --line: #41505d;
  --orange: #f09252;
  --orange-bright: #f09252;
  --teal: #0b6b67;
  --teal-ink: #8cded7;
  --focus: #f4ad7d;
  --hero-shade: rgba(7, 12, 18, 0.68);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

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

a {
  color: var(--teal-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  transform: translateY(-180%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header-inner,
.home-band-inner,
.preview-inner,
.site-footer,
.site-main,
.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
  font-size: 0.9rem;
  font-weight: 740;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.theme-switch {
  display: none;
}

.js .theme-switch {
  display: inline-flex;
  min-height: 40px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.theme-switch button {
  display: inline-flex;
  min-width: 44px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 5px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
}

.theme-switch button:last-child {
  border-right: 0;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--orange);
}

.theme-switch button span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

.language-menu {
  position: relative;
  font-size: 0.86rem;
  font-weight: 750;
}

.language-menu summary {
  display: inline-flex;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--teal-ink);
}

.language-menu summary::-webkit-details-marker,
.language-menu summary::marker {
  display: none;
  content: "";
}

.language-menu summary::after {
  content: "v";
  margin-left: 7px;
  color: var(--muted);
  font-size: 0.7rem;
}

.language-menu[open] summary::after {
  content: "^";
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  min-width: 184px;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: var(--surface);
  box-shadow: 0 14px 28px var(--shadow);
}

.language-options a {
  border-radius: 4px;
  padding: 7px 8px;
  color: var(--muted);
  text-decoration: none;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--ink);
}

.language-options a[aria-current="page"] {
  font-weight: 900;
}

.hero {
  position: relative;
  display: flex;
  height: min(650px, calc(100svh - 96px));
  min-height: 510px;
  max-height: 650px;
  align-items: center;
  overflow: hidden;
  background: #101823;
  color: #ffffff;
}

.hero-media,
.hero-shade,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 34%;
}

.hero-shade {
  background: var(--hero-shade);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.eyebrow,
.status {
  display: block;
  width: fit-content;
  border-left: 4px solid var(--orange-bright);
  padding-left: 10px;
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #e9f4f2;
}

.hero h1 {
  margin: 16px 0 8px;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
}

.wordmark-accent {
  color: #f08a48;
}

.tagline {
  margin: 0;
  font-size: 28px;
  font-weight: 820;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: #e2e9eb;
  font-size: 1.06rem;
}

.hero-actions,
.link-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 13px;
}

.hero-actions {
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 9px 15px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 820;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.06);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.94);
  color: #075956;
}

.home-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 34px 0 38px;
}

.home-band-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.home-band h2,
.preview-band h2,
.legal-section h2 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  letter-spacing: 0;
}

.home-band p,
.preview-intro p {
  margin: 0 0 8px;
  color: var(--muted);
}

.preview-band {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 46px 0 54px;
}

.preview-intro {
  max-width: 680px;
  margin-bottom: 24px;
}

.preview-intro .eyebrow {
  margin-bottom: 12px;
  color: var(--teal-ink);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.screenshot-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.device-frame {
  width: min(100%, 280px);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 10px 24px var(--shadow);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.screenshot-item figcaption {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
}

.theme-image.theme-image-dark {
  display: none;
}

html[data-theme="dark"] .theme-image-light {
  display: none;
}

html[data-theme="dark"] .theme-image-dark {
  display: block;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 46px 0 40px;
}

.page-shell {
  max-width: 790px;
  overflow-wrap: anywhere;
}

.status {
  color: var(--teal-ink);
}

.page-title {
  margin: 14px 0 14px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero p + p {
  margin-top: 0.75rem;
}

.legal-content,
.support-content {
  max-width: 790px;
  padding-top: 14px;
  padding-bottom: 56px;
  overflow-wrap: anywhere;
}

.legal-section,
.support-section {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 20px;
}

.legal-section p,
.support-section p,
.support-section ul {
  margin: 0;
}

.legal-section p + p,
.support-section p + p,
.support-section p + ul {
  margin-top: 0.8rem;
}

.support-list {
  padding-left: 1.25rem;
}

.support-list li + li {
  margin-top: 0.55rem;
}

.support-notice {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
}

.notice {
  border-left: 4px solid var(--orange);
  margin: 24px 0 0;
  padding: 9px 0 9px 14px;
  color: var(--muted);
  font-weight: 700;
}

.support-actions {
  padding-top: 28px;
}

.link-row .button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--teal-ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  padding-bottom: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 10px;
  font-weight: 740;
}

.site-footer p {
  margin: 4px 0 0;
}

.copyright {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #131923;
    --surface: #1d2631;
    --surface-soft: #263342;
    --ink: #f4f6f4;
    --muted: #b9c3c8;
    --line: #41505d;
    --orange: #f09252;
    --orange-bright: #f09252;
    --teal: #0b6b67;
    --teal-ink: #8cded7;
    --focus: #f4ad7d;
    --hero-shade: rgba(7, 12, 18, 0.68);
    --shadow: rgba(0, 0, 0, 0.38);
  }

  html:not([data-theme]) .theme-image-light {
    display: none;
  }

  html:not([data-theme]) .theme-image-dark {
    display: block;
  }
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 0;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

}

@media (max-width: 680px) {
  .site-header-inner,
  .home-band-inner,
  .preview-inner,
  .site-footer,
  .site-main,
  .page-shell {
    width: min(100% - 24px, 1100px);
  }

  .site-header-inner {
    gap: 10px 12px;
  }

  .site-nav {
    gap: 5px 13px;
    font-size: 0.84rem;
  }

  .hero {
    height: min(620px, calc(100svh - 146px));
    min-height: 480px;
  }

  .hero-copy {
    width: min(100% - 24px, 1100px);
    padding: 30px 0;
  }

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

  .tagline {
    font-size: 23px;
  }

  .intro {
    font-size: 0.98rem;
  }

  .home-band {
    padding: 28px 0 32px;
  }

  .home-band-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .preview-band {
    padding: 36px 0 42px;
  }

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

  .screenshot-item {
    padding: 14px;
  }

  .device-frame {
    width: min(100%, 260px);
  }

  .page-hero {
    padding: 36px 0 32px;
  }

  .page-title {
    font-size: 36px;
  }

  .link-row .button {
    flex: 1 1 100%;
  }
}

@media (max-width: 400px) {
  .theme-switch button span:not([aria-hidden="true"]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .theme-switch button {
    padding: 5px 8px;
  }

  .language-menu summary {
    padding: 6px 8px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .screenshot-item {
    gap: 10px;
    padding: 12px;
  }

  .device-frame {
    width: min(100%, 250px);
  }
}

@media (max-height: 650px) {
  .hero {
    min-height: 450px;
  }

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

  .hero-actions {
    margin-top: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
