/* Palette and type from the game (Thinky Home redesign, dark theme). */
:root {
  --bg: #141826;
  --bg-deep: #0E111C;
  --card: #1F2436;
  --card-2: #2A3048;
  --text: #FFFFFF;
  --muted: #A3A9C6;
  --dim: #6B7192;
  --gold: #FFC84A;
  --blue: #2F5BEA;
  --navy: #15132A;
  --display: "Anton", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 18px/1.6 var(--body);
  overflow-x: hidden;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold); color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.3px; line-height: 1.05; }
.kicker { margin: 0 0 12px; font-weight: 800; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(20, 24, 38, 0.88);
  box-shadow: 0 0 0 100vmax rgba(20, 24, 38, 0.88);
  clip-path: inset(0 -100vmax);
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 30px/1 var(--display); letter-spacing: 0.5px; transform: skewX(-8deg); }
.brand em { font-style: normal; color: var(--gold); }
nav { display: flex; align-items: center; gap: 20px; font-weight: 700; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
nav .lang {
  color: var(--navy);
  background: var(--gold);
  padding: 2px 12px;
  font: 15px/1.5 var(--display);
  letter-spacing: 1px;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
nav .lang:hover { color: var(--navy); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section h2 { margin: 0 0 18px; font-size: clamp(2.2rem, 5.4vw, 3.6rem); transform: skewX(-8deg); transform-origin: left; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: min(760px, calc(100svh - 64px));
  padding: 40px 0 60px;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 6.6vw, 5.4rem);
  transform: skewX(-8deg);
  transform-origin: 0 100%;
}
.hero h1 em { font-style: normal; color: var(--gold); white-space: nowrap; }
.lead { margin: 0 0 28px; max-width: 32ch; color: var(--muted); font-size: 1.25rem; font-weight: 600; }
.soon {
  display: inline-block;
  margin: 0;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--navy);
  font: 18px/1 var(--display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.blob {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(47, 91, 234, 0.55), rgba(47, 91, 234, 0) 70%);
  filter: blur(10px);
}
.inky.big {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: auto;
  transform: translate(-50%, -55%);
  animation: jump 3.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
}
.float { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ft {
  position: absolute;
  width: 21%;
  aspect-ratio: 1;
  background: var(--c);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
  animation: bob 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.55s);
}
.ft .ic { width: 100%; height: 100%; display: grid; place-items: center; }
.ft .ic img { width: 65%; height: 65%; }
.ft .nm { display: none; }
.ft:nth-child(1) { left: 4%;  top: 10%; rotate: -10deg; }
.ft:nth-child(2) { left: 40%; top: 0%;  rotate: 6deg; }
.ft:nth-child(3) { right: 4%; top: 14%; rotate: 12deg; }
.ft:nth-child(4) { right: 0%; top: 58%; rotate: -6deg; }
.ft:nth-child(5) { left: 40%; bottom: 0%; rotate: -12deg; }
.ft:nth-child(6) { left: 0%;  top: 60%; rotate: 8deg; }

/* ---------- Modes ---------- */
.band {
  position: relative;
  padding: 56px clamp(20px, 5vw, 56px);
  margin-bottom: 96px;
  background: var(--card);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 97% 100%, 0 100%);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.band > * { position: relative; }
.modes {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mode {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 4px 16px;
  padding: 18px;
  background: var(--card-2);
  border-bottom: 5px solid var(--c);
  transition: transform 0.15s ease;
}
.mode:hover { transform: translateY(-4px) rotate(-1deg); }
.mode .ic { grid-row: 1 / 3; width: 60px; height: 60px; border-radius: 10px; background: var(--c); display: grid; place-items: center; }
.mode .ic img { width: 40px; height: 40px; }
.mode .nm { align-self: end; font: 24px/1.05 var(--display); }
.mode .ds { color: var(--muted); font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ---------- Daily loop ---------- */
.loop { padding-bottom: 96px; }
.feats { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feats .num { display: block; font: 64px/1 var(--display); color: var(--gold); margin-bottom: 10px; }
.feats .num svg { width: 50px; height: 56px; vertical-align: bottom; }
.feats h3 { margin: 0 0 8px; font-size: 1.7rem; }
.feats p { margin: 0; color: var(--muted); font-weight: 600; }

/* ---------- Inky ---------- */
.inky-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
  padding: 64px clamp(20px, 5vw, 56px);
  margin-bottom: 96px;
  background: radial-gradient(circle at 22% 50%, rgba(47, 91, 234, 0.45), rgba(47, 91, 234, 0) 55%), var(--bg-deep);
}
.inky-art { display: grid; place-items: center; }
.inky-art .inky { width: min(260px, 70%); height: auto; animation: jump-small 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.inky-band p:last-child { margin: 0; color: var(--muted); font-size: 1.15rem; font-weight: 600; max-width: 46ch; }

/* ---------- Free ---------- */
.fair { text-align: center; padding: 0 0 110px; }
.fair h2 { transform-origin: center; }
.fair p { margin: 0 auto; color: var(--muted); font-weight: 600; font-size: 1.15rem; max-width: 56ch; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-deep);
  padding: 36px 20px 40px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
  font-weight: 600;
}
footer p { margin: 4px 0; }
footer a { color: var(--muted); }
.studio { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; text-decoration: none; color: var(--dim); font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.studio img { width: 110px; height: auto; opacity: 0.85; transition: opacity 0.15s ease; }
.studio:hover img { opacity: 1; }

.center { text-align: center; padding-top: 12vh; }
.center .inky { width: 140px; height: auto; }
.center h1 { font-size: 6rem; margin: 0; color: var(--gold); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes jump {
  0%, 100% { transform: translate(-50%, -55%) rotate(0); }
  30% { transform: translate(-50%, -62%) rotate(-6deg); }
  60% { transform: translate(-50%, -55%) rotate(4deg); }
}
@keyframes jump-small {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-14px) rotate(-6deg); }
  60% { transform: translateY(0) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 16px; }
  .hero-art { max-width: 360px; order: -1; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: 1fr; gap: 28px; }
  .inky-band { grid-template-columns: 1fr; gap: 16px; }
  .inky-art .inky { width: 180px; }
}
@media (max-width: 560px) {
  .top { padding: 10px 16px; }
  main { padding: 0 16px; }
  nav { gap: 14px; font-size: 14px; }
  .brand span { font-size: 26px; }
  .modes { grid-template-columns: 1fr; }
  .band, .inky-band { margin-left: -16px; margin-right: -16px; }
}
