:root {
  --bg: #f3ede4;
  --bg-strong: #ece3d7;
  --surface: rgba(255, 255, 255, 0.52);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --text: #14110f;
  --muted: #635b53;
  --line: rgba(20, 17, 15, 0.12);
  --shadow: 0 24px 80px rgba(41, 30, 18, 0.08);
  --folo: #5678c8;
  --folo-soft: rgba(86, 120, 200, 0.24);
  --rsshub: #d46f2b;
  --rsshub-soft: rgba(212, 111, 43, 0.24);
  --max-width: 1240px;
  --radius: 32px;
  --section-gap: clamp(5rem, 12vw, 10rem);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --scroll: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(20, 17, 15, 0.08);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(95, 109, 150, 0.08), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(163, 95, 49, 0.08), transparent 24%),
    var(--bg);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243, 237, 228, 0.15), rgba(243, 237, 228, 0));
  z-index: 0;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(20, 17, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 15, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 75%);
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #17120f;
  color: #f9f4ed;
  transform: translateY(calc(-100% - 1.25rem));
  transition: transform 180ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(20, 17, 15, 0.08);
  border-radius: 999px;
  background: rgba(243, 237, 228, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(28, 21, 15, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.42),
    0 10px 24px rgba(212, 111, 43, 0.16);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.site-nav a:focus-visible,
.button:focus-visible,
.link-row a:focus-visible,
.ecosystem-links a:focus-visible {
  outline: 2px solid rgba(20, 17, 15, 0.26);
  outline-offset: 4px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-items: start;
  padding: 0.35rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
  padding-top: clamp(0.6rem, 2.4vw, 1.4rem);
}

.hero-copy {
  max-width: 39rem;
  padding-top: clamp(1rem, 3vh, 2rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 9vw, 7.5rem);
  line-height: 0.94;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.lead,
.chapter-lead,
.section-heading p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.lead {
  max-width: 34rem;
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #f9f4ed;
  background: linear-gradient(135deg, #161210, #34271c);
  box-shadow: 0 16px 34px rgba(32, 20, 12, 0.18);
}

.button--ghost {
  color: var(--text);
  border-color: rgba(20, 17, 15, 0.14);
  background: rgba(255, 255, 255, 0.45);
}

.hero-art {
  position: relative;
  min-height: min(68vh, 43rem);
  border-radius: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 16%, rgba(86, 120, 200, 0.22), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(212, 111, 43, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-aura,
.hero-plane,
.hero-trace,
.hero-node {
  position: absolute;
}

.hero-aura {
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(24px);
}

.hero-aura--cool {
  top: 6%;
  left: 0%;
  background: rgba(86, 120, 200, 0.36);
  animation: float 11s ease-in-out infinite;
}

.hero-aura--warm {
  right: 1%;
  bottom: 4%;
  background: rgba(212, 111, 43, 0.32);
  animation: float 13s ease-in-out infinite reverse;
}

.hero-plane {
  left: 10%;
  right: 10%;
  height: 4.9rem;
  border-radius: 999px;
  transform:
    translate3d(calc((var(--pointer-x) - 50%) * 0.04), calc((var(--pointer-y) - 50%) * 0.03), 0)
    rotate(-11deg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  box-shadow: 0 14px 42px rgba(48, 35, 20, 0.08);
  backdrop-filter: blur(10px);
}

.hero-plane--one {
  top: 24%;
}

.hero-plane--two {
  top: 44%;
  left: 18%;
  right: 14%;
  background: linear-gradient(90deg, rgba(86, 120, 200, 0.42), rgba(255, 255, 255, 0.08));
}

.hero-plane--three {
  top: 61%;
  left: 14%;
  right: 16%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(212, 111, 43, 0.28));
}

.hero-trace {
  border-top: 1px solid rgba(20, 17, 15, 0.12);
  opacity: 0.8;
}

.hero-trace--one {
  inset: 17% 12% auto auto;
  width: 68%;
  height: 22%;
  border-radius: 50%;
  transform: rotate(7deg);
}

.hero-trace--two {
  inset: auto auto 11% 8%;
  width: 74%;
  height: 28%;
  border-radius: 50%;
  transform: rotate(-8deg);
}

.hero-node {
  width: 0.95rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #fff9f2;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.24);
}

.hero-node--one {
  top: 20%;
  right: 14%;
}

.hero-node--two {
  top: 46%;
  left: 19%;
}

.hero-node--three {
  bottom: 15%;
  right: 22%;
}

.section {
  padding: var(--section-gap) 0;
  scroll-margin-top: 7rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  max-width: 10ch;
}

.section--vision {
  padding-top: calc(var(--section-gap) * 0.78);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vision-item {
  padding: 1.5rem 1.4rem 0;
  border-top: 1px solid var(--line);
}

.vision-item p {
  margin-top: 0.9rem;
  max-width: 22rem;
  color: var(--muted);
}

.chapter {
  position: relative;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  border-block: 1px solid rgba(20, 17, 15, 0.06);
  pointer-events: none;
}

.chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.94fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.chapter-layout--reverse {
  grid-template-columns: minmax(320px, 0.94fr) minmax(0, 0.96fr);
}

.chapter-copy {
  display: grid;
  gap: 1rem;
}

.chapter-copy h2 {
  max-width: 11ch;
}

.chapter-copy > p:not(.chapter-lead) {
  max-width: 33rem;
  color: var(--muted);
}

.chapter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.chapter-tags li {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 17, 15, 0.1);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.42);
}

.chapter-note {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.4rem;
}

.chapter-note strong {
  font-size: 1rem;
}

.chapter-note span {
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.link-row a,
.ecosystem-links a {
  position: relative;
  display: inline-flex;
  gap: 0.35rem;
  color: var(--text);
  transition: transform 180ms ease, color 180ms ease;
}

.link-row a::after,
.ecosystem-links a::after {
  content: "↗";
  color: currentColor;
}

.link-row a:hover,
.link-row a:focus-visible,
.ecosystem-links a:hover,
.ecosystem-links a:focus-visible {
  transform: translateY(-1px);
}

.chapter-art {
  position: relative;
  min-height: 38rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

.chapter-art--folo {
  background:
    radial-gradient(circle at 18% 18%, rgba(86, 120, 200, 0.32), transparent 26%),
    radial-gradient(circle at 74% 78%, rgba(86, 120, 200, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(86, 120, 200, 0.1));
}

.chapter-art--rsshub {
  background:
    radial-gradient(circle at 72% 18%, rgba(212, 111, 43, 0.32), transparent 24%),
    radial-gradient(circle at 30% 70%, rgba(212, 111, 43, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(212, 111, 43, 0.1));
}

.folo-stage,
.rsshub-stage {
  position: absolute;
  inset: 0;
}

.folo-rail,
.folo-card,
.rsshub-route,
.rsshub-node {
  position: absolute;
}

.folo-rail {
  left: 8%;
  right: 8%;
  height: 3.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(86, 120, 200, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 28px rgba(86, 120, 200, 0.08);
}

.folo-rail--one {
  top: 18%;
  transform: rotate(-9deg) translateX(calc(var(--scroll) * -0.04rem));
}

.folo-rail--two {
  top: 39%;
  left: 14%;
  right: 15%;
  background: linear-gradient(90deg, rgba(86, 120, 200, 0.52), rgba(255, 255, 255, 0.18));
  transform: rotate(-7deg) translateX(calc(var(--scroll) * 0.03rem));
}

.folo-rail--three {
  top: 62%;
  left: 11%;
  right: 13%;
  transform: rotate(-8deg) translateX(calc(var(--scroll) * -0.02rem));
}

.folo-card {
  width: clamp(8rem, 20vw, 12rem);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 44px rgba(86, 120, 200, 0.18);
}

.folo-card::before,
.folo-card::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(86, 120, 200, 0.28);
}

.folo-card::before {
  top: 26%;
}

.folo-card::after {
  top: 44%;
}

.folo-card--one {
  top: 16%;
  right: 9%;
  height: 9rem;
  transform: rotate(6deg);
}

.folo-card--two {
  top: 34%;
  left: 10%;
  height: 8rem;
  transform: rotate(-5deg);
}

.folo-card--three {
  top: 50%;
  right: 16%;
  height: 10rem;
  transform: rotate(8deg);
}

.folo-card--four {
  bottom: 10%;
  left: 16%;
  height: 7.5rem;
  transform: rotate(-7deg);
}

.rsshub-route {
  border-top: 1px solid rgba(212, 111, 43, 0.22);
  border-radius: 50%;
}

.rsshub-route--one {
  inset: 16% 8% auto auto;
  width: 72%;
  height: 26%;
  transform: rotate(8deg);
}

.rsshub-route--two {
  inset: 32% auto auto 8%;
  width: 68%;
  height: 28%;
  transform: rotate(-11deg);
}

.rsshub-route--three {
  inset: auto 10% 20% auto;
  width: 64%;
  height: 24%;
  transform: rotate(-6deg);
}

.rsshub-route--four {
  inset: auto auto 9% 14%;
  width: 54%;
  height: 20%;
  transform: rotate(12deg);
}

.rsshub-node {
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #fff7ed;
  box-shadow: 0 0 0 10px rgba(212, 111, 43, 0.18);
}

.rsshub-node--one {
  top: 18%;
  left: 14%;
}

.rsshub-node--two {
  top: 22%;
  right: 18%;
}

.rsshub-node--three {
  top: 42%;
  left: 42%;
}

.rsshub-node--four {
  top: 50%;
  right: 14%;
}

.rsshub-node--five {
  bottom: 18%;
  left: 20%;
}

.rsshub-node--six {
  bottom: 12%;
  right: 34%;
}

.chapter-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.section--ecosystem {
  padding-bottom: calc(var(--section-gap) * 1.1);
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.ecosystem-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.ecosystem-links a {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.link-label {
  font-size: 1.08rem;
  font-weight: 600;
}

.link-copy {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@media (max-width: 1080px) {
  .hero-layout,
  .chapter-layout,
  .chapter-layout--reverse,
  .ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .hero-art,
  .chapter-art {
    min-height: 30rem;
  }

  .chapter-layout--reverse .chapter-art {
    order: 2;
  }

  .chapter-layout--reverse .chapter-copy {
    order: 1;
  }

  .ecosystem-links a {
    align-items: start;
    flex-direction: column;
  }

  .link-copy {
    text-align: left;
  }
}

@media (max-width: 820px) {
  :root {
    --section-gap: 4.5rem;
  }

  .site-header {
    padding: 0.7rem 0;
  }

  .header-inner {
    padding: 0.8rem 0.9rem;
    border-radius: 1.3rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  h1 {
    max-width: 8.5ch;
  }

  .vision-grid {
    grid-template-columns: 1fr;
  }

  .chapter-art,
  .hero-art {
    min-height: 24rem;
  }

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

@media (max-width: 560px) {
  .hero-layout {
    padding-top: 1.5rem;
  }

  .wrap {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .header-inner {
    gap: 0.8rem;
  }

  .site-nav a {
    min-height: 2.2rem;
    padding: 0 0.8rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 0.2rem;
    padding-bottom: 1.6rem;
  }

  .hero-actions,
  .link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .chapter-art,
  .hero-art {
    min-height: 20rem;
  }

  .folo-card {
    width: 7rem;
  }

  .chapter-caption {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
}
