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

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: rgba(255, 255, 255, 0.07);
  --text: #ededed;
  --muted: #666;
  --muted-hover: #999;
  --blue: #0A84FF;
  --green: #30D158;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* ── Nav ─────────────────────────────────────────── */

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

nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  /* icons from .xcassets don't have rounded corners — OS applies them */
}

.nav-links {
  display: flex;
  gap: 24px;
}

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

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

/* ── Hero ────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 38% 50%, rgba(10, 132, 255, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 45% at 65% 50%, rgba(48, 209, 88, 0.07) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted-hover);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s;
}

.app-store-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.app-store-btn svg {
  flex-shrink: 0;
}

.requirements {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.requirements span {
  margin: 0 6px;
  opacity: 0.4;
}

/* ── Features ────────────────────────────────────── */

.features {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

.feature {
  background: var(--bg);
  padding: 28px 32px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--muted-hover);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.835rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Inner page (privacy, support) ───────────────── */

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  flex: 1;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.page-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
  color: var(--muted-hover);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.prose p {
  font-size: 0.9rem;
  color: var(--muted-hover);
  line-height: 1.75;
  margin-bottom: 12px;
}

.prose a {
  color: var(--blue);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* ── Support form ────────────────────────────────── */

.support-intro {
  font-size: 0.9rem;
  color: var(--muted-hover);
  line-height: 1.75;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-hover);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(10, 132, 255, 0.5);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.85;
}

/* ── Footer ──────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
