/* ============================================================
   Ecosystem‑G EXACT — Premium Cinematic Styles
   Lite/Dark • Neon • Glass • SaaS‑Grade • Mapped • Modular
   ============================================================ */

/* ROOT VARIABLES */
:root {
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;

  --text-dark: #e2e8f0;
  --text-light: #1e293b;

  --accent: #00eaff;
  --accent-glow: rgba(0,234,255,0.45);
  --accent-soft: rgba(0,234,255,0.15);

  --glass-dark: rgba(255,255,255,0.06);
  --glass-light: rgba(0,0,0,0.06);

  --radius: 14px;
  --transition: 0.25s ease;
  --shadow: 0 8px 25px rgba(0,0,0,0.25);
  --shadow-light: 0 8px 25px rgba(0,0,0,0.10);
}

/* THEMES */
body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.theme-light {
  background: var(--bg-light);
  color: var(--text-light);
}

/* GLOBAL */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.7;
}

/* WRAPPER */
.egx-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 25px;
}

/* HEADER */
.egx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.egx-logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

.egx-logo-main {
  font-size: 32px;
  background: linear-gradient(90deg, #00eaff, #4be3ff, #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.egx-logo-sub {
  font-size: 14px;
  opacity: 0.7;
}

/* NAV */
.egx-nav {
  display: flex;
  gap: 20px;
}

.egx-nav-link {
  font-size: 15px;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

body.theme-dark .egx-nav-link:hover {
  background: var(--glass-dark);
  transform: translateY(-2px);
}

body.theme-light .egx-nav-link:hover {
  background: var(--glass-light);
  transform: translateY(-2px);
}

/* THEME TOGGLE */
.egx-theme-toggle {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.egx-theme-toggle:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* HERO */
.egx-hero {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 50px;
}

.egx-hero-title {
  font-size: 48px;
  margin: 0;
  background: linear-gradient(90deg, #00eaff, #4be3ff, #00eaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.egx-hero-subtitle {
  font-size: 22px;
  margin: 10px 0 25px;
  opacity: 0.85;
}

.egx-hero-text {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* CTA */
.egx-cta-row {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.egx-cta {
  background: var(--accent);
  color: #000;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: opacity var(--transition), transform var(--transition);
}

.egx-cta:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}

.egx-cta-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* PANELS */
.egx-panel {
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition);
}

body.theme-dark .egx-panel {
  background: var(--glass-dark);
  box-shadow: var(--shadow);
}

body.theme-light .egx-panel {
  background: var(--glass-light);
  box-shadow: var(--shadow-light);
}

.egx-panel:hover {
  transform: translateY(-4px);
}

.egx-panel-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--accent);
}

.egx-panel-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

/* GRID */
.egx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 30px;
  margin-top: 60px;
}

.egx-card {
  padding: 25px;
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition);
}

body.theme-dark .egx-card {
  background: var(--glass-dark);
  box-shadow: var(--shadow);
}

body.theme-light .egx-card {
  background: var(--glass-light);
  box-shadow: var(--shadow-light);
}

.egx-card:hover {
  transform: translateY(-6px);
}

.egx-card-title {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--accent);
}

.egx-card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.egx-card-link {
  font-weight: 600;
}

/* FOOTER */
.egx-footer {
  margin-top: 80px;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  opacity: 0.85;
}

.egx-footer-link {
  color: var(--accent);
  font-weight: 600;
}
