:root {
  --bg: #F5F0E8;
  --bg-dark: #1B2A4A;
  --surface: #FFFDF8;
  --surface-card: #FFFDF8;
  --surface-soft: #D4BA96;
  --text: #1B2A4A;
  --text-muted: #6B7280;
  --primary: #1B2A4A;
  --accent: #C4A882;
  --accent-soft: #D4BA96;
  --border: rgba(27,42,74,.08);
  --shadow: 0 20px 60px rgba(27,42,74,.06);
  --radius: 16px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, a {
  font: inherit;
}

button,
input {
  outline: none;
}

button:hover,
button:focus-visible,
a:hover,
a:focus-visible {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  width: 100%;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  color: var(--primary);
  background: rgba(245,240,232,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27,42,74,.08);
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: .5rem;
  border: none;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  z-index: 21;
}

.topbar__brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
  font-size: 1rem;
}

.topbar__nav {
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.lang-toggle {
  border: none;
  background: transparent;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 1.5rem;
  white-space: nowrap;
}

.lang-toggle .lang-active {
  font-weight: 700;
}

.topbar__nav--active {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(245,240,232,.98);
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(27,42,74,.08);
}

.topbar__nav a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--primary);
}

.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after {
  width: 100%;
}

.loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--primary);
  z-index: 999;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.loader__brand {
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  font-size: 3rem;
  letter-spacing: .2em;
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  to { transform: scale(1.08); }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232,168,124,.9);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 160ms ease, background 160ms ease;
  mix-blend-mode: difference;
  z-index: 1000;
  opacity: 0;
}

body.loaded .cursor {
  opacity: 1;
}

a, .btn {
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(42, 123, 136, .35), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .08), transparent 18%),
    linear-gradient(155deg, #101d32 0%, #1b2a4a 38%, #234d59 65%, #0f1923 100%);
}

.hero__background::before,
.hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 40% 40%, rgba(255,255,255,.12), transparent 4%),
    radial-gradient(circle at 75% 75%, rgba(232,168,124,.1), transparent 8%);
  opacity: .7;
}

.hero__background::after {
  filter: blur(18px);
  opacity: .35;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 8rem 1rem 5rem;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.04em;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  max-width: 720px;
  margin: 2rem auto .5rem;
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
}

.hero__author {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  margin-bottom: 2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
}

.btn--primary {
  color: #fff;
  background: var(--primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #2a3d5c;
}

.btn--secondary {
  color: var(--primary);
  background: var(--accent-soft);
  font-weight: 600;
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(212,186,150,.9);
}

.btn--submitted {
  background: rgba(255,255,255,.24);
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(232,168,124,.18), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.16), transparent 18%);
  mix-blend-mode: screen;
  opacity: .95;
  animation: confettiFloat 1.6s ease-out forwards;
}

@keyframes confettiFloat {
  0% { opacity: 0; transform: translateY(-20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.btn:hover,
.btn:focus-visible {
  transform: scale(1.05);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: .8rem 0;
}

.scroll-indicator span {
  display: block;
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  animation: scrollPulse 1.4s infinite ease;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .35; }
  100% { transform: translateY(0); opacity: 1; }
}

.section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}

.section::before,
.section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 0;
}

.section::before {
  top: 0;
}

.section::after {
  bottom: 0;
}

.section--light {
  background: var(--bg);
  color: var(--text);
}

.section--light::before {
  background: linear-gradient(to bottom, rgba(27,42,74,.06), transparent);
}

.section--light::after {
  background: linear-gradient(to top, rgba(27,42,74,.04), transparent);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section--dark::before {
  background: linear-gradient(to bottom, rgba(245,240,232,.08), transparent);
}

.section--dark::after {
  background: linear-gradient(to top, rgba(245,240,232,.06), transparent);
}

.section--accent {
  background: linear-gradient(155deg, #142b46 0%, #174b55 60%, #1B2A4A 100%);
  color: #fff;
}

.section--accent::before {
  background: linear-gradient(to bottom, rgba(245,240,232,.08), transparent);
}

.section--accent::after {
  background: linear-gradient(to top, rgba(245,240,232,.06), transparent);
}

.manifesto__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2.2rem;
  background: var(--surface-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,42,74,.06);
}

.manifesto__intro {
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
  color: var(--accent);
  letter-spacing: .02em;
}

.manifesto__card p {
  margin: 1.6rem 0;
  line-height: 1.9;
  color: var(--text-muted);
}

.manifesto__quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 2.6rem;
  margin: 2.6rem 0 1.6rem;
  color: var(--primary);
  line-height: 1.1;
}

.section__intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section__intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  margin: .8rem 0 0;
  line-height: 1.05;
}

.section__intro .badge,
.badge {
  display: inline-flex;
  background: rgba(255,253,248,.9);
  color: var(--accent);
  border: 1px solid rgba(27,42,74,.08);
  padding: .8rem 1rem;
  border-radius: 999px;
  font-size: .88rem;
  margin-top: 1rem;
}

.badge--strong {
  background: rgba(212,186,150,.2);
  color: var(--accent);
  border-color: rgba(212,186,150,.24);
}

.section--light .badge {
  background: rgba(212,186,150,.1);
  color: var(--accent);
  border-color: rgba(212,186,150,.18);
}

.pillar-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pillar-card {
  background: linear-gradient(180deg, rgba(42,123,136,.18), rgba(11,25,45,.82));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  min-height: 320px;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
  transform-style: preserve-3d;
  transition: transform 350ms ease, box-shadow 350ms ease;
  position: relative;
}

.pillar-card:hover,
.pillar-card:focus-within {
  box-shadow: 0 45px 90px rgba(11,23,39,.28);
}

.pillar-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
  color: #fff;
}

.pillar-card p {
  margin: 0;
  line-height: 1.9;
  color: rgba(255,255,255,.8);
}

.newsletter-grid,
.charts-grid {
  display: grid;
  gap: 1.8rem;
}

.newsletter-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.charts-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,42,74,.06);
  position: relative;
}

.feature-card__number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
}

.feature-card strong {
  display: block;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--primary);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.85;
}

.data__header p {
  max-width: 760px;
  color: rgba(255,255,255,.82);
  margin-top: 1rem;
  line-height: 1.85;
}

.counters {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin: 2.5rem 0 3rem;
}

.counter-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 1.8rem;
  text-align: center;
  transition: all 300ms ease;
}

.counter-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.counter {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
}

.counter-card small {
  display: block;
  margin-top: .75rem;
  color: rgba(255,255,255,.72);
}

.chart-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 1.8rem;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.chart-panel canvas {
  display: block;
  width: min(100%, 340px);
  height: 380px !important;
  margin: 0 auto;
}

.chart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.chart-panel h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.toggle {
  display: inline-flex;
  background: rgba(255,255,255,.1);
  padding: .35rem;
  border-radius: 999px;
}

.toggle__button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.76);
  padding: .7rem 1rem;
  border-radius: 999px;
  transition: all var(--transition);
}

.toggle__button--active {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.data__note {
  margin-top: 1.8rem;
  color: rgba(255,255,255,.72);
  max-width: 720px;
}

.about__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.about__grid h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: .75rem 0 1.2rem;
}

.about__grid p {
  margin-bottom: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.author-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
}

.author-link svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--accent);
}

.author-link:hover,
.author-link:focus-visible {
  text-decoration: underline;
}

.signup__panel {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 2rem;
  border-radius: 16px;
  box-shadow: 0 35px 90px rgba(11,23,39,.22);
  align-items: center;
  justify-items: center;
  text-align: center;
}

.signup__panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 760px;
  margin: 1rem 0;
}

.signup__panel p {
  max-width: 680px;
  color: rgba(255,255,255,.86);
  line-height: 1.8;
}

.signup__placeholder {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.signup__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.signup__status {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #fff;
}

.signup__button {
  padding: 1.2rem 2.5rem;
}

.signup__microcopy {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: .95rem;
  max-width: 560px;
}

.signup__form {
  display: grid;
  gap: 1rem;
  width: min(680px, 100%);
}

.signup__form input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 1rem 1.3rem;
  background: rgba(255,255,255,.1);
  color: #fff;
}

.signup__form input::placeholder {
  color: rgba(255,255,255,.6);
}

.microcopy {
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}

.faq {
  position: relative;
}

.faq__accordion {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-card);
}

.faq__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  transition: background 300ms ease;
  font-size: 1rem;
}

.faq__header:hover {
  background: rgba(196,168,130,.12);
}

.faq__title {
  margin: 0;
}

.faq__icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  transition: transform 300ms ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__header[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__content {
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq__content p {
  margin: 0 0 1.5rem 0;
}

.faq__header[aria-expanded="true"] + .faq__content {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: .5rem;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 21;
  padding: 0.5rem;
}

.topbar__hamburger svg {
  width: 24px;
  height: 24px;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(42,123,136,.9);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 300ms ease;
  box-shadow: 0 8px 24px rgba(42,123,136,.2);
}

.scroll-to-top:hover {
  background: rgba(42,123,136,1);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42,123,136,.3);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

.counter-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 1.8rem;
  text-align: center;
  transition: all 300ms ease;
}

.counter-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.footer {
  padding: 2.5rem 0;
  background: #0b1624;
  color: rgba(255,255,255,.75);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: rgba(255,255,255,.84);
  text-decoration: none;
}

.reveal-item {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-indicator,
  .cursor {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    padding: 1rem 1rem;
  }
  .topbar__hamburger {
    display: flex;
  }
  .topbar__nav {
    gap: .8rem;
    flex-wrap: wrap;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero__content {
    padding-top: 6rem;
  }
  .topbar__nav:not(.topbar__nav--active) {
    display: none;
  }
  .topbar__nav--active {
    display: flex !important;
  }
  .pillar-grid,
  .newsletter-grid,
  .charts-grid,
  .faq__accordion,
  .about__grid {
    grid-template-columns: 1fr;
  }
  .author-photo {
    margin: 0 auto;
  }
  .counters {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__title {
    font-size: 2.8rem;
  }
  .manifesto__card,
  .chart-panel,
  .feature-card {
    padding: 1.8rem;
  }
  .counters {
    grid-template-columns: 1fr;
  }
  .signup__panel {
    padding: 3rem 1.2rem;
  }
  .scroll-indicator {
    display: none;
  }
}
