/* ------------------------------------------
   GLOBAL BASE STYLES
------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f8f8f9;
  --card-bg: #ffffff;
  --border: #e2e2e5;
  --text: #333;
  --text-light: #666;
  --accent: #8b6cff;
  --radius: 18px;
  --radius-pill: 24px;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --max-width: 860px;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  width: 100%;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* Main page container controls width */
.page {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ------------------------------------------
   HEADER
------------------------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0 10px;
  margin: 0 0 18px;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo {
  font-size: 32px;
}

header .brand-text h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

header .brand-text span {
  font-size: 12px;
  color: var(--text-light);
}

header nav {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

header nav a {
  text-decoration: none;
  color: var(--text);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}

header nav a.primary {
  background: #f0ecff;
  color: #4e38b5;
}

header nav a:hover {
  background: var(--border);
}

/* ------------------------------------------
   CARD LAYOUT
------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  width: 100%;
  margin-top: 18px;
}

.card:first-of-type {
  margin-top: 0;
}

.card-header {
  margin-bottom: 12px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
}

.card-tag {
  font-size: 13px;
  color: var(--text-light);
}

.card-body {
  margin-top: 8px;
}

.section-heading {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.section-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.page-intro {
  font-size: 15px;
  margin-bottom: 16px;
}

/* ------------------------------------------
   HERO SECTION (now just a fancy card)
------------------------------------------- */
.hero {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  width: 100%;
  margin-top: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  background: #f0ecff;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: #5d3aff;
  margin-bottom: 14px;
}

.hero-pill .icon {
  margin-right: 6px;
}

.hero h2 {
  font-size: 30px;
  margin: 0 0 12px;
  line-height: 1.25;
}

.hero h2 span {
  color: var(--accent);
}

.hero-sub {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 18px;
}

.hero-actions {
  margin-bottom: 16px;
}

.hero-caption {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  font-size: 13px;
  background: #fafafa;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-stat .value {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

/* ------------------------------------------
   BUTTONS
------------------------------------------- */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  opacity: 0.92;
}

/* ------------------------------------------
   LISTS / BADGES
------------------------------------------- */
ul.bullet,
ol.bullet {
  padding-left: 20px;
  margin: 10px 0;
}

ul.bullet li,
ol.bullet li {
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  background: #eee;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 4px;
}

/* ------------------------------------------
   GRID (Hall of Fame)
------------------------------------------- */
.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.hof-card {
  background: #fafafa;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hof-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.hof-role {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* ------------------------------------------
   FORMS
------------------------------------------- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form input,
.newsletter-form textarea,
.newsletter-form select {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: inherit;
}

.newsletter-form textarea {
  border-radius: 14px;
}

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

/* ------------------------------------------
   FOOTER
------------------------------------------- */
footer {
  padding: 24px 0 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.tiny {
  font-size: 12px;
  color: var(--text-light);
}

/* ------------------------------------------
   RESPONSIVE: TABLET & BELOW
------------------------------------------- */
@media (max-width: 900px) {
  .page {
    padding: 0 14px 32px;
  }

  .card,
  .hero {
    padding: 18px 16px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------
   RESPONSIVE: PHONE
------------------------------------------- */
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .page {
    padding: 0 12px 28px;
  }

  header {
    padding: 10px 0 8px;
    margin-bottom: 12px;
  }

  header .brand-text h1 {
    font-size: 19px;
  }

  header nav {
    gap: 6px;
  }

  header nav a {
    font-size: 13px;
    padding: 5px 7px;
  }

  .card,
  .hero {
    border-radius: 14px;
    padding: 16px 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .section-heading {
    font-size: 16px;
  }

  .page-intro {
    font-size: 14px;
  }

  .hero h2 {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .hero-stat {
    font-size: 12px;
    padding: 10px 12px;
  }

  .hero-stat .value {
    font-size: 18px;
  }

  .hof-card {
    padding: 12px;
  }

  footer {
    font-size: 13px;
  }
}

