/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #A78BFA;
  --accent-pink: #EC4899;
  --accent-pink-dark: #DB2777;
  --bg: #0F0F14;
  --bg-card: #1A1A24;
  --bg-card-hover: #22222E;
  --text: #F5F5F7;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: #2D2D3A;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-pink);
}

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.header-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text);
}

/* ── App Preview ── */
.app-preview {
  text-align: center;
  padding: 0 24px 80px;
  position: relative;
}

.phone-mockup {
  max-width: 300px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--bg-card), #12121A);
  border-radius: 40px;
  border: 2px solid var(--border);
  padding: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(124, 58, 237, 0.1);
}

.phone-screen {
  background: linear-gradient(180deg, #1E1E2E, #14141E);
  border-radius: 28px;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
}

.phone-screen .mock-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.phone-screen .mock-icon svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.phone-screen .mock-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.phone-screen .mock-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.phone-screen .mock-cards {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.phone-screen .mock-card {
  flex: 1;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.phone-screen .mock-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(124, 58, 237, 0.2));
}

.phone-screen .mock-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(124, 58, 237, 0.2));
}

.phone-screen .mock-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink-dark));
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: auto;
}

/* ── Features ── */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.features-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-icon.purple { background: rgba(124, 58, 237, 0.15); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: 60px 24px 80px;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
}

/* ── Legal Pages ── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--primary-light);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-nav {
    gap: 16px;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .hero p {
    font-size: 1.05rem;
  }

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

  .phone-mockup {
    max-width: 260px;
  }

  .features-title {
    font-size: 1.6rem;
  }

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