/* ─── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg-base:      #07071a;
  --bg-surface:   #0d0d2b;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-accent: rgba(124, 58, 237, 0.4);

  --purple-100: #ede9fe;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --indigo-400: #818cf8;

  --text-primary:   #f0eeff;
  --text-secondary: rgba(240, 238, 255, 0.6);
  --text-muted:     rgba(240, 238, 255, 0.35);

  --gradient-brand: linear-gradient(135deg, #7c3aed, #4f46e5, #6d28d9);
  --gradient-glow:  radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
  --gradient-hero:  radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 58, 237, 0.3) 0%, transparent 65%);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-purple: 0 8px 40px rgba(124, 58, 237, 0.35);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --nav-height: 68px;
  --section-pad: 96px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-400);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ─── Layout Utilities ───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

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

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(7, 7, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(124, 58, 237, 0.08);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-icon { font-size: 1.1em; }

/* ─── App Store Badge ────────────────────────────────────────────────────────── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.appstore-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-400);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title { margin-bottom: 20px; }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat .value {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Hero image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-mockup-wrap {
  position: relative;
  filter: drop-shadow(0 40px 80px rgba(124, 58, 237, 0.35));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.hero-mockup-wrap::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  animation: float 6s ease-in-out infinite;
}

.hero-mockup {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

/* ─── Features ───────────────────────────────────────────────────────────────── */
.features {
  background: var(--bg-surface);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 40px rgba(124, 58, 237, 0.12);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

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

/* ─── How It Works ───────────────────────────────────────────────────────────── */
.how-it-works { position: relative; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 44px);
  right: calc(16.67% + 44px);
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), var(--border), var(--border-accent));
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  position: relative;
}

.step-number {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
  transition: box-shadow 0.3s, transform 0.3s;
}

.step:hover .step-number {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(124, 58, 237, 0.4);
}

.step h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Team / Roles Section ───────────────────────────────────────────────────── */
.roles-section { background: var(--bg-surface); }

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

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--border-accent);
}

.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.role-badge.owner { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.role-badge.admin { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.role-badge.member { background: rgba(124, 58, 237, 0.15); color: var(--purple-400); border: 1px solid rgba(124,58,237,0.25); }

.role-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.role-card h3 { margin-bottom: 10px; }

.role-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── CTA ────────────────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.6), transparent);
}

.cta-card h2 { margin-bottom: 16px; }

.cta-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
}

.footer-logo img {
  width: 28px; height: 28px;
  border-radius: 7px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

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

/* ─── Scroll Reveal ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── Privacy Page ───────────────────────────────────────────────────────────── */
.privacy-hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  background: var(--gradient-glow);
}

.privacy-hero h1 { margin-bottom: 12px; }
.privacy-hero p { color: var(--text-secondary); }

.privacy-body {
  padding: 56px 0 96px;
}

.privacy-content {
  max-width: 780px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 1.3rem;
  margin-top: 48px;
  margin-bottom: 14px;
  color: var(--purple-400);
}

.privacy-content h2:first-child { margin-top: 0; }

.privacy-content p,
.privacy-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.privacy-content ul li { margin-bottom: 6px; }

.privacy-content a {
  color: var(--purple-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-content a:hover { color: var(--purple-100); }

.privacy-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.privacy-toc h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.privacy-toc ol {
  padding-left: 20px;
  list-style: decimal;
}

.privacy-toc ol li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.privacy-toc ol li a {
  color: var(--purple-400);
  text-decoration: none;
  transition: color 0.2s;
}

.privacy-toc ol li a:hover { color: var(--purple-100); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 48px 0;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-visual { order: -1; }
  .hero-mockup { max-width: 300px; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps-grid::before { display: none; }

  .nav-links { display: none; }

  .cta-card { padding: 48px 24px; }
}

@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
