/* ---------- Base ---------- */
:root {
  --bg: #0b0b12;
  --bg-raised: #15151f;
  --bg-card: #191926;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f7;
  --text-dim: #a7a7b8;
  --accent-a: #b45cff;
  --accent-b: #ff5c87;
  --accent-c: #ff9d5c;
  --radius: 20px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

section { padding: 5.5rem 1.5rem; }

section > h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin-bottom: 2.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: rgba(11, 11, 18, 0.94);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark { width: 26px; height: 26px; color: var(--accent-a); }

.site-header nav { display: flex; gap: 1.5rem; }

.site-header nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -30% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 45% 55% at 30% 20%, rgba(180, 92, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 45% 55% at 70% 30%, rgba(255, 92, 135, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-a);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.grad {
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b) 55%, var(--accent-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 30px rgba(180, 92, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 92, 135, 0.3);
}

/* ---------- Apps ---------- */
.apps { max-width: var(--max); margin: 0 auto; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 92, 255, 0.35);
}

.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.app-body { flex: 1; }

.app-body h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }

.app-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-b);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-body p:last-child { color: var(--text-dim); font-size: 0.97rem; }

.store-badge { align-self: flex-start; }

.store-badge img { height: 40px; width: auto; }

/* ---------- Story ---------- */
.story {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.story-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.story-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.story-head img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.story-head h3 { font-size: 1.25rem; }

.story-head .app-tag { margin-bottom: 0; }

.muted { color: var(--text-dim); font-weight: 400; font-size: 0.95rem; }

.stat {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(100deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-card > p:last-child { color: var(--text-dim); }

/* ---------- About ---------- */
.about {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.about p { color: var(--text-dim); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .fine {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(167, 167, 184, 0.6);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  section { padding: 3.5rem 1.25rem; }
  .hero { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
