/* ===================================================================
   ServerON - Official Website Stylesheet
   High-End Glassmorphism Dark UI & Futuristic Tech Theme
   =================================================================== */

:root {
  --bg-darkest: #070a10;
  --bg-base: #0b101b;
  --bg-card: rgba(16, 24, 40, 0.72);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --bg-card-subtle: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);
  --border-discord: rgba(88, 101, 242, 0.35);

  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.4);
  
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.35);

  --discord-blurple: #5865F2;
  --discord-hover: #4752c4;
  --discord-glow: rgba(88, 101, 242, 0.4);

  --amber-400: #fbbf24;
  --rose-500: #f43f5e;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 25px var(--emerald-glow);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: absolute;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  opacity: 0.75;
}

.glow-top-left {
  width: 500px;
  height: 500px;
  top: 50px;
  left: -100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
}

.glow-top-right {
  width: 600px;
  height: 600px;
  top: 150px;
  right: -150px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 70%);
}

.glow-center {
  width: 800px;
  height: 800px;
  top: 1400px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
}

/* Utility Helpers */
.text-emerald {
  color: var(--emerald-400);
}

.gradient-headline {
  background: linear-gradient(135deg, #10b981 0%, #34d399 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.pc-only {
  display: block;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 10, 16, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-box {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: visible;
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.logo-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--emerald-400);
  border: 2px solid var(--bg-darkest);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-400);
}

.logo-typography {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-item:hover {
  color: var(--text-main);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-400);
  transition: width 0.2s ease;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-discord-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid var(--border-discord);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-discord-nav:hover {
  background: var(--discord-blurple);
  box-shadow: 0 0 16px var(--discord-glow);
  transform: translateY(-1px);
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-nav-cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 1.5rem 3rem;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.pulsing-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
  animation: pulse-beacon 1.8s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald-400); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pill-category {
  font-weight: 800;
  color: var(--emerald-400);
  letter-spacing: 0.5px;
}

.pill-divider {
  color: rgba(255, 255, 255, 0.2);
}

.pill-text {
  font-weight: 500;
}

.hero-heading {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -1.5px;
  margin-bottom: 1.4rem;
  color: var(--text-main);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-description strong {
  color: #fff;
  font-weight: 700;
}

.hero-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Primary Windows Download Button */
.btn-hero-download {
  position: relative;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-glow-layer {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  border-radius: var(--radius-lg);
  filter: blur(12px);
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.btn-hero-download:hover .btn-glow-layer {
  opacity: 0.95;
  filter: blur(16px);
}

.btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-hero-download:hover {
  transform: translateY(-2px);
}

.win-icon {
  flex-shrink: 0;
}

.btn-label-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 400;
}

.arrow-icon {
  margin-left: 0.3rem;
  transition: transform 0.2s ease;
}

.btn-hero-download:hover .arrow-icon {
  transform: translateX(4px);
}

/* Official Discord Hero Button */
.btn-hero-discord {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid var(--border-discord);
  color: #ffffff;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
  transition: all 0.25s ease;
}

.btn-hero-discord:hover {
  background: var(--discord-blurple);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 25px var(--discord-glow);
  transform: translateY(-2px);
}

.btn-hero-discord .discord-logo {
  flex-shrink: 0;
}

/* Trust Bar */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trust-item span {
  font-weight: 500;
}

/* ===================================================================
   Simulator Showcase (Interactive 2-Screen Studio)
   =================================================================== */
.simulator-wrapper {
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  text-align: left;
}

.simulator-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: rgba(11, 16, 27, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.mac-window-controls {
  display: flex;
  gap: 0.45rem;
}

.mac-window-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-window-controls .dot.red { background: #ff5f56; }
.mac-window-controls .dot.yellow { background: #ffbd2e; }
.mac-window-controls .dot.green { background: #27c93f; }

.simulator-title-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.simulator-mode-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.sim-view-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-view-toggle.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
}

.simulator-window {
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  min-height: 380px;
}

.sim-screen {
  display: none;
}

.sim-screen.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

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

/* Screen 1: Server List View Card */
.sim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-server-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.sim-server-icon {
  font-size: 1.4rem;
}

.sim-server-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.sim-status-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.sim-status-chip.off {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.sim-status-chip.starting {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-400);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sim-status-chip.running {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.sim-server-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-dot {
  opacity: 0.4;
}

.sim-address-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sim-addr-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sim-addr-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-addr-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--emerald-400);
  font-weight: 600;
}

.btn-sim-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sim-copy:hover {
  background: var(--emerald-500);
  color: #000;
  border-color: var(--emerald-500);
}

.sim-card-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 0;
  flex-wrap: wrap;
}

.btn-sim-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-sim-start {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.btn-sim-start:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-sim-restart {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber-400);
}

.btn-sim-stop {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--rose-500);
}

.btn-sim-manage {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn-sim-manage:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-sim-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.sim-quick-diag-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.diag-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.diag-summary strong {
  color: var(--emerald-400);
}

.btn-run-diag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-400);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-run-diag:hover {
  background: var(--cyan-500);
  color: #000;
}

/* Screen 2: Dedicated Server Studio View */
.studio-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.studio-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.btn-studio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  color: var(--emerald-400);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-studio-back:hover {
  text-decoration: underline;
}

.crumb-slash {
  color: var(--text-dim);
}

.crumb-name {
  color: #fff;
  font-weight: 700;
}

.studio-tabs {
  display: flex;
  gap: 0.5rem;
}

.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-tab.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--emerald-400);
}

.studio-panel {
  display: none;
  padding-top: 1.25rem;
}

.studio-panel.active {
  display: block;
}

/* Console Studio */
.console-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.console-state-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pulse-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 6px var(--emerald-400);
}

.console-btn-tools {
  display: flex;
  gap: 0.5rem;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sim-terminal-screen {
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  height: 230px;
  overflow-y: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7);
}

.term-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.term-line.info { color: #94a3b8; }
.term-line.system { color: #38bdf8; }
.term-line.success { color: #34d399; font-weight: 600; }
.term-line.warn { color: #fbbf24; }
.term-line.cmd { color: #e2e8f0; font-weight: 600; }

.sim-command-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  background: #080d17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
}

.cmd-prefix {
  font-family: var(--font-mono);
  color: var(--emerald-400);
  font-weight: 700;
}

.sim-command-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.btn-cmd-send {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-400);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-cmd-send:hover {
  background: var(--emerald-500);
  color: #000;
}

/* Settings Grid in Studio */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.setting-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.setting-item label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input-setting, .select-setting {
  background: #0a0f1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
}

.setting-item.toggle-box {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.toggle-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.toggle-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.switch-setting {
  width: 22px;
  height: 22px;
  accent-color: var(--emerald-500);
  cursor: pointer;
}

.settings-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.save-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-save-settings {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-settings:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* ===================================================================
   Key Features Section
   =================================================================== */
.features-section {
  padding: 6rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.section-container {
  text-align: center;
}

.section-badge-wrapper {
  margin-bottom: 0.9rem;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--emerald-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.features-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.6rem;
  text-align: left;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.feature-card.highlighted-card {
  border-color: rgba(16, 185, 129, 0.35);
}

.card-glow-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-500), var(--cyan-500));
}

.card-icon-bubble {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.feature-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.feature-code-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
}

.feature-code-pill code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--emerald-400);
}

/* ===================================================================
   3-Step Port Diagnostic Architecture Section
   =================================================================== */
.diagnostic-system-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 50%, transparent 100%);
  max-width: 1240px;
  margin: 0 auto;
}

.diagnostic-steps-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

.diag-step-card {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.25s ease;
}

.diag-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  margin-bottom: 1.2rem;
}

.diag-visual-icon {
  margin-bottom: 1.1rem;
}

.diag-step-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #fff;
}

.diag-p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  min-height: 70px;
}

.diag-status-pill {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
}

.diag-status-pill.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.diag-status-pill.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-400);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.diag-status-pill.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.flow-arrow {
  color: var(--text-dim);
}

@media (max-width: 992px) {
  .flow-arrow {
    display: none;
  }
}

/* ===================================================================
   Quick Guide Section
   =================================================================== */
.guide-section {
  padding: 5rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  margin-top: 3.5rem;
}

.guide-step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.guide-step-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-number {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: rgba(16, 185, 129, 0.3);
  line-height: 1;
  margin-bottom: 1rem;
}

.guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.65rem;
}

.guide-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===================================================================
   Dedicated Discord Community Section
   =================================================================== */
.discord-community-section {
  padding: 4rem 1.5rem 6rem;
  max-width: 1240px;
  margin: 0 auto;
}

.discord-card-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(18, 25, 41, 0.9) 100%);
  border: 1px solid var(--border-discord);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(88, 101, 242, 0.25);
  backdrop-filter: blur(20px);
}

.discord-glow-layer {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.discord-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 3.5rem;
  align-items: center;
}

.discord-left-info {
  text-align: left;
}

.discord-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #a5b4fc;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.discord-h2 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #fff;
}

.discord-p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.discord-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.perk-check {
  color: var(--emerald-400);
  font-weight: 800;
}

.perk-item strong {
  color: #fff;
}

.discord-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-discord-join {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  background: var(--discord-blurple);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--discord-glow);
  transition: all 0.2s ease;
}

.btn-discord-join:hover {
  background: var(--discord-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--discord-glow);
}

.discord-invite-url {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a5b4fc;
}

/* Discord Chat UI Mockup Graphic */
.discord-chat-preview {
  background: #2b2d31;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  padding: 1.2rem;
  text-align: left;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.channel-hashtag {
  font-size: 1.1rem;
  color: #80848e;
  font-weight: 700;
}

.channel-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f2f3f5;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5865F2;
  flex-shrink: 0;
}

.chat-avatar.steve {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.chat-avatar.alex {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.chat-avatar.dev-avatar {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #fff;
}

.chat-content {
  flex: 1;
}

.chat-user {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f2f3f5;
  margin-bottom: 0.2rem;
}

.chat-time {
  font-size: 0.7rem;
  color: #949ba4;
  font-weight: 400;
  margin-left: 0.3rem;
}

.badge-bot {
  background: #5865F2;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 0.3rem;
}

.chat-bubble {
  font-size: 0.88rem;
  color: #dbdee1;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .discord-content-grid {
    grid-template-columns: 1fr;
    padding: 2.2rem 1.8rem;
  }
}

/* ===================================================================
   FAQ Section
   =================================================================== */
.faq-section {
  padding: 5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  text-align: left;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--emerald-400);
}

.faq-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--emerald-400);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.4rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   Final CTA Section
   =================================================================== */
.final-cta-section {
  padding: 5rem 1.5rem 6rem;
  max-width: 1240px;
  margin: 0 auto;
}

.cta-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(11, 16, 27, 0.95) 75%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-bottom: 1.4rem;
}

.cta-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--emerald-500) 0%, #059669 100%);
  color: #fff;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-cta-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.btn-cta-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid var(--border-discord);
  color: #fff;
  padding: 1.1rem 1.8rem;
  border-radius: var(--radius-lg);
  font-size: 1.02rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-cta-discord:hover {
  background: var(--discord-blurple);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--discord-glow);
}

.cta-specs-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.spec-divider {
  opacity: 0.4;
}

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 8, 14, 0.95);
  padding: 4.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-col {
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.link-discord-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a5b4fc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.link-discord-footer:hover {
  color: #fff;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.footer-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.2px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--emerald-400);
}

.footer-copyright-row {
  max-width: 1240px;
  margin: 2rem auto 0;
  text-align: left;
}

.footer-copy-container p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.mojang-notice {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.4);
}

/* ===================================================================
   Toast Notification
   =================================================================== */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 24, 40, 0.95);
  border: 1px solid var(--emerald-500);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.6rem;
  z-index: 9999;
  backdrop-filter: blur(12px);
  animation: slideUp 0.3s ease forwards;
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-heading {
    font-size: 2.6rem;
  }
  .nav-menu {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .btn-inner, .btn-hero-discord {
    width: 100%;
    justify-content: center;
  }
  .hero-button-group {
    flex-direction: column;
    width: 100%;
  }
}
