/* ═══════════════════════════════════════════
   Detox Tracker — Official Landing Page
   Style: Dark Minimal / Glassmorphism
   ═══════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background-color: #121212;
  color: #E0E0E0;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: #69F0AE;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #B388FF;
  text-decoration: underline;
}

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Legal page back link ── */
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.back-link::before {
  content: '← ';
}

/* ── Typography ── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem);   margin-bottom: 24px; }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.subtitle {
  font-size: 1.1rem;
  color: #9E9E9E;
  max-width: 600px;
  margin: 16px auto 0;
}

.accent-green { color: #69F0AE; }
.accent-purple { color: #B388FF; }

/* ── Hero Section ── */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #69F0AE22, #B388FF22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.hero h1 {
  margin-bottom: 8px;
}

/* ── Buttons ── */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: default;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}

.btn-outline {
  background: transparent;
  border-color: #69F0AE44;
  color: #E0E0E0;
}

.btn-outline:hover {
  border-color: #69F0AE;
  background: #69F0AE0d;
  text-decoration: none;
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Features Grid ── */
.features {
  padding: 60px 0;
}

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

.feature-card {
  background: #1E1E1E;
  border: 1px solid #2A2A2A;
  border-radius: 20px;
  padding: 32px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: #69F0AE33;
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: #9E9E9E;
  margin-bottom: 0;
}

/* ── Legal Pages ── */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page .updated {
  color: #757575;
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: 1.3rem;
}

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

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

.notice-box {
  background: #1E1E1E;
  border-left: 4px solid #B388FF;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.notice-box.warning {
  border-left-color: #FF5252;
}

.notice-box.warning strong {
  color: #FF5252;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid #1E1E1E;
  color: #757575;
  font-size: 0.85rem;
}

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

footer .legal-links a {
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .legal-page {
    padding: 32px 0 48px;
  }
}