/* ============================================================
   ShadowBlade SMP — Styles v2
   Ultra-professional | Glassmorphism | Animated BG | Dark/Light
   ============================================================ */

/* ---------- Light Theme ---------- */
:root {
  --color-bg:            #f5f6f8;
  --color-bg-alt:        #eeeff2;
  --color-card:          rgba(255, 255, 255, 0.55);
  --color-card-border:   rgba(255, 255, 255, 0.40);
  --color-glass-bg:      rgba(255, 255, 255, 0.30);
  --color-glass-border:  rgba(255, 255, 255, 0.18);
  --color-glass-hover:   rgba(255, 255, 255, 0.65);

  --color-text:          #181b21;
  --color-text-muted:    #6a7282;
  --color-text-subtle:   #949aab;

  --color-primary:       #5b5ff5;
  --color-primary-hover: #4f53e0;
  --color-primary-glow:  rgba(91, 95, 245, 0.25);
  --color-discord:       #5865f2;
  --color-discord-glow:  rgba(88, 101, 242, 0.30);

  --color-success:       #10b981;
  --color-error:         #ef4444;

  --color-border:        rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.10);

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                  Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --shadow-glass:  0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-glass-hover: 0 16px 64px rgba(0, 0, 0, 0.12);
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.08);

  --glass-edge: rgba(255, 255, 255, 0.08);

  --gap-xs:   0.25rem;
  --gap-sm:   0.5rem;
  --gap-md:   1rem;
  --gap-lg:   1.5rem;
  --gap-xl:   2.5rem;
  --gap-2xl:  4.5rem;

  --header-blur: rgba(244, 245, 247, 0.80);

  /* Gradient orbs (light) */
  --orb-1: rgba(99, 102, 241, 0.08);
  --orb-2: rgba(139, 92, 246, 0.06);
  --orb-3: rgba(16, 185, 129, 0.05);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --color-bg:            #0f1117;
  --color-bg-alt:        #161822;
  --color-card:          rgba(255, 255, 255, 0.06);
  --color-card-border:   rgba(255, 255, 255, 0.08);
  --color-glass-bg:      rgba(255, 255, 255, 0.04);
  --color-glass-border:  rgba(255, 255, 255, 0.06);
  --color-glass-hover:   rgba(255, 255, 255, 0.10);

  --color-text:          #e6e8ec;
  --color-text-muted:    #949aa8;
  --color-text-subtle:   #686e7c;

  --color-primary:       #818cf8;
  --color-primary-hover: #6d78f0;
  --color-primary-glow:  rgba(129, 140, 248, 0.25);
  --color-discord:       #7984f5;
  --color-discord-glow:  rgba(120, 134, 245, 0.30);

  --color-border:        rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(255, 255, 255, 0.10);

  --shadow-glass:  0 8px 32px rgba(0, 0, 0, 0.30);
  --shadow-glass-hover: 0 16px 64px rgba(0, 0, 0, 0.45);
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.20);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.30);

  --glass-edge: rgba(255, 255, 255, 0.06);

  --header-blur: rgba(15, 17, 23, 0.80);

  --orb-1: rgba(129, 140, 248, 0.10);
  --orb-2: rgba(167, 139, 250, 0.08);
  --orb-3: rgba(52, 211, 153, 0.06);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-subtle);
}

/* ---------- Animated Background ---------- */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  transition: background 0.5s ease;
}

body::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: var(--orb-1);
  animation: float-orb-1 20s ease-in-out infinite;
}

body::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: var(--orb-2);
  animation: float-orb-2 25s ease-in-out infinite;
}

/* Third orb via extra pseudo trick */
.bg-orb {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  background: var(--orb-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-orb-3 30s ease-in-out infinite;
  transition: background 0.5s ease;
}

@keyframes float-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 60px) scale(1.1); }
  66% { transform: translate(30px, -30px) scale(0.9); }
}

@keyframes float-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.15); }
  66% { transform: translate(-20px, 30px) scale(0.85); }
}

@keyframes float-orb-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-45%, -55%) scale(1.1); }
}

/* ---------- Noise Texture Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .noise-overlay {
  opacity: 0.03;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border-strong),
    transparent
  );
  margin: 0 auto;
  max-width: 480px;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  background: var(--color-glass-bg);
  color: var(--color-text);
  transform: rotate(15deg);
}
.theme-toggle:active {
  transform: scale(0.88);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.theme-toggle__icon {
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.theme-toggle__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
[data-theme="dark"] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}
[data-theme="dark"] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle { position: relative; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-blur);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.4s ease, border-color 0.4s ease, height 0.3s ease,
              box-shadow 0.3s ease;
  height: 68px;
  box-shadow: 0 1px 0 var(--glass-edge);
}

.header--compact {
  height: 56px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.25s ease, font-size 0.3s ease;
}
.header--compact .header__logo {
  font-size: 0.95rem;
}
.header__logo-icon {
  font-size: 1.25rem;
  transition: font-size 0.3s ease;
}
.header--compact .header__logo-icon {
  font-size: 1.1rem;
}

.header__right {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.header__nav { display: flex; gap: var(--gap-xs); }

.header__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: color 0.2s ease, background 0.2s ease;
}
.header__link:hover {
  color: var(--color-text);
  background: var(--color-glass-bg);
}
.header__link--active {
  color: var(--color-text);
  background: var(--color-glass-bg);
}
.header__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header__link--active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  opacity: 0.6;
}

/* ============================================================
   MODE SWITCHER
   ============================================================ */
.mode-switcher {
  padding: 1.5rem 0 0;
}

.mode-switcher__tabs {
  display: flex;
  gap: var(--gap-xs);
  justify-content: center;
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
  padding: 4px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.3s ease;
}
.mode-switcher__tabs:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.03),
    0 8px 20px rgba(0,0,0,0.05),
    var(--shadow-glass-hover),
    inset 0 1px 0 var(--glass-edge);
  border-color: var(--color-glass-border);
}

.mode-switcher__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-xl) - 4px);
  cursor: pointer;
  transition:
    all 0.25s cubic-bezier(0.34, 1.0, 0.64, 1);
  white-space: nowrap;
  transform-style: preserve-3d;
}
.mode-switcher__tab:hover {
  color: var(--color-text);
  background: var(--color-card);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.mode-switcher__tab:active {
  transform: translateY(1px);
}
.mode-switcher__tab--active {
  color: var(--color-text);
  background: var(--color-card);
  box-shadow: var(--shadow-sm);
}
.mode-switcher__tab:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.mode-switcher__tab svg { flex-shrink: 0; transition: transform 0.25s ease; }
.mode-switcher__tab:hover svg { transform: scale(1.15); }

/* ============================================================
   PANELS
   ============================================================ */
.panel {
  display: none;
}
.panel--active {
  display: block;
  animation: panelIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Survival accent */
.hero__title--survival {
  background: linear-gradient(135deg, var(--color-text) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kynetix hosting accent */
.hero__title--kynetix {
  background: linear-gradient(135deg, var(--color-text) 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero link row (web + discord) */
.hero__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap-md);
  margin-top: 1.75rem;
}

/* ============================================================
   GLASS BUTTONS — 3D Premium
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.0, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.btn__icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.btn:hover .btn__icon {
  transform: scale(1.1);
}

/* ---- Glass base (shared) ---- */
.btn--glass {
  background: var(--color-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  color: var(--color-text);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.03),
    0 4px 12px rgba(0,0,0,0.04),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  overflow: hidden;
}

/* Animated diagonal shine sweep */
.btn--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.15) 42%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.15) 54%,
    transparent 80%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    background-position 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

/* 3D bottom edge glow (light catching the lifted edge) */
.btn--glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255, 255, 255, 0.10) 75%,
    rgba(255, 255, 255, 0.14) 90%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* ---- 3D Hover State ---- */
.btn--glass:hover {
  transform:
    perspective(600px)
    rotateX(-6deg)
    translateY(-10px)
    translateZ(30px);
  background: var(--color-glass-hover);
  border-color: var(--color-glass-border);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.08),
    0 24px 64px rgba(0,0,0,0.06),
    var(--shadow-glass-hover),
    inset 0 1px 0 rgba(255,255,255,0.20);
}
.btn--glass:hover::before {
  opacity: 1;
  background-position: -120% 0;
}
.btn--glass:hover::after {
  opacity: 1;
}

/* ---- Press (Active) ---- */
.btn--glass:active {
  transform:
    perspective(600px)
    rotateX(2deg)
    translateY(-2px)
    translateZ(0px);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.04),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition-duration: 0.1s;
}

/* ---- Copy IP (branded glass) ---- */
.btn--copy {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.20),
    rgba(99, 102, 241, 0.08)
  );
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--color-primary);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(99, 102, 241, 0.06),
    0 4px 16px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--copy::after {
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255, 255, 255, 0.10) 75%,
    rgba(255, 255, 255, 0.14) 90%,
    transparent 100%
  );
}
.btn--copy:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.30),
    rgba(99, 102, 241, 0.14)
  );
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--color-primary-hover);
  box-shadow:
    0 4px 8px rgba(99, 102, 241, 0.10),
    0 12px 32px rgba(99, 102, 241, 0.20),
    0 24px 60px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: perspective(600px) rotateX(-6deg) translateY(-10px) translateZ(30px);
}
.btn--copy:active {
  box-shadow:
    0 1px 2px rgba(99, 102, 241, 0.06),
    0 2px 8px rgba(99, 102, 241, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: perspective(600px) rotateX(2deg) translateY(-2px);
}

/* ---- Copied state ---- */
.btn--copied {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.10)) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: var(--color-success) !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.20) !important;
  pointer-events: none;
}

/* ---- Discord glass ---- */
.btn--discord-glass {
  background: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.20),
    rgba(88, 101, 242, 0.08)
  );
  border-color: rgba(88, 101, 242, 0.25);
  color: var(--color-discord);
  box-shadow:
    0 1px 2px rgba(88, 101, 242, 0.06),
    0 4px 16px rgba(88, 101, 242, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--discord-glass::after {
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255, 255, 255, 0.10) 75%,
    rgba(255, 255, 255, 0.14) 90%,
    transparent 100%
  );
}
.btn--discord-glass:hover {
  background: linear-gradient(
    135deg,
    rgba(88, 101, 242, 0.32),
    rgba(88, 101, 242, 0.14)
  );
  border-color: rgba(88, 101, 242, 0.45);
  color: var(--color-discord);
  box-shadow:
    0 4px 8px rgba(88, 101, 242, 0.10),
    0 12px 32px rgba(88, 101, 242, 0.20),
    0 24px 60px rgba(88, 101, 242, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: perspective(600px) rotateX(-6deg) translateY(-10px) translateZ(30px);
}
.btn--discord-glass:active {
  box-shadow:
    0 1px 2px rgba(88, 101, 242, 0.06),
    0 2px 8px rgba(88, 101, 242, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: perspective(600px) rotateX(2deg) translateY(-2px);
}

/* ---- Web (kynetix.cz) glass ---- */
.btn--web {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.18),
    rgba(14, 165, 233, 0.06)
  );
  border-color: rgba(14, 165, 233, 0.25);
  color: #0ea5e9;
  box-shadow:
    0 1px 2px rgba(14, 165, 233, 0.06),
    0 4px 16px rgba(14, 165, 233, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--web::after {
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(255, 255, 255, 0.10) 75%,
    rgba(255, 255, 255, 0.14) 90%,
    transparent 100%
  );
}
.btn--web:hover {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.30),
    rgba(14, 165, 233, 0.12)
  );
  border-color: rgba(14, 165, 233, 0.45);
  color: #0284c7;
  box-shadow:
    0 4px 8px rgba(14, 165, 233, 0.10),
    0 12px 32px rgba(14, 165, 233, 0.20),
    0 24px 60px rgba(14, 165, 233, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transform: perspective(600px) rotateX(-6deg) translateY(-10px) translateZ(30px);
}
.btn--web:active {
  box-shadow:
    0 1px 2px rgba(14, 165, 233, 0.06),
    0 2px 8px rgba(14, 165, 233, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transform: perspective(600px) rotateX(2deg) translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    var(--shadow-sm),
    inset 0 1px 0 var(--glass-edge);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.0, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__badge:hover {
  transform: perspective(500px) rotateX(-5deg) translateY(-6px) translateZ(18px);
  background: var(--color-glass-hover);
  border-color: var(--color-glass-border);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 28px rgba(0,0,0,0.06),
    0 24px 56px rgba(0,0,0,0.04),
    var(--shadow-glass-hover),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.hero__badge:active {
  transition-duration: 0.1s;
  transform: perspective(500px) rotateX(2deg) translateY(-1px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-subtle);
  flex-shrink: 0;
}
.hero__badge-dot--online {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero__badge-dot--offline {
  background: var(--color-error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.hero__badge-dot--accent {
  background: var(--color-primary);
  opacity: 0.85;
}

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

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.35s ease;
}

.hero__subtitle {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 450;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

.hero__ip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  margin-top: 1.75rem;
}
.hero__ip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero__ip-address {
  font-size: 1.25rem;
  font-weight: 550;
  font-family: var(--font-mono);
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
  user-select: all;
}

.hero .btn--copy { margin-top: 1.75rem; }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.skeleton {
  display: inline-block;
  height: 1.2em;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--color-border) 25%,
    var(--color-border-strong) 50%,
    var(--color-border) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

/* ============================================================
   LIVE STATUS
   ============================================================ */
.live-status { padding: 1rem 0; }

.live-status__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.live-status__item {
  text-align: center;
  padding: 1.1rem 1rem;
  background: var(--color-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.34, 1.0, 0.64, 1),
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.live-status__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.10) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.10) 55%,
    transparent 80%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition:
    opacity 0.4s ease,
    background-position 0.6s ease;
  pointer-events: none;
}
.live-status__item:hover {
  transform: perspective(600px) rotateX(-4deg) translateY(-8px) translateZ(20px);
  background: var(--color-glass-hover);
  border-color: var(--color-card-border);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.06),
    0 24px 60px rgba(0,0,0,0.04),
    var(--shadow-glass-hover),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.live-status__item:hover::before {
  opacity: 1;
  background-position: -100% 0;
}
.live-status__item:active {
  transition-duration: 0.1s;
  transform: perspective(600px) rotateX(2deg) translateY(-2px);
}

.live-status__item--pulse {
  animation: itemPulse 1s ease both;
}

@keyframes itemPulse {
  0% { box-shadow: 0 0 0 0 var(--color-primary-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: var(--shadow-glass); }
}

.live-status__label {
  display: block;
  font-size: 0.675rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.live-status__value {
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
  color: var(--color-text);
  font-family: var(--font-mono);
  transition: color 0.35s ease;
  letter-spacing: -0.02em;
}

/* Value update flash */
.live-status__value--updated {
  animation: valueFlash 0.6s ease both;
}

@keyframes valueFlash {
  0% { color: var(--color-primary); transform: scale(1.08); }
  100% { color: var(--color-text); transform: scale(1); }
}

.live-status__updated-at {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.675rem;
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
  opacity: 0.5;
  transition: opacity 0.35s ease;
  min-height: 1em;
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  transition: color 0.35s ease;
}

/* ============================================================
   HOSTING INTRO (Kynetix)
   ============================================================ */
.hosting-intro { padding: 1rem 0 0.5rem; }

.hosting-intro__card {
  background: var(--color-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}
.hosting-intro__card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}
.hosting-intro__card p + p { margin-top: 0.85rem; }
.hosting-intro__card .hosting-intro__cta {
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================================
   CARDS
   ============================================================ */
.cards { padding: 1.75rem 0; }

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.cards__grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card--glass {
  background: var(--color-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.0, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Shine sweep */
.card--glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 80%
  );
  background-size: 220% 100%;
  background-position: 110% 0;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    background-position 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Bottom 3D edge glow */
.card--glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--color-primary-glow) 85%,
    rgba(255,255,255,0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card--glass:hover {
  transform: perspective(700px) rotateX(-5deg) translateY(-14px) translateZ(35px);
  background: var(--color-glass-hover);
  border-color: var(--color-primary-glow);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.03),
    0 16px 40px rgba(0,0,0,0.07),
    0 32px 80px rgba(0,0,0,0.05),
    var(--shadow-glass-hover),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.card--glass:hover::before {
  opacity: 1;
  background-position: -110% 0;
}
.card--glass:hover::after {
  opacity: 0.9;
}
.card--glass:active {
  transition-duration: 0.12s;
  transform: perspective(700px) rotateX(2deg) translateY(-3px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-glow), transparent);
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  transition:
    color 0.35s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card--glass:hover .card__icon {
  transform: scale(1.15) translateZ(6px);
}

.card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  transition: color 0.35s ease;
  letter-spacing: -0.01em;
}
.card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   MOTD PREVIEW
   ============================================================ */
.motd { padding: 1rem 0 2.5rem; }

.motd__card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.02),
    0 4px 12px rgba(0,0,0,0.03),
    var(--shadow-glass),
    inset 0 1px 0 var(--glass-edge);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.0, 0.64, 1),
    box-shadow 0.4s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

/* 3D shine sweep */
.motd__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 80%
  );
  background-size: 220% 100%;
  background-position: 110% 0;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    background-position 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* 3D bottom edge glow */
.motd__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--color-primary-glow) 85%,
    rgba(255,255,255,0.08) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.motd__card:hover {
  transform: perspective(700px) rotateX(-5deg) translateY(-12px) translateZ(35px);
  background: var(--color-glass-hover);
  border-color: var(--color-primary-glow);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.03),
    0 16px 40px rgba(0,0,0,0.07),
    0 32px 80px rgba(0,0,0,0.05),
    var(--shadow-glass-hover),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.motd__card:hover::before {
  opacity: 1;
  background-position: -110% 0;
}
.motd__card:hover::after {
  opacity: 0.9;
}
.motd__card:active {
  transition-duration: 0.12s;
  transform: perspective(700px) rotateX(2deg) translateY(-3px);
}

.motd__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.65rem 1.15rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.motd__dots { display: flex; gap: 6px; }
.motd__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.motd__dot--red    { background: #ef4444; }
.motd__dot--yellow { background: #eab308; }
.motd__dot--green  { background: #22c55e; }

.motd__status {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
}
.motd__status--online { color: var(--color-success); }
.motd__status--offline { color: var(--color-error); }

.motd__ping {
  font-size: 0.7rem;
  color: var(--color-text-subtle);
  font-family: var(--font-mono);
}

.motd__body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.15rem;
  min-height: 68px;
}

.motd__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.motd__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.motd__text { display: flex; flex-direction: column; }
.motd__line1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.35s ease;
}
.motd__line2 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* ============================================================
   DISCORD
   ============================================================ */
.discord {
  padding: 3rem 0;
  text-align: center;
}
.discord__title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.35s ease;
  letter-spacing: -0.02em;
}
.discord__desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.discord .btn--discord-glass { margin-top: 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.discord + .footer {
  border-top: none;
}

.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  transition: border-color 0.35s ease;
}
.footer__text {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

/* ============================================================
   REVEAL ANIMATIONS (scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }

/* ============================================================
   ENTRANCE ANIMATIONS (page load)
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-in-d1 { animation-delay: 0.05s; }
.animate-in-d2 { animation-delay: 0.10s; }
.animate-in-d3 { animation-delay: 0.15s; }
.animate-in-d4 { animation-delay: 0.20s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero { padding: 2.5rem 0 1.5rem; }
  .hero__title { font-size: 2.2rem; }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__ip-address { font-size: 1.05rem; }
  .cards__grid { grid-template-columns: repeat(2, 1fr); }
  .cards__grid--auto { grid-template-columns: repeat(2, 1fr); }
  .discord__title { font-size: 1.4rem; }
  .hosting-intro__card { padding: 1.5rem 1.25rem; }

  body::before { width: 400px; height: 400px; }
  body::after { width: 350px; height: 350px; }
  .bg-orb { width: 300px; height: 300px; }
}

@media (max-width: 540px) {
  .container { padding: 0 1.25rem; }

  .header { height: 60px; }
  .header--compact { height: 52px; }
  .header__logo { font-size: 0.9rem; gap: 0.35rem; }
  .header__logo-icon { font-size: 1rem; }
  .header__link { padding: 0.4rem 0.5rem; font-size: 0.8rem; }

  .mode-switcher__tabs { max-width: 100%; }

  .hero { padding: 2rem 0 1.25rem; }
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 0.85rem; }
  .hero__ip { flex-direction: column; gap: 0.15rem; }
  .hero__ip-label { font-size: 0.7rem; }
  .hero__ip-address { font-size: 0.95rem; }
  .btn { width: 100%; padding: 0.7rem 1.5rem; }

  .live-status__grid { grid-template-columns: 1fr; gap: var(--gap-sm); }
  .live-status__item { padding: 0.9rem; }

  .cards__grid { grid-template-columns: 1fr; gap: var(--gap-md); }
  .card--glass { padding: 1.35rem 1.15rem; }

  .motd__card { max-width: 100%; }

  .discord { padding: 2rem 0; }
  .discord__title { font-size: 1.25rem; }

  body::before { width: 250px; height: 250px; }
  body::after { width: 200px; height: 200px; }
  .bg-orb { width: 200px; height: 200px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
