@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-alt: #eef5ff;
  --ink: #142033;
  --muted: #64748b;
  --line: #dbe5f1;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f97316;
  --soft-shadow: 0 20px 60px rgba(20, 32, 51, 0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: radial-gradient(circle at top left, #fef3e7 0%, transparent 26%), var(--bg);
  color: var(--ink);
}

h1, h2, h3, .serif {
  font-family: 'DM Serif Display', serif;
  letter-spacing: -0.02em;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0b1727, #113a48 72%, #14532d);
  color: #f8fbff;
  transition: opacity .7s ease, visibility .7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.glass-nav {
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: blur(18px);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(145deg, #29b6a8 0%, #0f766e 48%, #f97316 100%);
  color: white;
  font-family: 'DM Serif Display', serif;
  font-size: 1.95rem;
  line-height: 1;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.28);
}

.brand-mark.brand-mark-light {
  box-shadow: 0 16px 40px rgba(5, 10, 18, 0.24);
}

.brand-mark.brand-mark-loader {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 2.6rem;
  border-radius: 1.35rem;
  margin: 0 auto 1rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero-gradient {
  background:
    radial-gradient(900px 500px at 10% 15%, rgba(15, 118, 110, 0.24), transparent 60%),
    radial-gradient(800px 500px at 90% 80%, rgba(249, 115, 22, 0.2), transparent 55%),
    linear-gradient(145deg, #0f172a 0%, #12263f 48%, #143a52 100%);
}

.ribbon {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn-secondary:hover {
  background: white;
  color: var(--ink);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.14);
  color: #d7f8f3;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-left { opacity: 0; transform: translateX(-34px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); transition: opacity .7s ease, transform .7s ease; }
.reveal-right { opacity: 0; transform: translateX(34px); }
.reveal-right.visible { opacity: 1; transform: translateX(0); transition: opacity .7s ease, transform .7s ease; }

.float-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.float-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(20, 32, 51, 0.14);
}

.metric {
  position: relative;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.metric::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08));
}

.metric > * {
  position: relative;
}

.metric p:last-child {
  max-width: 18ch;
  line-height: 1.45;
}

.article-body p {
  margin-bottom: 1.15rem;
  color: #334155;
}

.article-body h2 {
  margin: 2rem 0 0.9rem;
  font-size: 1.75rem;
  color: var(--ink);
  font-family: 'DM Serif Display', serif;
}

.article-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  color: #334155;
  margin-bottom: 1.15rem;
}

.cookie-shell {
  background: rgba(11, 23, 39, 0.96);
  backdrop-filter: blur(18px);
}

@media (max-width: 768px) {
  .hero-shell {
    min-height: auto;
  }

  .metric {
    min-height: 0;
  }

  .metric p:last-child {
    max-width: none;
  }
}
