:root {
  --bg-top: #d8fff0;
  --bg-mid: #f5ffcb;
  --bg-bottom: #fff4d8;
  --ink: #10200f;
  --ink-soft: #32582d;
  --card: rgba(255, 255, 255, 0.84);
  --line: rgba(22, 71, 21, 0.16);
  --brand: #58cc02;
  --brand-deep: #3ca000;
  --accent: #ffb20a;
  --accent-deep: #e08700;
  --signal: #00abf1;
  --danger: #d64444;
  --shadow: 0 20px 50px rgba(44, 78, 31, 0.16);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --speed: 180ms;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-mid) 52%, var(--bg-bottom));
  line-height: 1.45;
}

h1,
h2,
h3,
.brand strong {
  font-family: "Baloo 2", cursive;
  letter-spacing: 0.2px;
  margin-top: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 10px;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.5;
}

.bg-shape-a {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 30% 30%, #7be72d, #a7ff8b 65%, transparent 80%);
  top: -130px;
  right: -90px;
  animation: floatA 7s ease-in-out infinite;
}

.bg-shape-b {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 40% 40%, #ffd665, #fff2a8 62%, transparent 78%);
  bottom: -180px;
  left: -150px;
  animation: floatB 9s ease-in-out infinite;
}

.bg-shape-c {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 40% 40%, #8ed8ff, #caf0ff 60%, transparent 76%);
  bottom: 15%;
  right: 8%;
  animation: floatC 8s ease-in-out infinite;
}

@keyframes floatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

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

@keyframes floatC {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.topbar {
  width: min(1140px, calc(100% - 28px));
  margin: 16px auto 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 8px;
  backdrop-filter: blur(10px);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 900;
  font-family: "Baloo 2", cursive;
  box-shadow: 0 8px 18px rgba(60, 160, 0, 0.32);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 9px;
  padding: 8px 10px;
  transition: background var(--speed) ease, color var(--speed) ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(88, 204, 2, 0.15);
  color: var(--ink);
}

main,
.footer {
  width: min(1140px, calc(100% - 28px));
  margin: 0 auto;
}

section {
  margin-top: 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.hero-main,
.hero-panel,
.card,
.value-grid article,
.path,
.packs article,
.channel-grid article,
.faq-list article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-main,
.hero-panel {
  padding: 24px;
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.11em;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  line-height: 0.98;
}

.hero-copy {
  margin: 0;
  font-size: 1.08rem;
  color: #21441e;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 10px 20px rgba(68, 167, 15, 0.36);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: #3b2800;
  box-shadow: 0 10px 20px rgba(227, 140, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.hero-metrics {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-metrics li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
}

.hero-metrics strong {
  font-family: "Baloo 2", cursive;
  font-size: 1.25rem;
}

.hero-metrics span {
  color: #33562f;
}

.hero-panel h2 {
  margin-bottom: 8px;
}

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

.stat-grid article {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.stat-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.stat-grid strong {
  font-size: 1.28rem;
}

.session-status {
  margin-top: 12px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.muted {
  margin: 0;
  color: #4a6846;
}

.value-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.value-grid article {
  padding: 18px;
}

.value-grid h3 {
  margin-bottom: 8px;
}

.path {
  padding: 22px;
}

.mission-path {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.path-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.node-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #9fd65a, #62af17);
}

.path-node.complete {
  border-color: rgba(66, 161, 17, 0.45);
  box-shadow: 0 12px 20px rgba(91, 178, 31, 0.18);
}

.path-node.complete .node-dot {
  background: linear-gradient(180deg, #ffcf4f, #f49d00);
}

.path-node p,
.path-node small {
  margin: 0;
  color: var(--ink-soft);
}

.studio-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
}

.stack-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #244121;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(42, 86, 26, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.96rem;
  font-family: "Nunito", sans-serif;
  background: rgba(255, 255, 255, 0.9);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 171, 241, 0.42);
  outline-offset: 1px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 8px;
}

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

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

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.output-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95), rgba(223, 255, 203, 0.58));
}

.result-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  margin-top: 10px;
}

.result-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.signal-line {
  margin: 5px 0;
  color: #21411c;
}

.tier-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #17300f;
  background: linear-gradient(180deg, #ffe396, #ffbf34);
}

.packs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.packs article {
  padding: 18px;
}

.packs article h3 {
  margin-bottom: 8px;
}

.price {
  font-family: "Baloo 2", cursive;
  font-size: 2rem;
  margin: 0;
}

.price small {
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
}

.pack-meta {
  margin: 10px 0;
  color: var(--ink-soft);
}

.channel-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.channel-grid article {
  padding: 16px;
}

.channel-grid h3 {
  margin-bottom: 8px;
}

.channel-grid p {
  margin: 6px 0;
  color: #2f4a2a;
}

.wiki-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wiki-article-list,
.feed-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.wiki-item,
.feed-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
}

.wiki-item.active {
  border-color: rgba(58, 155, 17, 0.45);
  box-shadow: 0 8px 16px rgba(58, 155, 17, 0.12);
}

.wiki-item button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: "Nunito", sans-serif;
  font-size: 0.94rem;
  color: #1f3f1b;
  cursor: pointer;
  padding: 0;
}

.wiki-item button strong {
  display: block;
  margin-bottom: 4px;
}

.wiki-article-body {
  margin-top: 10px;
  white-space: pre-wrap;
  color: #1e381a;
  line-height: 1.5;
}

.wiki-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(88, 204, 2, 0.16);
  color: #23500f;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.status-approved {
  background: rgba(88, 204, 2, 0.2);
  color: #26600f;
}

.status-warning {
  background: rgba(255, 178, 10, 0.22);
  color: #6b4600;
}

.status-pending {
  background: rgba(0, 171, 241, 0.16);
  color: #004f72;
}

.mini-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin: 0;
}

.mini-fieldset legend {
  font-weight: 800;
  color: #2d4f28;
  padding: 0 6px;
}

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

.faq-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.faq-list article {
  padding: 16px;
}

.footer {
  margin-top: 44px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer nav {
  display: inline-flex;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 650ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 160ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 210ms;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notice {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.notice.error {
  color: var(--danger);
  border-color: rgba(214, 68, 68, 0.4);
}

.notice.success {
  color: #21620c;
  border-color: rgba(46, 146, 15, 0.4);
}

@media (max-width: 1024px) {
  .hero,
  .studio-grid,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .packs,
  .channel-grid,
  .faq-list,
  .mission-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

  main,
  .footer,
  .topbar {
    width: min(1140px, calc(100% - 18px));
  }

  .nav {
    display: none;
  }

  .value-grid,
  .packs,
  .channel-grid,
  .wiki-layout,
  .faq-list,
  .mission-path,
  .grid-2,
  .grid-3,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-panel,
  .card,
  .path {
    padding: 16px;
  }

  .btn {
    width: 100%;
  }
}
