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

:root {
  --teal: #0D7377;
  --teal-dark: #0a5a5e;
  --teal-light: #E6FFFA;
  --teal-mid: #14a8ae;
  --text: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --bg-alt: #F9FAFB;
  --white: #ffffff;
  --radius: 16px;
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── Nav ──────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--teal);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

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

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

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--teal-dark) !important; color: var(--white) !important; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13,115,119,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(13,115,119,0.2);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero h1 span { color: var(--teal); }

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.store-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.store-btn .store-icon { font-size: 22px; }

.store-btn-sub {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-books {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-book {
  width: 64px;
  height: 90px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: rotate(var(--rot, 0deg));
}

/* ── Section shared ───────────────────────────────────────────── */
section { padding: 80px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* ── How it works ─────────────────────────────────────────────── */
.how-it-works { background: var(--bg-alt); }

.how-it-works .container { text-align: center; }

.how-it-works .section-sub { margin: 0 auto 56px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: left;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-points {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 14px;
}

/* ── Features ─────────────────────────────────────────────────── */
.features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--border);
}

.feature-card .feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── For communities ──────────────────────────────────────────── */
.for-communities {
  background: var(--teal);
  color: var(--white);
}

.for-communities .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.for-communities .section-eyebrow {
  color: rgba(255,255,255,0.7);
}

.for-communities .section-title { color: var(--white); }

.for-communities .section-sub {
  color: rgba(255,255,255,0.8);
  max-width: 480px;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.community-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.community-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.community-feature-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.community-feature-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.community-visual {
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-stat {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hub-stat-icon { font-size: 28px; }
.hub-stat-value { font-size: 28px; font-weight: 800; color: var(--white); line-height: 1; }
.hub-stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 2px; }

.community-cta {
  display: inline-block;
  margin-top: 36px;
  background: var(--white);
  color: var(--teal);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.community-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── Download CTA ─────────────────────────────────────────────── */
.download {
  background: var(--bg-alt);
  text-align: center;
}

.download .section-sub { margin: 16px auto 40px; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
}

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

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

/* ── Privacy page ─────────────────────────────────────────────── */
.privacy-hero {
  background: linear-gradient(180deg, var(--teal-light) 0%, var(--white) 100%);
  padding: 64px 24px 48px;
  text-align: center;
}

.privacy-hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.privacy-hero p {
  color: var(--text-secondary);
  font-size: 15px;
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.privacy-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.privacy-content p, .privacy-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

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

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .features .container,
  .for-communities .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .community-visual { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }

  .footer-links { justify-content: center; }
}
