/* ============================================
   STREAKD WEBSITE
   Dark theme matching the app's design system
   ============================================ */

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

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.35);
  --accent: #ff6b35;
  --accent-bg: rgba(255, 107, 53, 0.15);
  --accent-border: rgba(255, 107, 53, 0.4);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

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

/* ---- NAV ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* ---- HERO ---- */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge img {
  height: 54px;
  transition: transform 0.2s;
}

.store-badge:hover img {
  transform: scale(1.03);
}

/* Screenshot placeholders */

.hero-screenshots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  margin-top: 64px;
  padding: 0 24px;
}

.screenshot-placeholder {
  width: 200px;
  height: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}

.screenshot-placeholder.featured {
  width: 240px;
  height: 480px;
  border-color: var(--accent-border);
}

/* Replace placeholders with actual images:
   .screenshot-placeholder { background: url('assets/screenshot-1.png') center/cover; }
   .screenshot-placeholder span { display: none; }
*/

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-screenshots {
    gap: 12px;
  }
  .screenshot-placeholder {
    width: 140px;
    height: 280px;
  }
  .screenshot-placeholder.featured {
    width: 170px;
    height: 340px;
  }
}

/* ---- FEATURES ---- */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.features h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

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

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

/* ---- STREAKD+ ---- */

.plus-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.plus-card {
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.plus-badge {
  display: inline-block;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.plus-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.plus-card > p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.plus-features {
  display: inline-flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.plus-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.check {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

/* ---- FOOTER ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 8px;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 13px;
}

/* ---- LEGAL PAGES ---- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.legal-page .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 640px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .features {
    padding: 48px 20px;
  }

  .plus-card {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}
