/* ───────────────────────────────────────
   SuperChat Tracker — site styles
   Dark creator-tool aesthetic with
   cyan→purple gradient accents.
   ─────────────────────────────────────── */

:root {
  --bg: #0A0A1F;
  --bg-elevated: #131434;
  --bg-card: #1A1B3D;
  --border: #2A2B52;
  --text: #E5E7F0;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --cyan: #22D3EE;
  --purple: #A855F7;
  --gradient: linear-gradient(135deg, #22D3EE 0%, #A855F7 100%);
  --gradient-radial: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.08), transparent 70%);
  --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.35);
}

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

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; height: auto; }

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

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

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 31, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-muted);
  transition: color .15s ease;
}

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

/* ─── Hero ─── */

.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
}

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

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-icon {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  margin: 0 auto 32px;
  box-shadow: var(--shadow-glow);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #0A0A1F;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4);
}

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

.btn-secondary:hover {
  border-color: var(--cyan);
}

.btn-disabled {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: not-allowed;
}

.hero-note {
  color: var(--text-dim);
  font-size: 13px;
}

/* ─── Sections ─── */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Features grid ─── */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color .15s ease, transform .15s ease;
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient);
  margin-bottom: 16px;
  color: #0A0A1F;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

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

/* ─── How it works ─── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  color: #0A0A1F;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── About / cross-promo ─── */

.cross-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.cross-promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s ease, transform .15s ease;
}

.cross-promo-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.cross-promo-name {
  font-weight: 700;
  font-size: 15px;
}

.cross-promo-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.cross-promo-link {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
}

/* ─── Footer ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

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

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

/* ─── Article pages (privacy, support) ─── */

.article {
  padding: 64px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.article .updated {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 32px;
}

.article h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.article p, .article li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.article ul, .article ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.article a {
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.article a:hover {
  border-color: var(--cyan);
}

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

/* ─── Mobile ─── */

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero-icon { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 24px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
