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

:root {
  --purple-50: #f3e5f5;
  --purple-100: #e1bee7;
  --purple-200: #ce93d8;
  --purple-300: #ba68c8;
  --purple-400: #ab47bc;
  --purple-500: #7c4dff;
  --purple-600: #651fff;
  --purple-700: #6200ea;
  --purple-800: #4a148c;
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2d;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b82;
  --border: #2a2a3a;
  --border-light: #3a3a4d;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --gradient: linear-gradient(135deg, var(--purple-500), var(--purple-300));
  --gradient-text: linear-gradient(135deg, var(--purple-300), #b388ff, var(--purple-200));
  --shadow-glow: 0 0 60px rgba(124, 77, 255, 0.15);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

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

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(124, 77, 255, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple-500);
  color: var(--text-primary);
}

.nav-links .btn {
  background: var(--gradient);
  color: white;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 77, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(186, 104, 200, 0.08), transparent);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--purple-300);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.platform-icons { display: flex; gap: 8px; }

.platform-tag {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.phone-mockup {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.2), transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-app-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ─── Section ────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Connect Steps ──────────────────────────────────────────────── */
.connect-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Connect Download ───────────────────────────────────────────── */
.connect-download {
  text-align: center;
}

.connect-download h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.connect-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 15px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-align: left;
}

.download-card:hover {
  border-color: var(--purple-500);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 77, 255, 0.15);
}

.download-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 77, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--purple-300);
}

.download-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.download-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── App Download ───────────────────────────────────────────────── */
.app-download {
  display: flex;
  justify-content: center;
}

.app-download-card {
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
}

.app-dl-icon {
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.app-download-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-download-card > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.store-badge:hover {
  border-color: var(--purple-500);
  background: rgba(124, 77, 255, 0.08);
}

.store-badge-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color var(--transition);
}

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

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

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-steps { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero { padding: 120px 0 60px; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-platforms { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

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

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .store-buttons { flex-direction: column; }
}

/* ─── Changelog ───────────────────────────────────────────────────── */
.changelog-tabs {
  display: flex;
  gap: 4px;
  max-width: 720px;
  margin: 0 auto 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 4px;
  border: 1px solid var(--border);
}

.changelog-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.changelog-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.changelog-tab.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

.changelog-panel {
  display: none;
  max-width: 720px;
  margin: 0 auto;
}

.changelog-panel.active {
  display: block;
}

.changelog-entry {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.changelog-entry:hover {
  border-color: var(--border-light);
}

.changelog-entry h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.changelog-date {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.changelog-entry ul {
  list-style: none;
  padding: 0;
}

.changelog-entry li {
  position: relative;
  padding: 6px 0 6px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.changelog-entry li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-500);
}

.changelog-entry li strong {
  color: var(--text-primary);
}

.changelog-older {
  margin-top: 8px;
}

.changelog-older summary {
  cursor: pointer;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  list-style: none;
  user-select: none;
}

.changelog-older summary::-webkit-details-marker {
  display: none;
}

.changelog-older summary::before {
  content: '▸ ';
  color: var(--purple-500);
  transition: transform var(--transition);
  display: inline-block;
}

.changelog-older[open] summary::before {
  content: '▾ ';
}

.changelog-older summary:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.changelog-older .changelog-entry:first-child {
  margin-top: 20px;
}
