:root {
  --bg: #0e0e0e;
  --bg-elevated: #141414;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --fg: #ffffff;
  --fg-muted: rgba(255, 255, 255, 0.7);
  --fg-subtle: rgba(255, 255, 255, 0.35);
  --accent: #0af5a3;
  --accent-fg: #0e0e0e;
  --pin: #f50a51;
  --glow: rgba(10, 245, 163, 0.28);
  --radius-tile: 16px;
  --radius-card: 28px;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  backdrop-filter: blur(16px);
  background: rgba(14, 14, 14, 0.72);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand span {
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: none;
  gap: 22px;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 0 0 0 var(--glow);
}

.nav-cta:hover,
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  background: var(--surface-strong);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 920px);
  padding: 28px 20px 64px;
  display: grid;
  align-items: end;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(10, 245, 163, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(245, 10, 81, 0.12), transparent 55%),
    linear-gradient(180deg, #121212 0%, var(--bg) 55%, #0a0a0a 100%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: -20% 10% auto;
  height: 55%;
  background: radial-gradient(circle, rgba(10, 245, 163, 0.22), transparent 65%);
  filter: blur(40px);
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--fg);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand-mark img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 18px var(--glow));
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--fg-muted);
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.45;
  font-weight: 500;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--fg-subtle);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  animation: float-in 1s ease both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.phone {
  position: relative;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(10, 245, 163, 0.12);
  transform: rotate(-4deg);
  animation: phone-tilt 8s ease-in-out infinite;
}

@keyframes phone-tilt {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-1.5deg) translateY(-8px);
  }
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  min-height: 520px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 600;
}

.phone-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.phone-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
}

.chip.is-on {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}

.feed-card {
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(225deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.07)),
    var(--surface);
  border: 1px solid var(--line);
}

.feed-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  letter-spacing: -0.03em;
}

.feed-card span {
  color: var(--fg-muted);
  font-size: 12px;
}

.feed-card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 245, 163, 0.16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 20px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 800;
  max-width: 16ch;
}

.section-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--fg-muted);
  font-size: 17px;
  font-weight: 500;
}

.audience-grid {
  display: grid;
  gap: 0;
  margin-top: 36px;
}

.audience {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.audience:last-child {
  border-bottom: 1px solid var(--line);
}

.audience h3 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.audience ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.audience li {
  color: var(--fg-muted);
  padding-left: 18px;
  position: relative;
  font-weight: 500;
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 17px;
  font-weight: 500;
}

.download {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 36px 28px;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(10, 245, 163, 0.2), transparent 55%),
    linear-gradient(160deg, #171717, #101010);
  border: 1px solid var(--line);
}

.download h2 {
  max-width: 14ch;
}

.install {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.install details {
  border-radius: var(--radius-tile);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  padding: 4px 16px;
}

.install summary {
  cursor: pointer;
  list-style: none;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.install summary::-webkit-details-marker {
  display: none;
}

.install summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 500;
}

.install details[open] summary::after {
  content: "–";
}

.install ol {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--fg-muted);
  display: grid;
  gap: 8px;
}

.install li {
  padding-left: 4px;
}

.cta-final {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 96px;
}

.cta-final h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-final .section-lead {
  margin: 0 auto 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px 48px;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.site-footer.compact {
  padding-top: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--fg-subtle);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-docs a {
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 500;
}

.company {
  color: var(--fg-muted);
  font-size: 13px;
  display: grid;
  gap: 4px;
}

/* Legal / docs */
.doc-page .site-nav {
  padding-inline: clamp(16px, 4vw, 32px);
}

.doc {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.doc-kicker {
  margin: 0 0 18px;
}

.doc-kicker a {
  color: var(--fg-muted);
  font-size: 14px;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.doc-meta {
  color: var(--fg-subtle);
  font-size: 13px;
  margin: 0 0 28px;
}

.doc-body h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.doc-body h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  color: var(--fg);
}

.doc-body p {
  margin: 0 0 12px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.doc-body .doc-note,
.doc-body .doc-subtitle {
  color: var(--fg-subtle);
  font-size: 13px;
}

.doc-body .doc-item {
  padding-left: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 840px) {
  .nav-links {
    display: flex;
  }

  .hero {
    align-items: center;
    padding-top: 48px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .audience-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .audience {
    border-top: 0;
    border-bottom: 0;
    padding-top: 8px;
    border-left: 1px solid var(--line);
    padding-left: 28px;
  }

  .audience:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .download {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
    padding: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
