/* ============================================================================
   team-landing — page styles
   Dark-first. Colour comes entirely from brand tokens (tokens.base.css +
   theme-default.css / Cherenkov). This file only adds layout, type, spacing,
   and component shells that reference those tokens — never hardcoded hues.
   ============================================================================ */

/* ---- local design tokens (non-colour) --------------------------------- */
:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code",
    Menlo, Consolas, monospace;

  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --step: clamp(64px, 9vw, 128px);   /* vertical rhythm between sections */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset-ish --------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

/* ---- layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--step); position: relative; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.section-head { max-width: 880px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--fg-muted); font-size: 1.06rem; margin: 16px 0 0; max-width: 64ch; }

.grad-text {
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 42%, transparent);
}

/* ---- buttons ----------------------------------------------------------- */
.btn {
  --_pad: 13px 22px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--_pad);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover { background: var(--btn-bg-hover); box-shadow: var(--btn-shadow-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { --_pad: 9px 16px; font-size: 0.9rem; }

/* ---- header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 68px;
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em;
}
.brand-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad-main);
  box-shadow: 0 0 22px -2px var(--glow);
  flex: none;
}

/* ---- brand logo (fusion mark — colour-agnostic via currentColor) ------- */
.brand-logo {
  width: 52px; height: 52px; flex: none;
  display: inline-grid; place-items: center;
  color: var(--accent);              /* nuclear blue on dark; adapts per theme */
}
.brand-logo .logo-mark {
  width: 100%; height: 100%;
}
/* nucleus stays static & defined (no pulse — it read as a glow) */
.lm-rays { transform-box: fill-box; transform-origin: center; animation: lm-pulse 3.2s ease-in-out infinite; }
.lm-ring  { transform-box: fill-box; transform-origin: center; animation: lm-spin 16s linear infinite; }
.lm-orbit { transform-box: fill-box; transform-origin: center; animation: lm-spin 10s linear infinite; }
@keyframes lm-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: 0.82; } }
@keyframes lm-spin  { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a {
  font-size: 0.94rem; color: var(--fg-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border); color: var(--fg-muted);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.icon-btn:hover { color: var(--fg); border-color: var(--accent); }
.lang-switch {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--fg-muted); cursor: pointer;
  background: transparent; transition: all 0.2s var(--ease);
}
.lang-switch:hover { color: var(--fg); border-color: var(--accent); }
.nav-toggle { display: none; }

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(70px, 12vw, 130px); padding-bottom: var(--step); overflow: hidden; }
.hero::before {
  /* atmospheric glow field */
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 80vh;
  background:
    radial-gradient(52% 40% at 20% 12%, color-mix(in srgb, var(--ramp-1) 26%, transparent), transparent 70%),
    radial-gradient(46% 42% at 82% 8%, color-mix(in srgb, var(--ramp-3) 24%, transparent), transparent 72%);
  filter: blur(20px);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  font-size: 0.82rem; color: var(--fg-muted); margin-bottom: 26px;
}
.hero-badge .pill {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  max-width: 24ch;
  margin: 0 auto 24px;
  text-wrap: balance;
}
.hero-lede {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero-note { font-size: 0.86rem; color: var(--fg-muted); margin-left: 4px; }

/* ---- generic card ------------------------------------------------------ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); box-shadow: var(--shadow); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--fg-muted); margin: 0; font-size: 0.98rem; }

.card-ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.card-ico svg { width: 22px; height: 22px; }

/* ---- values ------------------------------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---- logo wall (REUSABLE: technologies now, clients later) ------------- */
/* Full-colour logo wall. Each logo is a masked glyph filled with its own brand
   colour (per-logo inline `--brand`; near-black brands fall back to var(--fg) so
   they stay legible on dark). Hover just grows the mark. Brand hues live inline
   as data, never in this file — styles.css stays hue-free. */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 38px);
}
.logo {
  position: relative;
  width: 34px; height: 34px; flex: none;
  cursor: pointer;
}
/* the glyph itself — masked so the mask can't clip the tooltip below */
.logo::before {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--brand, var(--fg-muted));
  -webkit-mask-image: var(--logo); mask-image: var(--logo);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: transform 0.28s var(--ease);
}
.logo:hover::before {
  transform: scale(1.5) translateY(-3px);
}
/* text fallback tile (e.g. AWS — no trademark-clear logo available) */
.logo--text {
  width: auto; height: 34px;
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.01em; text-transform: lowercase;
  color: var(--fg-muted);
  transition: color 0.28s var(--ease), transform 0.28s var(--ease);
}
.logo--text::before { display: none; }
.logo--text:hover { color: var(--fg); transform: scale(1.3); }
/* full-colour tile (e.g. Playwright — only a colour logo exists; shown as-is) */
.logo--color {
  background: center / contain no-repeat var(--logo);
  transition: transform 0.28s var(--ease);
}
.logo--color::before { display: none; }
.logo--color:hover { transform: scale(1.5) translateY(-3px); }

/* ---- services ---------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service .card-ico { margin-bottom: 20px; }
.service ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li {
  font-size: 0.8rem; color: var(--fg-muted);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-alt);
}

/* ---- products ---------------------------------------------------------- */
.product { display: flex; flex-direction: column; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.badge {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge--beta   { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.badge--dev    { color: var(--warn);   background: color-mix(in srgb, var(--warn) 14%, transparent);   border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge--soon   { color: var(--fg-muted); background: var(--bg-alt); border-color: var(--border); }
.badge--live   { color: var(--ok);     background: color-mix(in srgb, var(--ok) 14%, transparent);     border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.product .meta { margin-top: auto; padding-top: 18px; font-size: 0.8rem; color: var(--fg-muted); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
.product .meta .lock { width: 13px; height: 13px; opacity: 0.7; }

/* Product shelf — one card holding small per-product cards (logo + name + blurb) */
.product-shelf { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-card {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg); color: inherit; text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
a.mini-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--bg-alt); transform: translateY(-3px); }
.mini-head { display: flex; align-items: center; gap: 10px; }
.mini-logo { width: 26px; height: 26px; flex: 0 0 auto; border-radius: 6px; }
.mini-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--fg); }
.mini-head .badge { margin-left: auto; }
.mini-card p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--fg-muted); }
.mini-card--soon { border-style: dashed; }
@media (max-width: 720px) { .shelf-grid { grid-template-columns: 1fr; } }

/* products teaser (pre-launch state until real products are locked) */
.products-teaser {
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 64px) var(--gutter);
  background:
    radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--bg-elev);
}
.teaser-ico {
  width: 54px; height: 54px; border-radius: 14px;
  display: inline-grid; place-items: center; margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.teaser-ico svg { width: 26px; height: 26px; }
.products-teaser h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.products-teaser p { color: var(--fg-muted); font-size: 1.02rem; max-width: 52ch; margin: 0 auto 22px; }

/* ---- about ------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.about p { color: var(--fg-muted); font-size: 1.06rem; }
.about p + p { margin-top: 16px; }
.pledge {
  border-left: 2px solid var(--accent);
  padding: 20px 24px;
  background: var(--bg-elev);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.02rem;
}
.pledge strong { color: var(--fg); }

/* ---- contact / cta ----------------------------------------------------- */
.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(44px, 7vw, 80px) var(--gutter);
  background:
    radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg-elev);
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--fg-muted); font-size: 1.08rem; max-width: 48ch; margin: 18px auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-sub { margin-top: 20px; font-size: 0.88rem; color: var(--fg-muted); }
.cta-sub a { color: var(--accent); }

/* ---- footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-grid p { color: var(--fg-muted); font-size: 0.88rem; margin: 0; }
.footer-note { font-size: 0.82rem; color: var(--fg-muted); opacity: 0.8; }

/* ---- reveal-on-scroll -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo:hover::before, .logo--text:hover, .logo--color:hover { transform: none; }
  .lm-nucleus, .lm-rays, .lm-ring, .lm-orbit { animation: none; }
  body::after, .scroll-progress { animation: none; }
  .btn-primary::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- centered text (page-wide) ----------------------------------------- */
/* Center all body copy & headings. Fixed-width icons need margin-auto (not just
   text-align); constrained-width paragraphs center via margin-inline. */
.section-head { text-align: center; margin-inline: auto; }
.section-head p { margin-inline: auto; }

.card { text-align: center; }
.card-ico { margin-inline: auto; }

.service ul { justify-content: center; }

.about-grid { text-align: center; }
.pledge { border-left: none; border-top: 2px solid var(--accent); border-radius: 0 0 var(--r-md) var(--r-md); }

/* ============================================================================
   DESIGN POLISH — ambient background, motion & micro-interactions
   All colour via brand tokens; every animation is disabled under
   prefers-reduced-motion (see the block at the very end of this file).
   ============================================================================ */

/* ---- ambient background (fixed, behind all content) -------------------- */
/* Two fixed layers sit at z-index:-1 — above the solid body canvas, below every
   section. Transparent sections (.section, not --alt) reveal them; the opaque
   --alt panels read as solid bands, giving an airy/solid rhythm down the page. */
body::before {                 /* fine "blueprint" engineering grid */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1px) 0 0 / 58px 58px,
    linear-gradient(90deg, color-mix(in srgb, var(--fg) 9%, transparent) 1px, transparent 1px) 0 0 / 58px 58px;
  -webkit-mask-image: radial-gradient(145% 105% at 50% -8%, #000 0%, transparent 84%);
          mask-image: radial-gradient(145% 105% at 50% -8%, #000 0%, transparent 84%);
}
body::after {                  /* soft drifting aurora glow */
  content: "";
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 34% at 16% 10%, color-mix(in srgb, var(--ramp-2) 34%, transparent), transparent 62%),
    radial-gradient(44% 38% at 86% 16%, color-mix(in srgb, var(--ramp-3) 28%, transparent), transparent 64%),
    radial-gradient(56% 46% at 50% 106%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 66%);
  filter: blur(30px);
  animation: aurora-drift 24s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

/* anchored headings clear the sticky header */
section[id] { scroll-margin-top: 84px; }

/* ---- scroll progress bar ---------------------------------------------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-main);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: sp-grow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes sp-grow { to { transform: scaleX(1); } }
}

/* ---- glowing section dividers (top of every alt panel) ---------------- */
.section--alt { position: relative; }
.section--alt::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), var(--maxw)); height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--accent) 55%, transparent), transparent);
}

/* ---- cursor-tracked spotlight on cards & panels ----------------------- */
/* JS feeds --mx/--my (pointer position). The glow sits at z-index:-1 inside an
   isolated stacking context: above the panel's own fill, beneath its text. */
.card, .products-teaser, .cta {
  position: relative; isolation: isolate; overflow: hidden;
}
.card::after, .products-teaser::after, .cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, -20%),
    color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover::after, .products-teaser:hover::after, .cta:hover::after { opacity: 1; }

/* ---- primary button sheen sweep --------------------------------------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent,
    color-mix(in srgb, var(--btn-fg) 42%, transparent), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { left: 140%; }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-tools .btn-primary { display: none; }   /* CTA lives in the hero + contact on mobile */
  .nav { justify-content: space-between; gap: 12px; }  /* logo left, tools right */
  .brand-logo { width: 44px; height: 44px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
}
