@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --ink: #142117;
  --muted: #5d6d62;
  --green: #1b7a34;
  --leaf: #146b2c;
  --deep: #0e3d1c;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--paper);
  color-scheme: light;
}

.aurora { display: none; }

.stage {
  position: relative;
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top))
    18px
    calc(108px + env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chip {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(27, 122, 52, 0.22);
  border-radius: 999px;
  background: #eef8f0;
  color: #146b2c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rise 0.7s ease both;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dde62;
  box-shadow: 0 0 0 0 rgba(61, 222, 98, 0.7);
  animation: pulse 1.8s ease-out infinite;
}

.brand {
  width: min(300px, 84%);
  margin: 0 auto 18px;
  background: transparent;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
}

h1 {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(34px, 9.4vw, 42px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.03em;
  animation: rise 0.8s 0.16s ease both;
}
h1 .line { display: block; }
h1 .accent {
  color: #146b2c;
}

.deck {
  margin: 12px 0 0;
  max-width: 32ch;
  color: #243128;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  animation: rise 0.8s 0.24s ease both;
}

.join {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 2px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  animation: rise 0.8s 0.32s ease both, btnGlow 2.6s 0.8s ease-in-out infinite;
}
.join-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from var(--spin),
    transparent 0%,
    #e9ffef 10%,
    #7dff9a 20%,
    transparent 34%,
    transparent 100%
  );
  animation: spin 2.6s linear infinite;
}
.join-face {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 68px;
  padding: 10px 12px 10px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #46c15d 0%, #1d8a36 46%, #0e5c24 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 40, 12, 0.35);
}
.join-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.45) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: shine 2.8s ease-in-out infinite;
}
.join-icon,
.join-go,
.join-copy { position: relative; z-index: 1; }
.join-icon,
.join-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
}
.join-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(0, 30, 10, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.join-icon svg { width: 22px; height: 22px; fill: currentColor; }
.join-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  animation: nudge 1.5s ease-in-out infinite;
}
.join-go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.join-copy { flex: 1; text-align: left; }
.join-copy strong {
  display: block;
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.join-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.join:active { transform: scale(0.985); }
.join:focus-visible {
  outline: 3px solid #b6ffc6;
  outline-offset: 3px;
}

.trust {
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: rise 0.8s 0.4s ease both;
}
.trust li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4faf5;
  border: 1px solid rgba(27, 122, 52, 0.16);
  color: #1d4a2a;
  font-size: 12px;
  font-weight: 650;
}

.tiles {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.tile {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 18px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(27, 122, 52, 0.14);
  box-shadow: 0 8px 20px rgba(20, 60, 30, 0.06);
  animation: rise 0.7s ease both;
}
.tile:nth-child(1) { animation-delay: 0.08s; }
.tile:nth-child(2) { animation-delay: 0.16s; }
.tile:nth-child(3) { animation-delay: 0.24s; }
.tile-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f6eb;
  color: #146b2c;
}
.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.tile p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.path {
  margin-top: 16px;
  padding: 16px 14px 8px;
  border-radius: 20px;
  border: 1px solid rgba(27, 122, 52, 0.14);
  background: #f7fbf8;
  animation: rise 0.7s 0.2s ease both;
}
.kicker {
  margin: 0;
  color: #146b2c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.path ol {
  list-style: none;
  margin: 12px 0 8px;
  padding: 0;
  display: grid;
  gap: 0;
}
.path li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(27, 122, 52, 0.12);
  text-align: left;
}
.path b {
  color: #146b2c;
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 560;
}
.path span {
  font-size: 15px;
  font-weight: 650;
}

.sebi {
  margin-top: 16px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  text-align: center;
  background: #f4faf5;
  border: 1px solid rgba(27, 122, 52, 0.16);
  animation: rise 0.7s 0.28s ease both;
}
.reg {
  margin: 10px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #146b2c, #0e4a1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reg-role {
  margin: 6px 0 0;
  color: #243128;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.fine {
  margin: 10px 0 0;
  color: #5d6d62;
  font-size: 12px;
  line-height: 1.45;
}

.foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 122, 52, 0.14);
  text-align: center;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.links button,
.links a {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.links button:focus-visible,
.links a:focus-visible,
.ads a:focus-visible,
.sheet-close:focus-visible {
  outline: 3px solid #b6ffc6;
  outline-offset: 3px;
}
.copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.ads {
  margin: 12px 0 0;
  color: #146b2c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ads a {
  display: inline-block;
  margin-top: 4px;
  color: #0e3d1c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
}

.sticky {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: min(430px, 100%);
  padding: 10px 18px max(12px, env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 28%);
  transition: transform 0.35s ease;
}
.sticky.is-on { transform: translate(-50%, 0); }
.join-sticky {
  margin-top: 0;
  animation: btnGlow 2.6s ease-in-out infinite;
}
.join-sticky .join-face { min-height: 60px; }

.sheet {
  width: min(400px, calc(100% - 28px));
  border: 1px solid rgba(125, 255, 154, 0.28);
  border-radius: 20px;
  padding: 22px 18px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}
.sheet::backdrop { background: rgba(0, 0, 0, 0.78); }
.sheet h2 {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.sheet p {
  margin: 0 0 16px;
  color: #243128;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}
.popup {
  width: min(360px, calc(100% - 32px));
  border: 0;
  border-radius: 24px;
  padding: 18px 18px 14px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 50px rgba(16, 40, 20, 0.18);
}
.popup::backdrop { background: rgba(16, 28, 18, 0.5); }
.popup img {
  display: block;
  width: 148px;
  height: auto;
  margin: 0 auto;
}
.popup h2 {
  margin: 2px 0 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.popup p {
  margin: 8px 0 0;
  color: #3d4f44;
  font-size: 14.5px;
  line-height: 1.45;
}
.popup-join {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #46c15d 0%, #1d8a36 55%, #0e5c24 100%);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 22px rgba(27, 122, 52, 0.28);
}
.popup-join:active { transform: scale(0.985); }
.popup-cancel {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 0;
  background: none;
  color: #5d6d62;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.popup-join:focus-visible,
.popup-cancel:focus-visible {
  outline: 3px solid #146b2c;
  outline-offset: 3px;
}

.sheet-close {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #46c15d, #147332);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 222, 98, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(61, 222, 98, 0); }
}
@keyframes spin { to { --spin: 360deg; } }
@keyframes shine {
  0%, 38% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@keyframes btnGlow {
  0%, 100% { filter: drop-shadow(0 10px 18px rgba(30, 140, 55, 0.28)); }
  50% { filter: drop-shadow(0 14px 26px rgba(80, 220, 110, 0.48)); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

@media (max-height: 740px) {
  h1 { font-size: 32px; }
  .deck { margin-top: 8px; font-size: 14.5px; }
  .join { margin-top: 14px; }
  .join-face { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .sticky { transform: translate(-50%, 0); }
}
