/* Studio Popix — Production Stylesheet */

:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Primary palette */
  --pop-bg:     #F7F5F0;
  --pop-ink:    #111111;
  --pop-muted:  #5E5C57;
  --pop-line:   rgba(0,0,0,0.10);
  --pop-yellow: oklch(0.88 0.17 95);
  --accent:     #E05C3B;

  /* Games palette */
  --game-bg:      #0E0B1E;
  --game-ink:     #F8F4E8;
  --game-magenta: oklch(0.74 0.22 350);
  --game-lime:    oklch(0.88 0.22 130);
  --game-blue:    oklch(0.72 0.20 255);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.02; }
h2 { letter-spacing: -0.015em; }
p { margin: 0; }

body {
  font-family: var(--font-sans);
  background: var(--pop-bg);
  color: var(--pop-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site { max-width: 1440px; margin: 0 auto; }

/* ── Nav ── */
nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
}

.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pop-ink);
}

.logo-dot {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--pop-ink);
  transition: background 0.15s;
}

.nav-links a:hover { background: rgba(0,0,0,0.05); }

.nav-cta {
  margin-left: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pop-ink);
  color: var(--pop-bg) !important;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.8; background: var(--pop-ink) !important; }

/* ── Hero ── */
.hero { padding: 20px 64px 64px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop-muted);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

h1.hero-title {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 48px;
}

h1.hero-title .hl {
  background: var(--pop-yellow);
  padding: 0 0.15em;
  border-radius: 12px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

h1.hero-title .ac { color: var(--accent); }

.hero-bottom {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero-bottom p {
  font-size: 22px;
  line-height: 1.4;
  max-width: 640px;
}

.scroll-cta {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--pop-ink);
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--pop-line);
  transition: background 0.15s;
}

.scroll-cta:hover { background: rgba(0,0,0,0.04); }

/* ── Services / Apps ── */
.services { padding: 64px; }

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.services-head h2 { font-size: clamp(36px, 5vw, 72px); }

.services-head p {
  color: var(--pop-muted);
  max-width: 420px;
  font-size: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--pop-line);
  background: var(--pop-bg);
}

.service-art {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 12px);
}

.service-art.accent { background-color: var(--accent); color: rgba(0,0,0,0.65); }
.service-art.yellow { background-color: var(--pop-yellow); color: rgba(0,0,0,0.65); }
.service-art.dark   { background-color: #111; color: rgba(247,245,240,0.8); }

.service-body { padding: 24px 22px 28px; }
.service-body h3 { font-size: 24px; margin-bottom: 8px; }
.service-body p { color: var(--pop-muted); font-size: 14px; line-height: 1.55; }
.service-body .privacy-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
.service-body .privacy-link:hover { text-decoration: underline; }

/* ── Games ── */
section.games {
  padding: 88px 64px 100px;
  background: var(--game-bg);
  color: var(--game-ink);
  position: relative;
  overflow: hidden;
}

.games .confetti { position: absolute; inset: 0; pointer-events: none; }
.games .confetti span { position: absolute; }

.games-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.games-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--game-lime);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--game-lime);
  border-radius: 999px;
}

.games-tag .d {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--game-lime);
  border-radius: 50%;
}

.games h2 {
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--game-ink);
}

.games h2 .i { color: var(--game-magenta); font-style: italic; }
.games h2 .g {
  background: var(--game-lime);
  color: var(--game-bg);
  padding: 0 0.1em;
  border-radius: 8px;
}

.games-intro {
  font-size: 17px;
  line-height: 1.55;
  max-width: 440px;
  color: rgba(248,244,232,0.75);
  justify-self: end;
}

.games-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(248,244,232,0.14);
  background: rgba(255,255,255,0.03);
}

.game-art {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 14px);
}

.game-body { padding: 22px; }

.game-body .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.game-body h3 { font-size: 26px; letter-spacing: -0.01em; }

.game-body .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(248,244,232,0.55);
  letter-spacing: 0.1em;
}

.game-body p { font-size: 14px; color: rgba(248,244,232,0.75); line-height: 1.55; }

.games-foot {
  margin-top: 36px;
  font-size: 14px;
  color: rgba(248,244,232,0.55);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.games-foot a { color: var(--game-lime); text-underline-offset: 4px; }

/* ── Contact ── */
.contact-wrap { padding: 26px 64px 64px; }

.contact {
  border-radius: 28px;
  padding: 64px 52px;
  background: var(--accent);
  color: #FFF8EC;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}

.contact .eyebrow { color: rgba(255,248,236,0.75); margin-bottom: 24px; }

.contact h2 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1;
  margin-bottom: 16px;
}

.contact p { font-size: 18px; opacity: 0.85; max-width: 520px; line-height: 1.5; }

.contact-cta {
  background: #111;
  color: #FFF8EC;
  text-decoration: none;
  padding: 20px 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: opacity 0.15s;
}

.contact-cta:hover { opacity: 0.85; }

.contact-note { font-size: 13px; opacity: 0.75; line-height: 1.5; margin-top: 14px; }

/* ── Footer ── */
footer.site-footer {
  padding: 52px 64px 32px;
  border-top: 1px solid var(--pop-line);
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  font-size: 14px;
  color: var(--pop-muted);
}

.foot-brand-title {
  font-weight: 700;
  font-size: 20px;
  color: var(--pop-ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.foot-col .title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--pop-muted);
}

.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.foot-col a { color: var(--pop-ink); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.copy {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pop-muted);
}

/* ── Privacy pages ── */
body.privacy-page { background: #F4F1EB; color: #1C1915; }

.privacy-shell { max-width: 780px; margin: 0 auto; padding: 64px 32px 120px; }

.privacy-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(28,25,21,0.12);
  font-size: 14px;
}

.privacy-nav a { color: #1C1915; text-decoration: none; }
.privacy-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.privacy-wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--app-accent, #E05C3B);
  display: inline-block;
}

.privacy-nav-links { display: flex; gap: 20px; }

.privacy-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B6559;
  margin-bottom: 24px;
}

.privacy-h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.privacy-h1 em { font-style: normal; color: var(--app-accent, #E05C3B); }

.privacy-lead { font-size: 19px; color: #3A3530; margin: 0 0 12px; max-width: 640px; }

.privacy-meta {
  font-size: 13px;
  color: #6B6559;
  margin: 12px 0 48px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.privacy-callout {
  background: rgba(0,0,0,0.03);
  border-left: 3px solid var(--app-accent, #E05C3B);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 15px;
}

.privacy-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}

.privacy-body h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; margin: 28px 0 6px; }
.privacy-body p, .privacy-body li { font-size: 16px; color: #2A2620; }
.privacy-body p { margin-bottom: 12px; }
.privacy-body ul { padding-left: 20px; margin: 10px 0 20px; }
.privacy-body li { margin-bottom: 6px; }
.privacy-body a { color: var(--app-accent, #E05C3B); text-underline-offset: 3px; }

.privacy-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(28,25,21,0.12);
  font-size: 13px;
  color: #6B6559;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.privacy-footer a { color: #1C1915; }

/* ── Responsive ── */
@media (max-width: 880px) {
  nav.top, .hero, .services, .contact-wrap, footer.site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  section.games { padding: 64px 28px 72px; }

  .nav-links a:not(.nav-cta) { display: none; }

  .hero-bottom,
  .games-head,
  .contact,
  .services-grid,
  .games-grid { grid-template-columns: 1fr; }

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

  .contact { padding: 44px 28px; }

  .scroll-cta { justify-self: start; }
}
