:root {
  --bg: #0a0e12;
  --bg-elevated: #121820;
  --bg-card: #161d26;
  --bg-card-hover: #1c2530;
  --text: #eef2f6;
  --text-muted: #8b9aab;
  --text-subtle: #5c6d7e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #3d9eb8;
  --accent-soft: rgba(61, 158, 184, 0.15);
  --accent-glow: rgba(61, 158, 184, 0.35);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: system-ui, -apple-system, "SF Pro Display", "Segoe UI", sans-serif;
  --header-h: 64px;
  --wrap: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #6ec4da;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.narrow {
  width: min(680px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #000;
  z-index: 200;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-icon {
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(61, 158, 184, 0.25);
}

.nav-cta:hover {
  background: rgba(61, 158, 184, 0.25);
  color: #8ed4e8 !important;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(61, 158, 184, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(236, 72, 153, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59, 130, 246, 0.08), transparent 60%);
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #6ec4da 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: linear-gradient(135deg, #3d9eb8, #2d7a94);
  color: #fff;
  box-shadow: 0 8px 24px rgba(61, 158, 184, 0.35);
}

.button-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.button-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-card);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: var(--bg-card-hover);
}

.fine-print {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin: 0;
  max-width: 44ch;
}

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  width: min(320px, 100%);
  background: #1a1f28;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(61, 158, 184, 0.12);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone-wrap:hover .phone {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
  width: 96px;
  height: 26px;
  background: #0a0e12;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #0f1419;
  border-radius: 30px;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 8px 20px 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.phone-content {
  flex: 1;
  padding: 0 14px 10px;
  overflow: hidden;
}

.phone-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.phone-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d9eb8, #2a7085);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.phone-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.recent-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin: 0 0 8px;
}

.recent-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.recent-pills::-webkit-scrollbar {
  display: none;
}

.recent-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.recent-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cat-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cat-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--tile-glow, rgba(255,255,255,0.06)) 0%, transparent 55%);
  pointer-events: none;
}

.cat-tile-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: var(--tile-color, #3d9eb8);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tile-color, #3d9eb8) 40%, transparent);
}

.cat-tile-name {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
}

.cat-tile-tag {
  font-size: 0.52rem;
  color: var(--text-subtle);
  line-height: 1.2;
  position: relative;
}

.phone-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--border);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.tab-item.active {
  color: var(--accent);
}

.tab-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.tab-item.active .tab-icon {
  background: var(--accent-soft);
}

.phone-quicklog {
  margin: 0 14px 8px;
  padding: 7px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 52ch;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

/* Highlight rows */
.highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.highlight-row.reverse {
  direction: rtl;
}

.highlight-row.reverse > * {
  direction: ltr;
}

.highlight-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.highlight-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--highlight-glow, rgba(61,158,184,0.12)), transparent 50%);
  pointer-events: none;
}

.highlight-copy h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.highlight-copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.highlight-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Category showcase grid (full width) */
.categories-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.showcase-tile {
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}

.showcase-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.showcase-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin: 0 auto 0.65rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--tile-color, var(--accent));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--tile-color, var(--accent)) 35%, transparent);
}

.showcase-name {
  font-size: 0.82rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Privacy band */
.privacy-band {
  background: linear-gradient(135deg, rgba(61, 158, 184, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.privacy-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
}

.privacy-band p {
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 52ch;
}

.privacy-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-bottom: 1.5rem;
}

.privacy-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.privacy-icon-item span:first-child {
  font-size: 1.5rem;
}

/* Platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.platform-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Prose */
.prose h1 {
  font-family: var(--font-display);
  margin-top: 0;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

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

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

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* Mini UI mocks inside highlight visuals */
.mini-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.mini-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.mini-card-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mini-card-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.mini-row {
  display: flex;
  gap: 8px;
}

.mini-row .mini-card {
  flex: 1;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-item {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .highlight-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .highlight-row.reverse {
    direction: ltr;
  }

  .phone-wrap {
    order: -1;
  }

  .phone {
    transform: none;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-band {
    padding: 1.75rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone,
  .feature-card,
  .showcase-tile {
    transition: none;
  }
}
