/* ─────────────────────────────────────────────────────────
   Madeen Games — minimalist black-on-white landing page
   ───────────────────────────────────────────────────────── */

:root {
  --ink: #0a0a0a;
  --ink-soft: #5b5b5b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --accent: #c8f2aa;        /* Madeen brand green */
  --accent-soft: #eef9e4;   /* tint for large washes */
  --radius: 18px;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ── Brand wordmark ──────────────────────────────────── */
.brand,
.footer-brand {
  display: inline-flex;
  gap: 0.4em;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header .brand { font-size: 18px; }

.header-contact {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header-contact:hover { background: var(--ink); color: var(--paper); }

/* ── Layout shell ────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: clamp(70px, 13vw, 150px) 0 clamp(60px, 9vw, 110px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero h1 {
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.06em; right: -0.06em; bottom: 0.05em;
  height: 0.34em;
  background: var(--accent);
}
.lede {
  margin-top: 30px;
  max-width: 52ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-lg { font-size: clamp(16px, 2.4vw, 20px); padding: 19px 36px; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(40px, 7vw, 72px) 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head .count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ── Cards grid ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
}
.thumb {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.card:hover .thumb img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.card-meta { font-size: 13px; color: var(--ink-soft); }
.card-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--ink-soft);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .card-arrow { color: var(--ink); transform: translate(3px, -3px); }

/* ── Contact band ────────────────────────────────────── */
.contact {
  text-align: center;
  background: var(--accent);
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(64px, 11vw, 120px) 24px;
  margin: clamp(40px, 7vw, 72px) 0;
}
.contact h2 {
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 40px;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px clamp(20px, 5vw, 48px) 64px;
  display: grid;
  gap: 28px;
}
.footer-brand { font-size: 22px; }
.footer-address {
  font-style: normal;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-bottom a { font-weight: 600; color: var(--ink); }
.footer-bottom a:hover { text-decoration: underline; }

/* ── Scroll reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal.is-visible:nth-child(2) { transition-delay: 0.06s; }
.grid .reveal.is-visible:nth-child(3) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .br-desktop { display: none; }
  .card { gap: 14px; padding: 14px; }
  .thumb { width: 64px; height: 64px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
