/* =========================================================
   Catnip Studios — stylesheet
   Palette pulled from the logo: deep navy → royal blue → ice
   ========================================================= */

:root {
  --bg-900: #060b16;
  --bg-800: #0a1424;
  --bg-700: #0f1e36;
  --bg-600: #14294a;

  --blue-700: #1749a6;
  --blue-600: #1e5bc6;
  --blue-500: #2e7be8;
  --blue-400: #4a94f0;
  --ice-300: #9ec7f7;
  --ice-100: #dcebfb;

  --text: #e9f2fd;
  --muted: #93a7c6;
  --line: rgba(158, 199, 247, 0.14);

  --grad: linear-gradient(120deg, #4a94f0 0%, #9ec7f7 55%, #dcebfb 100%);
  --grad-btn: linear-gradient(120deg, #1e5bc6 0%, #2e7be8 50%, #4a94f0 100%);

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 40px rgba(46, 123, 232, 0.35);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-900);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, .brand-name {
  font-family: "Chakra Petch", "Inter", sans-serif;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice-300);
  margin-bottom: 0.9rem;
}

/* ===== Ambient background ===== */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; background: #1e5bc6; top: -160px; left: -120px; }
.orb-2 { width: 620px; height: 620px; background: #123a8a; bottom: -260px; right: -180px; }
.orb-3 { width: 380px; height: 380px; background: #2e7be8; top: 40%; left: 55%; opacity: 0.28; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Chakra Petch", sans-serif; font-weight: 600;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  font-size: 0.98rem; white-space: nowrap;
}
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--grad-btn); color: #fff;
  box-shadow: 0 8px 24px rgba(30, 91, 198, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(46, 123, 232, 0.55); }
.btn-ghost {
  background: rgba(158, 199, 247, 0.06); color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ice-300); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 22, 0.6);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; }
.brand-name span { color: var(--ice-300); font-weight: 500; margin-left: 0.35em; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; margin: 0.6rem 0 1.2rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Chakra Petch", sans-serif; font-size: 2rem; color: var(--text); }
.hero-stats span { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.05em; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-logo { width: min(360px, 80%); filter: drop-shadow(0 20px 50px rgba(30, 91, 198, 0.55)); animation: float 6s ease-in-out infinite; }
.art-glow {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,123,232,0.55), transparent 65%);
  filter: blur(20px); animation: pulse 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }
@keyframes pulse { 0%,100% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.08); opacity: 1; } }

.scroll-hint { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--ice-300); animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(-4px);} 50% { opacity: 1;} 100% { opacity: 0; transform: translateY(10px);} }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-sub { color: var(--muted); margin-top: 0.8rem; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: "Chakra Petch", sans-serif; font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: rgba(158,199,247,0.05); border: 1px solid var(--line); color: var(--muted);
  transition: 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--ice-300); }
.filter-btn.active { background: var(--grad-btn); color: #fff; border-color: transparent; }

/* ===== Games grid ===== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.grid-loading { color: var(--muted); grid-column: 1/-1; text-align: center; }
.game-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--bg-700), var(--bg-800));
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(158,199,247,0.35); box-shadow: 0 18px 40px rgba(6,11,22,0.6), var(--shadow-glow); }
.game-thumb { position: relative; aspect-ratio: 68/91; overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-thumb.placeholder { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--bg-600), var(--bg-800)); }
.game-thumb.placeholder img { width: 44%; height: auto; object-fit: contain; opacity: 0.9; filter: drop-shadow(0 8px 20px rgba(30,91,198,0.5)); }
.badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: "Chakra Petch", sans-serif; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px; color: #fff;
  background: var(--grad-btn); box-shadow: 0 4px 12px rgba(30,91,198,0.5);
}
.cat-tag { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; font-size: 0.7rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(6,11,22,0.7); border: 1px solid var(--line); color: var(--ice-300); }
.game-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.game-body h3 { font-size: 1.2rem; }
.game-body p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.game-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.rtp { font-size: 0.8rem; color: var(--ice-300); font-family: "Chakra Petch", sans-serif; }
.play-link { font-family: "Chakra Petch", sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.game-card:hover .play-link { gap: 0.55rem; }
.play-link .arrow { color: var(--blue-400); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.5rem 0 1.2rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }
.about-copy strong { color: var(--text); }
.feature-list { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.feature-list li { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-size: 0.98rem; }
.feature-list .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-btn); box-shadow: 0 0 10px rgba(46,123,232,0.8); flex: none; }
.about-cards { display: grid; gap: 1.1rem; }
.stat-card { background: linear-gradient(160deg, var(--bg-700), var(--bg-800)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: 0.3s; }
.stat-card:hover { border-color: rgba(158,199,247,0.3); transform: translateX(6px); }
.stat-card strong { font-family: "Chakra Petch", sans-serif; font-size: 1.25rem; display: block; margin-bottom: 0.3rem; }
.stat-card p { color: var(--muted); font-size: 0.92rem; }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; margin: 2rem auto; max-width: calc(var(--maxw) - 2rem); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(46,123,232,0.35), transparent 60%), linear-gradient(160deg, var(--bg-700), var(--bg-900)); z-index: -1; }
.cta-inner { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem; }
.cta-inner h2 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.cta-inner > p { color: var(--muted); margin-bottom: 2rem; }
.cta-inner .hero-actions { justify-content: center; }
.fineprint { margin-top: 1.8rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.8rem; }
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ice-300); margin-bottom: 0.15rem; }
.contact-list a { color: var(--text); font-weight: 500; transition: color 0.2s; }
.contact-list a:hover { color: var(--blue-400); }

.contact-form { background: linear-gradient(160deg, var(--bg-700), var(--bg-800)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.field .opt { color: var(--muted); opacity: 0.6; }
.field input, .field textarea {
  background: rgba(6,11,22,0.6); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.75rem 0.9rem; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(46,123,232,0.18); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.email-link { cursor: pointer; }
.form-note { font-size: 0.9rem; margin-top: 0.2rem; min-height: 1.2em; }
.form-note.ok { color: #6ee7a8; }
.form-note.err { color: #ff9b9b; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 3rem clamp(1rem,4vw,2.5rem) 2rem; max-width: var(--maxw); margin-inline: auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; gap: 1.6rem; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; color: var(--muted); font-size: 0.85rem; }
.responsible a { color: var(--ice-300); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-actions, .hero-stats { justify-content: center; }
  .lede { margin-inline: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { width: min(240px, 60%); }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 1rem; left: 1rem;
    background: var(--bg-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; gap: 1rem; margin: 0;
  }
  .nav.open a { padding: 0.4rem 0; }
  .hero-stats { gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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