/* Fit Dozi — shared site styles
   Matches dozi.app / astro.dozi.app dark theme pattern with
   emerald-green accent (matches the app's palette: #10b981 primary,
   #34d399 lighter, #059669 darker).
*/

:root {
  --bg: #0a0f0e;
  --bg-elevated: #121a18;
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.03);
  --badge-bg: rgba(16, 185, 129, 0.15);
  --badge-border: rgba(16, 185, 129, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Poppins", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(52, 211, 153, 0.06), transparent 50%);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--primary); }

/* ── Navigation ─────────────────────────────────────── */

nav.top {
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
}

nav.top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: -0.02em;
}

nav.top .brand .logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 10px;
  font-size: 20px;
}

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

nav.top .nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

nav.top .nav-links a.cta {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  border-radius: 100px;
  font-weight: 700;
  transition: transform 0.15s ease;
}
nav.top .nav-links a.cta:hover {
  transform: translateY(-1px);
  color: var(--bg);
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 70vh;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.hero .description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero .metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.hero .metric .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.hero .metric .label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg);
  border-color: transparent;
}

/* ── Hero right: mascot with floating badges ────────── */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

.hero-visual .mascot {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(52, 211, 153, 0.35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(16, 185, 129, 0.25), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 140px;
  border: 1px solid var(--border-strong);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.floating-badge .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border-radius: 6px;
  font-size: 13px;
}

.floating-badge.top-left { top: 10%; left: -5%; }
.floating-badge.top-right { top: 20%; right: -5%; }
.floating-badge.bottom-left { bottom: 20%; left: 0%; }
.floating-badge.bottom-right { bottom: 10%; right: 5%; }

/* ── Features section ───────────────────────────────── */

.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 48px;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--badge-border);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 18px;
}

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

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

/* ── Footer ─────────────────────────────────────────── */

footer.site {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--text-subtle);
  font-size: 14px;
}

footer.site .links {
  display: flex;
  gap: 24px;
}
footer.site .links a {
  color: var(--text-muted);
}

/* ── Legal page styles (privacy / terms) ────────────── */

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px;
}

.legal-container .breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-container h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

.legal-container h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--primary-light);
}

.legal-container h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-container p,
.legal-container ul,
.legal-container ol {
  margin-bottom: 18px;
  color: var(--text);
}

.legal-container ul,
.legal-container ol { padding-left: 24px; }
.legal-container li { margin-bottom: 6px; color: var(--text-muted); }

.legal-container .warning-box {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 28px 0;
  color: var(--text);
}

.legal-container .contact-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 960px) {
  nav.top { padding: 20px 24px; }
  nav.top .nav-links { gap: 16px; }
  nav.top .nav-links a:not(.cta) { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 40px;
    text-align: center;
  }
  .hero h1 { font-size: 40px; }
  .hero .metrics { justify-content: center; }
  .hero .cta-row { justify-content: center; }
  .hero .description { margin-left: auto; margin-right: auto; }
  .hero-visual .mascot { width: 240px; height: 240px; font-size: 100px; }
  .floating-badge { font-size: 12px; padding: 8px 12px; }

  .features { padding: 64px 24px; }
  .feature-grid { grid-template-columns: 1fr; }

  .legal-container { padding: 32px 24px; }
  .legal-container h1 { font-size: 30px; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 32px; }
  .section-title h2 { font-size: 30px; }
}
