@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --page: #f1ede5;
  --page-deep: #e7dfd0;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #16212c;
  --muted: #556474;
  --line: rgba(22, 33, 44, 0.12);
  --brand: #2e6fe7;
  --brand-soft: #dce7ff;
  --brand-deep: #1546b8;
  --shadow: 0 28px 80px rgba(22, 33, 44, 0.14);
  --soft-shadow: 0 18px 48px rgba(22, 33, 44, 0.1);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.76), transparent 36%),
    linear-gradient(180deg, #f6f3eb 0%, var(--page) 54%, #efe7d8 100%);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

a {
  color: inherit;
}

.site-ambience {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 72%, rgba(62, 120, 232, 0.28), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(255, 219, 138, 0.38), transparent 20%),
    radial-gradient(circle at 62% 82%, rgba(45, 111, 231, 0.2), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  animation: ambiencePulse 18s ease-in-out infinite alternate;
}

.site-ambience::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 8%, rgba(0, 0, 0, 0.75) 38%, transparent 100%);
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 40;
  width: min(1180px, calc(100vw - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(22, 33, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(46, 111, 231, 0.18);
}

.brand-word {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.topnav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.topnav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
}

.topnav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 6px 16px rgba(22, 33, 44, 0.08);
}

main {
  padding-bottom: 64px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 38px);
  margin-top: 10px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  width: min(84vw, 1100px);
  height: min(84vw, 1100px);
  left: -24vw;
  top: -26vw;
  border: 52px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: rotate(14deg);
  filter: blur(2px);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(241, 237, 229, 0.18) 0%, rgba(241, 237, 229, 0.42) 42%, rgba(241, 237, 229, 0.94) 100%),
    linear-gradient(90deg, rgba(241, 237, 229, 0.98) 0%, rgba(241, 237, 229, 0.88) 30%, rgba(241, 237, 229, 0.22) 58%, rgba(241, 237, 229, 0.7) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(56px, 9vw, 110px);
  padding-bottom: clamp(320px, 38vw, 540px);
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -32px -200px -38px -26px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 40%),
    linear-gradient(90deg, rgba(241, 237, 229, 0.98) 0%, rgba(241, 237, 229, 0.94) 52%, rgba(241, 237, 229, 0.58) 76%, rgba(241, 237, 229, 0) 100%);
  filter: blur(8px);
}

.hero-kicker,
.section-label,
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-brand,
h1,
h2,
h3,
.brand-word {
  font-family: "Fraunces", Georgia, serif;
}

.hero-brand {
  font-size: clamp(4.8rem, 16vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 16px;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0;
}

.hero-summary,
.section-summary,
.lead,
.panel p,
.panel ol,
details p {
  color: var(--muted);
}

.hero-summary,
.section-summary,
.lead {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 18px 34px rgba(46, 111, 231, 0.28);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(22, 33, 44, 0.14);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
}

.hero-visual {
  position: absolute;
  left: 50%;
  bottom: min(-10vw, -84px);
  z-index: 2;
  width: min(1480px, 104vw);
  transform: translateX(-50%) translateY(var(--hero-parallax, 0px));
  will-change: transform;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 36px 80px rgba(22, 33, 44, 0.2));
  animation: heroDrift 15s ease-in-out infinite alternate;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 10vw, 112px);
}

.story-reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.story-reverse .story-copy {
  order: 2;
}

.story-reverse .story-visual {
  order: 1;
}

.story-full {
  grid-template-columns: 1fr;
}

.story-copy {
  max-width: 32rem;
}

.editorial-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.editorial-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(22, 33, 44, 0.12);
  color: var(--text);
  line-height: 1.6;
}

.editorial-list li:last-child {
  border-bottom: 1px solid rgba(22, 33, 44, 0.12);
}

.story-visual {
  margin: 0;
}

.story-visual img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.story-visual-wide img {
  border-radius: 30px;
}

.closing-band {
  margin-top: clamp(72px, 11vw, 132px);
  padding: clamp(48px, 8vw, 88px) 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at right top, rgba(46, 111, 231, 0.24), transparent 34%);
  border-top: 1px solid rgba(22, 33, 44, 0.1);
  border-bottom: 1px solid rgba(22, 33, 44, 0.1);
}

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.closing-copy {
  max-width: 38rem;
}

.support-layout {
  padding-top: 24px;
}

.support-hero,
.panel,
.faq {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--soft-shadow);
}

.support-hero {
  padding: clamp(26px, 4vw, 42px);
}

.support-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.panel {
  padding: 20px;
}

.panel h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 10px;
}

.panel ol {
  padding-left: 20px;
}

.panel li + li {
  margin-top: 8px;
}

.faq {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.faq h2 {
  margin-bottom: 12px;
}

details {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 33, 44, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  margin: 0 auto 36px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(22, 33, 44, 0.1);
}

.footer-links {
  display: flex;
  gap: 14px;
}

html.js-ready .reveal,
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.js-ready .reveal.is-visible,
html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -14px, 0) scale(1.015);
  }
}

@keyframes ambiencePulse {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.94;
  }
  to {
    transform: scale(1.04) translate3d(0, 6px, 0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    padding-bottom: clamp(220px, 30vw, 360px);
  }

  .story,
  .story-reverse {
    grid-template-columns: 1fr;
  }

  .story-reverse .story-copy,
  .story-reverse .story-visual {
    order: initial;
  }

  .story-copy {
    max-width: none;
  }

  .closing-inner,
  .support-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    width: 120vw;
    height: 120vw;
    left: -46vw;
    top: -48vw;
    border-width: 34px;
  }

  .hero-inner {
    padding-top: 34px;
    padding-bottom: 280px;
  }

  .hero-brand {
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .hero-copy::before {
    inset: -20px -120px -28px -16px;
  }

  .hero-visual {
    width: 136vw;
    bottom: -88px;
  }

  .story-visual img,
  .story-visual-wide img {
    border-radius: 22px;
  }
}

@media (max-width: 580px) {
  .container,
  .topbar {
    width: min(1180px, calc(100vw - 20px));
  }

  .topbar {
    top: 10px;
    margin-top: 10px;
    padding: 12px 14px;
  }

  .topnav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-inner {
    padding-bottom: 340px;
  }

  .hero-summary,
  .section-summary,
  .lead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-copy::before {
    inset: -16px -56px -24px -10px;
  }

  .cta-row,
  .closing-inner .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    width: 168vw;
    bottom: -118px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-ambience,
  .hero-visual img,
  .btn,
  .lang-btn {
    animation: none !important;
    transition: none !important;
  }

  .hero-visual {
    transform: translateX(-50%) !important;
  }
}
