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

:root {
  --bg: #101310;
  --bg-alt: #0d100d;
  --card: #1E241E;
  --card2: #252D25;
  --card-hover: #2d352d;
  --green: #34D399;
  --green-light: #34D399;
  --green-dark: #059669;
  --green-glow: rgba(52,211,153,0.12);
  --text: #E8F0E8;
  --text-secondary: #9CAA9C;
  --dim: #7A8C7A;
  --muted: #5A6C5A;
  --border: rgba(52,211,153,0.12);
  --border2: rgba(52,211,153,0.25);
  --gold: #FBBF24;
  --gold-dim: rgba(251,191,36,0.09);
  --gold-border: rgba(251,191,36,0.2);
  --red: #F87171;
  --red-dim: rgba(248,113,113,0.09);
  --red-muted: #7f1d1d;
  --blue: #60a5fa;
  --pink: #f472b6;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(16, 19, 16, 0.92);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(52, 211, 153, 0.12);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-light);
  text-decoration: none;
}

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

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

.nav-link:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #101310;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-cta:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }

@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140%; height: 100%;
  background: radial-gradient(ellipse 50% 60% at 50% 20%, rgba(5, 150, 105, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--green-light);
}

.page-hero p {
  font-size: 18px;
  color: var(--dim);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

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

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-light);
  text-decoration: none;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.footer-link:hover { color: var(--text); text-decoration: none; }

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 500px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { flex-direction: column; gap: 12px; }
}

/* ── MISC ── */
::selection {
  background: rgba(52, 211, 153, 0.2);
  color: var(--text);
}

[id] { scroll-margin-top: 80px; }

/* ── ARTICLE CONTENT ── */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.article-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.2;
}

.article-container h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-light);
  margin: 32px 0 12px;
}

.article-container p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}

.article-container ul, .article-container ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
  line-height: 1.7;
}

.article-container li {
  margin-bottom: 8px;
}

.article-container strong {
  color: var(--text);
  font-weight: 600;
}

/* ── ARTICLE CTA ── */
.article-cta {
  text-align: center;
  padding: 48px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.article-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.article-cta p {
  color: var(--dim);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 24px;
}

.article-cta .store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cta .store-badges a img {
  height: 44px;
}

.article-cta .browser-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-light);
  font-size: 14px;
  font-weight: 500;
}

/* ── LEARN HUB GRID ── */
.learn-grid {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 500px) {
  .learn-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.learn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.learn-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  text-decoration: none;
}

.learn-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.learn-card p {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.5;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 0;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--dim);
}

.breadcrumb a:hover {
  color: var(--green-light);
}

.breadcrumb span {
  color: var(--muted);
  margin: 0 8px;
}
