:root {
  --bg: #0b1220;
  --card: #111a2e;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --text: #e2e8f0;
  --border: #1f2a44;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
.site-header {
  background: #0e1629;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* 🔥 TRUE CENTER FIX */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 700px;
  margin: auto;
  padding: 18px 20px;
}

/* LOGO */
.logo {
  width: 45px;
  height: auto;
}

/* TITLE */
.title-group h1 {
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0;
}

.title-group p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 14px;
  background: #020617;
  border-bottom: 1px solid var(--border);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

nav a:hover {
  background: var(--accent);
  color: #000;
}

/* MAIN CONTAINER */
.container {
  max-width: 700px;   /* 🔥 key fix */
  margin: auto;
  padding: 50px 20px;
  text-align: center;
}

/* HERO */
.hero {
  margin-bottom: 40px;
}

.hero h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero p {
  max-width: 600px;
  margin: auto;
  color: var(--muted);
}

/* GRID FIX */
.grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  flex-wrap: wrap;
}

/* CARDS */
.card {
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 300px;
  text-align: left;
  transition: 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  transition: 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* FOOTER */
footer {
  margin-top: 40px;
  text-align: center;
  padding: 25px;
  background: #020617;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

/* MOBILE */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    width: 50px;
  }

  .title-group h1 {
    font-size: 1.3rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  nav {
    gap: 15px;
    flex-wrap: wrap;
  }
}