/* ==========================================================================
   4 IN A ROW — OFFLINE CONNECT
   Design system stylesheet
   Signature concept: "Diagonal Drop" — every structural seam in the page
   (dividers, card corners, nav underline, hero framing) follows the same
   45° diagonal that a winning four-in-a-row diagonal line makes on the
   board. Discs "drop" into place with gravity-based motion on load and
   on scroll reveal.
   ========================================================================== */

/* -------------------------------- TOKENS -------------------------------- */
:root {
  /* Core surfaces */
  --bg: #0a0912;
  --bg-alt: #100e1c;
  --surface: #16142a;
  --surface-2: #1e1b36;
  --surface-3: #262244;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Ink — kept bright per spec, no dim greys for copy */
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.86);
  --ink-faint: rgba(255, 255, 255, 0.62);

  /* Disc accent palette — pulled straight from in-game themes */
  --magenta: #ff3fa4;
  --magenta-2: #c837d6;
  --cyan: #21e3e3;
  --amber: #ffc93c;
  --red: #ff4b4b;
  --green: #5fe07a;
  --orange: #ff8a3d;
  --blue: #3e7bff;

  /* Brand gradient — the "connect" gradient used across signature moments */
  --grad-connect: linear-gradient(
    115deg,
    var(--magenta) 0%,
    var(--magenta-2) 32%,
    var(--blue) 68%,
    var(--cyan) 100%
  );
  --grad-warm: linear-gradient(
    115deg,
    var(--red) 0%,
    var(--orange) 50%,
    var(--amber) 100%
  );

  /* Type */
  --font-display: 'Anybody', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Scale (rem based) */
  --fs-h1: 2.5rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.15rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8rem;

  /* Spacing rhythm */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;

  --radius-sm: 0.6rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.8rem;

  --header-h: 96px;
  --ease-drop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --fs-h1: 2.5rem;

    --fs-h2: 2.75rem;
    --fs-h3: 1.75rem;
    --fs-body: 1.05rem;
    --header-h: 112px;
  }
}

/* -------------------------------- RESET ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: var(--magenta) var(--bg);
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
svg {
  display: block;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--grad-connect);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

/* Focus visibility */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------- TYPE ------------------------------------ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  background: var(--grad-connect);
  border-radius: 3px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

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

/* --------------------------- LAYOUT PRIMITIVES ---------------------------- */
.wrap {
  width: min(1240px, 92%);
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--sp-6);
  overflow: clip;
}
.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-4);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
main {
  display: block;
}

/* Diagonal seam divider — the signature structural motif */
.diagonal-seam {
  position: relative;
  height: 64px;
  margin-top: calc(var(--sp-6) * -1 + 10px);
}
.diagonal-seam svg {
  width: 100%;
  height: 100%;
}

/* Section backdrops */
.section--alt {
  background: var(--bg-alt);
}
.section--surface {
  background: var(--surface);
}

/* Decorative floating disc — used across sections, positioned per-instance */
.decor-disc {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.decor-disc.blur {
  filter: blur(2px);
}
.decor-disc.magenta {
  background: radial-gradient(circle at 32% 30%, #ff8fce, var(--magenta));
}
.decor-disc.cyan {
  background: radial-gradient(circle at 32% 30%, #a6fbfb, var(--cyan));
}
.decor-disc.amber {
  background: radial-gradient(circle at 32% 30%, #ffe6a3, var(--amber));
}
.decor-disc.green {
  background: radial-gradient(circle at 32% 30%, #c4ffcf, var(--green));
}

.decor-disc.float {
  animation: floatY 7s ease-in-out infinite;
}
.decor-disc.float.slow {
  animation-duration: 11s;
}
.decor-disc.float.delay {
  animation-delay: -3s;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-22px) rotate(8deg);
  }
}

/* Faint board-grid decorator used as background texture */
.decor-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.07) 2px,
    transparent 2px
  );
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------------------------- BUTTONS -------------------------------- */
.btn {
  --btn-pad-y: 1.05rem;
  --btn-pad-x: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-drop),
    box-shadow 0.35s ease,
    background 0.35s ease;
  min-height: 56px;
}
.btn.primary {
  background: var(--grad-connect);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(255, 63, 164, 0.55);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -12px rgba(255, 63, 164, 0.7);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}
.btn.block {
  width: 100%;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  background: #05050a;
  border: 1.5px solid var(--line-strong);
  min-height: 60px;
  transition:
    transform 0.3s var(--ease-drop),
    border-color 0.3s ease,
    background 0.3s ease;
}
.btn-google-play:hover,
.btn-google-play:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: #0b0b16;
}
.btn-google-play svg {
  width: 26px;
  height: 26px;
}
.btn-google-play .gp-text {
  text-align: left;
  line-height: 1.2;
}
.btn-google-play .gp-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-google-play .gp-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.price-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ----------------------------------- HEADER --------------------------------
   Non-standard header: fixed, floated to the LEFT on large screens (square
   logo needs min 200px height / width to breathe), collapses to a compact
   top bar on mobile with logo top-left.
   --------------------------------------------------------------------------*/
body {
  padding-top: 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.9rem 5%;
  background: rgba(10, 9, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition:
    background 0.4s ease,
    padding 0.4s ease,
    border-color 0.4s ease;
}
.site-header.scrolled .header-inner {
  background: rgba(8, 7, 15, 0.92);
  padding-block: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 2;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.brand .brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.1;
}
.brand .brand-text span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-top: 2px;
}

.main-nav {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  transition: color 0.3s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-connect);
  clip-path: inset(0 100% 0 0 round 3px);
  transition: clip-path 0.45s var(--ease-drop);
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--ink);
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  clip-path: inset(0 0 0 0 round 3px);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.header-cta .btn {
  padding: 0.85rem 1.4rem;
  min-height: 48px;
  font-size: 0.88rem;
}

.nav-menu {
  display: block;
  position: relative;
  z-index: 101;
}
.nav-menu summary {
  list-style: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  z-index: 2;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition:
    transform 0.35s var(--ease-smooth),
    opacity 0.3s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -7px;
}
.nav-toggle span::after {
  position: absolute;
  top: 7px;
}
.nav-menu[open] .nav-toggle span {
  background: transparent;
}
.nav-menu[open] .nav-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-menu[open] .nav-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile full-screen nav drawer with IRIS clip-path reveal */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #120f22 0%, #0a0912 70%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8% 8%;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.6s var(--ease-smooth);
  pointer-events: none;
}
.nav-menu[open] .nav-drawer {
  clip-path: circle(150% at calc(100% - 40px) 40px);
  pointer-events: auto;
}
.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: var(--sp-4);
}
.nav-drawer a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-drawer a::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-connect);
  flex-shrink: 0;
}
.nav-drawer .drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

@media (min-width: 1100px) {
  .main-nav {
    display: block;
  }
  .nav-menu {
    display: none;
  }
  .nav-drawer {
    display: none;
  }

  /* Left-floated header for large screens, min 200px height square logo lockup */
  .site-header {
    top: 0;
    left: 0;
    width: 236px;
    height: 100vh;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    width: 100%;
    padding: 2.2rem 1.6rem;
    border-bottom: none;
    border-right: 1px solid var(--line);
    gap: var(--sp-4);
    overflow-y: auto;
  }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 200px;
    justify-content: center;
    background: linear-gradient(
      160deg,
      rgba(255, 63, 164, 0.14),
      rgba(33, 227, 227, 0.1)
    );
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
  }
  .brand img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    margin-bottom: 1rem;
  }
  .brand .brand-text {
    font-size: 1.25rem;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    width: 100%;
  }
  .main-nav a {
    font-size: 1rem;
    width: 100%;
  }
  .header-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: auto;
  }
  .header-cta .btn {
    width: 100%;
  }

  body {
    padding-left: 236px;
  }
}

/* -------------------------------------- FOOTER ------------------------------ */
.site-footer {
  position: relative;
  background: #06050c;
  border-top: 1px solid var(--line);
  padding-block: var(--sp-5) var(--sp-3);
  overflow: clip;
}
.footer-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--sp-2);
}
.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-col a {
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--cyan);
}
.footer-bottom {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--ink-faint);
}
.footer-bottom a {
  color: var(--ink-faint);
}
.footer-bottom a:hover {
  color: var(--ink);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

/* ------------------------------------- HERO ---------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: var(--sp-6);
  background:
    radial-gradient(
      1100px 620px at 85% -10%,
      rgba(255, 63, 164, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 90%,
      rgba(33, 227, 227, 0.2),
      transparent 60%
    ),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy .eyebrow {
  margin-bottom: 1.2rem;
}
.hero h1 {
  margin-bottom: 1.3rem;
}
.hero .lede {
  margin-bottom: var(--sp-3);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--sp-3);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .frame-main {
  position: relative;
  width: min(320px, 78%);
  border-radius: 34px;
  overflow: hidden;
  border: 3px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  transform: rotate(-3deg);
}
.hero-visual .frame-secondary {
  position: absolute;
  bottom: -6%;
  right: -4%;
  width: min(180px, 46%);
  border-radius: 26px;
  overflow: hidden;
  border: 3px solid var(--line-strong);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.8);
  transform: rotate(6deg);
  z-index: 3;
}
.hero-visual .disc-ring {
  position: absolute;
  inset: -8% -8% auto auto;
  width: 130px;
  height: 130px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-5);
  }
}

/* Falling-disc load animation (signature interaction) */
.drop-disc {
  opacity: 0;
  transform: translateY(-120px);
  animation: dropIn 0.9s var(--ease-drop) forwards;
}
@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(-140px) scale(0.7);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ------------------------------- SCROLL REVEAL ------------------------------- */
.reveal {
  opacity: 1;
}
.reveal.inset-target {
  clip-path: inset(0% round 0%);
  opacity: 1;
}

.reveal.is-visible {
  opacity: 1;
}
.reveal.circle-target.is-visible {
  animation: circleIn 0.9s var(--ease-smooth) forwards;
}
.reveal.inset-target.is-visible {
  animation: insetIn 0.8s var(--ease-smooth) forwards;
}
.reveal.iris-target.is-visible {
  animation: irisIn 1s var(--ease-smooth) forwards;
}
.reveal.melt-target.is-visible {
  animation: meltIn 1s var(--ease-smooth) forwards;
}
.reveal.fade-target {
  transform: none;
  transition:
    opacity 0.8s var(--ease-smooth),
    transform 0.8s var(--ease-smooth);
}
.reveal.fade-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes circleIn {
  0% {
    clip-path: circle(0% at 50% 50%);
    opacity: 0.3;
  }
  100% {
    clip-path: circle(75% at 50% 50%);
    opacity: 1;
  }
}
@keyframes insetIn {
  0% {
    clip-path: inset(30% round 26px);
    opacity: 0;
  }
  100% {
    clip-path: inset(0% round 0%);
    opacity: 1;
  }
}
@keyframes irisIn {
  0% {
    clip-path: circle(0% at 20% 20%);
    opacity: 0;
  }
  100% {
    clip-path: circle(120% at 20% 20%);
    opacity: 1;
  }
}
@keyframes meltIn {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
  }
}

/* ---------------------------------- CARDS ------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  transition:
    transform 0.4s var(--ease-drop),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.6);
}

.feature-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  transition:
    transform 0.35s var(--ease-drop),
    background 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: var(--surface-2);
}
.feature-card .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  background: var(--grad-connect);
}
.feature-card .ic svg {
  width: 24px;
  height: 24px;
  color: #fff;
}
.feature-card h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Difficulty ladder */
.difficulty-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.diff-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.3s var(--ease-drop),
    border-color 0.3s ease;
}
.diff-row:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
}
.diff-row .diff-bar {
  display: flex;
  gap: 4px;
}
.diff-row .diff-bar i {
  width: 8px;
  height: 22px;
  border-radius: 3px;
  background: var(--line-strong);
}
.diff-row .diff-bar i.on {
  background: var(--grad-warm);
}
.diff-row h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.diff-row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Theme swatch gallery cards */
.theme-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;
  cursor: zoom-in;
}
.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.theme-card:hover img {
  transform: scale(1.08);
}
.theme-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-card .swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Steps / numbered process (only used where sequence is real: how-to-win order, contact wizard) */
.steps-list {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
}
.step-item .step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
}
.step-item .step-num::before {
  content: counter(step);
}

/* Quote / testimonial-ish community tip cards */
.tip-card {
  background: var(--surface);
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.3rem;
}
.tip-card p {
  margin: 0;
}
.tip-card .tip-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

/* Split media section */
.split {
  display: grid;
  gap: var(--sp-4);
  align-items: center;
}
.split.reverse .split-media {
  order: -1;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
  }
  .split.reverse .split-media {
    order: 2;
  }
}
.split-media {
  position: relative;
}
.split-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.split-media .float-chip {
  position: absolute;
  padding: 0.7rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
}

/* Marquee (phone screenshots strip) */
.marquee {
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track img {
  height: 320px;
  width: auto;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Themes background image sections (animated bg) */
.bg-photo-section {
  position: relative;
  color: var(--ink);
}
.bg-photo-section .bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bg-photo-section .bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-1.5%, -1.5%);
  }
}
.bg-photo-section .bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 7, 14, 0.88),
    rgba(8, 7, 14, 0.72) 40%,
    rgba(8, 7, 14, 0.92)
  );
  z-index: 1;
}
.bg-photo-section .wrap {
  position: relative;
  z-index: 2;
}

/* Stat strip */
.stat-strip {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-strip .stat {
  text-align: center;
}
.stat-strip .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
}
.stat-strip .stat span {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ------------------------------------ GALLERY ------------------------------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  aspect-ratio: 3/4;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .zoom-ic {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 7, 14, 0.7);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .zoom-ic {
  opacity: 1;
}
.gallery-item .zoom-ic svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------- FAQ ---------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .faq-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-drop);
}
.faq-item[open] .faq-ic {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

/* -------------------------------------- FORM / CONTACT WIZARD ---------------- */
.contact-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-3);
}
.wizard-progress .wp-step {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.wizard-progress .wp-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-connect);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}
.wizard-progress .wp-step.done::after,
.wizard-progress .wp-step.active::after {
  transform: scaleX(1);
}

.wizard-pane {
  display: none;
}
.wizard-pane.active {
  display: block;
  animation: irisIn 0.6s var(--ease-smooth);
}
.wizard-pane h3 {
  margin-bottom: 0.4rem;
}
.wizard-pane .lede {
  margin-bottom: var(--sp-3);
  font-size: 1rem;
}

.choice-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-3);
}
@media (min-width: 600px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.choice-card {
  text-align: left;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition:
    border-color 0.3s ease,
    transform 0.3s var(--ease-drop),
    background 0.3s ease;
  min-height: 56px;
}
.choice-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.choice-card[aria-pressed='true'] {
  border-color: var(--cyan);
  background: linear-gradient(
    160deg,
    rgba(33, 227, 227, 0.14),
    rgba(255, 63, 164, 0.1)
  );
}
.choice-card strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.02rem;
}
.choice-card span {
  font-size: 0.87rem;
  color: var(--ink-soft);
}


.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-3);
}
.form-fieldset legend {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.choice-card input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-card:has(input[type='radio']:checked) {
  border-color: var(--cyan);
  background: linear-gradient(
    160deg,
    rgba(33, 227, 227, 0.14),
    rgba(255, 63, 164, 0.1)
  );
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: var(--sp-2);
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  color: var(--ink);
  min-height: 52px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--cyan);
  background: var(--surface-3);
  outline: none;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.field.error input,
.field.error textarea {
  border-color: var(--red);
}
.field .err-msg {
  font-size: 0.8rem;
  color: var(--red);
  display: none;
}
.field.error .err-msg {
  display: block;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.checkbox-field input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 2px;
  accent-color: var(--magenta);
}
.checkbox-field label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.checkbox-field a {
  color: var(--cyan);
  text-decoration: underline;
}

.form-summary {
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: var(--sp-2);
  font-size: 0.9rem;
}
.form-summary strong {
  color: var(--ink);
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  margin-top: var(--sp-2);
}
.form-status.show {
  display: flex;
  animation: meltIn 0.7s var(--ease-smooth);
}
.form-status.success {
  background: rgba(95, 224, 122, 0.12);
  border: 1px solid rgba(95, 224, 122, 0.4);
}
.form-status.fail {
  background: rgba(255, 75, 75, 0.12);
  border: 1px solid rgba(255, 75, 75, 0.4);
}
.form-status .fs-ic {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.form-status strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-row .ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-row .ic svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}
.contact-info-row strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}
.contact-info-row a,
.contact-info-row p {
  color: var(--ink-soft);
  margin: 0;
}

/* -------------------------------------- 404 ----------------------------------- */
.error-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-6) 5%;
  position: relative;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 11rem);
  font-weight: 800;
  background: var(--grad-connect);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.9;
}

/* --------------------------------------- LEGAL --------------------------------- */
.legal-content {
  max-width: 74ch;
  margin-inline: auto;
}
.legal-content h2 {
  margin-top: var(--sp-4);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.legal-content h3 {
  margin-top: var(--sp-3);
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}
.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.legal-content ul,
.legal-content ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
}
.legal-content ol {
  list-style: decimal;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-size: 0.9rem;
}
.legal-content th {
  background: var(--surface);
  color: var(--ink);
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: var(--sp-3);
}

/* ---------------------------------------- BREADCRUMB ---------------------------- */
.breadcrumb {
  padding-top: calc(var(--header-h) + 1.6rem);
  padding-bottom: 1rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.breadcrumb a {
  color: var(--ink-faint);
}
.breadcrumb a:hover {
  color: var(--cyan);
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--line-strong);
}

/* Page hero (secondary pages) */
.page-hero {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: var(--sp-5);
  position: relative;
  background:
    radial-gradient(
      900px 480px at 90% 0%,
      rgba(255, 63, 164, 0.22),
      transparent 60%
    ),
    var(--bg);
}
.page-hero h1 {
  max-width: 20ch;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 1.4rem;
  border-radius: 0 0 10px 0;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* Utility */
.mt-0 {
  margin-top: 0 !important;
}
.center-text {
  text-align: center;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.m-0 { margin: 0; }
.mx-auto { margin-inline: auto; }
.w-fit { width: fit-content; }

/* Gap utilities */
.gap-06 { gap: .6rem; }
.gap-07 { gap: .7rem; }
.gap-10 { gap: 1rem; }
.gap-16 { gap: 1.6rem; }

/* Margin utilities */
.mt-10 { margin-top: 1rem; }
.mt-11 { margin-top: 1.1rem; }
.mt-12 { margin-top: 1.2rem; }
.mt-14 { margin-top: 1.4rem; }
.mt-16 { margin-top: 1.6rem; }
.mt-sp4 { margin-top: var(--sp-4); }
.mb-10 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 1.2rem; }
.mb-14 { margin-bottom: 1.4rem; }
.mb-16 { margin-bottom: 1.6rem; }
.mb-20 { margin-bottom: 2rem; }
.mb-22 { margin-bottom: 2.2rem; }
.mb-sp3 { margin-bottom: var(--sp-3); }
.mb-sp4 { margin-bottom: var(--sp-4); }

/* Padding utilities */
.pt-0 { padding-top: 0; }
.pb-sp4 { padding-bottom: var(--sp-4); }
.p-block-sp4 { padding-block: var(--sp-4); }
.p-block-sp5 { padding-block: var(--sp-5); }

/* Max-width utilities */
.max-w-560 { max-width: 560px; }
.max-w-640 { max-width: 640px; }
.max-w-760 { max-width: 760px; }
.max-w-780 { max-width: 780px; }
.max-w-820 { max-width: 820px; }

/* Animation stagger utilities */
.d-06 { animation-delay: .06s; }
.d-08 { animation-delay: .08s; }
.d-10 { animation-delay: .1s; }
.d-12 { animation-delay: .12s; }
.d-16 { animation-delay: .16s; }
.d-18 { animation-delay: .18s; }
.d-24 { animation-delay: .24s; }
.d-30 { animation-delay: .3s; }
.d-36 { animation-delay: .36s; }
.d-40 { animation-delay: .4s; }
.d-42 { animation-delay: .42s; }

/* Accent color utilities */
.text-green { color: var(--green); }
.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.link-cyan { color: var(--cyan); text-decoration: underline; }

/* Image frame utilities */
.img-frame { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); }
.img-frame-shadow { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.card-img { border-radius: var(--radius-md); margin-bottom: 1.2rem; }

/* Float-chip corner positions */
.float-chip.pos-tr { top: -1rem; right: -1rem; }
.float-chip.pos-br { bottom: -1rem; right: -1rem; }
.float-chip.pos-bl { bottom: -1rem; left: -1rem; }

/* Swatch-dot colors */
.swatch-dot.red { background: var(--red); }
.swatch-dot.magenta { background: var(--magenta); }
.swatch-dot.cyan { background: var(--cyan); }
.swatch-dot.green { background: var(--green); }

/* Price-pill centered variant */
.price-pill.centered { margin: 1.2rem auto 0; width: fit-content; }

/* Decorative disc position/size presets (unique per placement) */
.decor-hero-1 { width: 70px; height: 70px; top: 14%; right: 8%; }
.decor-hero-2 { width: 44px; height: 44px; top: 62%; right: 20%; }
.decor-hero-3 { width: 34px; height: 34px; top: 30%; left: 4%; }
.decor-jakgrac { width: 120px; height: 120px; top: 6%; left: -4%; }
.decor-motywy { width: 90px; height: 90px; bottom: 8%; left: 6%; }
.decor-cta { width: 100px; height: 100px; top: 10%; right: -3%; }
.decor-gameplay-hero { width: 80px; height: 80px; top: 12%; right: 10%; }
.decor-community-hero { width: 90px; height: 90px; top: 16%; left: 6%; }
.decor-contact-hero { width: 90px; height: 90px; top: 14%; right: 8%; }
.decor-error-1 { width: 90px; height: 90px; top: 14%; left: 10%; }
.decor-error-2 { width: 60px; height: 60px; bottom: 16%; right: 12%; }
