:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #0e131b;
  --surface: #121821;
  --text: #edf2f7;
  --muted: #a7b1be;
  --quiet: #788493;
  --accent: #83c9d5;
  --accent-strong: #b5e4eb;
  --border: #27313d;
  --border-strong: #394654;
  --max-width: 1180px;
  --media-width: 1280px;
  --demo-width: 768px;
  --text-width: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 3px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
h1 { margin-bottom: 1rem; font-size: clamp(2.15rem, 4.25vw, 3.4rem); font-weight: 590; }
h2 { margin-bottom: 0.85rem; font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 560; }
h3 { margin-bottom: 0.55rem; font-size: 1.15rem; font-weight: 600; }
p:last-child { margin-bottom: 0; }
.container { width: min(calc(100% - 2.5rem), var(--max-width)); margin-inline: auto; }
.narrow { max-width: var(--text-width); }
.center { margin-inline: auto; text-align: center; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: 0.65rem 0.9rem; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(39, 49, 61, 0.8);
  background: rgba(8, 11, 16, 0.92);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); font-size: 1.05rem; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.logo-icon { width: 25px; height: 25px; border-radius: 6px; }
.site-nav { display: flex; align-items: center; gap: 1.55rem; }
.site-nav a { color: var(--muted); font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: transparent; cursor: pointer; }

.hero { padding: clamp(3.5rem, 7vw, 5.75rem) 0 2.75rem; }
.hero.compact { padding-bottom: 1.75rem; }
.eyebrow { margin-bottom: 1rem; color: var(--accent); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.13em; text-transform: uppercase; }
.hero-copy { max-width: 850px; }
.lead { max-width: 680px; margin-bottom: 1.35rem; color: #c7d0da; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0.65rem 1rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--text); color: var(--bg); font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.button:hover { background: #fff; color: #080b10; }
.button-secondary { background: transparent; color: var(--text); }
.button-secondary:hover { background: var(--surface); color: var(--text); }
.text-link { font-size: 0.92rem; font-weight: 600; }
.meta-line { margin-top: 1rem; color: var(--quiet); font-size: 0.84rem; }

.feature-image { width: min(100%, var(--media-width)); margin-top: 2rem; }
.feature-image img { width: 100%; height: auto; border-radius: 10px; }
.android-hero .container { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.9fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.android-hero .hero-copy { max-width: 680px; }
.android-hero-image { margin-top: 0; justify-self: end; width: min(100%, 640px); }
.media-caption { margin-top: 0.7rem; color: var(--quiet); font-size: 0.8rem; }

.section { padding: clamp(3rem, 6vw, 4.75rem) 0; border-top: 1px solid var(--border); }
.section-muted { background: var(--bg-soft); }
.section-heading { max-width: var(--text-width); margin-bottom: 2rem; }
.section-heading p, .muted { color: var(--muted); }
.product-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.product-feature.reverse { grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr); }
.product-feature.reverse .product-media { order: 2; }
.product-media img { width: 100%; height: auto; max-height: 480px; border-radius: 10px; object-fit: contain; }
.product-media.motion-preview { width: min(100%, var(--demo-width)); justify-self: center; }
.product-media.portrait-preview { display: grid; place-items: center; }
.product-media.portrait-preview img { width: min(100%, 360px); max-height: 540px; object-fit: contain; }
.product-copy p { color: var(--muted); }
.product-label { margin-bottom: 0.75rem; color: var(--quiet); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.11em; text-transform: uppercase; }
.product-copy .actions { margin-top: 1.45rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.principle { padding-top: 1rem; border-top: 1px solid var(--border-strong); }
.principle p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); }
.split > div > p, .feature-list p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; }
.feature-list article { padding-top: 1rem; border-top: 1px solid var(--border); }
.feature-list p { margin: 0; font-size: 0.94rem; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.clean-list strong { color: var(--text); font-weight: 600; }

.demo-stack { display: grid; gap: 1.5rem; }
.demo-stack .section-heading { margin-bottom: 0.4rem; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1rem, 2.6vw, 1.8rem); }
.demo-block { margin: 0; }
.demo-block img { width: 100%; height: auto; max-width: var(--demo-width); border-radius: 8px; object-fit: contain; }
.demo-block figcaption { margin-top: 0.55rem; color: var(--quiet); font-size: 0.78rem; line-height: 1.45; }
.video-layout { display: grid; grid-template-columns: minmax(240px, 360px) minmax(280px, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.video-frame { overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid var(--border); border-radius: 10px; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.screenshot-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 190px); gap: 0.9rem; overflow-x: auto; padding: 0.25rem 0 1rem; scroll-snap-type: x mandatory; scrollbar-color: var(--border-strong) transparent; }
.screenshot-card { margin: 0; padding: 0.45rem; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); scroll-snap-align: start; }
.screenshot-card img { width: 100%; border-radius: 5px; }
.screenshot-card figcaption { padding: 0.55rem 0.25rem 0.2rem; color: var(--quiet); font-size: 0.76rem; text-align: center; }

.link-cluster { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; margin-top: 1.25rem; }
.link-cluster a { font-size: 0.9rem; }
.download-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.download-links .button { flex: 0 0 220px; background: var(--surface); color: var(--text); }
.download-links .button:hover { background: #18212c; color: var(--text); }
.download-links + .link-cluster { margin-top: 1rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.project-links .button { flex: 0 0 240px; background: var(--surface); color: var(--text); }
.project-links .button:hover { background: #18212c; color: var(--text); }
.plugin-action-links { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 0.75rem; }
.plugin-action-links .button { width: 100%; min-height: 48px; background: var(--surface); color: var(--text); }
.plugin-action-links .button:hover { background: #18212c; color: var(--text); }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.support-options { display: grid; gap: 1rem; }
.support-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.support-card p { color: var(--muted); }
.crypto-support-card { scroll-margin-top: 88px; }
.crypto-intro { max-width: 760px; margin-bottom: 1.6rem; }
.crypto-wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.crypto-wallet { display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: 1.15rem; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft); }
.crypto-wallet h3 { margin-bottom: 0.25rem; }
.crypto-symbol { color: var(--muted); font-weight: 500; }
.support-card .crypto-network { margin-bottom: 1rem; color: var(--accent); font-size: 0.86rem; font-weight: 600; }
.crypto-address { display: block; width: 100%; min-height: 4.2rem; margin-bottom: 0.85rem; padding: 0.75rem; border: 1px solid var(--border); border-radius: 7px; color: var(--text); background: var(--bg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; user-select: all; }
.crypto-copy { width: 100%; margin-bottom: 0.75rem; cursor: pointer; }
.crypto-qr-details { margin-bottom: 0.85rem; }
.crypto-qr-details summary { display: inline-block; color: var(--accent); font-size: 0.86rem; font-weight: 600; cursor: pointer; user-select: none; }
.crypto-qr-details summary:hover { color: var(--accent-strong); }
.crypto-qr-details summary::marker,
.crypto-qr-details summary::-webkit-details-marker { display: none; }
.crypto-qr-panel { margin-top: 0.8rem; padding: 0.9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); text-align: center; }
.crypto-qr { width: min(184px, 100%); height: auto; margin: 0 auto; border-radius: 8px; background: #fff; }
.crypto-qr-panel p { margin-top: 0.7rem; color: var(--quiet); font-size: 0.78rem; }
.support-card .crypto-note { margin-top: auto; color: var(--quiet); font-size: 0.8rem; line-height: 1.45; }
.support-card .crypto-warning { margin-top: 1.25rem; color: var(--quiet); font-size: 0.82rem; }
.placeholder { display: inline-block; margin-top: 0.65rem; padding: 0.45rem 0.65rem; border: 1px dashed var(--border-strong); color: var(--quiet); font-size: 0.84rem; }

.policy-wrap { max-width: 780px; }
.policy-card { padding: clamp(1.5rem, 5vw, 3.5rem); border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.policy-card h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
.policy-card h2 { margin: 2rem 0 0.6rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.policy-card p, .policy-card li { color: var(--muted); }
.policy-card ul { padding-left: 1.2rem; }
.policy-card li + li { margin-top: 0.4rem; }
.updated { color: var(--quiet) !important; font-size: 0.88rem; }
.back-link { margin-top: 2rem; }

.site-footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; }
.footer-meta p { margin: 0; color: var(--quiet); font-size: 0.78rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 0.6rem 1.1rem; }
.footer-links a { color: var(--muted); font-size: 0.78rem; }

@media (max-width: 800px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 1.25rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 0.65rem 0; }
  .product-feature, .product-feature.reverse, .video-layout, .demo-grid, .android-hero .container { grid-template-columns: 1fr; }
  .product-feature.reverse .product-media { order: 0; }
  .android-hero-image { justify-self: start; width: min(100%, 720px); margin-top: 1.4rem; }
  .plugin-action-links { grid-template-columns: 1fr; }
  .principles, .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .crypto-wallet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 2rem), var(--max-width)); }
  .hero { padding-top: 3.25rem; }
  .feature-image { margin-top: 2rem; }
  .split, .support-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .actions .button { width: 100%; }
}

@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; }
}
