/* ==========================================================================
   Kiribix — modernized site styles
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fa;
  --color-text: #1c1f24;
  --color-text-muted: #5b6470;
  --color-primary: #1e5aa8;
  --color-primary-dark: #143d73;
  --color-accent: #e8a13c;
  --color-border: #e4e7eb;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(20, 30, 50, 0.08);
  --shadow-hover: 0 12px 28px rgba(20, 30, 50, 0.14);
  --max-width: 1120px;
  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
}

.section-header .divider {
  width: 64px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--color-bg-alt);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--color-primary);
  background: rgba(30, 90, 168, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--color-primary-dark), var(--color-primary) 65%);
  color: #fff;
  padding: 96px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.4em;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: block;
}

/* ---------- Feature promo (HunterPrey) ---------- */

.promo {
  background: #12181f;
  color: #fff;
}

.promo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.promo-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.promo-art img {
  width: 100%;
  display: block;
}

.promo-tag {
  display: inline-block;
  background: var(--color-accent);
  color: #2b1c00;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.promo h2 {
  font-size: 2.2rem;
}

.promo p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.promo-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Cards / Grid ---------- */

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

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 1.25rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(30, 90, 168, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* ---------- Games list ---------- */

.game-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.game-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.game-card-art {
  min-height: 220px;
  overflow: hidden;
}

.game-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 32px;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #2b1c00;
  margin-bottom: 12px;
}

.badge-muted {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.game-card-status {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- Game detail page ---------- */

.game-hero {
  background: #12181f;
  color: #fff;
}

.game-hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.game-hero-art img {
  width: 100%;
  display: block;
}

.game-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.game-hero p {
  color: rgba(255, 255, 255, 0.8);
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.meta-list li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.meta-list strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
}

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

.feature-grid .card ul {
  padding-left: 1.1em;
  color: var(--color-text-muted);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.screenshot {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto 24px;
}

/* ---------- Team / About ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.team-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.team-art {
  height: 320px;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.team-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.team-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-body h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.team-role {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.team-contact {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.92rem;
}

.team-contact a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

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

/* ---------- About intro ---------- */

.about-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.value-grid .card {
  text-align: center;
}

.value-grid .card-icon {
  margin: 0 auto 16px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #12181f;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-grid p {
  font-size: 0.92rem;
  max-width: 40ch;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container,
  .promo-grid,
  .game-hero .container,
  .about-hero .container {
    grid-template-columns: 1fr;
  }

  .game-card.featured {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  section {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
