:root{
  --bg: #0A0C16;
  --surface: #141728;
  --surface-2: #1B1F36;
  --line: #2A2E4A;
  --gold: #ffae00;
  --gold-bright: #cc920a;
  --violet: #8B5CF6;
  --violet-dim: #5B3FA0;
  --text: #EDEBF5;
  --text-dim: #9A9CB8;
  --text-faint: #5F6284;

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
::selection{ background: var(--violet); color: white; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.eyebrow{
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:18px; height:1px; background: var(--gold); }

h1,h2,h3{ font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }

/* ---------- topbar ---------- */
header{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,12,22,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; height: 72px; }
.brand{
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.03em;
  display:flex; align-items:center; gap:10px;
}
.brand .mark{
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--gold-bright), var(--violet));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display:inline-block;
}
.brand span{ color: var(--gold-bright); }

nav.links{ display:flex; gap: 36px; align-items:center; }
nav.links > a{
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  letter-spacing: 0.02em; position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
nav.links > a.active{ color: var(--gold-bright); }
nav.links > a:hover, nav.links > a:focus-visible{ color: var(--text); }
nav.links > a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--gold);
  transition: width 0.25s ease;
}
nav.links > a:hover::after, nav.links > a:focus-visible::after{ width: 100%; }

.nav-cta{
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--bg);
  background: var(--gold); padding: 10px 18px; letter-spacing: 0.05em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover{ background: var(--gold-bright); transform: translateY(-1px); }

/* dropdown */
.has-dropdown{ position: relative; display:flex; align-items:center; gap:6px; cursor:pointer; }
.has-dropdown .caret{
  width:8px; height:8px; border-right:1.5px solid var(--text-faint); border-bottom:1.5px solid var(--text-faint);
  transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease, border-color 0.2s ease;
}
.has-dropdown:hover .caret, .has-dropdown.open .caret{ border-color: var(--gold-bright); transform: rotate(225deg) translateY(2px); }
.dropdown{
  position:absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 60;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown{ opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a{
  display:flex; align-items:center; gap:10px; padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}
.dropdown a:last-child{ border-bottom:none; }
.dropdown a:hover, .dropdown a:focus-visible{ color: var(--gold-bright); background: var(--surface-2); padding-left: 20px; }
.dropdown a .role-dot{ width:6px; height:6px; background: var(--violet); flex-shrink:0; }

.menu-toggle{
  display:none; width: 40px; height: 40px; flex-direction:column; align-items:center; justify-content:center;
  gap:5px; background:none; border:none; cursor:pointer; z-index: 70;
}
.menu-toggle span{ width: 22px; height: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{ position: relative; padding: 96px 0 120px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(ellipse 700px 400px at 82% 20%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(201,162,75,0.14), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events:none;
}
.hero-inner{ position:relative; display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items:center; }
.hero h1{ font-size: 45px; line-height: 1.04; margin: 18px 0 22px; text-transform: uppercase; }
.hero h1 em{
  font-style: normal; background: linear-gradient(100deg, var(--gold-bright), var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead{ font-size: 17px; color: var(--text-dim); max-width: 480px; margin-bottom: 32px; }
.hero-actions{ display:flex; gap: 14px; align-items:center; }
.btn-primary{
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--bg); background: var(--gold); padding: 15px 28px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s ease, transform 0.2s ease; display:inline-block;
}
.btn-primary:hover, .btn-primary:focus-visible{ background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost{
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text); padding: 15px 8px; border-bottom: 2px solid var(--violet); transition: color 0.2s ease;
}
.btn-ghost:hover, .btn-ghost:focus-visible{ color: var(--gold-bright); }

.stat-strip{ display:flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-strip div b{ display:block; font-family: var(--font-mono); font-size: 24px; color: var(--gold-bright); }
.stat-strip div span{ font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-art{ border: 1px solid var(--line); background: var(--surface); overflow:hidden; clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.hero-art img{ width:100%; height:100%; object-fit:cover; }

.hero-card{
  position: relative; background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line); padding: 28px;
  clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.hero-card::before{
  content: 'META SNAPSHOT'; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--text-faint); display:block; margin-bottom: 18px;
}
.rank-row{ display:flex; align-items:center; justify-content:space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child{ border-bottom:none; }
.rank-hero{ display:flex; align-items:center; gap: 12px; }
.avatar{
  width: 42px; height: 42px; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size: 15px; color: var(--bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.rank-hero .name{ font-weight: 700; font-size: 14px; }
.rank-hero .role{ font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.tier-badge{
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; width: 30px; height: 30px;
  display:flex; align-items:center; justify-content:center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.tier-S{ background: var(--gold); color: var(--bg); }
.tier-A{ background: var(--violet); color: white; }
.tier-B{ background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--line); }

/* ---------- page header (for inner pages) ---------- */
.page-header{
  position:relative; padding: 72px 0 56px; border-bottom: 1px solid var(--line); overflow:hidden;
}
.page-header::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse 600px 300px at 90% 0%, rgba(139,92,246,0.18), transparent 60%);
  pointer-events:none;
}
.page-header h1{ font-size: 44px; text-transform:uppercase; margin-top:12px; }
.page-header p{ color: var(--text-dim); max-width: 520px; margin-top: 14px; font-size:15px; }
.breadcrumb{ font-family: var(--font-mono); font-size:12px; color: var(--text-faint); margin-bottom: 10px; }
.breadcrumb a{ color: var(--text-faint); transition: color .2s; }
.breadcrumb a:hover{ color: var(--gold-bright); }

/* ---------- section shell ---------- */
section{ padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin-bottom: 40px; gap: 20px; }
.section-head h2{ font-size: 34px; margin-top: 10px; text-transform: uppercase; }
.section-head p{ color: var(--text-dim); font-size: 14px; max-width: 360px; text-align: right; }

/* ---------- news grid (home teaser) ---------- */
.news-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.news-feature{
  position: relative; background: var(--surface); border: 1px solid var(--line); min-height: 420px;
  display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden;
}
.news-feature img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.55; }
.news-feature .content{ position:relative; z-index:1; padding: 28px; background: linear-gradient(0deg, rgba(10,12,22,0.95), rgba(10,12,22,0.2) 70%); }
.tag{
  display:inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform:uppercase;
  color: var(--gold-bright); border: 1px solid var(--gold-bright); padding: 4px 10px; margin-bottom: 14px;
}
.news-feature h3{ font-size: 26px; margin-bottom: 10px; }
.news-feature .meta{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

.news-list{ display:flex; flex-direction:column; gap: 18px; }
.news-item{ display:flex; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s ease, transform 0.2s ease; }
.news-item:hover{ border-color: var(--violet); transform: translateX(4px); }
.news-item .idx{ font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--text-faint); min-width: 28px; }
.news-item h4{ font-family: var(--font-body); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.news-item .meta{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* ---------- news listing page (article cards with images) ---------- */
.article-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card{ background: var(--surface); border: 1px solid var(--line); overflow:hidden; transition: transform .2s ease, border-color .2s ease; }
.article-card:hover{ transform: translateY(-4px); border-color: var(--gold); }
.article-card .thumb{ aspect-ratio: 16/10; overflow:hidden; border-bottom:1px solid var(--line); }
.article-card .thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.article-card:hover .thumb img{ transform: scale(1.06); }
.article-card .body{ padding: 20px; }
.article-card h3{ font-size:18px; margin: 10px 0 8px; line-height:1.25; }
.article-card p{ color: var(--text-dim); font-size:13px; margin-bottom:14px; }

/* ---------- tier list ---------- */
.tier-table{ border: 1px solid var(--line); }
.tier-band{ display:flex; border-bottom: 1px solid var(--line); }
.tier-band:last-child{ border-bottom: none; }
.tier-label{ width: 92px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size: 30px; border-right: 1px solid var(--line); }
.tier-band.s .tier-label{ background: rgba(201,162,75,0.12); color: var(--gold-bright); }
.tier-band.a .tier-label{ background: rgba(139,92,246,0.12); color: var(--violet); }
.tier-band.b .tier-label{ color: var(--text-faint); }
.tier-heroes{ flex:1; display:flex; flex-wrap:wrap; gap: 14px; padding: 20px 24px; }
.hero-chip{ display:flex; align-items:center; gap:10px; }
.hero-chip .avatar{ width:36px; height:36px; font-size:13px; }
.hero-chip .name{ font-weight:600; font-size: 13px; }
.hero-chip .role{ font-size: 10px; color: var(--text-faint); text-transform:uppercase; }

/* ---------- topics ---------- */
.topics-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card{ background: var(--surface); border: 1px solid var(--line); padding: 32px 26px; position: relative; transition: border-color 0.2s ease, transform 0.2s ease; }
.topic-card:hover{ border-color: var(--gold); transform: translateY(-4px); }
.topic-card .num{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 20px; display:block; }
.topic-card h3{ font-size: 20px; margin-bottom: 10px; }
.topic-card p{ color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.topic-card .go{ font-family: var(--font-mono); font-size: 12px; color: var(--gold-bright); letter-spacing: 0.05em; }

/* ---------- about page ---------- */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.about-art{ border:1px solid var(--line); overflow:hidden; clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.about-art img{ width:100%; }
.about-copy p{ color: var(--text-dim); margin-bottom:16px; font-size:15px; }
.value-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; margin-top:20px; }
.value-card{ background: var(--surface); border:1px solid var(--line); padding:24px; }
.value-card b{ display:block; font-family:var(--font-display); font-size:18px; color:var(--gold-bright); margin-bottom:8px; }
.value-card span{ font-size:13px; color:var(--text-dim); }
.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.team-card{ text-align:center; }
.team-card .thumb{ aspect-ratio:1; border:1px solid var(--line); overflow:hidden; margin-bottom:12px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.team-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.team-card b{ display:block; font-size:14px; }
.team-card span{ font-size:12px; color:var(--text-faint); font-family:var(--font-mono); }

/* ---------- footer ---------- */
footer{ padding: 64px 0 40px; }
.footer-inner{ display:flex; justify-content:space-between; align-items:flex-start; gap: 40px; flex-wrap:wrap; }
.footer-about p{ color: var(--text-dim); font-size: 14px; max-width: 420px; margin-top: 14px; }
.footer-cols{ display:flex; gap: 64px; }
.footer-col h5{ font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a{ display:block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display:flex; justify-content:space-between; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .wrap{ padding: 0 20px; }
  .menu-toggle{ display:flex; }
  nav.links{
    position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column; gap:0;
    padding: 8px 24px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
  }
  nav.links.open{ display:flex; transform: translateX(0); }
  nav.links > a{ padding: 18px 0; font-size: 17px; border-bottom: 1px solid var(--line); width: 100%; }
  .has-dropdown{ justify-content:space-between; }
  .dropdown{ position: static; transform:none; opacity:1; visibility:visible; display:none; min-width:0; border:none; clip-path:none; background: var(--surface-2); margin-bottom: 6px; }
  .has-dropdown.open .dropdown{ display:block; }
  .has-dropdown.open .caret{ transform: rotate(225deg); }
  .nav-cta{ display:none; }
  .hero-inner{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 40px; }
  .news-grid{ grid-template-columns: 1fr; }
  .article-grid{ grid-template-columns: 1fr; }
  .topics-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(2,1fr); }
  .tier-band{ flex-direction: column; }
  .tier-label{ width:100%; height:48px; border-right:none; border-bottom:1px solid var(--line); }
  .footer-inner{ flex-direction:column; }
  .section-head{ flex-direction:column; align-items:flex-start; }
  .section-head p{ text-align:left; }
  .page-header h1{ font-size:32px; }
}
