:root {
  --bg: #e8f0ec;
  --bg-deep: #d4e4db;
  --ink: #14221c;
  --muted: #3d5248;
  --accent: #0f6b5c;
  --accent-soft: #1a8f7a;
  --surface: rgba(255, 255, 255, 0.55);
  --line: rgba(20, 34, 28, 0.12);
  --shadow: 0 24px 60px rgba(20, 34, 28, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 10% -10%, #f7fff9 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #cfe8df 0%, transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, #9fd9c8 0%, transparent 70%);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, #b7c9a8 0%, transparent 70%);
  animation-delay: -6s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
.hero,
.about,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.ready .brand {
  opacity: 1;
  transform: none;
}

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 6rem);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 56rem;
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.12s, transform 0.8s ease 0.12s;
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.24s, transform 0.8s ease 0.24s;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease 0.36s, transform 0.8s ease 0.36s;
}

html.ready .headline,
html.ready .lede,
html.ready .actions {
  opacity: 1;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--accent);
  color: #f4fffb;
}

.btn.primary:hover {
  background: var(--accent-soft);
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  border-color: rgba(20, 34, 28, 0.28);
}

.about {
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.about h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.foot {
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p {
  margin: 0;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand,
  .headline,
  .lede,
  .actions {
    opacity: 1;
    transform: none;
  }
}
