

/* --------------------------------------------------
   THEME VARIABLES — LITE & DARK
-------------------------------------------------- */
:root[data-theme="light"] {
  --bg: #f4f6f8;
  --text: #0b0e11;
  --glass: rgba(0,0,0,0.04);
  --panel: rgba(255,255,255,0.65);
  --accent: #1f6feb;
  --accent2: #00aaff;
  --border: rgba(0,0,0,0.12);
  --shadow: rgba(0,0,0,0.12);
}

:root[data-theme="dark"] {
  --bg: #0b0e11;
  --text: #e6e6e6;
  --glass: rgba(255,255,255,0.06);
  --panel: rgba(255,255,255,0.12);
  --accent: #4cff79;
  --accent2: #00ffb3;
  --border: rgba(255,255,255,0.18);
  --shadow: rgba(0,0,0,0.55);
}

/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --------------------------------------------------
   CINEMATIC CONTAINER
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--bg) 0%, #11161c 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin-top: 20px;
  font-size: 1.25rem;
  color: var(--text);
  opacity: 0.85;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------
   GRID
-------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  padding: 80px 20px;
}

/* --------------------------------------------------
   CARDS (CINEMATIC SHARDS)
-------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text);
}

.card p {
  color: var(--text);
  opacity: 0.85;
  font-size: 1.05rem;
}

/* --------------------------------------------------
   BUTTONS — GREEN HOVER POP
-------------------------------------------------- */
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  margin: 10px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  transform: translateY(-3px);
}

/* CTA WRAPPER */
.hero-cta {
  margin-top: 40px;
  text-align: center;
}

/* --------------------------------------------------
   EG-SECTIONS (Metal‑to‑Metal)
-------------------------------------------------- */
.eg-section {
  padding: 80px 20px;
  border-top: 1px solid var(--border);
}

.eg-section-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.eg-section-sub {
  font-size: 1.15rem;
  color: var(--text);
  opacity: 0.85;
  max-width: 900px;
  margin-bottom: 40px;
}

.eg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.eg-card-link {
  display: block;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
}

.eg-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  transform: translateY(-4px);
}

.eg-card-link strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.eg-card-link span {
  color: var(--text);
  opacity: 0.85;
  font-size: 1rem;
}

/* --------------------------------------------------
   ACCESS ECR BUTTON
-------------------------------------------------- */
.access-ecr {
  display: block;
  width: 260px;
  margin: 60px auto;
  padding: 16px 32px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.access-ecr:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent);
  transform: translateY(-4px);
}

/* --------------------------------------------------
   THEME SLIDER BUTTON
-------------------------------------------------- */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 25px var(--shadow);
  transition: opacity 0.25s ease;
}

.theme-toggle:hover {
  opacity: 0.85;
}

/* --------------------------------------------------
   BOTTOM NAV — CINEMATIC NEON (THEME AWARE)
-------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 25px var(--shadow);
  z-index: 9999;
}

.bottom-nav a {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 25px var(--shadow);
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.bottom-nav a:hover {
  opacity: 0.85;
}

/* ========================= */
/*   MOBILE FRIENDLY LAYOUT  */
/* ========================= */

@media (max-width: 768px) {

    /* HEADER */
    .header {
        padding: 14px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .header img {
        height: 45px;
    }

    .login-btn, .toggle-btn {
        padding: 8px 14px;
        font-size: 14px;
    }

    /* HERO */
    .hero {
        padding: 50px 16px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    /* MAIN CONTENT */
    .container {
        margin: 20px 12px;
        padding: 20px;
    }

    .container h2 {
        font-size: 22px;
    }

    .container p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* NAV ROW */
    .nav-right-row {
        flex-direction: column;
        gap: 14px;
    }

    .nav-item {
        justify-content: center;
    }

    /* FOOTER */
    .eg-bottom-footer {
        flex-direction: column;
        padding: 30px 20px;
        gap: 28px;
        text-align: center;
    }

    .eg-footer-panel {
        min-width: unset;
    }

    .brand-panel {
        min-width: unset;
    }

    .eg-footer-logo {
        width: 70px;
    }

    /* SLIDER */
    .theme-slider {
        width: 120px;
        height: 12px;
    }

    .slider-orb {
        width: 26px;
        height: 26px;
        top: -7px;
    }

    .theme-slider.dark .slider-orb {
        left: 94px;
    }

    .slider-shard {
        display: none;
    }
}

@media (max-width: 480px) {

    /* HERO */
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    /* MAIN CONTENT */
    .container {
        padding: 16px;
    }

    .container h2 {
        font-size: 20px;
    }

    .container p {
        font-size: 14px;
    }

    /* FOOTER */
    .eg-footer-brand-text {
        font-size: 0.85rem;
    }

    .eg-footer-copy {
        font-size: 0.75rem;
    }
}
