/* ==========================================================================
   VortexMC - közös stíluslap
   ========================================================================== */

:root {
  --bg: #0a0a10;
  --bg-elevated: #121218;
  --bg-elevated-2: #16161d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --purple: #7c5cff;
  --purple-bright: #9b7fff;
  --purple-dim: rgba(124, 92, 255, 0.14);
  --teal: #2dd9b9;
  --amber: #f5a524;
  --red: #ff5c6c;

  --text: #f5f5f8;
  --text-muted: #9a9aa6;
  --text-dim: #6b6b76;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 60px rgba(124, 92, 255, 0.15);

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* {
  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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Ambient háttér ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.bg-glow::before {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
}

.bg-glow::after {
  width: 560px;
  height: 560px;
  top: 120px;
  left: -200px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  opacity: 0.18;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- focus states (a11y) ---------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Navigáció
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand__logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand__logo--sm {
  height: 30px;
}

@media (max-width: 480px) {
  .brand__logo {
    height: 36px;
  }
}

.brand__accent {
  background: linear-gradient(90deg, var(--purple-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a.is-active {
  color: var(--purple-bright);
}

.nav__links svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

@media (max-width: 780px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 16, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle {
    display: inline-flex;
  }
}

/* ---------- Gombok ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7);
}

.btn--primary:hover {
  background: var(--purple-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.8);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 15.5px;
}

/* ---------- Badge / eyebrow pill ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--purple-dim);
  color: var(--purple-bright);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge svg {
  width: 13px;
  height: 13px;
}

.badge--live {
  background: rgba(45, 217, 185, 0.12);
  color: var(--teal);
}

.badge--live .badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 217, 185, 0.25);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.badge--maintenance {
  background: rgba(245, 165, 36, 0.12);
  color: var(--amber);
}

.badge--maintenance .badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.25);
}

.badge--offline {
  background: rgba(255, 92, 108, 0.12);
  color: var(--red);
}

.badge--offline .badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 92, 108, 0.25);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 88px 0 96px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
}

.hero__title span {
  display: block;
}

.hero__title .grad-purple {
  background: linear-gradient(90deg, #fff 10%, var(--purple-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title .grad-teal {
  background: linear-gradient(90deg, var(--teal) 0%, #7ff0d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 480px;
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

/* ---------- Státusz kártya ---------- */

.status-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-glow);
}

.status-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.status-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-card__title svg {
  width: 17px;
  height: 17px;
  color: var(--purple-bright);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-bright);
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-bright);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.status-pill--online {
  background: rgba(45, 217, 185, 0.12);
  color: var(--teal);
}

.status-pill--online .status-pill__dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 217, 185, 0.25);
}

.status-pill--maintenance {
  background: rgba(245, 165, 36, 0.12);
  color: var(--amber);
}

.status-pill--maintenance .status-pill__dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.25);
  animation: none;
}

.status-pill--offline {
  background: rgba(255, 92, 108, 0.12);
  color: var(--red);
}

.status-pill--offline .status-pill__dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 92, 108, 0.25);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.status-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.status-stat + .status-stat {
  border-top: 1px solid var(--border);
}

.status-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-stat__icon svg {
  width: 18px;
  height: 18px;
  color: var(--purple-bright);
}

.status-stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.status-stat__label {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 1px;
}

.status-card__note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ==========================================================================
   Feature szekció
   ========================================================================== */

.section {
  padding: 20px 0 96px;
}

.section__head {
  max-width: 620px;
  margin-bottom: 44px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.015em;
  margin: 18px 0 12px;
}

.section__text {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 940px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card__icon svg {
  width: 19px;
  height: 19px;
  color: var(--purple-bright);
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.pill-soon {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   Szabályzat oldal
   ========================================================================== */

.rules-hero {
  padding: 72px 0 40px;
  max-width: 700px;
}

.rules-hero .section__title {
  font-size: clamp(30px, 4.6vw, 44px);
}

.rules-hero .section__title .grad-purple {
  background: linear-gradient(90deg, #fff 10%, var(--purple-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 100px;
}

.rule-group {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rule-group__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
}

.rule-group__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--purple-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-group__icon svg {
  width: 17px;
  height: 17px;
  color: var(--purple-bright);
}

.rule-group__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  flex: 1;
}

.rule-group__chevron {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.rule-group.is-open .rule-group__chevron {
  transform: rotate(180deg);
}

.rule-group__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.rule-group.is-open .rule-group__body {
  grid-template-rows: 1fr;
}

.rule-group__body-inner {
  overflow: hidden;
}

.rule-group__list {
  list-style: none;
  padding: 2px 22px 22px 22px;
}

.rule-group__list li {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.rule-group__list li:first-child {
  border-top: 1px solid var(--border);
}

.rule-group__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--teal);
  flex-shrink: 0;
  padding-top: 1px;
  min-width: 22px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.footer__brand .brand {
  font-size: 15px;
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
