/* =====================================================================
   Synthera Systems — crafted 1:1 to ColorPong's identity
   Pure black · DM Sans hairline headings · DM Mono labels · ghost pills
   Monochrome chrome — all colour comes from the generative art.
   ===================================================================== */

:root {
  --bg:      #000000;
  --bg-2:    #050608;
  --surface: rgba(255, 255, 255, 0.022);
  --surface-2: rgba(255, 255, 255, 0.04);
  --ink:     #D5DBE6;   /* headings + primary text */
  --muted:   #8990A0;   /* secondary */
  --faint:   #565D6C;   /* tertiary */
  --line:    rgba(213, 219, 230, 0.10);
  --line-2:  rgba(213, 219, 230, 0.22);

  /* art spectrum (used by CSS accents sparingly; the canvas owns the colour) */
  --teal:   #23E0A6;
  --cyan:   #2FC9E6;
  --indigo: #5B6CFF;
  --violet: #8A5CFF;
  --magenta:#C45BE0;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 100;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #000; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* --- Shared section heading (mono eyebrow + hairline title) ----------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.section-head { text-align: center; max-width: 46ch; margin-inline: auto; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section-head .eyebrow { display: block; margin-bottom: 1.1rem; }
.section-title {
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.035em; color: var(--ink);
  text-wrap: balance;
}
.section-lead { margin-top: 1.2rem; color: var(--muted); font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); line-height: 1.7; }

/* --- Buttons (ghost / filled pills) ----------------------------------- */
.btn {
  --bh: 3rem;
  display: inline-flex; align-items: center; gap: 0.5em;
  height: var(--bh); padding-inline: 1.75rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.005em; cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
              border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--lg { --bh: 3.3rem; padding-inline: 2rem; }
.btn--primary { background: var(--ink); color: #05070B; border-color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); background: #fff; border-color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(0.985); }

/* --- Background canvases ----------------------------------------------- */
.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* --- Nav (logo left · links centre · cta right) ----------------------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease); border-bottom: 1px solid transparent; }
.nav[data-scrolled] { background: rgba(0,0,0,0.7); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 1rem var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; justify-self: start; }
.brand__mark {
  width: 17px; height: 17px; border-radius: 50%;
  background:
    radial-gradient(circle at 28% 30%, var(--teal), transparent 55%),
    radial-gradient(circle at 75% 72%, var(--magenta), transparent 58%),
    var(--indigo);
}
.brand__word { font-family: var(--font-sans); font-weight: 500; letter-spacing: 0.16em; font-size: 0.92rem; }
.nav__links { display: flex; gap: 1.7rem; justify-self: center; }
.nav__links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { justify-self: end; --bh: 2.5rem; padding-inline: 1.25rem; font-size: 0.88rem; }

/* --- Hero (centred) ---------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; isolation: isolate; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(46% 42% at 50% 47%, rgba(0,0,0,0.5), transparent 72%),
  radial-gradient(120% 92% at 50% 45%, transparent 52%, rgba(0,0,0,0.4) 82%, var(--bg) 100%),
  linear-gradient(0deg, var(--bg) 1%, transparent 26%); }
.hero__inner { position: relative; z-index: 2; padding-block: 8rem 6rem; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5rem);
  line-height: 1.07; letter-spacing: -0.04em; color: var(--ink);
  text-wrap: balance; max-width: 16ch;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
}
.hero__title em { font-style: normal; color: #fff; }
.hero__lead { margin-top: 1.6rem; max-width: 50ch; color: #C2C9D6; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); line-height: 1.65; text-shadow: 0 1px 22px rgba(0, 0, 0, 0.6); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.hero__stats { margin-top: 4rem; display: flex; flex-wrap: wrap; gap: 2.5rem 3.5rem; justify-content: center; }
.hero__stat { text-align: center; }
.hero__stat b { display: block; font-family: var(--font-sans); font-weight: 300; font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); }
.hero__stat span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.hero__hint { position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; translate: -50% 0; }
.hero__hint span { display: block; width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); opacity: 0.5; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { opacity: 0; transform: scaleY(0.2); transform-origin: top; } 40% { opacity: 0.6; } 100% { opacity: 0; transform: scaleY(1); transform-origin: top; } }

/* --- Capabilities (centred head + 3 columns + data sphere) ------------ */
.cap { padding-block: clamp(5.5rem, 11vw, 9.5rem); }
.cap__viz { position: relative; aspect-ratio: 16 / 10; max-width: 560px; margin: 0 auto clamp(3rem, 6vw, 5rem); }
.cap__canvas { width: 100%; height: 100%; }
.cap__cols { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); max-width: 980px; margin-inline: auto; }
@media (min-width: 760px) { .cap__cols { grid-template-columns: repeat(3, 1fr); } }
.cap__col { text-align: center; }
.cap__col .eyebrow { display: block; margin-bottom: 1rem; }
.cap__col h3 { font-family: var(--font-sans); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.cap__col p { margin-top: 0.7rem; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

/* --- Approach (numbered sequence — ColorPong's PROCESS block) --------- */
.approach { padding-block: clamp(5.5rem, 11vw, 9.5rem); border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; max-width: 1000px; margin-inline: auto; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--bg); padding: 2.2rem 1.8rem 2.4rem; transition: background-color 0.3s var(--ease); }
.step:hover { background: rgba(255,255,255,0.025); }
.step__no { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); display: block; margin-bottom: 2.4rem; }
.step h3 { font-family: var(--font-sans); font-weight: 300; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); }
.step p { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Systems / what we build ------------------------------------------ */
.systems { padding-block: clamp(5.5rem, 11vw, 9.5rem); border-top: 1px solid var(--line); }
.systems__grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 760px) { .systems__grid { grid-template-columns: 1fr 1fr; } }
.syscard { background: var(--bg); padding: 2.2rem 2.1rem 2.4rem; position: relative; overflow: hidden; transition: background-color 0.35s var(--ease); }
.syscard::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(91,108,255,0.14), transparent 65%); opacity: 0; transition: opacity 0.45s var(--ease); pointer-events: none; }
.syscard:hover { background: rgba(255,255,255,0.025); }
.syscard:hover::after { opacity: 1; }
@media (min-width: 760px) { .syscard--wide { grid-column: span 2; } }
.syscard h3 { font-family: var(--font-sans); font-weight: 300; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.syscard p { margin-top: 0.7rem; color: var(--muted); max-width: 56ch; line-height: 1.6; }

/* --- Wordmark band (halftone) ----------------------------------------- */
.band { position: relative; height: clamp(170px, 27vw, 320px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.band__canvas { width: 100%; height: 100%; }

/* --- CTA --------------------------------------------------------------- */
.cta { position: relative; isolation: isolate; padding-block: clamp(6.5rem, 14vw, 12rem); overflow: hidden; text-align: center; }
.cta__scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 100% at 50% 130%, transparent 28%, rgba(0,0,0,0.5) 68%, var(--bg) 100%); }
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-family: var(--font-sans); font-weight: 300; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.7rem); line-height: 1.08; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; max-width: 18ch; }
.cta__lead { margin-top: 1.4rem; max-width: 50ch; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.cta__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* --- Footer ------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding-block: 3rem; }
.foot__inner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .foot__inner { grid-template-columns: 1.4fr 1fr auto; align-items: center; } }
.foot__brand .brand__word { font-size: 1.02rem; }
.foot__brand p { margin-top: 0.5rem; color: var(--faint); font-size: 0.9rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot__nav a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.foot__nav a:hover { color: var(--ink); }
.foot__legal { color: var(--faint); font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* --- Reveal motion (progressive enhancement, never hides permanently) - */
html.has-js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); will-change: opacity, transform; }
html.has-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__hint span { animation: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: 1fr auto; }
}
