@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

/* ── Dark theme (default) ── */
:root {
  --bg-base:       #0A0A0C;
  --bg-section:    #111114;
  --bg-card:       #1C1C1E;
  --bg-card-hover: #242428;
  --bg-elevated:   #28282C;
  --nav-bg:        rgba(10, 10, 12, 0.85);

  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);
  --border-accent: rgba(124, 58, 237, 0.4);

  --text-primary:   #F2F2F7;
  --text-secondary: rgba(242, 242, 247, 0.55);
  --text-tertiary:  rgba(242, 242, 247, 0.3);

  --purple:        #7C3AED;
  --purple-light:  #A78BFA;
  --purple-dim:    rgba(124, 58, 237, 0.15);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 980px;

  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light theme ── */
[data-theme="light"] {
  --bg-base:       #F5F5F7;
  --bg-section:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F9F9FB;
  --bg-elevated:   #F0F0F5;
  --nav-bg:        rgba(245, 245, 247, 0.85);

  --border:        rgba(0, 0, 0, 0.07);
  --border-hover:  rgba(0, 0, 0, 0.13);
  --border-accent: rgba(124, 58, 237, 0.35);

  --text-primary:   #1C1C1E;
  --text-secondary: rgba(28, 28, 30, 0.55);
  --text-tertiary:  rgba(28, 28, 30, 0.35);

  --purple:        #7C3AED;
  --purple-light:  #6D28D9;
  --purple-dim:    rgba(124, 58, 237, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.nav-brand span { color: var(--purple-light); }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.1px;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
}
.btn-primary:hover { background: #6D28D9; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

/* ── Status badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.badge-live {
  background: rgba(5, 150, 105, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.badge-live::before { background: #34D399; }
.badge-beta {
  background: rgba(217, 119, 6, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.badge-beta::before { background: #FBBF24; }
.badge-development {
  background: rgba(99, 102, 241, 0.12);
  color: #A5B4FC;
  border: 1px solid rgba(165, 180, 252, 0.2);
}
.badge-development::before {
  background: transparent;
  border: 1.5px solid #A5B4FC;
  animation: pulse-ring 2s ease-in-out infinite;
}

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

/* ── Platform tags ── */
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ── Section headers ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--text-primary);
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.65;
}

/* ── App icon ── */
.app-icon {
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.app-icon-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.footer-brand span { color: var(--purple-light); }
.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-secondary); }

/* ── Theme toggle ── */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: block; }
html:not([data-theme]) .theme-toggle .icon-moon { display: block; }

/* ── Smooth theme transition ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.15s ease !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section-title { font-size: 28px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}
