:root{
  --ink:#050c14;
  --ink-2:#0a1624;
  --panel:#122436;
  --line:#2f516e;
  --mist:#b7cfe4;
  --mist-dim:#7f9bb5;
  --ice:#7ec8ef;
  --teal:#4aa8c9;
  --gold:#e6c06a;
  --gold-hot:#ffd98a;
  --hit:#ff7a5c;
  --ok:#7dcea0;
  --font-display:"Montserrat",system-ui,sans-serif;
  --font-body:"Montserrat",system-ui,sans-serif;
  --max:1120px;
  --ease:cubic-bezier(.22,.9,.28,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font:17px/1.55 var(--font-body);
  color:var(--mist);
  background:var(--ink);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
button,a.btn{font:inherit;cursor:pointer}

.wrap{width:min(100% - 2.5rem,var(--max));margin-inline:auto}
.eyebrow{
  margin:0 0 .75rem;
  font-size:.72rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);
}
h1,h2,h3{font-family:var(--font-display);font-weight:600;letter-spacing:.03em;color:#f4f7fb;margin:0}
h2{font-size:clamp(1.85rem,4vw,3rem);line-height:1.15}
h3{font-size:1.25rem;line-height:1.25}
.lead{margin:.85rem 0 0;max-width:36rem;color:var(--mist-dim);font-size:1.05rem}
.section{padding:clamp(4.5rem,10vw,7.5rem) 0;position:relative}
.section-head{max-width:40rem;margin-bottom:2.75rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:3rem;padding:.85rem 1.45rem;border-radius:4px;
  text-decoration:none;font-weight:700;letter-spacing:.04em;
  transition:transform .25s var(--ease),filter .25s,background .25s,border-color .25s;
}
.btn:hover{transform:translateY(-2px);filter:brightness(1.06)}
.btn-primary{
  background:linear-gradient(180deg,var(--gold-hot),var(--gold));
  color:#1a1206;border:1px solid #f0d896;
  box-shadow:0 10px 30px #0008,0 0 0 1px #0004;
}
.btn-ghost{
  background:transparent;color:#e8f2ff;
  border:1px solid #4a6f90;
}
.btn-ghost:hover{border-color:var(--ice);background:rgba(126,200,239,.08)}
.btn-row{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:1.6rem}

/* —— Nav —— */
.site-nav{
  position:fixed;inset:0 0 auto;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:.9rem clamp(1rem,4vw,2rem);
  background:linear-gradient(180deg,rgba(5,12,20,.92),rgba(5,12,20,.55) 70%,transparent);
  backdrop-filter:blur(8px);
}
.nav-brand{
  font-family:var(--font-display);font-size:1.05rem;font-weight:700;
  letter-spacing:.08em;text-decoration:none;color:#fff;
}
.nav-brand span{color:var(--gold)}
.nav-links{display:flex;align-items:center;gap:1.1rem}
.nav-links a{
  text-decoration:none;font-size:.88rem;font-weight:600;color:var(--mist-dim);
  transition:color .2s;
}
.nav-links a:hover{color:#fff}
.nav-cta{padding:.55rem 1rem!important;min-height:auto;font-size:.85rem}

/* —— Hero —— */
.hero{
  position:relative;min-height:100vh;min-height:100dvh;
  display:grid;align-items:end;
  overflow:hidden;
  isolation:isolate;
}
.hero-media{
  position:absolute;inset:0;z-index:-2;
  background:
    linear-gradient(180deg,rgba(5,12,20,.35) 0%,rgba(5,12,20,.55) 45%,rgba(5,12,20,.96) 100%),
    radial-gradient(ellipse at 70% 20%,rgba(74,168,201,.28),transparent 50%),
    url("/gametcg/assets/portals/elfomania.png") center/cover no-repeat;
  transform:scale(1.04);
  animation:heroDrift 18s ease-in-out infinite alternate;
}
.hero-media::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 20% 80%,rgba(230,192,106,.12),transparent 35%),
    linear-gradient(90deg,rgba(5,12,20,.55),transparent 40%);
}
@keyframes heroDrift{
  from{transform:scale(1.04) translate3d(0,0,0)}
  to{transform:scale(1.08) translate3d(-1.5%,1%,0)}
}
.hero-inner{
  width:min(100% - 2.5rem,var(--max));
  margin:0 auto 0;
  padding:7rem 0 4.5rem;
}
.hero-brand{
  margin:0 0 1rem;
  font-family:var(--font-display);
  font-size:clamp(3rem,10vw,6.4rem);
  line-height:.95;letter-spacing:.04em;color:#fff;
  text-shadow:0 12px 40px #000a;
  animation:riseIn .9s var(--ease) both;
}
.hero-brand span{display:block;color:var(--gold);font-size:.42em;letter-spacing:.28em;margin-top:.35em}
.hero-line{
  margin:0;max-width:28rem;
  font-size:clamp(1.15rem,2.4vw,1.45rem);font-weight:500;color:#dceaf8;
  animation:riseIn .9s var(--ease) .12s both;
}
.hero .btn-row{animation:riseIn .9s var(--ease) .22s both}
@keyframes riseIn{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}

/* —— Atmos —— */
.band-ink{background:var(--ink)}
.band-panel{
  background:
    radial-gradient(ellipse at 10% 0%,rgba(74,168,201,.12),transparent 40%),
    linear-gradient(180deg,#08131f,#050c14);
}
.band-split{
  background:
    linear-gradient(180deg,rgba(8,19,31,.96),rgba(5,12,20,1)),
    url("/gametcg/assets/portals/berco_dos_dragoes.jpg") center/cover fixed;
}

/* —— Feature rail —— */
.feature-rail{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.feature-rail article{
  padding:1.75rem 1.4rem;
  border-right:1px solid var(--line);
}
.feature-rail article:last-child{border-right:0}
.feature-rail h3{margin-bottom:.45rem;color:#eef6ff}
.feature-rail p{margin:0;color:var(--mist-dim);font-size:.98rem}
.feature-rail-4{grid-template-columns:repeat(4,1fr)}

/* —— Steps —— */
.steps{
  display:grid;gap:0;
  counter-reset:step;
}
.step{
  display:grid;grid-template-columns:auto 1fr;gap:1.25rem 1.5rem;
  padding:1.6rem 0;border-bottom:1px solid #1e364d;
  align-items:start;
}
.step::before{
  counter-increment:step;
  content:counter(step, decimal-leading-zero);
  font-family:var(--font-display);font-size:1.5rem;color:var(--gold);
  line-height:1;padding-top:.15rem;
}
.step p{margin:.35rem 0 0;color:var(--mist-dim)}

/* —— Zones —— */
.zones{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:2.5rem;
  align-items:center;
}
.zone-visual{
  position:relative;min-height:340px;border-radius:8px;overflow:hidden;
  border:1px solid var(--line);
  background:#0c1a28;
}
.zone-visual img{
  width:100%;height:100%;object-fit:cover;min-height:340px;
  filter:saturate(1.05) contrast(1.05);
}
.zone-visual::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(5,12,20,.75),transparent 55%);
}
.zone-list{display:grid;gap:1.25rem}
.zone-item{
  padding-bottom:1.15rem;border-bottom:1px solid #1e364d;
}
.zone-item:last-child{border-bottom:0;padding-bottom:0}
.zone-item p{margin:.4rem 0 0;color:var(--mist-dim)}

/* —— Portals —— */
.portal-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
}
.portal{
  position:relative;aspect-ratio:3/4;overflow:hidden;border-radius:6px;
  border:1px solid #3d6288;isolation:isolate;
  transition:transform .35s var(--ease),border-color .35s;
}
.portal:hover{transform:translateY(-6px);border-color:var(--gold)}
.portal img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s var(--ease);
}
.portal:hover img{transform:scale(1.08)}
.portal figcaption{
  position:absolute;left:0;right:0;bottom:0;z-index:1;
  padding:2.5rem .9rem .85rem;
  background:linear-gradient(0deg,rgba(5,12,20,.95),transparent);
  font-family:var(--font-display);font-size:.95rem;color:#fff;
}
.portal-note{margin:1.5rem 0 0;color:var(--mist-dim);font-size:.95rem}
.portal-strip-6{grid-template-columns:repeat(6,minmax(0,1fr))}

/* —— Keywords —— */
.kw-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  border-top:1px solid var(--line);
}
.kw-grid article{
  padding:1.35rem 1.15rem;
  border-right:1px solid #1e364d;
  border-bottom:1px solid #1e364d;
}
.kw-grid article:nth-child(4n){border-right:0}
.kw-grid h3{margin-bottom:.4rem;font-size:1.05rem}
.kw-grid p{margin:0;color:var(--mist-dim);font-size:.92rem}

/* —— Lore / split —— */
.lore-band{
  position:relative;
  isolation:isolate;
}
.lore-band::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg,rgba(5,12,20,.88),rgba(5,12,20,.94)),
    url("/gametcg/assets/portals/berco_dos_dragoes.jpg") center/cover;
}
.lore-block{max-width:40rem}
.lore-lead{max-width:38rem}
.lore-stats{max-width:28rem}
.split-cta{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:2.5rem;
  align-items:center;
}
.split-visual{min-height:280px}
.split-visual img{min-height:280px}

/* —— Guardians —— */
.guardian-block{
  display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:center;
}
.guardian-art{
  position:relative;border-radius:8px;overflow:hidden;
  border:1px solid var(--gold);box-shadow:0 20px 50px #000a;
}
.guardian-art img{width:100%;aspect-ratio:4/5;object-fit:cover}
.guardian-art::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  box-shadow:inset 0 0 0 1px #ffd16a55,inset 0 -80px 60px #0009;
}
.stat-row{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.75rem;
}
.stat{
  padding:1rem 0 0;border-top:1px solid var(--line);
}
.stat strong{
  display:block;font-family:var(--font-display);font-size:1.75rem;color:var(--gold);
  line-height:1;
}
.stat span{display:block;margin-top:.4rem;font-size:.85rem;color:var(--mist-dim)}

/* —— Synergy —— */
.syn-grid{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem 2rem;
}
.syn-grid article{
  padding:1.25rem 0;border-top:1px solid #1e364d;
}
.syn-grid h3{margin-bottom:.4rem}
.syn-grid p{margin:0;color:var(--mist-dim)}

/* —— Progress —— */
.progress-flow{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
}
.progress-flow-6{grid-template-columns:repeat(3,1fr)}
.city-flow{grid-template-columns:repeat(4,1fr)}
.progress-flow > div{
  padding:1.4rem 1.1rem;
  background:rgba(18,36,54,.65);
  border:1px solid #2a4560;border-radius:6px;
}
.progress-flow h3{font-size:1.05rem;margin-bottom:.45rem}
.progress-flow p{margin:0;font-size:.92rem;color:var(--mist-dim)}

/* —— Quote / CTA —— */
.finale{
  text-align:center;padding:clamp(5rem,12vw,8rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%,rgba(230,192,106,.16),transparent 45%),
    linear-gradient(180deg,#0a1522,#050c14);
}
.finale h2{max-width:18ch;margin-inline:auto}
.finale .lead{margin-inline:auto}
.finale .btn-row{justify-content:center}

/* —— FAQ —— */
.faq-list{display:grid;gap:.65rem;max-width:44rem}
.faq-item{
  border:1px solid #2a4560;border-radius:6px;
  background:rgba(18,36,54,.45);
  padding:.15rem 1rem 0;
}
.faq-item summary{
  cursor:pointer;list-style:none;
  font-family:var(--font-display);font-weight:600;color:#eef6ff;
  padding:1rem 0;letter-spacing:.02em;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"+";float:right;color:var(--gold);font-weight:700;
}
.faq-item[open] summary::after{content:"–"}
.faq-item p{
  margin:0 0 1rem;color:var(--mist-dim);font-size:.98rem;
}
.faq-item a{color:var(--ice)}

.site-footer{
  padding:2rem 0 2.5rem;border-top:1px solid #1a2f44;
  color:var(--mist-dim);font-size:.9rem;
}
.site-footer .footer-stack{display:grid;gap:1.1rem}
.site-footer .footer-row{
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;
}
.site-footer .seo-blurb{
  margin:0;max-width:52rem;font-size:.82rem;line-height:1.5;color:#6f8aa6;
}
.site-footer .seo-blurb strong{color:var(--mist-dim);font-weight:600}
.site-footer a{color:var(--ice);text-decoration:none}
.site-footer a:hover{text-decoration:underline}

.whats-float{
  position:fixed;right:1.25rem;bottom:1.25rem;z-index:80;
  width:3.5rem;height:3.5rem;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#25d366;color:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.12);
  text-decoration:none;
  transition:transform .25s var(--ease),filter .25s,box-shadow .25s;
}
.whats-float:hover{
  transform:translateY(-3px) scale(1.04);
  filter:brightness(1.06);
  box-shadow:0 14px 32px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.16);
}
.whats-float:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}

@media (max-width:1100px){
  .feature-rail-4{grid-template-columns:repeat(2,1fr)}
  .portal-strip-6{grid-template-columns:repeat(3,1fr)}
  .kw-grid{grid-template-columns:repeat(2,1fr)}
  .kw-grid article:nth-child(4n){border-right:1px solid #1e364d}
  .kw-grid article:nth-child(2n){border-right:0}
}
@media (max-width:900px){
  .feature-rail,.feature-rail-4{grid-template-columns:1fr}
  .feature-rail article{border-right:0;border-bottom:1px solid var(--line)}
  .zones,.guardian-block,.split-cta{grid-template-columns:1fr!important}
  .portal-strip,.portal-strip-6{grid-template-columns:repeat(2,1fr)}
  .progress-flow,.progress-flow-6,.city-flow{grid-template-columns:1fr 1fr}
  .nav-links a:not(.btn){display:none}
}
@media (max-width:560px){
  .portal-strip,.portal-strip-6,.syn-grid,.progress-flow,.progress-flow-6,.city-flow,.stat-row,.kw-grid{grid-template-columns:1fr}
  .kw-grid article{border-right:0}
  .hero-inner{padding-bottom:3rem}
}

@media (prefers-reduced-motion:reduce){
  .hero-media{animation:none}
  .hero-brand,.hero-line,.hero .btn-row{animation:none}
  .portal,.portal img,.btn{transition:none}
}
