/* ---------- Tokens (mirror the app design system) ---------- */
:root {
  --bg: #0d0e0d;
  --surface: #161817;
  --surface-2: #1d201f;
  --border: #262a28;
  --border-strong: #363b39;

  --text: #f0f1ef;
  --text-muted: #8a918c;
  --text-subtle: #5a615c;

  --primary: #ede8df;
  --primary-hover: #f5f1e8;
  --primary-text: #0d0e0d;

  --accent: #3ba776;
  --accent-hover: #46b884;
  --accent-muted: #2a3d34;
  --accent-text: #7dd6a8;

  --reject: #c95757;
  --reject-muted: #3d2a2a;
  --warn: #d4a056;

  --radius-card: 12px;
  --radius-btn: 10px;
  --radius-pill: 999px;

  --max: 1120px;
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 24px;
  --gap-5: 32px;
  --gap-6: 48px;
  --gap-7: 72px;
  --gap-8: 112px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(1100px 600px at 50% -10%, rgba(59,167,118,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(237,232,223,0.04), transparent 60%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--primary); color: var(--primary-text);
  padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 99; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(13,14,13,0.65);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
}
.nav__brand img { border-radius: 8px; }
.nav__name { font-size: 16px; }
.nav__links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--text-muted);
}
.nav__links a { transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--primary);
  color: var(--primary-text) !important;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  font-weight: 500;
}
.nav__cta:hover { background: var(--primary-hover); }
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(59,167,118,0.08);
  border: 1px solid rgba(59,167,118,0.22);
  color: var(--accent-text);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero__badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59,167,118,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.hero__mark {
  margin: 28px auto 18px;
  border-radius: 26px;
  filter: drop-shadow(0 22px 40px rgba(59,167,118,0.18));
}

.hero__title {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 18ch;
}
.accent {
  background: linear-gradient(180deg, #7dd6a8 0%, #3ba776 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-muted);
}

.hero__cta {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px;
  margin-top: 36px;
}
.hero__tiny {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.hero__intel {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.hero__intel:hover {
  color: var(--accent-text);
  text-decoration-color: var(--accent);
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.install-note__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--text);
  opacity: 0.85;
}
.install-note__body strong { color: var(--text); font-weight: 600; }
.install-note__body em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
}
.install-note__body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: rgba(59,167,118,0.4);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: text-decoration-color .15s ease;
}
.install-note__body a:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn span {
  display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1;
}
.btn span small { font-size: 10px; color: rgba(13,14,13,0.55); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.btn span strong { font-size: 16px; font-weight: 600; }

.btn--primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px -16px rgba(237,232,223,0.55);
}
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); }

/* ---------- App screenshot frame ---------- */
.shot {
  margin: 56px auto 0;
  max-width: 920px;
  padding: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow:
    0 40px 70px -40px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2000 / 1262;
  object-fit: cover;
  border-radius: 13px;
}
.shot--hero {
  max-width: 880px;
  box-shadow:
    0 40px 70px -40px rgba(0,0,0,0.65),
    0 0 0 1px rgba(255,255,255,0.02) inset,
    0 0 60px -25px rgba(59,167,118,0.18);
}

/* Showcase section */
.showcase {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}

/* ---------- Numbers ---------- */
.numbers {
  max-width: var(--max);
  margin: var(--gap-7) auto 0;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.num { text-align: left; }
.num strong {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.num strong span {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 2px;
  font-weight: 500;
}
.num small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section heads ---------- */
.section__head {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto var(--gap-6);
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 16px;
}
.section__head h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.1;
}
.section__head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Features grid ---------- */
.features {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.card__icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(59,167,118,0.10);
  color: var(--accent-text);
  border: 1px solid rgba(59,167,118,0.18);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Workflow ---------- */
.workflow {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--surface) 0%, #131514 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-text);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.step kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0a0b0a;
  border: 1px solid var(--border-strong);
  color: var(--text);
  margin: 0 1px;
  vertical-align: 1px;
}

/* ---------- Shortcuts ---------- */
.shortcuts {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}
.keys {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.key-row:last-child { border-bottom: none; }
.keys__keys { display: inline-flex; gap: 6px; }
.keys__keys kbd {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, #1f2421 0%, #131514 100%);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 4px 8px;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,0.3);
}

/* ---------- Who ---------- */
.who {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: var(--max);
  margin: var(--gap-8) auto 0;
  padding: 0 24px;
}
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details:last-child { border-bottom: none; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: background .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .2s ease, border-color .2s ease;
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.faq summary:hover { background: var(--surface-2); }
.faq summary:hover::after { border-color: var(--accent-text); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.faq details > p {
  padding: 0 24px 14px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.faq details > p:last-child { padding-bottom: 20px; }
.faq details > p strong { color: var(--text); font-weight: 600; }
.faq details > p em { color: var(--text); font-style: normal; font-family: var(--mono); font-size: 13px; }

.faq__steps {
  list-style: decimal;
  padding: 0 24px 14px 48px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq__steps li { padding-left: 4px; margin-bottom: 4px; }
.faq__steps strong { color: var(--text); font-weight: 600; }
.faq__steps em { color: var(--text); font-style: normal; font-family: var(--mono); font-size: 13px; }

.faq__code {
  margin: 0 24px 14px;
  padding: 12px 14px;
  background: #0a0b0a;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-text);
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}
.faq details > .faq__code:last-child { margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta {
  max-width: 880px;
  margin: var(--gap-8) auto var(--gap-7);
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(59,167,118,0.18), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, #131514 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.1;
}
.cta p {
  margin: 14px auto 28px;
  max-width: 50ch;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--border);
  margin-top: var(--gap-6);
}
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.foot__feedback {
  max-width: 560px;
  margin: 0 auto var(--gap-6);
  text-align: center;
}
.foot__h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.foot__feedback p {
  margin: 10px auto 22px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.foot__mail {
  font-size: 14px;
  padding: 10px 18px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.foot__social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.foot__social a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.foot__copy {
  color: var(--text-subtle);
  font-size: 13px;
  margin: 18px 0 0;
  text-align: center;
}
.foot__copy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.foot__copy a:hover {
  color: var(--accent-text);
  text-decoration-color: var(--accent);
}

@media (max-width: 540px) {
  .foot__row { flex-direction: column; align-items: center; }
  .foot__social a span { display: none; }
  .foot__social a { padding: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .preview { transform: none; }
}
