/* ===== $ROBINPHIL — Sherwood palette ===== */
:root {
  --forest-dark: #12220f;
  --forest: #1f3a1c;
  --moss: #3d5f28;
  --leaf: #6e9a3a;
  --lime: #b7d96b;
  --parchment: #f3e6c4;
  --parchment-dark: #e2cf9e;
  --leather: #7a4520;
  --leather-dark: #4a2710;
  --feather: #b8452a;
  --gold: #e0b25c;
  --ink: #2b1a0c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Rubik", system-ui, sans-serif;
  background: var(--forest-dark);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(183,217,107,.18), transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(224,178,92,.12), transparent 45%),
    linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--parchment);
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Leaves ---------- */
.leaves { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.leaves span {
  position: absolute; top: -40px; opacity: .55;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate(0, -40px) rotate(0deg); }
  50%  { transform: translate(40px, 50vh) rotate(180deg); }
  100% { transform: translate(-30px, 110vh) rotate(360deg); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(18, 34, 15, .85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--leather);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Pirata One", serif; font-size: 28px; text-decoration: none; color: var(--gold);
}
.logo img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 600; opacity: .85; transition: color .2s; }
.nav-links a:hover { color: var(--lime); }
.nav-social { display: flex; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--leather); border: 2px solid var(--gold);
  transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: rotate(-10deg) scale(1.08); background: var(--feather); }
.icon-btn svg { width: 18px; height: 18px; fill: var(--parchment); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: 48px;
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 8vw, 90px) clamp(16px, 4vw, 48px);
}
.scroll-tag {
  display: inline-block; padding: 6px 16px;
  background: var(--feather); color: var(--parchment);
  font-family: "IM Fell English", serif; font-style: italic; font-size: 18px;
  transform: rotate(-3deg); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--leather-dark);
}
.hero h1 {
  font-family: "Pirata One", serif;
  font-size: clamp(40px, 6.4vw, 104px);
  white-space: nowrap;
  line-height: .95; margin: 18px 0 10px;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--leather-dark), 8px 8px 0 rgba(0,0,0,.35);
  letter-spacing: 1px;
}
.hero h1 span { color: var(--lime); }
.tagline {
  font-family: "IM Fell English", serif; font-size: clamp(22px, 3vw, 32px);
  color: var(--parchment); margin-bottom: 26px;
}

.ca-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--parchment); color: var(--ink);
  padding: 10px 12px 10px 16px; border-radius: 12px;
  border: 3px solid var(--leather);
  box-shadow: 5px 5px 0 var(--leather-dark);
  max-width: 560px; margin-bottom: 26px;
}
.ca-label { font-weight: 800; }
.ca-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.copy-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--moss); color: var(--parchment);
  padding: 8px 16px; border-radius: 8px; transition: background .2s;
}
.copy-btn:hover { background: var(--feather); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 800; font-size: 18px; text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-pump { background: var(--lime); color: var(--ink); }
.btn-x { background: var(--parchment); color: var(--ink); }
.btn-tg { background: var(--gold); color: var(--ink); }
.pill-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #fff 50%, #2f8f3a 50%);
  border: 2px solid var(--ink);
}

/* Hero image */
.hero-img { position: relative; }
.frame {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 8px solid var(--leather);
  outline: 3px solid var(--gold); outline-offset: -14px;
  box-shadow: 14px 14px 0 var(--leather-dark), 0 30px 60px rgba(0,0,0,.5);
  aspect-ratio: 1 / 1; background: var(--moss);
  transform: rotate(2deg);
  animation: sway 6s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: rotate(2deg); } 50% { transform: rotate(-1deg) translateY(-6px); } }
.arrow-shot {
  position: absolute; top: 18%; left: -30px; width: 120px; height: 6px;
  background: linear-gradient(90deg, var(--feather) 0 20%, #c9a36a 20% 90%, #555 90%);
  transform: rotate(-20deg); border-radius: 3px;
  box-shadow: 2px 2px 0 var(--leather-dark);
}

/* ---------- Scalloped edge (like the tunic) ---------- */
.zigzag {
  position: relative; z-index: 2; height: 34px;
  background:
    radial-gradient(circle at 50% 0, var(--moss) 16px, transparent 17px) 0 0 / 40px 34px repeat-x;
  margin-bottom: -2px;
}
.zigzag.flip {
  background:
    radial-gradient(circle at 50% 100%, var(--moss) 16px, transparent 17px) 0 0 / 40px 34px repeat-x;
  margin-top: -2px; margin-bottom: 0;
}

/* ---------- Sections ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.section > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section h2, .footer h2 {
  font-family: "Pirata One", serif;
  font-size: clamp(40px, 6vw, 68px);
  text-align: center; line-height: 1.05; margin-bottom: 14px;
}
h2.light { color: var(--gold); text-shadow: 3px 3px 0 var(--leather-dark); }
.sub { text-align: center; font-family: "IM Fell English", serif; font-style: italic; font-size: 22px; opacity: .85; margin-bottom: 40px; }

.parchment {
  background: var(--parchment); color: var(--ink);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(122,69,32,.10), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(122,69,32,.12), transparent 40%);
  border-top: 6px solid var(--moss);
  border-bottom: 6px solid var(--moss);
}
.parchment h2 { color: var(--forest); }

/* Legend */
.legend-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 30px; }
.legend-text p { font-size: 18px; margin-bottom: 16px; }
.dropcap::first-letter {
  font-family: "Pirata One", serif; float: left;
  font-size: 72px; line-height: .8; padding: 6px 10px 0 0; color: var(--feather);
}
blockquote {
  font-family: "IM Fell English", serif; font-style: italic; font-size: 22px;
  border-left: 6px solid var(--feather); padding: 8px 18px; margin: 20px 0;
  background: rgba(122,69,32,.08); border-radius: 0 10px 10px 0;
}
.creed { list-style: none; display: grid; gap: 16px; align-content: start; }
.creed li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff8e4; border: 3px solid var(--leather); border-radius: 14px;
  padding: 16px; box-shadow: 4px 4px 0 var(--leather);
}
.creed span { font-size: 30px; line-height: 1; }

/* Tokenomics */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  text-align: center; padding: 30px 16px;
  background: linear-gradient(160deg, var(--moss), var(--forest));
  border: 3px solid var(--gold); border-radius: 18px;
  box-shadow: 6px 6px 0 var(--leather-dark);
}
.card-num { font-family: "Pirata One", serif; font-size: clamp(28px, 3.4vw, 40px); color: var(--lime); }
.card-label { font-weight: 600; opacity: .9; }
.ticker { text-align: center; margin-top: 30px; font-size: 18px; }
.ticker b { color: var(--gold); }

/* How to buy */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 30px auto 36px; }
.steps li {
  counter-increment: s; position: relative;
  background: #fff8e4; border: 3px solid var(--leather); border-radius: 14px;
  padding: 22px 22px 22px 80px; font-size: 17px; box-shadow: 4px 4px 0 var(--leather);
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Pirata One", serif; font-size: 28px;
  background: var(--feather); color: var(--parchment); border: 3px solid var(--ink);
}

/* Roadmap */
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.road::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 24px);
}
.stage {
  position: relative; background: var(--parchment); color: var(--ink);
  border: 3px solid var(--leather); border-radius: 16px;
  padding: 56px 20px 22px; margin-top: 22px;
  box-shadow: 6px 6px 0 var(--leather-dark);
}
.stage-badge {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  background: var(--moss); color: var(--parchment);
  font-family: "Pirata One", serif; font-size: 24px;
  padding: 4px 18px; border-radius: 30px; border: 3px solid var(--gold); white-space: nowrap;
}
.stage.done .stage-badge { background: var(--feather); }
.stage h3 { font-family: "IM Fell English", serif; font-size: 24px; margin-bottom: 12px; color: var(--forest); }
.stage ul { list-style: none; display: grid; gap: 8px; }
.stage li { padding-left: 26px; position: relative; }
.stage li::before { content: "🏹"; position: absolute; left: 0; font-size: 14px; top: 2px; }
.stage.done li::before { content: "✅"; }

/* Footer */
.footer {
  position: relative; z-index: 2; text-align: center;
  background: var(--forest-dark); padding: 70px 16px 40px; margin-top: 40px;
}
.footer .zigzag.top { position: absolute; top: -32px; left: 0; right: 0;
  background: radial-gradient(circle at 50% 100%, var(--forest-dark) 16px, transparent 17px) 0 0 / 40px 34px repeat-x; }
.foot-ava {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  border: 5px solid var(--gold); box-shadow: 0 0 0 5px var(--leather);
  object-fit: cover;
}
.footer h2 { color: var(--gold); margin-bottom: 24px; }
.disclaimer { max-width: 720px; margin: 36px auto 10px; font-size: 13px; opacity: .6; }
.copy { font-size: 13px; opacity: .5; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px);
  background: var(--lime); color: var(--ink); font-weight: 800;
  padding: 12px 24px; border-radius: 12px; border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); z-index: 100; transition: transform .3s, opacity .3s; opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0,1fr); text-align: center; }
  .hero-img { width: 100%; max-width: 440px; margin: 0 auto; order: -1; }
  .frame { transform: none; animation: none; }
  .btn-row { justify-content: center; }
  .ca-box { margin-left: auto; margin-right: auto; }
  .legend-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .road::before { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cards, .road, .steps { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 16px; }
  .logo { font-size: 22px; }
  .arrow-shot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .frame, .leaves span { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

.frame img { width: 100%; height: 100%; object-fit: cover; }
