/* Design tokens */
:root {
  --color-bg: #050816;
  --color-surface: #0b1022;
  --color-surface-alt: #0f162b;
  --color-accent: #3b82f6;
  --color-accent-soft: rgba(59, 130, 246, 0.16);
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border-subtle: rgba(148, 163, 184, 0.4);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.6);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.45);
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #f9fafb;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 50;
}

.skip-link:focus {
  left: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.75), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, #38bdf8, #3b82f6 40%, #a855f7 100%);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-list a {
  text-decoration: none;
  color: #e5e7eb;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #38bdf8, #3b82f6, #a855f7);
  transition: width 0.18s ease-out;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 4px;
}

/* Sections & layout */

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.22), transparent 50%);
}

.section--cta {
  background: linear-gradient(135deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1rem;
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--color-text-muted);
}

.helper-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Hero */

.hero {
  padding-top: 4.25rem;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5b4fc;
  margin: 0 0 0.75rem;
}

.hero-subtitle {
  margin: 0.75rem 0 1.75rem;
  color: var(--color-text-muted);
}

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

.hero-audience {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-audience li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 70%);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: 260px;
  height: 520px;
  border-radius: 30px;
  padding: 0.9rem;
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.device-header {
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  margin: 0 auto 0.9rem;
}

.device-screen {
  width: 100%;
  height: calc(100% - 1.4rem);
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen--placeholder p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.1s ease-out, box-shadow 0.1s ease-out,
    border-color 0.15s ease-out;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6, #22c1c3);
  color: #0b1022;
  box-shadow: 0 16px 45px rgba(56, 189, 248, 0.4);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.5);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.55);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.btn--outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn--outline:hover {
  border-color: #e5e7eb;
}

/* Grids & cards */

.grid {
  display: grid;
  gap: 1.6rem;
}

.grid--features {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--screenshots {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--privacy {
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.feature-card p,
.privacy-card p {
  margin: 0.4rem 0 0;
  color: var(--color-text-muted);
}

.screenshot-card {
  padding: 1rem;
}

.screenshot-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 60%);
  height: 180px;
  margin-bottom: 0.75rem;
}

.screenshot-card figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.2rem 1.4rem 1.1rem;
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 60%);
}

.step p {
  margin: 0.4rem 0 0;
  color: var(--color-text-muted);
}

/* Privacy glance */

.privacy-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* CTA band */

.cta-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 60%), #020617;
  padding: 2.5rem 0 2rem;
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.6fr);
  gap: 1.75rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
}

/* Privacy page */

.privacy-page {
  padding-top: 3.5rem;
}

.privacy-header {
  margin-bottom: 2rem;
}

.privacy-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  display: inline-block;
}

.privacy-toc {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), transparent 60%);
}

.privacy-toc h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.privacy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.privacy-toc a {
  text-decoration: none;
  color: #e5e7eb;
}

.privacy-section {
  margin: 2.5rem 0;
}

.privacy-section h2 {
  font-size: 1.2rem;
}

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

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

.privacy-callout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: rgba(6, 78, 59, 0.3);
  color: #a7f3d0;
}

/* Responsive behavior */

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .footer-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-cta-group {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    right: 1.25rem;
    top: 3.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.5);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease-out, transform 0.16s ease-out;
  }

  .site-nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .section {
    padding: 3rem 0;
  }

  .privacy-toc ul {
    columns: 1;
  }
}

