/* ==========================================================================
   Zcentric — "Woven Light" Design System
   Studio: Zcentric · Game: Loomic
   New design system for marketing pages + blog reskin. Does not touch
   legacy hyde.css / bootstrap / bundle.css used by old blog templates.
   ========================================================================== */

/* -------------------------------- Tokens -------------------------------- */
:root {
  /* Surfaces */
  --zc-canvas: #0a0e14;
  --zc-panel: #141a24;
  --zc-panel-raised: #182030;
  --zc-hairline: #26303f;
  --zc-hairline-soft: #1b2330;

  /* Accents */
  --zc-cyan: #41d6e8;
  --zc-cyan-deep: #2bb4c6;
  --zc-gold: #ffc23d;

  /* Text */
  --zc-ink: #eaf1f5;
  --zc-ink-dim: #a7b4c2;
  --zc-ink-faint: #6b7889;

  /* Type */
  --zc-font-display: 'Bricolage Grotesque', 'Space Mono', system-ui, sans-serif;
  --zc-font-label: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --zc-font-body: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Rhythm */
  --zc-radius-sm: 8px;
  --zc-radius-md: 14px;
  --zc-radius-lg: 22px;
  --zc-gap: clamp(1.25rem, 2vw, 2rem);
  --zc-container: 1180px;

  /* Motion */
  --zc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zc-fast: 180ms;
  --zc-med: 420ms;
}

/* -------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.zc {
  margin: 0;
  background: var(--zc-canvas);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(65, 214, 232, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(255, 194, 61, 0.05), transparent 55%);
  background-repeat: no-repeat;
  color: var(--zc-ink);
  font-family: var(--zc-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.zc img { max-width: 100%; display: block; }
.zc a { color: inherit; text-decoration: none; }
.zc ul { list-style: none; margin: 0; padding: 0; }
.zc h1, .zc h2, .zc h3, .zc h4 {
  font-family: var(--zc-font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.zc p { margin: 0 0 1em; }
.zc svg { display: block; }

/* Focus states — accessible everywhere */
.zc a:focus-visible,
.zc button:focus-visible,
.zc [tabindex]:focus-visible {
  outline: 2px solid var(--zc-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.zc .skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--zc-cyan);
  color: var(--zc-canvas);
  padding: 0.75em 1.25em;
  font-family: var(--zc-font-label);
  font-weight: 700;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.zc .skip-link:focus {
  left: 0;
}

/* ------------------------------ Layout ----------------------------------- */
.zc-container {
  width: 100%;
  max-width: var(--zc-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.zc-main { flex: 1 0 auto; }

/* ------------------------------ Eyebrow / labels -------------------------- */
.zc-eyebrow {
  font-family: var(--zc-font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zc-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.zc-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--zc-cyan);
  display: inline-block;
}

/* --------------------------------- Header --------------------------------- */
.zc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--zc-hairline-soft);
}

.zc-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.zc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--zc-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--zc-ink);
}

.zc-brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.zc-brand__mark .line {
  fill: none;
  stroke: var(--zc-cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.zc-brand__mark .node { fill: var(--zc-canvas); stroke: var(--zc-cyan); stroke-width: 2.4; }
.zc-brand__mark .end { fill: var(--zc-gold); }

.zc-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}

.zc-nav a {
  font-family: var(--zc-font-label);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zc-ink-dim);
  position: relative;
  padding: 0.35em 0.1em;
  transition: color var(--zc-fast) var(--zc-ease);
}
.zc-nav a:hover { color: var(--zc-ink); }
.zc-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--zc-cyan);
  transition: right var(--zc-fast) var(--zc-ease);
}
.zc-nav a:hover::after,
.zc-nav a[aria-current="page"]::after { right: 0; }
.zc-nav a[aria-current="page"] { color: var(--zc-cyan); }

.zc-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--zc-hairline);
  border-radius: var(--zc-radius-sm);
  color: var(--zc-ink);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.zc-nav__toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .zc-nav__toggle { display: inline-flex; }
  .zc-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--zc-panel);
    border-bottom: 1px solid var(--zc-hairline);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 1rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--zc-fast) var(--zc-ease), opacity var(--zc-fast) var(--zc-ease);
  }
  .zc-header.is-open .zc-nav {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .zc-header__bar { position: relative; }
}

/* --------------------------------- Buttons -------------------------------- */
.zc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--zc-font-label);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--zc-fast) var(--zc-ease), box-shadow var(--zc-fast) var(--zc-ease), border-color var(--zc-fast) var(--zc-ease), background var(--zc-fast) var(--zc-ease);
}
.zc-btn--primary {
  background: var(--zc-cyan);
  color: #04141a;
  font-weight: 700;
}
.zc-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(65, 214, 232, 0.55);
  background: #55dfef;
}
.zc-btn--ghost {
  background: transparent;
  color: var(--zc-ink);
  border-color: var(--zc-hairline);
}
.zc-btn--ghost:hover {
  border-color: var(--zc-cyan);
  color: var(--zc-cyan);
  transform: translateY(-2px);
}

/* Static "coming soon" store badges (non-interactive as store links) */
.zc-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
  padding: 0.7em 1.3em;
  border-radius: var(--zc-radius-sm);
  border: 1px solid var(--zc-hairline);
  background: var(--zc-panel);
  color: var(--zc-ink-dim);
  cursor: default;
  user-select: none;
  transition: border-color var(--zc-fast) var(--zc-ease);
}
.zc-store-badge:hover { border-color: var(--zc-cyan-deep); }
.zc-store-badge__icon { width: 26px; height: 26px; flex: none; color: var(--zc-ink-dim); }
.zc-store-badge__text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.zc-store-badge__eyebrow {
  font-family: var(--zc-font-label);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zc-ink-faint);
}
.zc-store-badge__name {
  font-family: var(--zc-font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--zc-ink);
}

/* --------------------------------- Hero ----------------------------------- */
.zc-hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.zc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .zc-hero__grid { grid-template-columns: 1fr; }
}

.zc-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 800;
  margin-block: 0.4em 0.35em;
}

.zc-hero__pitch {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--zc-ink-dim);
  max-width: 46ch;
  margin-bottom: 1.75em;
}

.zc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.zc-hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-inline: auto;
}

.zc-flowline {
  width: 100%;
  height: 100%;
}

.zc-flowline .weave-bg {
  fill: none;
  stroke: var(--zc-hairline);
  stroke-width: 1;
}

.zc-flowline .path-main {
  fill: none;
  stroke: var(--zc-cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(65, 214, 232, 0.45));
}

.zc-flowline .node {
  fill: var(--zc-canvas);
  stroke: var(--zc-cyan);
  stroke-width: 3;
}

.zc-flowline .endpoint {
  fill: var(--zc-gold);
  filter: drop-shadow(0 0 8px rgba(255, 194, 61, 0.6));
}

.zc-flowline .endpoint--start { fill: var(--zc-cyan); filter: drop-shadow(0 0 8px rgba(65, 214, 232, 0.6)); }

/* Draw-in animation */
.zc-flowline .path-main {
  stroke-dasharray: var(--zc-path-len, 1200);
  stroke-dashoffset: var(--zc-path-len, 1200);
  animation: zc-draw 1.85s var(--zc-ease) 0.15s forwards;
}
.zc-flowline .node,
.zc-flowline .endpoint {
  opacity: 0;
  animation: zc-fade-in 0.6s var(--zc-ease) forwards;
}
@keyframes zc-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes zc-fade-in {
  to { opacity: 1; }
}
/* Idle shimmer once drawn */
.zc-flowline.is-drawn .path-main {
  animation: zc-shimmer 5s ease-in-out infinite;
}
@keyframes zc-shimmer {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(65, 214, 232, 0.45)); }
  50% { filter: drop-shadow(0 0 18px rgba(65, 214, 232, 0.75)); }
}

@media (prefers-reduced-motion: reduce) {
  .zc-flowline .path-main { animation: none; stroke-dashoffset: 0; }
  .zc-flowline .node, .zc-flowline .endpoint { animation: none; opacity: 1; }
}

/* ------------------------------ Reveal-on-load ---------------------------- */
.zc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--zc-ease), transform 0.7s var(--zc-ease);
}
.zc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .zc-reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------- Sections -------------------------------- */
.zc-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.zc-section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.zc-section--border-top { border-top: 1px solid var(--zc-hairline-soft); }

.zc-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.zc-section__head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-top: 0.35em;
}

.zc-section__lede {
  color: var(--zc-ink-dim);
  max-width: 60ch;
}

/* --------------------------------- Cards ---------------------------------- */
.zc-card {
  background: var(--zc-panel);
  border: 1px solid var(--zc-hairline);
  border-radius: var(--zc-radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-color var(--zc-fast) var(--zc-ease), transform var(--zc-fast) var(--zc-ease), box-shadow var(--zc-fast) var(--zc-ease);
}
.zc-card:hover {
  border-color: var(--zc-cyan-deep);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6);
}

/* Featured game card (home) */
.zc-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 820px) {
  .zc-feature-card { grid-template-columns: 1fr; }
}

.zc-feature-card__badge {
  font-family: var(--zc-font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zc-canvas);
  background: var(--zc-gold);
  padding: 0.35em 0.85em;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1em;
}

.zc-feature-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5em;
}

.zc-feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25em 0;
}
.zc-tag {
  font-family: var(--zc-font-label);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zc-cyan);
  border: 1px solid var(--zc-hairline);
  border-radius: 999px;
  padding: 0.4em 0.85em;
}

/* Phone mockup / screenshot placeholder */
.zc-phone {
  position: relative;
  aspect-ratio: 9 / 19.5;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  background: linear-gradient(160deg, #10151f, #0a0e14);
  border: 1px solid var(--zc-hairline);
  border-radius: 32px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 45px -20px rgba(0, 0, 0, 0.75);
}
.zc-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--zc-canvas);
  border: 1px solid var(--zc-hairline-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.zc-phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.zc-phone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--zc-ink-faint);
  text-align: center;
  padding: 1.25rem;
}
.zc-phone__placeholder svg { width: 34px; height: 34px; opacity: 0.6; }
.zc-phone__placeholder .path {
  font-family: var(--zc-font-label);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  word-break: break-all;
  color: var(--zc-ink-faint);
}
.zc-phone__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 38%;
  height: 18px;
  background: #0a0e14;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.zc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.zc-gallery__item { text-align: center; }
.zc-gallery__label {
  margin-top: 1rem;
  font-family: var(--zc-font-label);
  font-size: 0.78rem;
  color: var(--zc-ink-dim);
}
.zc-gallery__label strong {
  display: block;
  font-family: var(--zc-font-display);
  color: var(--zc-ink);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15em;
}

/* -------------------------------- Feature list ----------------------------- */
.zc-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--zc-gap);
}

.zc-feature-list__item {
  border-top: 1px solid var(--zc-hairline);
  padding-top: 1.25rem;
}
.zc-feature-list__icon {
  width: 34px;
  height: 34px;
  color: var(--zc-cyan);
  margin-bottom: 1rem;
}
.zc-feature-list__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.zc-feature-list__item p {
  color: var(--zc-ink-dim);
  font-size: 0.96rem;
  margin: 0;
}

/* -------------------------------- Games grid ------------------------------- */
.zc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--zc-gap);
}

.zc-game-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.zc-game-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--zc-radius-md);
  background: linear-gradient(150deg, var(--zc-panel-raised), var(--zc-panel));
  border: 1px solid var(--zc-hairline-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.zc-game-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zc-game-card__thumb svg { width: 40%; height: 40%; opacity: 0.9; }
.zc-game-card--placeholder .zc-game-card__thumb {
  border-style: dashed;
}
.zc-game-card--placeholder {
  opacity: 0.7;
}
.zc-game-card h3 { font-size: 1.3rem; }
.zc-game-card p { color: var(--zc-ink-dim); font-size: 0.95rem; margin: 0; }
.zc-game-card__meta {
  font-family: var(--zc-font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zc-ink-faint);
}

/* -------------------------------- Prose (about) ---------------------------- */
.zc-prose {
  max-width: 52rem;
  margin-inline: auto;
}
.zc-prose p {
  color: var(--zc-ink-dim);
  font-size: 1.05rem;
}
.zc-prose h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--zc-ink);
  margin-bottom: 0.6em;
  margin-top: 1.6em;
}
.zc-prose h2:first-child { margin-top: 0; }
.zc-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zc-ink);
  margin-bottom: 0.5em;
  margin-top: 1.4em;
}

/* Code blocks — a distinct raised panel so they don't blend into the page. */
.zc-prose pre {
  background: #10161f;
  border: 1px solid var(--zc-hairline);
  border-left: 3px solid var(--zc-cyan);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 1.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--zc-font-label);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #d6e2ea;
  tab-size: 2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.zc-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}
.zc-prose pre::-webkit-scrollbar { height: 9px; }
.zc-prose pre::-webkit-scrollbar-thumb {
  background: var(--zc-hairline);
  border-radius: 999px;
}
.zc-prose pre::-webkit-scrollbar-thumb:hover { background: var(--zc-cyan-deep); }

/* Inline code — a small chip that reads as code without shouting. */
.zc-prose code {
  font-family: var(--zc-font-label);
  font-size: 0.85em;
  background: var(--zc-panel);
  border: 1px solid var(--zc-hairline-soft);
  border-radius: 6px;
  padding: 0.12em 0.42em;
  color: var(--zc-cyan);
}

/* -------------------------------- Footer ------------------------------- */
.zc-footer {
  border-top: 1px solid var(--zc-hairline-soft);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: auto;
}
.zc-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.zc-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--zc-font-display);
  font-weight: 700;
  color: var(--zc-ink);
}
.zc-footer__brand svg { width: 22px; height: 22px; }
.zc-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.zc-footer__nav a {
  font-family: var(--zc-font-label);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zc-ink-dim);
  transition: color var(--zc-fast) var(--zc-ease);
}
.zc-footer__nav a:hover { color: var(--zc-cyan); }
.zc-footer__meta {
  font-family: var(--zc-font-label);
  font-size: 0.72rem;
  color: var(--zc-ink-faint);
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zc-hairline-soft);
}

/* -------------------------------- Utility ------------------------------- */
.zc-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;
}

.zc-mt-0 { margin-top: 0; }
.zc-text-center { text-align: center; }

/* Staggered reveal delays (applied via inline style var too, this is fallback) */
.zc-reveal:nth-child(1) { transition-delay: 0ms; }
.zc-reveal:nth-child(2) { transition-delay: 80ms; }
.zc-reveal:nth-child(3) { transition-delay: 160ms; }
.zc-reveal:nth-child(4) { transition-delay: 240ms; }
.zc-reveal:nth-child(5) { transition-delay: 320ms; }
