:root {
  --bg: #071a16;
  --bg-deep: #03110e;
  --fg: #f3f7f5;
  --muted: #b7c7c0;
  --accent: #3ecf9a;
  --accent-strong: #1fa876;
  --line: rgba(243, 247, 245, 0.14);
  --surface: rgba(243, 247, 245, 0.04);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg-deep);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #042019;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(3, 17, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(3, 17, 14, 0.9);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--fg);
}

/* Hero: one composition, brand-first, full-bleed visual plane */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(62, 207, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(15, 107, 86, 0.35), transparent 50%),
    linear-gradient(165deg, #0b3d32 0%, #071a16 48%, #03110e 100%);
}

.hero-glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12vmax;
  top: -18vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 154, 0.28), transparent 68%);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(243, 247, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 247, 245, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  animation: grid-shift 22s linear infinite;
}

.hero-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 360px);
  display: flex;
  align-items: flex-end;
  gap: clamp(0.35rem, 1.2vw, 0.85rem);
  padding: 0 max(1rem, calc((100% - var(--max)) / 2));
  mask-image: linear-gradient(to top, black 20%, transparent 95%);
  opacity: 0.55;
}

.hero-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(
    to top,
    rgba(62, 207, 154, 0.05),
    rgba(62, 207, 154, 0.55)
  );
  transform-origin: bottom;
  animation: bar-rise 1.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-bars span:nth-child(2) { animation-delay: 0.05s; }
.hero-bars span:nth-child(3) { animation-delay: 0.1s; }
.hero-bars span:nth-child(4) { animation-delay: 0.15s; }
.hero-bars span:nth-child(5) { animation-delay: 0.2s; }
.hero-bars span:nth-child(6) { animation-delay: 0.25s; }
.hero-bars span:nth-child(7) { animation-delay: 0.3s; }
.hero-bars span:nth-child(8) { animation-delay: 0.35s; }
.hero-bars span:nth-child(9) { animation-delay: 0.4s; }
.hero-bars span:nth-child(10) { animation-delay: 0.45s; }

.hero-content {
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 9vh, 5.5rem);
  max-width: 38rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto 0;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
}

.brand-hero,
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
}

.hero-purpose {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  max-width: 24ch;
  color: rgba(243, 247, 245, 0.92);
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.purpose-block {
  max-width: 720px;
}

.purpose-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.purpose-block p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.purpose-block strong {
  color: var(--fg);
}

.purpose-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.purpose-list li + li {
  margin-top: 0.4rem;
}

.purpose-legal {
  margin-top: 1.5rem !important;
}

.purpose-legal a,
.purpose-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.purpose-legal a:hover,
.purpose-block a:hover {
  color: #62e0b0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #042019;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #62e0b0;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(243, 247, 245, 0.35);
  background: var(--surface);
}

.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(15, 107, 86, 0.12), transparent 40%),
    #0a211c;
  border-block: 1px solid var(--line);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section h2,
.contact-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-intro p,
.split > div > p,
.contact-block > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-strong);
}

.section-contact {
  background:
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(62, 207, 154, 0.18), transparent 55%),
    var(--bg-deep);
}

.contact-block {
  max-width: 40rem;
}

.brand-inline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.contact-block .hero-actions {
  margin-top: 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--fg);
}

.footer-inner strong {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Legal pages */
.legal-page {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(62, 207, 154, 0.12), transparent 55%),
    var(--bg-deep);
}

.legal-content {
  max-width: 720px;
}

.legal-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.35rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: #62e0b0;
}

.legal-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-nav {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.nav a[aria-current="page"] {
  color: var(--fg);
}

/*
  Important for Google brand verification:
  never hide primary branding/purpose with opacity:0.
  Animations only enhance already-visible content.
*/
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-motion {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms ease, transform 700ms ease;
  }

  .reveal-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 80ms; }
  .reveal-delay-2 { transition-delay: 160ms; }
  .reveal-delay-3 { transition-delay: 240ms; }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

@keyframes grid-shift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes bar-rise {
  from { transform: scaleY(0.12); opacity: 0.25; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 799px) {
  .nav {
    gap: 0.85rem;
    font-size: 0.88rem;
  }

  .hero-content {
    margin-left: auto;
  }

  .hero h1 {
    max-width: 22ch;
  }

  .hero-bars {
    height: 32vh;
    opacity: 0.4;
  }
}

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

  .reveal-motion,
  .hero-glow,
  .hero-grid,
  .hero-bars span {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
