/* VPrime landing page — dark-only by design (matches the app icon and the
   product's own dark theme; this is a fixed brand identity, not a themed
   Artifact, so there's no light-mode variant to maintain). */

:root {
  --bg: #0d0710;
  --bg-elevated: #140b1e;
  --surface: #1c1128;
  --surface-hover: #241633;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.32);
  --text: #f3eefb;
  --text-muted: #a99cc0;
  --text-faint: #746688;
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --accent-deep: #4c1d95;
  --accent-contrast: #1a0b2e;
  --tick-delivered: #6b6178;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 7, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-small {
  padding: 0.6em 1.1em;
  font-size: 0.875rem;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: var(--space-2) 0 var(--space-2);
}

.hero-copy p.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-fineprint {
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

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

.hero-fineprint a:hover {
  color: var(--accent);
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.spec-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35em 0.85em;
}

/* ---------- mockup conversation ---------- */

.mockup {
  background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.bubble-row {
  display: flex;
}

.bubble-row.mine {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 0.6em 0.85em;
  border-radius: 16px;
  font-size: 0.9375rem;
  color: var(--text);
}

.bubble-row:not(.mine) .bubble {
  background: var(--surface-hover);
  border-bottom-left-radius: 4px;
}

.bubble-row.mine .bubble {
  background: linear-gradient(165deg, var(--accent-strong), var(--accent-deep));
  border-bottom-right-radius: 4px;
}

.bubble .quote {
  display: block;
  border-left: 2px solid rgba(255, 255, 255, 0.55);
  padding-left: 0.6em;
  margin-bottom: 0.4em;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.bubble .meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3em;
  margin-top: 0.3em;
  font-size: 0.6875rem;
  opacity: 0.75;
}

.ticks {
  display: inline-flex;
}

.ticks svg {
  width: 15px;
  height: 15px;
}

.ticks.read svg {
  color: #fff;
}

.ticks.delivered svg {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- section scaffolding ---------- */

section {
  padding: var(--space-6) 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-top: var(--space-2);
}

.section-head p {
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.section-head .eyebrow {
  justify-content: center;
  display: flex;
}

/* ---------- features grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

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

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

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

/* ---------- screenshots (hand-built phone mockups, not photos) ---------- */

.shot-gallery {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.5rem 0.25rem 1.5rem;
  margin: 0 -0.25rem;
}

.shot-card {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.shot-card figcaption {
  margin-top: var(--space-2);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.phone {
  width: 252px;
  height: 546px;
  background: var(--bg);
  border-radius: 34px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
  flex-shrink: 0;
}

.phone-battery {
  width: 18px;
  height: 9px;
  border: 1px solid var(--text-muted);
  border-radius: 2px;
  position: relative;
}

.phone-battery::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 4px;
  background: var(--text-muted);
  border-radius: 1px;
}

.phone-header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 10px 16px 12px;
  flex-shrink: 0;
}

.phone-header.with-back {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-header.with-back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.phone-nav {
  margin-top: auto;
  display: flex;
  border-top: 1px solid var(--border);
  padding: 8px 6px 12px;
  flex-shrink: 0;
}

.phone-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--text-faint);
}

.phone-nav-item svg {
  width: 17px;
  height: 17px;
}

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

/* screen 1: chat list */

.chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(165deg, var(--accent-strong), var(--accent-deep));
  flex-shrink: 0;
  padding: 6px;
}

.chat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.chat-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 10.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.phone-fab {
  position: absolute;
  right: 16px;
  bottom: 72px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 10px 20px -8px rgba(124, 58, 237, 0.7);
}

/* screens 2 & 3: profile */

.profile-avatar-lg {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(165deg, var(--accent-strong), var(--accent-deep));
  margin: 6px auto 10px;
  padding: 12px;
}

.profile-avatar-lg.gradient {
  background: conic-gradient(from 180deg, var(--accent), var(--accent-deep), var(--accent-strong), var(--accent));
  padding: 0;
}

.profile-name, .profile-email {
  text-align: center;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 11.5px;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 12px;
}

.profile-actions span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 2px;
  font-size: 9px;
  color: var(--text-muted);
}

.profile-actions svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.profile-card {
  margin: 0 14px;
  background: var(--surface-hover);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card > div {
  display: flex;
  flex-direction: column;
}

.profile-card .pv {
  font-size: 12.5px;
  color: var(--text);
}

.profile-card .pl {
  font-size: 9.5px;
  color: var(--text-faint);
}

.phone-save {
  margin: 14px 14px 0;
  background: var(--accent);
  color: var(--accent-contrast);
  text-align: center;
  border-radius: 999px;
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
}

/* screen 4: settings */

.settings-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  padding: 10px 16px 4px;
}

.segmented {
  margin: 0 16px 6px;
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  font-size: 10px;
}

.segmented span {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  color: var(--text-muted);
  border-radius: 999px;
}

.segmented span.active {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.settings-row {
  margin: 10px 16px 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text);
}

.settings-row svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.settings-row.danger {
  color: #e2a3a3;
}

.settings-row.danger svg {
  color: #e2a3a3;
}

.phone-version {
  margin-top: auto;
  padding-top: 14px;
  text-align: center;
  font-size: 9.5px;
  color: var(--text-faint);
}

/* ---------- security section ---------- */

.security-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

.security-copy p {
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.security-copy strong {
  color: var(--text);
}

.honesty-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.honesty-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.3em;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* ---------- install steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.2em;
}

.install-note {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-faint);
}

/* ---------- final CTA ---------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin-bottom: var(--space-3);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-brand svg {
  width: 20px;
  height: 20px;
}

.site-footer .tagline {
  color: var(--text-faint);
  font-size: 0.8125rem;
}

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

.footer-link:hover {
  color: var(--accent);
}

/* ---------- responsive ---------- */

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

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .security-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
