@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg:           #090f10;
  --surface:      #101a1b;
  --surface-2:    #152122;
  --surface-3:    #1d2e2f;
  --surface-4:    #243839;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --violet:       #9f53ec;
  --violet-dim:   rgba(159,83,236,0.15);
  --orange:       #ff9d00;
  --orange-dim:   rgba(255,157,0,0.15);
  --blue:         #4fc3f7;
  --blue-dim:     rgba(79,195,247,0.12);
  --blue-glow:    rgba(79,195,247,0.25);
  --green:        #4caf82;
  --green-dim:    rgba(76,175,130,0.15);
  --red:          #ef5350;
  --red-dim:      rgba(239,83,80,0.12);
  --yellow:       #ffd740;
  --yellow-dim:   rgba(255,215,64,0.15);
  --text:         #cfe0e2;
  --text-dim:     #5a7577;
  --text-mid:     #8aacaf;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 1.5rem 1.5rem 4rem;
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}
body.sidebar-collapsed { margin-left: 0; }

/* Subtle grid bg — same as main.css */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 4.5rem 2rem 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(159,83,236,0.1), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
  0%   { opacity: 0.4; }
  100% { opacity: 0.8; }
}

.hero h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  animation: title-pulse 6s infinite alternate;
}

@keyframes title-pulse {
  0%   { filter: drop-shadow(0 0 12px rgba(159,83,236,0.4)); }
  100% { filter: drop-shadow(0 0 28px rgba(159,83,236,0.6)); }
}

.hero-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 0.8rem;
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ── BUTTONS ── */
.tool-btn {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 28px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(79,195,247,0.4);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.tool-btn:hover {
  background: rgba(79,195,247,0.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,195,247,0.2);
}

.tool-btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-md);
}

.tool-btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  box-shadow: none;
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem;
  max-width: 860px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  flex: 1;
  padding: 1.2rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--surface-2); }

.stat-number {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto 4rem;
  position: relative;
  z-index: 1;
}

/* ── TOOL CARD ── */
.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Card accent colors */
.tool-card.draft       { border-color: rgba(159,83,236,0.3); }
.tool-card.draft:hover { border-color: var(--violet); box-shadow: var(--shadow-lg), 0 0 40px rgba(159,83,236,0.12); }

.tool-card.map         { border-color: rgba(79,195,247,0.3); }
.tool-card.map:hover   { border-color: var(--blue);   box-shadow: var(--shadow-lg), 0 0 40px rgba(79,195,247,0.12); }

.tool-card.calc        { border-color: rgba(255,157,0,0.3); }
.tool-card.calc:hover  { border-color: var(--orange); box-shadow: var(--shadow-lg), 0 0 40px rgba(255,157,0,0.12); }

.tool-card.xpcalc      { border-color: rgba(76,175,130,0.3); }
.tool-card.xpcalc:hover { border-color: var(--green); box-shadow: var(--shadow-lg), 0 0 40px rgba(76,175,130,0.12); }
.tool-card.xpcalc .card-tag { color: var(--green); border-color: rgba(76,175,130,0.4); }

.tool-card.tierlist        { border-color: rgba(76,175,130,0.3); }
.tool-card.tierlist:hover  { border-color: var(--green);  box-shadow: var(--shadow-lg), 0 0 40px rgba(76,175,130,0.12); }

.tool-card.imap        { border-color: rgba(79,195,247,0.25); }
.tool-card.imap:hover  { border-color: var(--blue); box-shadow: var(--shadow-lg), 0 0 40px rgba(79,195,247,0.1); }
.tool-card.imap .card-tag { color: var(--blue); border-color: rgba(79,195,247,0.4); }

.tool-card.patch        { border-color: rgba(255,215,64,0.25); }
.tool-card.patch:hover  { border-color: var(--yellow); box-shadow: var(--shadow-lg), 0 0 40px rgba(255,215,64,0.1); }
.tool-card.patch .card-tag { color: var(--yellow); border-color: rgba(255,215,64,0.4); }

/* ── CARD IMAGE ── */
.card-image-wrapper {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.tool-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.tool-card:hover img { transform: scale(1.05); }

/* Tag pill over image */
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(9,15,16,0.75);
  color: var(--text-mid);
  border: 1px solid var(--border-md);
  backdrop-filter: blur(6px);
}

.tool-card.draft .card-tag   { color: var(--violet); border-color: rgba(159,83,236,0.4); }
.tool-card.map .card-tag     { color: var(--blue);   border-color: rgba(79,195,247,0.4); }
.tool-card.calc .card-tag    { color: var(--orange); border-color: rgba(255,157,0,0.4); }
.tool-card.tierlist .card-tag{ color: var(--green);  border-color: rgba(76,175,130,0.4); }

/* Placeholder image for cards without asset yet */
.card-image-placeholder {
  width: 100%;
  height: 200px;
  background: var(--surface-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s;
}
.card-image-placeholder span { font-size: 2.2rem; opacity: 0.4; }
.tool-card:hover .card-image-placeholder { background: var(--surface-4); }

/* ── CARD BODY ── */
.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.tool-card h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.tool-card p {
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
}

/* ── WHY SECTION ── */
.why-section {
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.why-eyebrow {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.why-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.why-item {
  background: var(--surface);
  padding: 1.8rem 1.6rem;
  text-align: left;
  transition: background 0.2s;
}
.why-item:hover { background: var(--surface-2); }

.why-icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.why-item h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.why-item p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}
footer #footer-legal {
  margin-top: 3px;
  font-size: 0.68rem;
}

/* ── GLOBAL SCROLLBAR — même que main.css ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 860px) {
  body { margin-left: 0; padding: 1rem 0.75rem 2rem; }
}

@media (max-width: 768px) {
  body { padding: 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 0.9rem; }
  .tools-grid { gap: 1.2rem; }
  .tool-card img,
  .card-image-placeholder { height: 160px; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-item { flex: 0 0 100%; border-right: none !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; letter-spacing: 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}