@property --text {
  syntax: "<color>";
  inherits: true;
  initial-value: #1f2a28;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #1f7a73;
}

@property --accent-2 {
  syntax: "<color>";
  inherits: true;
  initial-value: #f0a96b;
}

:root {
  --text: #1f2a28;
  --muted: #4f5a57;
  --line: rgba(31, 42, 40, 0.16);
  --panel: rgba(255, 255, 255, 0.7);
  --accent: #1f7a73;
  --accent-2: #f0a96b;
  --shadow: 0 24px 50px rgba(24, 42, 40, 0.1);
  --theme-smooth-ms: 2200ms;
  --theme-smooth-ease: cubic-bezier(0.22, 1, 0.36, 1);
  transition:
    --text var(--theme-smooth-ms) var(--theme-smooth-ease),
    --accent var(--theme-smooth-ms) var(--theme-smooth-ease),
    --accent-2 var(--theme-smooth-ms) var(--theme-smooth-ease);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f7f2;
  overflow-x: hidden;
}

.mood-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.mood-base {
  z-index: 0;
  background:
    radial-gradient(circle at 10% 10%, #f9e3cf 0%, transparent 28%),
    radial-gradient(circle at 90% 90%, #d6ece7 0%, transparent 32%),
    linear-gradient(145deg, #f7f7f2 0%, #f4f1ea 52%, #e8f1ef 100%);
}

.mood-fade {
  z-index: 0;
  opacity: 0;
  transition: opacity var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.mood-fade.is-visible {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(rgba(18, 28, 27, 0.5) 0.5px, transparent 0.5px),
    radial-gradient(rgba(18, 28, 27, 0.5) 0.5px, transparent 0.5px);
  background-position: 0 0, 25px 25px;
  background-size: 50px 50px;
}

.topbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 94vw);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-inline: 0.45rem;
}

.mini-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.mini-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 220ms ease, color 220ms ease;
}

.mini-nav a:hover {
  color: var(--text);
  border-color: var(--line);
}

.chip {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    color var(--theme-smooth-ms) var(--theme-smooth-ease),
    background-color var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 42, 40, 0.34);
}

.site {
  position: relative;
  z-index: 3;
}

.scene {
  min-height: 100svh;
  padding: clamp(5.8rem, 10vh, 8rem) 4vw 2.2rem;
  display: grid;
  align-items: center;
  scroll-snap-align: start;
}

.scene-hero {
  position: relative;
}

.scene-inner {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
}

.panel-lite {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.72rem;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Syne", "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.75rem, 7.8vw, 6.8rem);
  line-height: 0.95;
  margin-top: 0.52rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.subcopy {
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.hero-layout {
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.hero-layout h1 {
  margin-top: 0;
  max-width: 12ch;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.45rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    color var(--theme-smooth-ms) var(--theme-smooth-ease),
    background-color var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 42, 40, 0.12);
}

.btn-primary {
  background: var(--text);
  color: #fbf8f1;
  border-color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.scene-flow {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
}

.flow-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: stretch;
}

.flow-copy {
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.flow-copy p:last-child {
  color: var(--muted);
  font-size: 1.04rem;
}

.flow-board {
  position: relative;
  min-height: 64svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.72), transparent 36%),
    radial-gradient(circle at 84% 78%, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(140deg, rgba(214, 236, 231, 0.6), rgba(249, 227, 207, 0.52));
}

.flow-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 42, 40, 0.22), transparent);
}

.line-a {
  width: 56%;
  left: 14%;
  top: 24%;
  transform: rotate(11deg);
}

.line-b {
  width: 50%;
  left: 28%;
  top: 45%;
  transform: rotate(-10deg);
}

.line-c {
  width: 60%;
  left: 18%;
  top: 70%;
  transform: rotate(7deg);
}

.node,
.ring {
  position: absolute;
  border-radius: 50%;
}

.node {
  width: 14px;
  height: 14px;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(31, 122, 115, 0.11);
  transition: background var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.node-a {
  top: 20%;
  left: 18%;
}

.node-b {
  top: 30%;
  left: 73%;
}

.node-c {
  top: 50%;
  left: 42%;
}

.node-d {
  top: 70%;
  left: 78%;
}

.node-e {
  top: 77%;
  left: 24%;
}

.ring {
  border: 1px dashed rgba(31, 42, 40, 0.25);
  animation: pulse 3.8s ease-in-out infinite;
}

.ring-a {
  width: 180px;
  height: 180px;
  top: 8%;
  left: -3%;
}

.ring-b {
  width: 220px;
  height: 220px;
  right: -7%;
  bottom: -16%;
  animation-delay: 1.3s;
}

.sticker {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.35rem 0.68rem;
  font-size: 0.84rem;
  color: var(--muted);
  transition:
    color var(--theme-smooth-ms) var(--theme-smooth-ease),
    border-color var(--theme-smooth-ms) var(--theme-smooth-ease),
    background-color var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.stick-a {
  top: 11%;
  right: 10%;
}

.stick-b {
  bottom: 12%;
  left: 14%;
}

.stick-c {
  bottom: 18%;
  right: 12%;
}

.scene-vibe {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
}

.vibe-layout {
  display: grid;
  gap: 1rem;
}

.card-stack {
  position: relative;
  min-height: 52svh;
}

.stack-card {
  position: absolute;
  inset: auto;
  width: min(640px, 92%);
  height: min(260px, 44svh);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  letter-spacing: -0.03em;
}

.card-a {
  top: 10%;
  left: 1%;
  background: linear-gradient(132deg, rgba(214, 236, 231, 0.72), rgba(255, 255, 255, 0.72));
  transform: rotate(-5deg);
}

.card-b {
  top: 18%;
  left: 18%;
  background: linear-gradient(132deg, rgba(249, 227, 207, 0.72), rgba(255, 255, 255, 0.72));
  transform: rotate(3deg);
}

.card-c {
  top: 28%;
  left: 35%;
  background: linear-gradient(132deg, rgba(224, 233, 245, 0.72), rgba(255, 255, 255, 0.72));
  transform: rotate(-2deg);
}

.word-river {
  --river-gap: 0;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.46rem 0;
  overflow: hidden;
  user-select: none;
  background: rgba(255, 255, 255, 0.6);
}

.river-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  gap: 0;
  animation: river-loop 24s linear infinite;
  will-change: transform;
}

.river-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: max-content;
  justify-content: flex-start;
  gap: 0;
}

.river-group span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  padding-inline: 0.62rem 0.94rem;
}

.river-group span::before {
  content: "\2726";
  margin-right: 0.46rem;
  color: var(--accent);
}

.reach-layout {
  max-width: 860px;
  padding: clamp(1.4rem, 2.8vw, 2.4rem);
  position: relative;
  overflow: hidden;
}

.reach-layout h2 {
  margin-top: 0.48rem;
  margin-bottom: 1rem;
}

.reach-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(circle at 32% 30%, rgba(248, 225, 188, 0.75), rgba(31, 122, 115, 0));
  pointer-events: none;
}

.site-foot {
  width: min(1080px, 100%);
  margin: 0.8rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.orb {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.58;
  pointer-events: none;
}

.orb-a {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 30% 35%, #ffe2b0, var(--accent-2));
  top: 8%;
  right: 6%;
  animation: float-a 7.5s ease-in-out infinite;
  transition: background var(--theme-smooth-ms) var(--theme-smooth-ease);
}

.orb-b {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 36% 34%, #cbf5ea, var(--accent));
  left: 6%;
  bottom: 9%;
  animation: float-b 9.5s ease-in-out infinite;
  transition: background var(--theme-smooth-ms) var(--theme-smooth-ease);
}

@keyframes river-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-14px, 18px) rotate(5deg);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(16px, -12px) rotate(-4deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  .topbar {
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .scene {
    padding-top: 7.6rem;
  }

  .flow-layout {
    grid-template-columns: 1fr;
  }

  .flow-board {
    min-height: 48svh;
  }

  .card-stack {
    min-height: 56svh;
  }

  .stack-card {
    width: min(580px, 95%);
  }

  .card-a {
    left: 0;
  }

  .card-b {
    left: 8%;
  }

  .card-c {
    left: 16%;
  }
}

@media (max-width: 700px) {
  .topbar {
    top: 0.7rem;
    width: 95vw;
    gap: 0.45rem;
  }

  .brand,
  .chip {
    order: 1;
  }

  .mini-nav {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .scene {
    padding: 8.2rem 1rem 1.2rem;
  }

  .scene-inner {
    width: 100%;
  }

  .hero-layout,
  .reach-layout {
    border-radius: 18px;
  }

  .flow-board {
    border-radius: 18px;
  }

  .card-stack {
    min-height: 50svh;
  }

  .stack-card {
    height: min(220px, 38svh);
    border-radius: 18px;
  }

  .card-a,
  .card-b,
  .card-c {
    left: 1%;
    width: 98%;
  }

  .card-a {
    top: 4%;
  }

  .card-b {
    top: 16%;
  }

  .card-c {
    top: 28%;
  }

  .site-foot {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .river-track,
  .btn,
  .chip,
  .ring {
    animation: none !important;
    transition: none !important;
  }
}
