:root {
  color-scheme: dark;
  --leaf: #76d747;
  --leaf-2: #3f9a28;
  --moss: #173f1b;
  --deep: #07120b;
  --soil: #a85524;
  --gold: #f0c45b;
  --stone: #d7ded0;
  --muted: #9dac96;
  --panel: rgba(12, 31, 17, 0.82);
  --line: rgba(190, 230, 170, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #edf7e7;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(145deg, #07120b 0%, #102a16 46%, #1a120d 100%);
  background-size: 48px 48px, 48px 48px, auto;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(240, 196, 91, 0.045), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

::selection {
  background: rgba(240, 196, 91, 0.35);
  color: #ffffff;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 11, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.brand,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img,
.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 8px 18px rgba(118, 215, 71, 0.18));
}

.brand span {
  font-size: 1.15rem;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.language-switcher button {
  min-width: 40px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #cddbc7;
  cursor: pointer;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-switcher button:hover {
  transform: translateY(-1px);
}

.language-switcher button[aria-pressed="true"] {
  background: linear-gradient(180deg, #8cea56, #3f9a28);
  color: #061208;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  min-width: 64px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #dcebd5;
  text-align: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(118, 215, 71, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #edf7e7;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 18, 11, 0.42), rgba(7, 18, 11, 0.82)),
    radial-gradient(circle at 75% 28%, rgba(118, 215, 71, 0.25), transparent 34%),
    repeating-linear-gradient(0deg, rgba(118, 215, 71, 0.08) 0 2px, transparent 2px 88px),
    linear-gradient(135deg, rgba(44, 96, 36, 0.42), rgba(96, 45, 20, 0.34));
  animation: fieldShift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -16vh;
  width: min(72vw, 780px);
  aspect-ratio: 1;
  background: url("assets/logo.png") center / contain no-repeat;
  opacity: 0.18;
  filter: blur(1px);
  animation: emblemDrift 9s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 72px 0 92px;
}

.hero-copy {
  animation: riseIn 720ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.section .eyebrow,
.join .eyebrow {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 850;
}

.hero-copy .eyebrow {
  margin-bottom: clamp(24px, 4vw, 42px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: 0;
  animation: titleSettle 760ms cubic-bezier(.18,.89,.32,1.2) both;
}

.hero-title {
  max-width: min(760px, 100%);
}

.hero-title a {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.hero-title img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 28px rgba(120, 217, 87, 0.14));
}

.hero-title span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.28;
}

.hero-text {
  position: relative;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 22px 0;
  color: #dcebd5;
  font-size: clamp(1.18rem, 1.6vw, 1.34rem);
  line-height: 1.75;
}

.hero-text::before,
.hero-text::after {
  content: "";
  position: absolute;
  left: 0;
  width: min(100%, 520px);
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 255, 103, 0.92), rgba(92, 221, 38, 0.66), rgba(11, 70, 22, 0.24), rgba(255, 255, 255, 0));
  box-shadow: 0 0 18px rgba(92, 221, 38, 0.2);
}

.hero-text::before {
  top: 0;
}

.hero-text::after {
  bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.falling-leaf {
  position: fixed;
  left: var(--leaf-x);
  top: var(--leaf-y);
  z-index: 120;
  width: 28px;
  height: 20px;
  pointer-events: none;
  transform-origin: 42% 66%;
  animation: leafFall var(--leaf-duration, 1500ms) cubic-bezier(.2,.68,.28,1) forwards;
}

.falling-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(4, 32, 7, 0.72);
  border-radius: 92% 12% 92% 18%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(135deg, #9af053 0 28%, #58bd32 29% 56%, #1f6c22 57% 100%);
  box-shadow:
    inset 4px 0 rgba(255, 255, 255, 0.14),
    inset -5px -3px rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transform: rotate(-28deg) skewX(-7deg);
}

.button,
.copy-ip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  position: relative;
  overflow: hidden;
}

.button::after,
.copy-ip::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-20deg);
  transition: left 520ms ease;
}

.button {
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button:hover,
.copy-ip:hover {
  transform: translateY(-2px);
}

.button:hover::after,
.copy-ip:hover::after {
  left: 125%;
}

.primary {
  border-color: rgba(118, 215, 71, 0.65);
  background: linear-gradient(180deg, #8cea56, #3f9a28);
  color: #061208;
  box-shadow: 0 12px 36px rgba(91, 203, 57, 0.26);
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel,
.join-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 4vw, 34px);
  animation: panelIn 820ms 120ms ease both;
}

.hero-logo {
  width: min(190px, 46vw);
  justify-self: center;
  animation: logoFloat 5.8s ease-in-out infinite;
}

.panel-label,
.server-address span,
.quick-grid span,
.stat-board span,
.join-notes {
  color: var(--muted);
}

.copy-ip {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(118, 215, 71, 0.5);
  background: rgba(118, 215, 71, 0.13);
  color: #f5fff0;
  font-weight: 900;
}

.copy-ip.large {
  min-height: 64px;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
}

.quick-grid,
.stat-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid div,
.stat-board div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-grid div:hover,
.stat-board div:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 196, 91, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.quick-grid strong,
.quick-grid span,
.stat-board strong,
.stat-board span {
  display: block;
}

.quick-grid strong,
.stat-board strong {
  margin-top: 6px;
  color: #ffffff;
  line-height: 1.2;
}

.link-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 7, 0.72);
}

.link-strip a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: #dcebd5;
  font-weight: 800;
  position: relative;
  transition: background 180ms ease, color 180ms ease;
}

.link-strip a::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 18px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.link-strip a:hover {
  background: rgba(118, 215, 71, 0.11);
  color: #ffffff;
}

.link-strip a:hover::after {
  transform: scaleX(1);
}

.section {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.6fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.intro p:last-child,
.split p,
.about p {
  color: #cddbc7;
  font-size: clamp(1.08rem, 1.35vw, 1.2rem);
  line-height: 1.85;
}

.intro p:last-child {
  max-width: 760px;
  margin-top: calc(1.05rem * 1.2 + 12px);
  padding: 18px 20px;
  border-left: 3px solid rgba(240, 196, 91, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(240, 196, 91, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feature-card {
  min-height: 290px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 196, 91, 0.34);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.feature-card p,
.protection-list p,
.faq p {
  color: #cddbc7;
  line-height: 1.75;
}

.feature-card p,
.split p:not(.eyebrow) {
  font-size: clamp(1.04rem, 1.2vw, 1.14rem);
  line-height: 1.75;
}

.split p:not(.eyebrow) {
  position: relative;
  max-width: 780px;
  padding: 4px 0 4px 24px;
  color: #dcebd5;
  font-size: clamp(1.14rem, 1.55vw, 1.3rem);
  line-height: 1.82;
}

.split p:not(.eyebrow)::before {
  content: "";
  position: absolute;
  top: 0.28em;
  bottom: 0.28em;
  left: 0;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), #78d957);
  box-shadow: 0 0 24px rgba(240, 196, 91, 0.22);
}

.hero-text,
.section h2,
.join h2,
.intro > p,
.feature-card p,
.split p:not(.eyebrow),
.protection-list p,
.faq p,
.about p,
.join-notes p {
  white-space: pre-line;
}

.block-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover .block-icon {
  transform: translateY(-2px) rotate(3deg);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.1),
    0 16px 30px rgba(0, 0, 0, 0.28);
}

.enchant { background: linear-gradient(135deg, #91f15f 0 50%, #2c7825 50%); }
.iris { background: linear-gradient(135deg, #a15cff 0 50%, #3fb7ff 50%); }
.sky { background: linear-gradient(135deg, #86dcff 0 50%, #f0c45b 50%); }
.arcade { background: linear-gradient(135deg, #ff665c 0 50%, #76d747 50%); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.stat-board {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 215, 71, 0.11), rgba(168, 85, 36, 0.12)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-board strong {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.protection-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.protection-list div {
  min-height: 210px;
  padding: 24px;
  border-left: 4px solid var(--leaf);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.protection-list div:hover {
  transform: translateY(-4px);
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}

.join {
  width: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
  background:
    linear-gradient(rgba(5, 12, 7, 0.72), rgba(5, 12, 7, 0.72)),
    linear-gradient(90deg, rgba(118, 215, 71, 0.18), rgba(168, 85, 36, 0.16));
}

.join-card {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(290px, 0.76fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(240, 196, 91, 0.11), transparent 38%, rgba(118, 215, 71, 0.1));
  opacity: 0.7;
  pointer-events: none;
}

.server-address small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.join-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.join-notes p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

details:hover {
  border-color: rgba(240, 196, 91, 0.28);
  background: rgba(255, 255, 255, 0.062);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  color: #f5fff0;
  font-weight: 850;
  list-style-position: outside;
}

details p,
details a {
  display: block;
  margin: 0;
  padding: 0 22px 20px;
}

details a {
  color: var(--gold);
  font-weight: 800;
}

code {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #f7e3a4;
}

.about {
  width: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
  background:
    linear-gradient(180deg, rgba(7, 18, 11, 0), rgba(7, 18, 11, 0.8)),
    repeating-linear-gradient(90deg, rgba(118, 215, 71, 0.07) 0 1px, transparent 1px 96px);
}

.about-text {
  width: min(980px, 100%);
  margin: 0 auto;
}

.about-text h2 {
  max-width: 760px;
  margin-bottom: 30px;
}

.about-book {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(118, 215, 71, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(194, 255, 103, 0.09), rgba(11, 70, 22, 0.14)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 28px 70px rgba(0, 0, 0, 0.26);
}

.about-book::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, rgba(194, 255, 103, 0.9), rgba(31, 108, 34, 0.8));
  box-shadow: 0 0 24px rgba(92, 221, 38, 0.2);
}

.about-pages {
  position: relative;
  min-height: 330px;
}

.about-page {
  display: none;
  margin: 0;
  padding: clamp(28px, 5vw, 52px);
  padding-left: clamp(34px, 6vw, 64px);
  color: #e5f7dd;
  font-size: clamp(1.18rem, 1.45vw, 1.34rem);
  line-height: 1.95;
  animation: pageTurn 280ms ease both;
}

.about-page.is-active {
  display: block;
}

.about-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 16px 30px;
  border-top: 1px solid rgba(118, 215, 71, 0.16);
  background: rgba(4, 12, 6, 0.36);
}

.about-controls span {
  color: #dff8d5;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.about-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  border: 1px solid rgba(194, 255, 103, 0.26);
  border-radius: 6px;
  color: #ecffdf;
  background:
    linear-gradient(180deg, rgba(92, 221, 38, 0.16), rgba(11, 70, 22, 0.22)),
    rgba(255, 255, 255, 0.04);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.about-control:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 255, 103, 0.5);
  background:
    linear-gradient(180deg, rgba(92, 221, 38, 0.22), rgba(11, 70, 22, 0.26)),
    rgba(255, 255, 255, 0.06);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050c07;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  padding: 12px 18px;
  border: 1px solid rgba(118, 215, 71, 0.42);
  border-radius: 6px;
  background: rgba(8, 21, 12, 0.95);
  color: #f5fff0;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

@keyframes fieldShift {
  from { transform: scale(1); }
  to { transform: scale(1.035) translate3d(-10px, -8px, 0); }
}

@keyframes emblemDrift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-18px, -12px, 0) rotate(-2deg); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titleSettle {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pageTurn {
  from { opacity: 0; transform: translateX(18px) rotateY(-4deg); }
  to { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes leafFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) rotate(-18deg) scale(0.7);
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate3d(calc(var(--leaf-drift) * 0.42), 78px, 0) rotate(calc(var(--leaf-spin) * 0.45)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--leaf-drift), 170px, 0) rotate(var(--leaf-spin)) scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .intro,
  .split,
  .join-card {
    grid-template-columns: 1fr;
  }

  .about-text h2 {
    max-width: 780px;
  }

  .feature-grid,
  .protection-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .join-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .brand span {
    display: none;
  }

  .language-switcher {
    margin-left: 0;
  }

  .language-switcher button {
    min-width: 36px;
    height: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 72px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 18, 11, 0.96);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    text-align: left;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(3.5rem, 23vw, 6rem);
  }

  .quick-grid,
  .feature-grid,
  .protection-list,
  .link-strip,
  .stat-board {
    grid-template-columns: 1fr;
  }

  .link-strip a {
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    width: min(100% - 32px, 1180px);
  }

  .intro p:last-child {
    margin-top: 0;
  }

  .about-page {
    padding: 26px 22px 28px 32px;
    font-size: 1.08rem;
    line-height: 1.85;
  }

  .about-pages {
    min-height: 420px;
  }

  .about-controls {
    padding-left: 22px;
  }

  .feature-card,
  .protection-list div {
    min-height: auto;
  }

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