:root {
  --bg: #0f172a;
  --bg-elevated: #111c33;
  --card: #1e293b;
  --primary: #38bdf8;
  --primary-dim: rgba(56, 189, 248, 0.15);
  --secondary: #34d399;
  --secondary-dim: rgba(52, 211, 153, 0.12);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --warning: #fbbf24;
  --error: #f87171;
  --border: rgba(148, 163, 184, 0.12);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.25);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(52, 211, 153, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(56, 189, 248, 0.06), transparent 45%);
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(720px, 100% - 2rem);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand a:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.badge-beta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--warning);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.nav-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-inline a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-inline a:hover {
  color: var(--text);
  text-decoration: none;
}

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

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #22d3ee 100%);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover:not(:disabled):not(.is-disabled) {
  box-shadow: 0 12px 36px rgba(56, 189, 248, 0.45);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--primary);
  text-decoration: none;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn .icon-android {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ——— USP strip ——— */
.usp-strip {
  padding: 2.25rem 0 1rem;
}

.usp-heading {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.01em;
}

.usp-lead {
  margin: 0;
  max-width: 52rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.usp-lead strong {
  color: var(--text);
  font-weight: 600;
}

/* ——— Stock photo mosaic ——— */
.photo-strip {
  padding: 3rem 0 2rem;
}

.photo-mosaic {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .photo-mosaic {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.photo-card {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 900px) {
  .photo-card img {
    aspect-ratio: 3 / 4;
    max-height: 360px;
  }
}

.photo-card figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.photo-credits {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.photo-credits a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.photo-credits a:hover {
  color: var(--primary);
}

/* ——— Hero ——— */
.hero {
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .cta-row {
    justify-content: center;
  }

  .hero-copy .hero-badges {
    justify-content: center;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32rem;
}

@media (max-width: 900px) {
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.pill strong {
  color: var(--secondary);
  font-weight: 700;
}

/* Phone mockup stack */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.phone-frame {
  position: relative;
  width: min(280px, 78vw);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #334155 0%, #1e293b 40%, #0f172a 100%);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  vertical-align: middle;
}

.phone-glow {
  position: absolute;
  width: min(320px, 90vw);
  height: min(320px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-back {
  position: absolute;
  width: min(240px, 68vw);
  opacity: 0.45;
  transform: rotate(-8deg) translateX(-40%) translateY(8%);
  z-index: 0;
}

.phone-front {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .phone-back {
    display: none;
  }

  .hero-visual {
    min-height: 360px;
  }
}

/* ——— Sections ——— */
section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Screenshots */
.shots {
  padding-top: 2rem;
}

.shots-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0 1.5rem;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--card) transparent;
}

.shots-scroll::-webkit-scrollbar {
  height: 6px;
}

.shots-scroll::-webkit-scrollbar-thumb {
  background: var(--card);
  border-radius: 99px;
}

.shot-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: center;
}

.shot-card figure {
  margin: 0;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.shot-card figure:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.shot-card .phone-inner {
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  line-height: 0;
}

.shot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-card figcaption {
  margin-top: 1rem;
  padding: 0 0.25rem;
}

.shot-card figcaption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.shot-card figcaption span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .shots-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
  }

  .shot-card {
    flex: none;
  }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-tile {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease;
}

.feature-tile:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dim);
  color: var(--primary);
}

.feature-tile:nth-child(3n + 2) .feature-icon {
  background: var(--secondary-dim);
  color: var(--secondary);
}

.feature-tile:nth-child(3n) .feature-icon {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-tile h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-tile p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.feature-tile-highlight {
  grid-column: 1 / -1;
  max-width: 100%;
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.06) 0%, var(--card) 55%);
}

@media (min-width: 900px) {
  .feature-tile-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1.25rem;
  }
}

/* Steps */
.steps {
  background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.35) 40%, transparent);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

@media (max-width: 768px) {
  .steps-row {
    grid-template-columns: 1fr;
  }
}

.step-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--primary-dim);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Requirements */
.reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 52rem;
  margin: 0 auto;
}

.req-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.req-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}

/* FAQ */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-list summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Beta */
.beta-notice {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.beta-notice h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--warning);
}

.beta-notice p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(52, 211, 153, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin: 2rem 0 0;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--primary);
}

.sr-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
}

@media (max-width: 520px) {
  .cta-row .btn-primary {
    width: 100%;
  }
}

/* Legal / privacy page */
.legal-main {
  padding: 2rem 0 3rem;
}

.legal-doc h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.legal-doc h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  font-weight: 600;
}

.legal-doc h2:first-of-type {
  margin-top: 1.5rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.legal-lead {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-block {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.todo-block {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
}

.todo-inline {
  background: rgba(56, 189, 248, 0.12);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  color: var(--primary);
  font-weight: 500;
}
