:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --bg-card: #161a23;
  --border: #232936;
  --text: #e7ecf3;
  --text-muted: #97a1b3;
  --accent: #6ea8ff;
  --accent-strong: #4a8bff;
  --success: #4ad17a;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
  --max-w: 1080px;
  --max-w-narrow: 760px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbfc;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --border: #e6e8ee;
    --text: #0f1116;
    --text-muted: #5b6574;
    --accent: #2f6dff;
    --accent-strong: #1f5cf0;
    --shadow-soft: 0 8px 28px rgba(15, 17, 22, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-w-narrow); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav a:hover { color: var(--text); }

.nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.15s ease;
}
.nav .nav-cta:hover {
  background: var(--accent-strong);
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elev);
}

.lang-switch button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch button.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 800px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 64px; }

.hero-inner { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.hero-hint {
  margin: 12px 0 56px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:disabled { cursor: not-allowed; opacity: 0.85; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  color: var(--accent);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.mac-frame {
  width: min(560px, 90%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.mac-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.menubar-icon {
  margin-left: auto;
  color: var(--text-muted);
  display: inline-flex;
}

.mac-body {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 60%
  );
}

.signal-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-rings span {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 50%;
  width: 80px; height: 80px;
  opacity: 0.4;
}
.signal-rings span:nth-child(2) { width: 140px; height: 140px; opacity: 0.25; }
.signal-rings span:nth-child(3) { width: 200px; height: 200px; opacity: 0.15; }

.lock-icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(74, 139, 255, 0.35);
}

/* ---------- Section scaffolding ---------- */
section { padding: 72px 0; }

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head {
  margin-bottom: 32px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- How it works ---------- */
.how {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.step h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Privacy ---------- */
.privacy {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 0.95rem;
}

.privacy-list li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 18%, transparent);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234ad17a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Downloads ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.download-card.is-available {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.download-card.is-available:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.download-card.is-soon { opacity: 0.78; }

.download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.download-platform {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.download-card.is-available .download-badge {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
  color: var(--success);
}

.download-note-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.download-sub-text {
  margin: -4px 0 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.download-button {
  align-self: stretch;
  justify-content: center;
  text-align: center;
  margin-top: auto;
}

.download-help {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.download-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-muted);
}

.download-note > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.download-note > summary::-webkit-details-marker { display: none; }
.download-note > summary::after {
  content: "+";
  color: var(--text-muted);
  font-size: 1.2rem;
}
.download-note[open] > summary::after { content: "−"; }

.download-note p { margin: 12px 0 0; }

.download-note pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0 0;
  overflow-x: auto;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
}

.sha-line {
  margin-top: 12px;
  font-size: 0.85rem;
  word-break: break-all;
}
.sha-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-tagline,
.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.footer-copy { font-size: 0.85rem; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { align-items: flex-start; text-align: left; }
}

@media (max-width: 540px) {
  .hero { padding: 64px 0 40px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover,
  .btn-primary:hover:not(:disabled),
  .download-card.is-available:hover { transform: none; }
}
