:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);
  --accent:#2563eb;
  --shadow: 0 14px 34px rgba(15,23,42,.14);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

/* Header */
.header{
  position:sticky; top:0; z-index:30;
  background:rgba(246,248,251,.88);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  padding:2px 0;
}

.brand img{
  height:92px;
  width:auto;
  display:block;
}

@media (min-width: 800px){
  .brand img{
    height:118px;
  }

  .header-row{
    padding:8px 0;
  }
}

.nav-desktop{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navlink{
  color:var(--muted);
  padding:8px 8px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.navlink:hover{
  color:var(--text);
  background:rgba(15,23,42,.04);
}

.social{
  display:flex;
  gap:10px;
  align-items:center;
  margin-left:6px;
}

.social-link{
  font-size:14px;
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
}

.social-link:hover{
  color:var(--text);
  background:rgba(15,23,42,.03);
}

.hamburger{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0;
}

.hamburger span{
  display:block;
  width:18px;
  height:2px;
  background:var(--muted);
  border-radius:2px;
}

.hamburger:hover{
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
}

@media (max-width: 820px){
  .nav-desktop{ display:none; }
  .hamburger{ display:flex; flex-direction:column; }
}

/* Mobile menu */
.menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.32);
  display:none;
  z-index:40;
}

.menu-overlay[aria-hidden="false"]{ display:block; }

.menu-panel{
  position:fixed;
  top:0;
  right:0;
  height:100%;
  width:min(360px, 88vw);
  background:rgba(246,248,251,.98);
  border-left:1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .18s ease;
  z-index:50;
  display:flex;
  flex-direction:column;
}

.menu-panel[aria-hidden="false"]{
  transform: translateX(0);
}

.menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
  gap:10px;
}

.menu-title{
  font-weight:900;
  letter-spacing:.6px;
  transform: scaleY(1.10);
  transform-origin:left center;
}

.menu-close{
  width:42px; height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  font-weight:900;
  line-height:1;
}

.menu-close:hover{
  color:var(--text);
  background:rgba(15,23,42,.04);
}

.menu-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:auto;
}

.menu-group{
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  border-radius:18px;
  padding:12px;
}

.menu-group-title{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin-bottom:8px;
}

.menu-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.menu-item{
  padding:10px 10px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.menu-item:hover{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.06);
}

.menu-social{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.btn-ghost{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}

/* Standard content */
.hero{padding:24px 0 10px}

.hero h1{
  margin:0 0 8px;
  font-size: clamp(24px, 4vw, 40px);
  line-height:1.15;
}

.hero p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:16px;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.notice{
  margin:14px 0 26px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  color:var(--muted);
  background:rgba(255,255,255,.6);
}

h2{
  margin:0 0 12px;
  font-size:22px;
  letter-spacing:.2px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}

@media (min-width: 800px){
  .grid{grid-template-columns: repeat(2, 1fr);}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}

.meta{color:var(--muted); font-size:13px; margin-bottom:6px}
.card h3{margin:0 0 10px; font-size:18px}
.card p{margin:0 0 12px; color:var(--muted)}

/* Stats / Info popup */
.stats{
  margin:26px 0 34px;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

@media (min-width: 800px){
  .stats{grid-template-columns:1fr 1fr;}
}

.stat{
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  position:relative;
  overflow:visible;
}

.stat-label{color:var(--muted); font-size:13px}
.stat-value{font-size:28px; font-weight:900; margin-top:6px}

.info-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  cursor:pointer;
  user-select:none;
  line-height:1;
  padding:0;
}

.info-btn:hover{
  color:var(--text);
  box-shadow: 0 8px 22px rgba(15,23,42,.10);
}

.info-pop{
  position:absolute;
  left:-10px;
  bottom:28px;
  width: min(320px, calc(100vw - 48px));
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:12px 12px 10px;
  display:none;
  z-index:50;
  transform-origin: bottom left;
}

.info-pop[aria-hidden="false"]{ display:block; }

.info-pop-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.info-pop-title{
  font-weight:900;
  font-size:14px;
  line-height:1.2;
}

.info-close{
  width:26px;
  height:26px;
  border-radius:10px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.info-close:hover{ color:var(--text); background:rgba(15,23,42,.04); }

.info-pop-body{
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}

.info-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(15,23,42,.02);
  color:var(--text);
}

.info-row span:first-child{ color:var(--muted); }

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  color:var(--muted);
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}

@media (max-width: 500px){
  .container{ width:min(1100px, 94vw); }
  .card{ padding:16px; }
  .card h3{ font-size:19px; }
  .btn{ padding:11px 14px; }
}

@media (prefers-reduced-motion: reduce){
  .menu-panel{ transition:none; }
}