:root{
  --bg0:#07090d;
  --bg1:#0b0f16;

  --gold:#e7c56f;
  --gold2:#b8832b;

  --text:#e9eef6;
  --muted: rgba(233,238,246,.75);

  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --radius: 18px;
}

html, body{ height: 100%; }

body{
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(231,197,111,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,165,0,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

/* =========================
   TOPBAR (GLASS)
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Make navbar background match your topbar glass */
.topbar .navbar{
  background: transparent;
}

/* Toggler polish */
.econaris-toggler{
  border: 1px solid rgba(241,208,137,.25);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  background: rgba(0,0,0,.25);
}
.econaris-toggler:focus{
  box-shadow: 0 0 0 .2rem rgba(241,208,137,.18);
}

/* Offcanvas matches theme */
.econaris-offcanvas{
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(231,197,111,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.94));
  border-left: 1px solid rgba(255,255,255,.08);
  bottom: unset;
}

/* Offcanvas nav links spacing */
.econaris-offcanvas .nav-link{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.econaris-offcanvas .nav-link:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(241,208,137,.18);
}

@media (min-width: 992px){
  .econaris-offcanvas{
    display: none !important;
  }
}

.brand{ display:flex; align-items:center; text-decoration:none; }
.brand img{ height: 64px; width:auto; object-fit:contain; }

.nav-link{
  color: rgba(233,238,246,.80);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .80rem;
}
.nav-link:hover{ color: #fff; }

/* =========================
   HERO (NO ABSOLUTE OVERLAPS)
========================= */
.hero{
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* background layers live inside section, not on pseudo elements */
.hero-bg{
  position:absolute;
  inset:0;
  background-image: url("/media/heros/econaris_game_background-compressed.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(1.15) contrast(1.08);
  z-index: 0;
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index: 1;
  background:
    radial-gradient(900px 600px at 55% 25%, rgba(0,0,0,.05), rgba(0,0,0,.55) 70%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.48));
}

.hero-content{
  z-index: 2;
}

/* copy styles */
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.40);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(233,238,246,.86);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  font-size: .95rem;
}
.kicker i{ color: var(--gold); }

.hero-h1{
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: clamp(2.0rem, 2.7vw, 3.2rem);
  color: #f1d089;
  text-shadow:
    0 2px 0 rgba(0,0,0,.35),
    0 12px 30px rgba(0,0,0,.70);
  margin: 0;
}

.hero-h2{
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 24px rgba(0,0,0,.60);
  margin-top: 10px;
}

.hero-tagline{
  margin-top: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
}

/* badges / pills */
.ui-pill {
    font-size: .62rem;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: rgba(233, 238, 246, .86);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, .22);
    display: inline-flex;
    align-items: center;
}

/* =========================
   HERO CTA PANELS (POSTER BUTTONS)
========================= */
.econaris-panel{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 200px;
  height: 58px;
  padding: 0 26px;
  border-radius: 8px;
  text-decoration:none;

  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;

  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 20px 55px rgba(0,0,0,.65);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.econaris-panel::before{
  content:"";
  position:absolute;
  inset: 2px;
  border-radius: 6px;
  background: rgba(0,0,0,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -10px 24px rgba(0,0,0,.45);
  z-index: -1                   ;
}

.econaris-panel{ color: #f1d089; border-color: rgba(241,208,137,.45); }
.econaris-panel--signup{
  color: #eaf8f0;
  border-color: rgba(120,255,180,.45);
  box-shadow:
    0 22px 60px rgba(0,0,0,.70),
    0 0 32px rgba(120, 255, 180, .15);
}

.econaris-panel,
.econaris-panel *{ position: relative; z-index: 1; }

.econaris-panel:hover{ transform: translateY(-1px); }
.econaris-panel:active{ transform: translateY(0px) scale(.99); }

/* =========================
   UI PREVIEW FRAME (RESPONSIVE BY GRID)
========================= */
.ui-frame{
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(241,208,137,.28);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 30px 90px rgba(0,0,0,.82),
    0 0 28px rgba(241,208,137,.10);
}

.ui-frame-top{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ui-start{
  text-decoration:none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(233,238,246,.92);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .75rem;
  background: rgba(0,0,0,.25);
}
.ui-start:hover{
  background: rgba(0,0,0,.40);
  border-color: rgba(241,208,137,.25);
}

.ui-shot{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

/* =========================
   FEATURE BAR (NO ABSOLUTE)
========================= */
.feature-bar{
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.55);
  border-top: 1px solid rgba(255,255,255,.08);
}

.feature-item{
  padding: 18px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.feature-item:last-child{ border-right: 0; }

@media (max-width: 767.98px){
  .feature-item{
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .feature-item:last-child{ border-bottom: 0; }
}

.feature-title{
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .85rem;
  color: rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  gap:10px;
}
.feature-title i{ color: var(--gold); }

.feature-desc{
  color: rgba(255,255,255,.68);
  font-size: .92rem;
  margin-top: 4px;
}

/* =========================
   ABOUT SECTION
========================= */
.about-section{
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.06);
}

.about-title{
  color: var(--gold);
  letter-spacing: .02em;
  font-weight: 800;
}

.about-text{
  color: rgba(233,238,246,.70);
}

.about-card{
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 10, 14, .72);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}

/* =========================
   BOOTSTRAP BUTTONS (About)
========================= */
.btn-gold{
  --bs-btn-color: #160f04;
  --bs-btn-bg: linear-gradient(180deg, #f3d58c, #c98a2b);
  --bs-btn-border-color: rgba(255,255,255,.10);
  --bs-btn-hover-color: #160f04;
  --bs-btn-hover-bg: linear-gradient(180deg, #ffe2a3, #d39534);
  --bs-btn-hover-border-color: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.35);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6d68b;
}

.btn-ghost{
  border: 1px solid rgba(231,197,111,.35);
  background: rgba(10,14,20,.35);
  color: rgba(233,238,246,.92);
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.btn-ghost:hover{
  background: rgba(10,14,20,.55);
  color: #fff;
  border-color: rgba(231,197,111,.55);
}

/* =========================
   NAVBAR BUTTONS
========================= */
.econaris-btn{
  width: 140px;
  height: 40px;
  border: none;
  border-radius: 12px;

  background: linear-gradient(90deg, #6b4a0a, #f6d68b, #b8832b, #6b4a0a, #f6d68b, #6b4a0a);
  background-size: 260%;
  background-position: left;

  color: #f6d68b;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background-position 900ms ease, transform 120ms ease;
  overflow: hidden;

  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.econaris-btn::before{
  position: absolute;
  content: "";
  inset: 2px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10,12,16,.92), rgba(0,0,0,.82));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -10px 24px rgba(0,0,0,.45);
  z-index: -1;
}

.econaris-btn--link{
  line-height: 40px;
  position: relative;
  z-index: 1;
}

.econaris-btn:hover{ background-position: right; }
.econaris-btn:active{ transform: scale(0.97); }

.econaris-btn:focus-visible{
  outline: 2px solid rgba(246, 214, 139, .65);
  outline-offset: 3px;
}

.econaris-btn--secondary{
  background: linear-gradient(90deg, #1f6b3b, #f6d68b, #3fa86a, #1f6b3b, #f6d68b, #1f6b3b);
  color: #eaf8f0;
  box-shadow:
    0 22px 55px rgba(0,0,0,.65),
    0 0 24px rgba(120, 255, 180, .15);
}
.econaris-btn--secondary::before{
  background: linear-gradient(180deg, rgba(10,18,14,.92), rgba(0,0,0,.85));
}
.econaris-btn--secondary:focus-visible{
  outline: 2px solid rgba(120, 255, 180, .65);
}

/* =========================
   FOOTER
========================= */
.site-footer{
  color: rgba(233,238,246,.60);
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}

/* Minor typography tighten on very small screens */
@media (max-width: 575.98px){
  .hero-h1{ letter-spacing: .06em; }
  .hero-h2{ letter-spacing: .12em; }
  .kicker{ font-size: .88rem; }
  .econaris-panel{ min-width: 170px; }
}


/* =========================
   AUTH PAGES (Login/Register)
========================= */

.auth-page{
  position: relative;
  min-height: calc(100vh - 90px);
  padding-top: 12px;
  padding-bottom: 24px;
}

.auth-bg{
  position:absolute;
  inset:0;
  background-image: url("/media/heros/econaris_game_background-compressed.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.08);
  z-index: 0;
}

.auth-overlay{
  position:absolute;
  inset:0;
  z-index: 1;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(0,0,0,.15), rgba(0,0,0,.78) 75%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.85));
}

.auth-card{
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.50);
  border: 1px solid rgba(241,208,137,.22);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.82);
  overflow: hidden;
}

.auth-card__top{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.28);
}

.auth-back{
  color: rgba(233,238,246,.75);
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .8rem;
}
.auth-back:hover{ color: #fff; }

.auth-card__body{
  padding: 22px 18px;
}

.auth-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f1d089;
  text-shadow: 0 12px 30px rgba(0,0,0,.70);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.auth-subtitle{
  margin: 10px 0 0 0;
  color: rgba(233,238,246,.78);
  line-height: 1.55;
}

.auth-alert{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(160, 45, 45, .22);
  border: 1px solid rgba(255, 120, 120, .25);
  color: rgba(255,255,255,.92);
}

.auth-label{
  display:block;
  margin-bottom: 8px;
  color: rgba(233,238,246,.86);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .80rem;
}

.auth-input{
  position: relative;
}

.auth-input i.bi{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(241,208,137,.85);
  pointer-events: none;
}

.auth-input input{
  width: 100%;
  height: 46px;
  padding: 0 44px 0 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,238,246,.92);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.auth-input input::placeholder{
  color: rgba(233,238,246,.40);
}

.auth-input input:focus{
  border-color: rgba(241,208,137,.35);
  box-shadow: 0 0 0 .2rem rgba(241,208,137,.12);
}

.auth-peek{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  width: 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(0,0,0,.20);
  color: rgba(233,238,246,.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.auth-peek:hover{
  border-color: rgba(241,208,137,.25);
  color: #fff;
}

.auth-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(233,238,246,.80);
  user-select: none;
}
.auth-check input{
  width: 16px;
  height: 16px;
  accent-color: #e7c56f;
}

.auth-link{
  color: rgba(241,208,137,.90);
  text-decoration: none;
}
.auth-link:hover{
  color: #ffe6aa;
  text-decoration: underline;
}

.auth-divider{
  position: relative;
  text-align: center;
}
.auth-divider::before{
  content:"";
  position:absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,.10);
}
.auth-divider span{
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: rgba(0,0,0,.50);
  color: rgba(233,238,246,.70);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .75rem;
}

.auth-hint{
  color: rgba(233,238,246,.55);
  font-size: .9rem;
}