:root {
  --bg: #0f1014;
  --surface: #171a21;
  --raised: #22262f;
  --border: #2a2e38;
  --text: #f2f2f0;
  --text-muted: #9c9c98;
  --text-faint: #6b6b67;
  --accent: #b8f01e;
  --on-accent: #0f1014;
  --danger: #ff7a7a;
  --grid: rgba(184, 240, 30, 0.06);
  --glow: rgba(184, 240, 30, 0.14);
  --radius: 14px;
  --radius-pill: 999px;
  --font: "Momo Trust Display", system-ui, sans-serif;
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
strong,
.btn {
  font-weight: 400;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.bg-glow {
  position: fixed;
  top: 10%;
  right: 5%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow) 0%, transparent 65%);
  filter: blur(2px);
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.header-cta:hover {
  text-decoration: none;
  border-color: var(--text-muted);
  background: var(--surface);
}

.header-cta--primary {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}

.header-cta--primary:hover {
  border-color: var(--accent);
  background: var(--accent);
  filter: brightness(1.05);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 4rem;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: calc(100vh - 120px);
  }
}

.hero__content {
  max-width: 540px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0.08em;
  height: 0.38em;
  border: 2px solid var(--accent);
  border-radius: 50% 45% 52% 48% / 60% 55% 45% 50%;
  opacity: 0.85;
  transform: rotate(-1deg);
  pointer-events: none;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.lead-em {
  color: var(--text);
  font-weight: 400;
}

.sf2-callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 28rem;
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.sf2-callout__tag {
  flex-shrink: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 24px rgba(184, 240, 30, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(184, 240, 30, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.stat span {
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 1rem 0;
}

.device-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg);
  border: none;
  pointer-events: none;
  vertical-align: middle;
}

video.device-shot {
  -webkit-playsinline: true;
}

.device--iphone .device-shot {
  border-radius: 36px;
  object-fit: contain;
  object-position: top center;
  background: var(--bg);
}

.device--ipad .device-shot {
  border-radius: 14px;
}

.devices {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 480px;
}

.device {
  position: absolute;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55));
}

.device-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(155deg, #3d4048 0%, #1c1e24 45%, #12141a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.device--iphone {
  width: 204px;
  height: 448px;
  left: 4%;
  top: 50%;
  transform: translateY(-50%) rotate(-7deg);
  z-index: 2;
}

.device--iphone .device-shell {
  padding: 10px 8px 12px;
  border-radius: 46px;
}

.device--iphone .device-shell::before,
.device--iphone .device-shell::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, #2a2c32, #454850, #2a2c32);
  border-radius: 2px;
  z-index: 4;
}

.device--iphone .device-shell::before {
  left: -2px;
  top: 118px;
  width: 3px;
  height: 28px;
  box-shadow:
    0 44px 0 0 #3a3d44,
    0 78px 0 0 #3a3d44;
}

.device--iphone .device-shell::after {
  right: -2px;
  top: 148px;
  width: 3px;
  height: 56px;
}

.device-screen {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border-radius: 38px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.device--iphone .device-screen {
  border-radius: 36px;
}

.device-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 3;
  width: 96px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(242, 242, 240, 0.35);
}

.device--ipad {
  width: 368px;
  height: 268px;
  right: -2%;
  top: 50%;
  transform: translateY(-46%) rotate(5deg);
  z-index: 1;
}

.device--ipad .device-shell {
  padding: 14px;
  border-radius: 28px;
}

.device--ipad .device-shell::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #2a2c32;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.device--ipad .device-screen {
  border-radius: 14px;
}

.device--ipad .device-home-bar {
  display: none;
}

@media (max-width: 959px) {
  .devices {
    max-width: 360px;
    height: 400px;
    margin: 0 auto;
  }

  .device--iphone {
    width: 168px;
    height: 368px;
    left: -2%;
  }

  .device--iphone .device-shell {
    border-radius: 38px;
    padding: 8px 7px 10px;
  }

  .device--iphone .device-screen {
    border-radius: 30px;
  }

  .device--ipad {
    width: 248px;
    height: 182px;
    right: -6px;
  }

  .device--ipad .device-shell {
    padding: 10px;
    border-radius: 22px;
  }
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Legal pages */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

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

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

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

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Scroll / load entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translate3d(0, 1.35rem, 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .reveal--from-right {
    transform: translate3d(2.5rem, 0, 0);
  }

  .reveal--from-left {
    transform: translate3d(-2.5rem, 0, 0);
  }

  .reveal--scale {
    transform: translate3d(0, 0, 0) scale(0.94);
  }

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}