@import "tailwindcss";

:root {
  --night: #071511;
  --deep: #0d2119;
  --moss: #173f2a;
  --leaf: #9bd447;
  --leaf-dark: #6ea936;
  --gold: #c8a45a;
  --ivory: #f1ecd9;
  --paper: #e9e2cd;
  --muted: #aeb9ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: var(--font-sans), sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.publicHero { min-height: 820px; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 40%, rgba(90,145,64,.24), transparent 30%), linear-gradient(122deg, #071410 8%, #0a2018 58%, #173923 100%); }
.publicHero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: repeating-linear-gradient(115deg, transparent 0 96px, rgba(255,255,255,.08) 97px 98px); mask-image: linear-gradient(to bottom, black, transparent 72%); }
.topbar { height: 94px; position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(220,231,211,.14); }
.brand, .footerBrand { display: flex; align-items: center; gap: 13px; font-family: var(--font-display), serif; letter-spacing: .13em; font-size: 18px; font-weight: 700; }
.brand img, .footerBrand img { width: 35px; height: 47px; object-fit: contain; }
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 13px; color: #d4ddcf; }
.navlinks > a:not(.portalButton):hover { color: var(--leaf); }
.portalButton { border: 1px solid rgba(200,164,90,.7); color: #e4cc92; padding: 12px 17px; border-radius: 2px; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }

.heroGrid { position: relative; z-index: 2; min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-bottom: 70px; }
.heroCopy { max-width: 650px; }
.eyebrow, .sectionKicker { color: var(--gold); letter-spacing: .28em; font-size: 11px; font-weight: 800; margin: 0 0 23px; }
h1 { margin: 0; font-family: var(--font-display), serif; font-weight: 500; line-height: .98; font-size: clamp(62px, 7.2vw, 104px); letter-spacing: -.045em; text-wrap: balance; }
.heroText { margin: 31px 0 3px; font-family: var(--font-serif), serif; font-size: 21px; color: #d8dfd3; }
.manifesto { max-width: 590px; margin: 0; font-family: var(--font-serif), serif; font-size: 21px; line-height: 1.55; color: #d8dfd3; }
.manifesto strong { color: var(--leaf); font-weight: 600; }
.heroActions { margin-top: 34px; display: flex; align-items: center; gap: 29px; flex-wrap: wrap; }
.primaryButton { background: linear-gradient(135deg, #a7dc4c, #7fbc3e); color: #102014; padding: 15px 21px; border-radius: 3px; font-weight: 800; font-size: 13px; box-shadow: 0 14px 40px rgba(98,145,45,.25); }
.textLink { font-size: 13px; color: #cbd6c9; }
.textLink span { color: var(--gold); margin-left: 7px; }

.heroEmblem { min-height: 500px; display: grid; place-items: center; position: relative; }
.leafHalo { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(159,214,75,.19), rgba(57,104,52,.06) 52%, transparent 70%); filter: blur(5px); }
.mainLeaf { width: 255px; height: 330px; object-fit: contain; filter: drop-shadow(0 0 36px rgba(156,218,70,.24)) drop-shadow(0 30px 70px rgba(0,0,0,.55)); z-index: 2; }
.emblemRing { position: absolute; border-radius: 50%; border: 1px solid rgba(200,164,90,.23); }
.ringOne { width: 360px; height: 360px; }
.ringTwo { width: 470px; height: 470px; border-style: dashed; opacity: .45; animation: orbit 45s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.forestEdge { position: absolute; bottom: -1px; inset-inline: 0; height: 128px; background: linear-gradient(to top, #0d1e17 0 35%, transparent), radial-gradient(ellipse at 20% 100%, #0d1e17 0 35%, transparent 36%), radial-gradient(ellipse at 50% 110%, #0d1e17 0 42%, transparent 43%), radial-gradient(ellipse at 82% 100%, #0d1e17 0 36%, transparent 37%); }

.essenceSection { background: linear-gradient(#0d1e17, #10271d); padding: 105px 0 120px; }
.essenceSection h2 { margin: 0 0 55px; font-family: var(--font-display), serif; font-weight: 500; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.05; }
.pillarGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { min-height: 240px; padding: 31px; border: 1px solid rgba(215,227,208,.12); background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.pillarIcon { color: var(--gold); font-size: 24px; }
.pillar h3 { font-family: var(--font-serif), serif; font-size: 21px; margin: 28px 0 12px; }
.pillar p { color: var(--muted); line-height: 1.65; margin: 0; font-size: 14px; }
.publicFooter { background: #07130f; border-top: 1px solid rgba(255,255,255,.08); }
.footerInner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #8e9d91; font-size: 12px; }
.footerInner a { color: var(--gold); }
.footerBrand { color: var(--ivory); font-size: 14px; }
.footerBrand img { width: 25px; height: 34px; }

/* Portal RAIZ */
.raizPage { min-height: 100vh; position: relative; overflow: hidden; background: radial-gradient(circle at 50% -15%, rgba(109,158,65,.32), transparent 35%), #07140f; }
.raizPage::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .08; background-image: linear-gradient(90deg, transparent 49%, #d9b96b 50%, transparent 51%), linear-gradient(transparent 49%, #d9b96b 50%, transparent 51%); background-size: 82px 82px; mask-image: radial-gradient(circle at center, black, transparent 75%); }
.raizNav { position: relative; z-index: 4; height: 82px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(200,164,90,.18); }
.raizMark { display: flex; align-items: center; gap: 13px; }
.raizMark img { width: 42px; height: 42px; object-fit: contain; }
.raizMark div { display: grid; }
.raizMark strong { font-family: var(--font-display), serif; letter-spacing: .12em; font-size: 15px; }
.raizMark small { color: var(--gold); letter-spacing: .18em; font-size: 8px; }
.raizLinks { display: flex; gap: 16px; align-items: center; color: #afbcaf; font-size: 12px; }
.raizLinks a { border: 1px solid rgba(255,255,255,.12); padding: 10px 13px; }
.raizHero { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr .9fr; gap: 32px; align-items: center; padding: 70px 0 55px; }
.raizCopy h1 { font-size: clamp(47px, 6vw, 79px); }
.raizCopy h1 span { color: var(--leaf); }
.raizLead { margin: 25px 0; max-width: 650px; color: #b8c4b8; font-family: var(--font-serif), serif; font-size: 18px; line-height: 1.65; }
.userRune { display: inline-flex; align-items: center; gap: 10px; color: #d7e1d5; font-size: 12px; border-left: 2px solid var(--gold); padding-left: 13px; }
.guardian { position: relative; min-height: 495px; display: grid; place-items: end center; }
.guardian::after { content: ""; position: absolute; inset: auto 8% 0; height: 30%; background: radial-gradient(ellipse, rgba(104,166,60,.28), transparent 66%); filter: blur(12px); }
.guardian img { max-height: 500px; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); position: relative; z-index: 1; }
.missionSection { position: relative; z-index: 2; padding: 15px 0 95px; }
.sectionHeader { display: flex; justify-content: space-between; align-items: end; margin-bottom: 26px; }
.sectionHeader h2 { margin: 0; font-family: var(--font-display), serif; font-size: 30px; font-weight: 500; }
.sectionHeader p { margin: 0; color: #7f9283; font-size: 12px; }
.missionGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.missionCard { position: relative; min-height: 220px; padding: 26px; border: 1px solid rgba(200,164,90,.23); background: linear-gradient(145deg, rgba(26,62,40,.76), rgba(9,25,18,.92)); overflow: hidden; }
.missionCard::before { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(200,164,90,.12); border-radius: 50%; right: -42px; top: -42px; }
.missionCode { font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.missionCard h3 { font-family: var(--font-serif), serif; margin: 28px 0 10px; font-size: 21px; }
.missionCard p { color: #9eada0; font-size: 13px; line-height: 1.55; }
.xp { display: inline-block; margin-top: 14px; color: var(--leaf); font-weight: 800; font-size: 11px; letter-spacing: .1em; }
.lockedNote { margin-top: 28px; padding: 18px; border: 1px dashed rgba(200,164,90,.32); color: #9dab9e; font-size: 12px; text-align: center; }

@media (max-width: 850px) {
  .navlinks > a:not(.portalButton) { display: none; }
  .heroGrid, .raizHero { grid-template-columns: 1fr; }
  .heroCopy { padding-top: 65px; }
  .heroEmblem { min-height: 390px; }
  .mainLeaf { height: 250px; }
  .ringOne { width: 290px; height: 290px; }
  .ringTwo { width: 350px; height: 350px; }
  .pillarGrid, .missionGrid { grid-template-columns: 1fr; }
  .guardian { min-height: 360px; }
  .guardian img { max-height: 370px; }
  .footerInner { flex-direction: column; justify-content: center; text-align: center; padding: 25px 0; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 28px, 1160px); }
  .topbar { height: 78px; }
  .brand { font-size: 14px; }
  .brand img { width: 28px; }
  .portalButton { padding: 10px; font-size: 9px; }
  .heroGrid { padding-bottom: 40px; }
  .heroActions { align-items: flex-start; flex-direction: column; }
  .heroEmblem { min-height: 330px; }
  .mainLeaf { height: 215px; }
  .ringOne { width: 240px; height: 240px; }
  .ringTwo { width: 295px; height: 295px; }
  .raizLinks a:first-child { display: none; }
  .raizHero { padding-top: 45px; }
  .guardian { min-height: 320px; }
}
