/* Earth Analytics — shared styles */
:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --accent: #0ea5a4;
  --accent-dark: #0b7c7b;
  --accent-glow: rgba(14, 165, 164, 0.15);
  --navy: #0b1220;
  --navy-2: #101c33;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --max-w: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo svg { flex-shrink: 0; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.15s;
}
nav.main a:hover { color: var(--ink); }
nav.main a.cta {
  background: var(--accent); color: #fff; padding: 9px 18px;
  border-radius: 999px; font-weight: 600;
  transition: background 0.15s;
}
nav.main a.cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(14,165,164,0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(56,116,203,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5eead4;
  border: 1px solid rgba(94,234,212,0.35);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(94,234,212,0.06);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12; font-weight: 800; letter-spacing: -0.03em;
  max-width: 720px;
}
.hero h1 em { font-style: normal; color: #5eead4; }
.hero p.lead {
  margin-top: 20px; font-size: 1.15rem; color: #b8c4d6; max-width: 620px;
}
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; transition: all 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { color: #e2e8f0; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
.hero .trust { margin-top: 40px; font-size: 0.85rem; color: #7d8ba1; }
.hero .trust strong { color: #b8c4d6; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker {
  color: var(--accent-dark); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; margin-top: 8px; line-height: 1.2;
}
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.05rem; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15,23,42,0.12); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-glow); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--ink-soft); font-size: 0.96rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 24px 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #5eead4; font-weight: 700; font-size: 0.95rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: 0.94rem; }

/* Sources strip */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill {
  background: var(--bg); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}

/* FAQ */
details.faq {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; background: var(--bg); margin-bottom: 12px;
}
details.faq summary {
  font-weight: 700; cursor: pointer; font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 12px; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d2b2a 100%);
  border-radius: 20px; color: #fff;
  padding: 56px 48px; text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin-top: 10px; color: #b8c4d6; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 28px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.post-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15,23,42,0.12); }
.post-card .thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--navy), #134e4a);
  position: relative;
}
.post-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .tag { font-size: 0.75rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.post-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.post-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.post-card .meta { font-size: 0.82rem; color: var(--ink-faint); }

/* Article */
article.post { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
article.post .tag { font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; }
article.post h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; margin-top: 10px; }
article.post .meta { margin-top: 14px; color: var(--ink-faint); font-size: 0.9rem; }
article.post h2 { font-size: 1.45rem; font-weight: 750; margin-top: 44px; letter-spacing: -0.015em; }
article.post h3 { font-size: 1.15rem; font-weight: 700; margin-top: 30px; }
article.post p { margin-top: 16px; color: #334155; }
article.post ul, article.post ol { margin: 16px 0 0 24px; color: #334155; }
article.post li { margin-top: 8px; }
article.post a { color: var(--accent-dark); font-weight: 600; }
article.post table { border-collapse: collapse; width: 100%; margin-top: 20px; font-size: 0.93rem; }
article.post th, article.post td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
article.post th { background: var(--bg-soft); font-weight: 700; }
article.post code {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 7px; font-size: 0.88em; font-family: "SF Mono", Menlo, Consolas, monospace;
}
article.post .callout {
  margin-top: 28px; padding: 22px 26px;
  background: var(--accent-glow); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
article.post .callout p { margin-top: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy); color: #94a3b8;
  padding: 56px 0 40px; font-size: 0.92rem;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer.site h4 { color: #e2e8f0; font-size: 0.95rem; margin-bottom: 14px; }
footer.site a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: #5eead4; }
footer.site .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .steps, .post-list { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  nav.main a:not(.cta) { display: none; }
  .hero { padding: 72px 0 80px; }
  section { padding: 60px 0; }
  .cta-band { padding: 44px 28px; }
}
