:root {
  --bg: #0a0a0a;
  --card: #151515;
  --card-hover: #191919;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 140, 26, 0.35);
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --accent: #ff8c1a;
  --accent-hover: #ffa64d;
  --accent-text: #0a0a0a;
  --radius: 20px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 28px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* Card base */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.card-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* Hero card */

.hero-card {
  text-align: center;
  padding: 64px 40px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-logo {
  transform: scale(1.04) rotate(-2deg);
}

.server-ip {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 140, 26, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.hero-card .btn {
  width: auto;
  padding: 14px 32px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.link-muted {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.link-muted:hover {
  color: var(--accent);
}

/* Status */

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

.status-dot.offline {
  background: #f87171;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.status-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  font-weight: 700;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.steps code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 140, 26, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Store banner */

.banner {
  border-radius: 14px;
  height: 100px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 140, 26, 0.08);
  border: 1px dashed rgba(255, 140, 26, 0.3);
}

.banner-mark {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

/* Copy feedback */

.copy-btn.copied {
  background: #4ade80;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-in 0.6s ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .card, .hero-logo, .btn {
    transition: none;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 16px;
  }
  .hero-card {
    padding: 48px 24px;
  }
  .card {
    padding: 24px;
  }
}
