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

:root {
  --ink: #001e3c;
  --ink-lo: #00142a;
  --ink-hi: #063a5e;
  --mint: #99ffcc;
  --neon: #00ff41;
  --paper: #e9fff6;
  --line: rgba(153, 255, 204, 0.3);
  --line-2: rgba(153, 255, 204, 0.14);
  --r: 28px;
}

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

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

body {
  margin: 0;
  padding-bottom: 104px;
  font-family: 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--paper);
  background: radial-gradient(120% 82% at 82% -8%, var(--ink-hi) 0%, var(--ink) 56%, var(--ink-lo) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  z-index: 0;
  top: -18vh;
  left: -14vw;
  width: 62vw;
  height: 62vw;
  min-width: 300px;
  min-height: 300px;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  background: radial-gradient(circle at 40% 40%, rgba(0, 255, 65, 0.24), rgba(0, 255, 65, 0) 68%);
  filter: blur(28px);
  animation: morph 22s ease-in-out infinite alternate, breathe 9s ease-in-out infinite;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  z-index: 0;
  right: -18vw;
  bottom: 4vh;
  width: 54vw;
  height: 54vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 44% 56% 38% 62% / 60% 40% 62% 38%;
  background: radial-gradient(circle at 55% 45%, rgba(153, 255, 204, 0.2), rgba(153, 255, 204, 0) 70%);
  filter: blur(30px);
  animation: morph 26s ease-in-out infinite alternate-reverse, breathe 11s ease-in-out infinite;
  pointer-events: none;
}

main,
.dock,
.soil {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: var(--neon);
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 6px;
}

.jump {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 80;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--neon);
  color: #00281a;
  text-decoration: none;
  font-size: 16px;
}

.jump:focus {
  left: 12px;
}

/* ---------------- 底部固定条 ---------------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 30, 60, 0.7), rgba(0, 18, 38, 0.97));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.dock::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 10px;
  background: linear-gradient(90deg, var(--neon), var(--mint) 70%, rgba(153, 255, 204, 0));
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  opacity: 0.9;
  pointer-events: none;
}

.dock__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--mint);
  text-decoration: none;
  border-radius: 999px;
}

.dock__glyph {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}

.dock__glyph--dot {
  background: conic-gradient(from 20deg, var(--neon), var(--mint), var(--neon));
  animation: breathe 4.4s ease-in-out infinite;
}

.dock__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dock__pod {
  position: relative;
  margin-left: auto;
}

.dock__sum {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--mint);
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.55);
  user-select: none;
}

.dock__sum::-webkit-details-marker {
  display: none;
}

.dock__sumIcon {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 55% 45% 40% 60%;
  background: var(--neon);
  animation: breathe 3.4s ease-in-out infinite;
}

.dock__pod[open] .dock__sum {
  border-color: var(--neon);
  background: rgba(0, 255, 65, 0.16);
}

.dock__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(84vw, 322px);
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(0, 24, 48, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: grow 0.28s ease-out both;
  transform-origin: 100% 100%;
}

.dock__menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  color: var(--paper);
  text-decoration: none;
  border-radius: 14px;
}

.dock__menu li a:hover,
.dock__menu li a:focus-visible {
  background: rgba(0, 255, 65, 0.16);
  color: #fff;
}

.blob {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 60% 40% 52% 48%;
  background: var(--neon);
  animation: breathe 4s ease-in-out infinite;
}

.dock__menu li:nth-child(2n) .blob {
  background: var(--mint);
  animation-delay: 0.5s;
}

.dock__menu li:nth-child(3n) .blob {
  animation-delay: 1.1s;
}

.dock__call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--mint);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------------- 顶部呼吸区 ---------------- */
.pulse {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  padding: 46px 18px 0;
  overflow: hidden;
  text-align: right;
}

.pulse__copy {
  max-width: 640px;
  margin-left: auto;
}

.pulse__h {
  margin: 0;
  font-size: clamp(28px, 7.4vw, 54px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mint);
  background: linear-gradient(118deg, #f2fff9, var(--mint) 52%, var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse__lede {
  margin: 14px 0 0;
  max-width: 42ch;
  margin-left: auto;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(233, 255, 246, 0.82);
}

.pulse__fig {
  position: relative;
  margin-bottom: 54px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: rgba(0, 255, 65, 0.06);
  will-change: transform;
}

.pulse__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pulse__mesh {
  height: clamp(150px, 34vw, 300px);
  background: radial-gradient(circle at 30% 35%, rgba(0, 255, 65, 0.5), rgba(0, 255, 65, 0) 55%),
    radial-gradient(circle at 72% 65%, rgba(153, 255, 204, 0.45), rgba(153, 255, 204, 0) 58%),
    radial-gradient(circle at 50% 50%, rgba(6, 58, 94, 0.9), rgba(0, 20, 42, 1));
  animation: breathe 8s ease-in-out infinite;
}

.pulse__slash {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: linear-gradient(90deg, var(--neon), var(--mint) 62%, rgba(153, 255, 204, 0.2));
  clip-path: polygon(0 100%, 100% 12%, 100% 100%);
  pointer-events: none;
}

/* ---------------- 正文 + 侧栏 ---------------- */
.stage {
  display: grid;
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 18px 12px;
}

.stream {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.stream > article {
  scroll-margin-top: 24px;
  padding: 24px 20px 26px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(153, 255, 204, 0.06), rgba(0, 30, 60, 0.34));
  overflow-wrap: break-word;
}

.stream > article:nth-child(2n) {
  background: linear-gradient(158deg, rgba(0, 255, 65, 0.07), rgba(0, 20, 42, 0.42));
}

.stream > article::before {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--neon), rgba(0, 255, 65, 0));
}

.stream > article > h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 4.8vw, 27px);
  line-height: 1.38;
  font-weight: 700;
  color: var(--mint);
}

.stream > article > h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--mint);
}

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

.stream p {
  margin: 0 0 14px;
  color: rgba(233, 255, 246, 0.9);
}

.stream p:last-child {
  margin-bottom: 0;
}

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

.stream li {
  margin-bottom: 8px;
}

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

.stream a {
  color: var(--neon);
  text-underline-offset: 3px;
}

.stream strong {
  color: #fff;
}

.stream img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line-2);
}

.stream figure {
  margin: 18px 0;
}

.rim {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(200deg, rgba(0, 255, 65, 0.11), rgba(0, 20, 42, 0.5));
  align-self: start;
  overflow: hidden;
}

.rim::after {
  content: '';
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
  height: 96px;
  border-radius: 58% 42% 60% 40%;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.4), rgba(0, 255, 65, 0));
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.rim__h {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mint);
}

.rim hr {
  border: 0;
  height: 2px;
  width: 44px;
  margin: 0 0 14px;
  background: var(--neon);
}

.rim__list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
}

.rim__list li a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 4px;
  font-size: 16px;
  color: rgba(233, 255, 246, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(153, 255, 204, 0.18);
}

.rim__list li a::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50% 50% 45% 55%;
  background: var(--mint);
}

.rim__list li a:hover,
.rim__list li a:focus-visible {
  color: #fff;
  background: rgba(0, 255, 65, 0.1);
}

/* ---------------- 页脚 ---------------- */
.soil {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 26px;
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 30px 18px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 30, 60, 0), rgba(0, 18, 38, 0.72));
}

.soil__id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 170px;
}

.soil__mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mint);
  text-decoration: none;
  padding: 8px 0;
}

.soil__cell {
  width: 12px;
  height: 12px;
  border-radius: 58% 42% 40% 60%;
  background: linear-gradient(120deg, var(--neon), var(--mint));
  animation: breathe 5s ease-in-out infinite;
}

.soil__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  flex: 2 1 300px;
}

.soil__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 2px;
  font-size: 16px;
  color: rgba(233, 255, 246, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 255, 204, 0.24);
}

.soil__nav a:hover,
.soil__nav a:focus-visible {
  color: var(--neon);
}

.soil__form {
  flex: 1 1 240px;
  min-width: 0;
}

.soil__lab {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: rgba(233, 255, 246, 0.7);
}

.soil__row {
  display: flex;
  gap: 8px;
}

.soil__row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 20, 42, 0.6);
}

.soil__row input::placeholder {
  color: rgba(233, 255, 246, 0.45);
}

.soil__row button {
  min-height: 46px;
  padding: 0 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #00281a;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--mint), var(--neon));
  cursor: pointer;
}

.soil__copy {
  flex: 1 0 100%;
  margin: 6px 0 0;
  font-size: 16px;
  color: rgba(233, 255, 246, 0.6);
}

/* ---------------- 动效 ---------------- */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes morph {
  0% {
    border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  }
  50% {
    border-radius: 40% 60% 38% 62% / 62% 38% 62% 38%;
  }
  100% {
    border-radius: 62% 38% 52% 48% / 38% 62% 40% 60%;
  }
}

@keyframes grow {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.rv {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js .rv:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .js .stream > article {
    animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .js .stream > article:nth-child(2) {
    animation-delay: 0.06s;
  }
  .js .stream > article:nth-child(3) {
    animation-delay: 0.12s;
  }
  .js .stream > article:nth-child(4) {
    animation-delay: 0.18s;
  }
  .js .stream > article:nth-child(5) {
    animation-delay: 0.24s;
  }
  .js .stream > article:nth-child(n + 6) {
    animation-delay: 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before,
  body::after,
  .blob,
  .dock__glyph--dot,
  .dock__sumIcon,
  .pulse__mesh,
  .rim::after,
  .soil__cell {
    animation: none;
  }
  .js .rv:not(.in) {
    opacity: 1;
    transform: none;
  }
  .js .stream > article {
    animation: none;
  }
  .dock__menu {
    animation: none;
  }
}

/* ---------------- 断点 ---------------- */
@media (min-width: 700px) {
  body {
    font-size: 18px;
  }
  .dock {
    padding: 14px 26px calc(14px + env(safe-area-inset-bottom));
    gap: 14px;
  }
  .pulse {
    padding: 64px 26px 0;
  }
  .pulse__lede {
    font-size: 18px;
  }
  .stage {
    padding: 44px 26px 16px;
  }
  .soil {
    padding: 36px 26px 30px;
  }
}

@media (min-width: 920px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 34px;
    align-items: start;
  }
  .rim {
    position: sticky;
    top: 24px;
  }
  .stream > article {
    padding: 30px 28px 32px;
  }
  .pulse {
    min-height: 70vh;
    padding-top: 86px;
  }
}

@media (max-width: 419px) {
  .dock__name {
    font-size: 15px;
  }
  .dock__call {
    padding: 0 12px;
  }
  .dock__sum {
    padding: 0 13px;
  }
}

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