/* MineCore Network — shared design system */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080b14;
  --bg-soft: #0c1120;
  --surface: #111830;
  --surface-2: #161f3d;
  --border: #232d4d;
  --border-soft: #1a2340;
  --text: #eef1fb;
  --text-dim: #aab2cc;
  --text-faint: #4c5578;
  --muted: #7c86a8;

  --blue: #4f8cff;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --blue-dim: #2f5fc4;

  --grad-brand: linear-gradient(120deg, var(--blue), var(--cyan) 55%, var(--violet));
  --grad-brand-soft: linear-gradient(120deg, rgba(79,140,255,.16), rgba(34,211,238,.12) 55%, rgba(168,85,247,.16));

  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.55);
  --shadow-md: 0 12px 30px -12px rgba(0,0,0,.5);

  --maxw: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 20, .78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px -6px rgba(79,140,255,.55);
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.status-dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(52,211,153,.18); animation: pulse 2.2s ease-in-out infinite; }
.status-dot.off { background: var(--bad); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(52,211,153,.18); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,.08); } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--grad-brand);
  color: #051022;
  box-shadow: 0 10px 26px -10px rgba(79,140,255,.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(79,140,255,.7); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--blue-dim); background: var(--surface-2); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.06;
  margin-top: 18px;
}
.hero p.lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-size: 17.5px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Split hero: copy left, illustration right (desktop); stacked + centered (mobile) */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 48px;
  text-align: left;
}
.hero-split .hero-copy .eyebrow { justify-content: flex-start; }
.hero-split .hero-copy .hero-cta { justify-content: flex-start; }
.hero-split .hero-copy .hero-strip { justify-content: flex-start; }
.hero-split .hero-copy p.lead { margin-inline: 0; }

.hero-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin-inline: auto;
}
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-art .orbit-ring {
  transform-origin: 210px 210px;
  animation: orbit-spin 40s linear infinite;
}
.hero-art .float-slow {
  animation: art-float 6s ease-in-out infinite;
}
.hero-art .float-slow.delay1 { animation-delay: -1.5s; }
.hero-art .float-slow.delay2 { animation-delay: -3.2s; }
.hero-art .core-pulse { animation: core-pulse 3.4s ease-in-out infinite; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes core-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art .orbit-ring, .hero-art .float-slow, .hero-art .core-pulse { animation: none; }
}
@media (max-width: 880px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split .hero-art { order: -1; max-width: 260px; }
  .hero-split .hero-copy .eyebrow,
  .hero-split .hero-copy .hero-cta,
  .hero-split .hero-copy .hero-strip { justify-content: center; }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.chip svg { width: 14px; height: 14px; color: var(--cyan); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 14px; }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 15.5px; }

.page-hero {
  padding: 56px 0 40px;
}
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-top: 14px; }
.page-hero p { color: var(--text-dim); max-width: 620px; margin-top: 14px; font-size: 16.5px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover::before { opacity: 1; }

.icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.icon-badge svg { width: 22px; height: 22px; color: var(--cyan); }

.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 44px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-dim); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 18px; text-align: left; font-size: 14.5px; }
thead th {
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
tbody tr { border-bottom: 1px solid var(--border-soft); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td.rank-cell { font-weight: 700; font-family: 'Chakra Petch', sans-serif; }

/* ---------- Misc components ---------- */
.kbd {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--cyan);
}

.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14.5px; }
.step code.kbd { margin-top: 6px; display: inline-block; }

.rule-section { margin-bottom: 34px; }
.rule-section h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.rule-section h3 .num { color: var(--cyan); font-family: 'Chakra Petch', sans-serif; }
.rule-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.rule-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}
.rule-list li strong { color: var(--text); font-weight: 600; }
.rule-list li .strafe { color: var(--warn); font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(52,211,153,.12);
  color: var(--good);
  border: 1px solid rgba(52,211,153,.28);
}
.badge.warn { background: rgba(251,191,36,.12); color: var(--warn); border-color: rgba(251,191,36,.28); }

/* ---------- Rank strip (raenge.html top overview) ---------- */
.rank-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.rank-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .2s ease;
}
.rank-card:hover { border-color: var(--blue-dim); transform: translateY(-2px); }
.rank-card:hover::before { opacity: 1; }
.rank-card .rank-card-name {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
}
.rank-card .rank-card-price {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}
.rank-card .rank-card-price .eur {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 2px;
}
.rank-card .rank-card-stats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.rank-card .rank-card-stat {
  font-size: 11.5px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.rank-card .rank-card-stat b { color: var(--text); font-weight: 700; font-size: 13px; }
@media (max-width: 1024px) {
  .rank-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .rank-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .rank-strip { grid-template-columns: 1fr; }
}

/* ---------- Rights comparison table (raenge.html) ---------- */
.rights-table th, .rights-table td { text-align: center; padding: 10px 8px; }
.rights-table th:first-child, .rights-table td.right-name-cell {
  text-align: left;
  white-space: nowrap;
  padding-left: 16px;
}
.rights-table td.right-name-cell { color: var(--text-dim); font-size: 13.5px; }
.rights-table thead th { font-size: 11.5px; }
.rights-table tr.cat-row td {
  text-align: left;
  padding: 16px 8px 8px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cyan);
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
}
.rights-table tr.cat-row:first-child td { padding-top: 4px; }
.chk { display: inline-block; font-size: 14px; font-weight: 700; }
.chk.yes { color: var(--good); }
.chk.no { color: var(--text-faint); opacity: .5; }
.rights-table td.val { font-weight: 700; font-size: 12.5px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.rights-table td.val.empty { color: var(--text-faint); opacity: .5; font-weight: 400; }

/* ---------- Rights list (raenge.html) ---------- */
.rights-category { margin-bottom: 36px; }
.rights-category h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--cyan);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.right-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.right-row:last-child { border-bottom: none; }
.right-name { font-size: 14.5px; color: var(--text); font-weight: 500; }
.right-desc { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.rank-pill {
  flex: none;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}

.staff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.staff-avatar {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #051022;
  flex: none;
}
.staff-name { font-size: 16px; font-weight: 700; font-family: 'Chakra Petch', sans-serif; }
.staff-role { font-size: 12.5px; color: var(--cyan); font-weight: 600; margin-top: 2px; }
.staff-meta { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.staff-meta span { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
.staff-meta svg { width: 13px; height: 13px; color: var(--muted); }

.state-msg { text-align: center; padding: 40px 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Skeleton loaders ---------- */
.skel {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 240% 100%;
  animation: skel-sweep 1.6s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skel-sweep { 0% { background-position: 200% 0; } 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .status-dot.on { animation: none; } }

.skel-chip { height: 36px; border-radius: 100px; width: 160px; }
.skel-card { height: 92px; border-radius: var(--radius); }
.skel-row { display: flex; gap: 10px; flex-wrap: wrap; }

.legal h2 { font-size: 19px; margin: 34px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-dim); font-size: 14.5px; margin-bottom: 8px; }
.legal a.inline { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.legal .placeholder {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 880px) {
  .nav-links, .nav-right .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .hero { padding: 64px 0 48px; }
}

/* mobile nav dropdown, opened via .nav-toggle */
@media (max-width: 880px) {
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    padding: 10px 24px 18px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.nav-open a { padding: 12px 6px; }
}
