/* ===== Global Variables ===== */
:root {
  --bg: #020617;
  --panel: #0b1220;
  --accent: #7c9cff;
  --accent-2: #22d3ee;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #0f172a, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

/* ===== Hero / Home ===== */
.server-ip {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #1e293b;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.9s;
}

.server-ip:hover {
  border-color: var(--accent);
}

.server-ip span {
  color: var(--accent);
}

.server-ip span {
  color: var(--accent);
}

header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.8)),
              url('https://source.unsplash.com/1600x900/?fantasy,landscape') center/cover no-repeat;
}

header h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
}

header p {
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.3s;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  animation-delay: 0.6s;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #020617;
  box-shadow: 0 10px 30px rgba(124,156,255,0.35);
}

.btn.secondary {
  border: 1px solid #334155;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ===== About Page ===== */
.about-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem 4rem;
}

header.simple {
  min-height: auto;
  background: none;
  padding: 0.5rem 1.5rem 1.5rem;
  text-align: center;
}

header.simple h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

header.simple p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.about-text {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.2px;
  animation: slideUp 0.9s ease forwards;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-text p {
  margin-bottom: 1.25rem;
}

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

.card {
  background: linear-gradient(180deg, #0b1220, #020617);
  border: 1px solid #1e293b;
  border-radius: 1.25rem;
  padding: 2rem;
  animation: slideUp 0.9s ease forwards;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.back {
  align-self: center;
  margin-top: 3rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

footer {
  border-top: 1px solid #1e293b;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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