/* ERCI Network — Static landing page */
/* Keep it lightweight for easy hosting (Netlify / GitHub Pages / any static host) */

:root{
  --bg: #070A12;
  --bg2:#0B1223;
  --panel:#0F1A33;
  --panel2:#0B162E;
  --text:#EAF0FF;
  --muted:#AFC0F0;
  --muted2:#7D90C9;
  --line: rgba(255,255,255,.10);
  --shadow: 0 14px 50px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(73,110,255,.20), transparent 60%),
    radial-gradient(800px 450px at 80% 25%, rgba(255,187,56,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 100%, rgba(104,61,255,.16), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }

.container{ width:min(1100px, 92%); margin:0 auto; }

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{ left:16px; top:16px; width:auto; height:auto; padding:10px 12px; background:#111; border-radius:12px; z-index:9999; }

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(10,14,28,.78), rgba(10,14,28,.40));
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; gap:16px;
  padding:14px 0;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:260px; }
.brand__icon{ width:44px; height:44px; border-radius:12px; box-shadow: 0 10px 26px rgba(0,0,0,.55); }
.brand__name{ font-weight:800; letter-spacing:.2px; line-height:1.1; }
.brand__meta{ color:var(--muted2); font-size:12px; margin-top:2px; }

.nav{ display:flex; align-items:center; gap:14px; margin-left:auto; }
.nav a{ color:var(--muted); font-weight:600; font-size:14px; padding:8px 10px; border-radius:12px; }
.nav a:hover{ background: rgba(255,255,255,.06); text-decoration:none; }

.cta{ display:flex; align-items:center; gap:10px; }
.burger{
  display:none;
  background:transparent; border:0; padding:10px; border-radius:12px;
}
.burger:hover{ background: rgba(255,255,255,.06); cursor:pointer; }
.burger span{ display:block; width:22px; height:2px; background:var(--text); margin:5px 0; border-radius:2px; }

.mobile-nav{
  display:none;
  border-top:1px solid var(--line);
  padding:10px 0 16px;
}
.mobile-nav a{
  display:block;
  padding:12px 4%;
  color:var(--muted);
  font-weight:700;
}
.mobile-nav a:hover{ background: rgba(255,255,255,.06); text-decoration:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  background: linear-gradient(135deg, rgba(73,110,255,.95), rgba(125,72,255,.95));
  border:1px solid rgba(255,255,255,.18);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.2px;
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  cursor:pointer;
}
.btn:hover{ filter:brightness(1.05); text-decoration:none; }
.btn--secondary{
  background: linear-gradient(135deg, rgba(255,187,56,.95), rgba(255,123,56,.95));
}
.btn--ghost{
  background: rgba(255,255,255,.06);
  box-shadow:none;
}
.btn--small{ padding:10px 12px; border-radius:12px; font-weight:800; font-size:13px; }

.pill{
  display:inline-flex; align-items:center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight:700;
  font-size:13px;
  margin-bottom:12px;
}

.hero{
  position:relative;
  padding:48px 0 22px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:34px;
  align-items:start;
}
.hero h1{
  margin:0;
  font-size: clamp(34px, 3.6vw, 48px);
  letter-spacing: -0.5px;
}
.lead{
  margin:14px 0 18px;
  color:var(--muted);
  font-size: 16px;
  line-height:1.55;
}

.statgrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:16px;
}
.stat{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px 14px 12px;
  box-shadow: var(--shadow);
}
.stat__label{ color:var(--muted2); font-weight:700; font-size:12px; }
.stat__value{ font-weight:900; font-size:18px; margin-top:6px; }
.stat__hint{ margin-top:6px; color:var(--muted2); font-size:12px; }

.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }

.note{
  margin-top:18px;
  padding:14px 14px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height:1.55;
}

.hero__media{ display:flex; flex-direction:column; gap:14px; }
.banner{
  width:100%;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  overflow:hidden;
}
.cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.card{
  background: linear-gradient(180deg, rgba(15,26,51,.90), rgba(11,22,46,.75));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  min-height:120px;
}
.card__title{ font-weight:900; letter-spacing:.2px; }
.card__text{ margin-top:8px; color:var(--muted); line-height:1.45; font-size:13px; }
.card__links{ display:flex; gap:12px; margin-top:10px; }
.card__link{
  display:inline-flex;
  padding:9px 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:800;
  font-size:13px;
}
.card__link:hover{ text-decoration:none; background: rgba(255,255,255,.10); }

.section{ padding:54px 0; }
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section__head{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-bottom:18px;
}
.section__head h2{ margin:0; font-size:28px; letter-spacing:-.2px; }
.section__head p{ margin:0; color:var(--muted); line-height:1.6; }

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.panel{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.panel h3{ margin:0 0 10px; }
.panel p{ margin:0 0 10px; color:var(--muted); line-height:1.55; }
.panel p:last-child{ margin-bottom:0; }

.tokenomics{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.tokenomics__box{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.kv{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:10px 14px;
}
.kv__k{ color:var(--muted2); font-weight:800; font-size:13px; }
.kv__v{ font-weight:800; }
.tokenomics__actions{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:16px;
}
.tokenomics__side{ display:flex; flex-direction:column; gap:14px; }
.sidecard{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.sidecard__title{ font-weight:900; margin-bottom:10px; }
.sidecard p{ margin:0; color:var(--muted); line-height:1.6; }
.list{ margin:0; padding-left:18px; color:var(--muted); line-height:1.7; }
.list a{ color: var(--text); }

.trust{
  display:grid;
  grid-template-columns: .7fr 1.3fr;
  gap:18px;
  align-items:center;
}
.trust__media img{
  width:100%;
  border-radius: 24px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.callouts{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.callout{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
}
.callout__title{ font-weight:900; }
.callout__text{ color:var(--muted); margin-top:8px; line-height:1.5; font-size:13px; }

.assetgrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.asset{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:12px;
  box-shadow: var(--shadow);
}
.asset img{
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
}
.asset figcaption{ margin-top:10px; color:var(--muted); font-weight:700; font-size:13px; }
.asset--wide{ grid-column: span 2; }

.links{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.linkcard{
  background: rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.linkcard__k{ color:var(--muted2); font-weight:900; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.linkcard__v{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.iconbtn{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 12px;
  padding:9px 10px;
  font-weight:900;
  cursor:pointer;
}
.iconbtn:hover{ background: rgba(255,255,255,.10); }

.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.break{ word-break: break-all; }

.footer-note{ margin-top:18px; }
.fine{ color:var(--muted2); font-size:12px; line-height:1.6; margin-top:12px; }

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: rgba(10,14,28,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display:none;
  align-items:center;
  gap:10px;
  color: var(--text);
}
.toast.show{ display:flex; }

.glow{
  position:absolute;
  inset:auto 0 -80px 0;
  height:160px;
  background: radial-gradient(500px 140px at 50% 50%, rgba(73,110,255,.18), transparent 70%);
  pointer-events:none;
}

.row{ display:flex; gap:10px; flex-wrap:wrap; }

/* Tokenomics tables */
.tok-tables{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tablewrap{
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 520px;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align:left;
  color: var(--text);
}
.table thead th{
  font-weight: 800;
  background: rgba(255,255,255,.06);
}
.table tbody tr:hover td{ background: rgba(255,255,255,.03); }


@media (max-width: 980px){
  .hero__grid{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr; }
  .grid3{ grid-template-columns:1fr; }
  .tokenomics{ grid-template-columns:1fr; }
  .tok-tables{ grid-template-columns:1fr; }
  .trust{ grid-template-columns:1fr; }
  .callouts{ grid-template-columns:1fr; }
  .assetgrid{ grid-template-columns:1fr; }
  .asset--wide{ grid-column: auto; }
  .links{ grid-template-columns:1fr; }
  .nav, .cta{ display:none; }
  .burger{ display:inline-block; margin-left:auto; }
}
