/* Reactify marketing site — shared styles.
   Colors/typography lifted straight from the iOS app's design system
   (IOS/VideoReactionDual/VideoReactionDual/Support/Theme.swift) so the
   website reads as the same product as the app. */

:root {
  --bg: #08080f;
  --surface: #14141f;
  --surface-elevated: #1b1b2b;
  --stroke: #2a2a3d;
  --text-primary: #ffffff;
  --text-secondary: #8c8ca3;
  --text-tertiary: #565670;
  --brand-pink: #f25cc1;
  --brand-purple: #8b5cf6;
  --accent-purple: #7c4dff;
  --record-red: #ff3b30;
  --brand-gradient: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  --max-width: 1080px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background glow (matches app's dark neon look) ---------- */

.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(242, 92, 193, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(139, 92, 246, 0.16), transparent 60%),
    var(--bg);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 8, 15, 0.72);
  border-bottom: 1px solid var(--stroke);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

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

.site-nav a.active {
  color: var(--text-primary);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

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

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

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-pink);
  background: rgba(242, 92, 193, 0.12);
  border: 1px solid rgba(242, 92, 193, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.35);
}

h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 18px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
  margin: 0;
}

/* ---------- Feature grid ---------- */

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

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--brand-purple);
}

.card .icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 30px 24px 26px;
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Privacy strip ---------- */

.privacy-strip {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.privacy-strip .icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(242, 92, 193, 0.14);
  color: var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-strip .icon svg {
  width: 28px;
  height: 28px;
}

.privacy-strip h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.privacy-strip p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Contact / CTA ---------- */

.cta-band {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
}

.cta-band h2 {
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* ---------- Footer ---------- */

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

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

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

.footer-links a {
  color: var(--text-tertiary);
  font-size: 13.5px;
  text-decoration: none;
}

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

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--stroke);
}

.legal-hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  margin-bottom: 10px;
}

.legal-hero .updated {
  color: var(--text-tertiary);
  font-size: 14px;
}

.legal-body {
  padding: 48px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin: 0 0 14px;
}

.legal-body ul {
  color: var(--text-secondary);
  font-size: 15.5px;
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body strong {
  color: var(--text-primary);
}

.legal-body a {
  color: var(--brand-pink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 92, 193, 0.4);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--brand-purple);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 14px;
}

.callout p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .privacy-strip {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .site-nav a.hide-mobile {
    display: none;
  }

  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
