/* SIX SEVEN TOOLS studio page — zero JavaScript, all motion is CSS.
   Same house dialect as the SLIMEY SLIDE site; parent-brand palette. */

@font-face { font-family: "Press Start 2P"; src: url("assets/fonts/press-start-2p.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("assets/fonts/baloo-2.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #e9f3f9;
  --deep: #0a0f16;
  --panel: #12202c;
  --panel-hi: #1b3242;
  --steel: #5fb4e5;
  --steel-hot: #8fd4ff;
  --accent: #ffd23f;
  --edge: #05090e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep);
  color: var(--ink);
  font-family: "Baloo 2", system-ui, sans-serif;
  overflow-x: hidden;
}
img { user-select: none; }
h2 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(1rem, 3.4vw, 1.6rem);
  color: var(--steel-hot);
  text-align: center;
  margin: 0 auto 2rem;
  text-shadow: 0 4px 0 var(--edge);
}

/* ---------- nav ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.2rem;
  background: linear-gradient(#0a0f16ee, #0a0f1600);
}
.wordmark {
  font-family: "Press Start 2P", monospace;
  font-size: .72rem; letter-spacing: .08em;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--steel-hot); }
.navlinks a {
  color: var(--ink); text-decoration: none; margin-left: 1.1rem;
  font-weight: 600; letter-spacing: .04em; opacity: .85;
}
.navlinks a:hover { opacity: 1; color: var(--steel-hot); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 62%, #0a0f1600 30%, #0a0f16d9 78%),
    linear-gradient(165deg, var(--panel-hi), var(--deep) 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#5fb4e514 1px, transparent 1px),
    linear-gradient(90deg, #5fb4e514 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 14s linear infinite;
}
.hero-inner { position: relative; z-index: 2; padding: 1rem; }
.hands {
  display: flex; gap: 2rem; justify-content: center; align-items: flex-start;
  margin: 0 auto 1.8rem;
  animation: heroIn 900ms cubic-bezier(.2, 1.6, .35, 1) both;
}
.hands img {
  width: 6rem; image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 var(--edge));
}
/* the alternating scale - the 6-7 motion; each glove rotated outward so
   the fingers point at the bottom corners, like the reference pose */
.hands .hl { animation: weighL 1.6s ease-in-out 1s infinite; }
.hands .hr { animation: weighR 1.6s ease-in-out 1s infinite; }
.hero-wordmark {
  font-size: clamp(1rem, 4.4vw, 1.9rem);
  color: var(--ink); text-shadow: 0 5px 0 var(--edge);
  animation: riseIn 700ms 250ms both;
}
.tag {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(.7rem, 2.4vw, 1.05rem);
  color: var(--accent);
  margin: 1.4rem 0 .6rem;
  animation: riseIn 700ms 450ms both;
}
.sub { font-size: clamp(1rem, 2.8vw, 1.3rem); opacity: .92; animation: riseIn 700ms 650ms both; }
.cta { display: flex; gap: .9rem; justify-content: center; margin-top: 1.8rem; animation: riseIn 700ms 850ms both; }
.badge {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: .65rem 1.5rem; border-radius: .8rem; text-decoration: none;
  background: var(--steel); color: #0a1c28; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 0 #2c6b92, 0 10px 22px #0009;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.badge em { font-style: normal; font-size: .68rem; opacity: .75; letter-spacing: .14em; text-transform: uppercase; }
.badge:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 9px 0 #2c6b92, 0 14px 26px #000b; }
.badge:active { transform: translateY(2px); box-shadow: 0 3px 0 #2c6b92; }
.badge.ghost {
  background: transparent; color: var(--ink);
  border: 3px solid var(--steel); box-shadow: 0 6px 0 #12202c, 0 10px 22px #0009;
}
.badge.ghost:hover { box-shadow: 0 9px 0 #12202c, 0 14px 26px #000b; }
.badge.ghost:active { box-shadow: 0 3px 0 #12202c; }

.scrollhint {
  position: absolute; bottom: 1.1rem; left: 50%; translate: -50% 0; z-index: 2;
  font-family: "Press Start 2P", monospace; font-size: .6rem; letter-spacing: .3em;
  color: var(--steel-hot); opacity: .8;
  animation: hintPulse 1.6s ease-in-out infinite;
}

/* ---------- product card ---------- */
.games { padding: 4.5rem 1.2rem; max-width: 72rem; margin: 0 auto; }
.product {
  display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap;
  max-width: 46rem; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  border: 3px solid var(--edge); border-radius: 1.2rem;
  padding: 1.6rem;
  box-shadow: 0 8px 0 var(--edge);
  text-decoration: none; color: var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.product:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 14px 0 var(--edge); }
.product-logo { width: min(60vw, 15rem); image-rendering: pixelated; filter: drop-shadow(0 6px 0 var(--edge)); }
.product-body { flex: 1 1 16rem; }
.product-body h3 { color: var(--accent); font-size: 1.3rem; margin-bottom: .4rem; }
.product-body p { opacity: .9; line-height: 1.45; }
.product-link { display: inline-block; margin-top: .7rem; font-weight: 800; color: var(--steel-hot); }

/* ---------- about + contact ---------- */
.about { padding: 4rem 1.2rem; background: #0d1822; border-block: 4px solid var(--edge); }
.about-body { max-width: 44rem; margin: 0 auto; line-height: 1.55; }
.about-body p { margin-bottom: .9rem; opacity: .92; }
.about-body a { color: var(--accent); }
.contact { padding: 4.5rem 1.2rem; max-width: 72rem; margin: 0 auto; }
.card {
  max-width: 40rem; margin: 0 auto;
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  border: 3px solid var(--edge); border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 6px 0 var(--edge);
}
.card h3 { color: var(--accent); font-size: 1.12rem; margin-bottom: .45rem; }
.card p { opacity: .92; line-height: 1.45; }
.card a { color: var(--steel-hot); }
.fine-block { margin-top: .8rem; font-size: .92rem; opacity: .8; }

/* ---------- footer ---------- */
footer {
  padding: 3rem 1.2rem 2.2rem; text-align: center;
  background: var(--edge);
}
.footlinks { margin: 1rem 0; }
.footlinks a { color: var(--ink); opacity: .8; margin: 0 .8rem; text-decoration: none; font-weight: 600; }
.footlinks a:hover { opacity: 1; color: var(--steel-hot); }
.fine { opacity: .5; font-size: .85rem; }

/* ---------- keyframes ---------- */
@keyframes heroIn { from { transform: translateY(46px) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes riseIn { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 44px 44px; } }
@keyframes hintPulse { 0%, 100% { opacity: .3; } 50% { opacity: .9; } }
@keyframes weighL {
  0%, 100% { transform: rotate(-22deg) translateY(-9px); }
  50%      { transform: rotate(-22deg) translateY(9px); }
}
@keyframes weighR {
  0%, 100% { transform: rotate(22deg) translateY(9px); }
  50%      { transform: rotate(22deg) translateY(-9px); }
}

/* scroll-driven reveals where supported; static fallback otherwise */
@supports (animation-timeline: view()) {
  .product, .card {
    animation: riseIn .7s both;
    animation-timeline: view();
    animation-range: entry 0% entry 62%;
  }
}

/* the games honor reduced motion; so does the page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- compliance doc pages (privacy) ---------- */
.doc {
  max-width: 44rem; margin: 0 auto; padding: 6rem 1.2rem 4rem;
  line-height: 1.55;
}
.doc h1 {
  font-family: "Press Start 2P", monospace; font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--steel-hot); margin-bottom: 1.6rem; text-shadow: 0 4px 0 var(--edge);
}
.doc h2 { font-size: clamp(.8rem, 2.4vw, 1rem); text-align: left; margin: 2rem 0 .8rem; }
.doc p, .doc li { opacity: .92; margin-bottom: .8rem; }
.doc ul { padding-left: 1.4rem; }
.doc li { margin-bottom: .45rem; }
.doc a { color: var(--accent); }
.doc .back { display: inline-block; margin-bottom: 1.6rem; font-weight: 700; color: var(--steel-hot); text-decoration: none; }
