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

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --accent: #635bff;
  --accent-hover: #4f46e5;
  --accent-soft: #ede9fe;
  --hero-bg: #0d0d14;
  --border: rgba(0,0,0,0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ── Hero ── */
.hero {
  background: var(--hero-bg);
  color: #fff;
  text-align: center;
  padding: 160px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,91,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99,91,255,0.12);
  border: 1px solid rgba(99,91,255,0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* ── Section ── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 15px;
}

/* ── App Cards Grid ── */
#apps-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
  color: var(--text);
  line-height: 1.3;
}

.badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.badge-live {
  background: #d1fae5;
  color: #065f46;
}

.badge-soon {
  background: #fef3c7;
  color: #92400e;
}

.app-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.platform-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.platform-tag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-light);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  align-self: flex-start;
}

.store-btn:hover { background: var(--accent-hover); transform: scale(1.02); }

.store-btn.disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
}

/* ── Static App Grid (app.html) ── */
.apps-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── Small Header (sub-pages) ── */
.small-header {
  background: var(--hero-bg);
  color: #fff;
  text-align: center;
  padding: 120px 24px 60px;
}

.small-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
}

/* ── Legal / Content Pages ── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.container h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.container .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.container h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin: 36px 0 10px;
  color: var(--text);
}

.container p {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 12px;
}

.container ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.container ul li {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
}

.container strong { color: var(--text); }

/* ── Footer ── */
footer {
  background: var(--hero-bg);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  transition: color var(--transition);
}

footer .footer-links a:hover { color: #fff; }

footer .copyright { color: rgba(255,255,255,0.3); }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 140px 20px 80px; }
  .section, .container { padding: 60px 20px 80px; }
  #apps-container, .apps-grid { grid-template-columns: 1fr; }
}
