@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Josefin+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #001e3c;
  --ink-2: #04294a;
  --ink-3: #06304f;
  --mint: #99ffcc;
  --neon: #00ff41;
  --text: #e2fbf0;
  --body: #cfeade;
  --muted: #9fc7ba;
  --line: rgba(153, 255, 204, 0.22);
  --font-body: 'Josefin Sans', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-head: 'Cinzel', 'Songti SC', 'PingFang SC', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 700px at 88% -8%, rgba(0, 255, 65, 0.18), transparent 62%),
    radial-gradient(760px 620px at 2% 18%, rgba(153, 255, 204, 0.15), transparent 66%),
    radial-gradient(1100px 820px at 50% 112%, rgba(0, 255, 65, 0.12), transparent 62%);
  background-attachment: fixed;
  padding-bottom: 108px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(153, 255, 204, 0.16) 1px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 54% 26%, #000 0%, transparent 76%);
  mask-image: radial-gradient(circle at 54% 26%, #000 0%, transparent 76%);
  opacity: 0.75;
}

body::after {
  content: "";
  position: fixed;
  z-index: 0;
  right: -12vw;
  top: 22vh;
  width: 46vw;
  height: 46vw;
  pointer-events: none;
  border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.24), rgba(153, 255, 204, 0.08) 55%, transparent 72%);
  filter: blur(34px);
  animation: breathe 13s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%;
  }
  50% {
    transform: scale(1.08) rotate(6deg);
    border-radius: 44% 56% 62% 38% / 46% 42% 58% 54%;
  }
}

.stage,
.foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.stage {
  padding-top: 8px;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  min-height: 45vh;
  padding: clamp(26px, 5vw, 52px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: #ffffff;
  background-image: linear-gradient(102deg, var(--mint) 0%, #ffffff 48%, var(--neon) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero hr {
  border: 0;
  height: 2px;
  width: 76px;
  margin: 0 0 16px;
  background-image: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

.lede {
  margin: 0;
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
}

.blob-frame {
  position: relative;
  width: min(330px, 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-image: linear-gradient(152deg, rgba(0, 255, 65, 0.42), rgba(153, 255, 204, 0.2) 46%, rgba(0, 30, 60, 0.94));
  border-radius: 60% 40% 46% 54% / 52% 58% 42% 48%;
  box-shadow: 0 0 0 1px rgba(153, 255, 204, 0.2), 0 34px 74px -34px rgba(0, 255, 65, 0.5);
  animation: breathe 9s ease-in-out infinite;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blob-core {
  position: absolute;
  inset: 0;
  filter: blur(7px);
  background-image:
    radial-gradient(circle at 34% 30%, var(--mint), transparent 52%),
    radial-gradient(circle at 72% 70%, var(--neon), transparent 60%),
    radial-gradient(circle at 20% 78%, rgba(153, 255, 204, 0.5), transparent 55%);
}

.badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background-color: var(--mint);
}

.hero-figure figcaption {
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
}

/* ---------- body + rail ---------- */

.body-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.flow {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px) 0;
}

.flow > article {
  padding: clamp(24px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 26px;
  scroll-margin-bottom: 130px;
}

.flow > article:last-child {
  border-bottom: 0;
}

.flow h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.32;
  color: #ffffff;
}

.flow h3 {
  margin: 26px 0 8px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  color: var(--mint);
}

.flow hr {
  border: 0;
  height: 1px;
  width: 68px;
  margin: 0 0 18px;
  background-image: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

.flow p {
  margin: 0 0 15px;
}

.flow strong,
.flow b {
  color: #ffffff;
}

.flow ul,
.flow ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.flow li {
  margin: 0 0 8px;
}

.flow li::marker {
  color: var(--neon);
}

.flow a {
  color: var(--mint);
  text-decoration-color: rgba(153, 255, 204, 0.45);
  text-underline-offset: 3px;
}

.flow a:hover {
  color: var(--neon);
}

.flow blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background-color: var(--ink-2);
  color: #ffffff;
}

.flow img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 16px;
}

.flow figure {
  margin: 0 0 16px;
}

.flow figcaption {
  font-size: 13.5px;
  color: var(--muted);
}

.rail {
  position: sticky;
  top: 24px;
  margin-top: clamp(22px, 3vw, 38px);
  padding: 22px 20px;
  border-radius: 0;
  background-color: var(--ink-2);
}

.rail-title {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.rail hr {
  border: 0;
  height: 1px;
  margin: 0 0 12px;
  background-image: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list li {
  counter-increment: rail;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(153, 255, 204, 0.55);
}

.rail-list a:hover {
  color: #ffffff;
}

.rail-list a[aria-current="true"] {
  color: var(--ink);
  background-color: var(--mint);
  padding-left: 10px;
}

.rail-list a[aria-current="true"]::before {
  color: rgba(0, 30, 60, 0.6);
}

/* ---------- footer ---------- */

.foot {
  margin-top: clamp(28px, 5vw, 56px);
  padding-bottom: 24px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 22px;
  border-top: 1px solid var(--line);
}

.foot dl {
  margin: 0;
  min-width: 0;
}

.foot dt {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(153, 255, 204, 0.7);
}

.foot dd {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #ffffff;
  overflow-wrap: break-word;
}

.foot-mail {
  color: var(--mint);
  text-decoration: none;
}

.foot-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.foot-form label {
  font-size: 14px;
  color: var(--muted);
}

.foot-form input {
  flex: 1 1 190px;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  color: #ffffff;
  background-color: var(--ink-3);
}

.foot-form input::placeholder {
  color: rgba(159, 199, 186, 0.75);
}

.foot-form input:focus {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}

.foot-form button {
  min-height: 44px;
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background-color: var(--neon);
  cursor: pointer;
}

.foot-form button:hover {
  background-color: var(--mint);
}

.foot-copy {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- dock ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav cta";
  align-items: center;
  gap: 10px;
  padding: 10px max(14px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
  background-color: rgba(0, 22, 44, 0.86);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}

.dock-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--mint);
  background-color: rgba(153, 255, 204, 0.1);
  text-decoration: none;
  white-space: nowrap;
}

.dock-brand:hover {
  background-color: rgba(153, 255, 204, 0.2);
}

.dock-nav {
  grid-area: nav;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.dock-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
}

.dock-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--mint);
  background-color: rgba(153, 255, 204, 0.09);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.dock-nav a:hover,
.dock-nav a[aria-current="true"] {
  color: var(--ink);
  background-color: var(--neon);
}

.dock-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(120deg, var(--neon), var(--mint));
  text-decoration: none;
  white-space: nowrap;
}

.dock-cta--ghost {
  background-image: none;
  background-color: rgba(153, 255, 204, 0.14);
  color: var(--mint);
}

/* ---------- reveal ---------- */

.js .flow > article,
.js .hero-figure {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .is-in {
  opacity: 1;
  transform: none;
}

.js .flow > article:nth-child(2) { transition-delay: 40ms; }
.js .flow > article:nth-child(3) { transition-delay: 80ms; }
.js .flow > article:nth-child(4) { transition-delay: 120ms; }
.js .flow > article:nth-child(5) { transition-delay: 160ms; }
.js .flow > article:nth-child(6) { transition-delay: 200ms; }
.js .flow > article:nth-child(7) { transition-delay: 240ms; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .body-cell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail {
    position: static;
    margin-top: 0;
    margin-bottom: 20px;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
    padding-bottom: 132px;
  }

  .dock {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand . cta"
      "nav nav nav";
    row-gap: 6px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-top: 24px;
  }

  .hero-figure {
    align-items: flex-start;
  }

  .blob-frame {
    width: min(270px, 82%);
  }

  .hero-figure figcaption {
    text-align: left;
  }

  .foot-grid {
    gap: 12px;
  }

  .foot dd {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .stage,
  .foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rail-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  body::after,
  .blob-frame {
    animation: none;
  }

  .js .flow > article,
  .js .hero-figure {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dock-nav a {
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
