/* ============================================================
   AiSysLabs — shared design tokens
   Slate-900 + sky-blue. Blue→teal gradient reserved for WORDMARK only.
   ============================================================ */

:root {
  /* Slate surface field (shipped palette) */
  --slate-950: #080d1a;
  --slate-900: #0f172a;
  --slate-850: #15203a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Sky accent (interaction / emphasis) */
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;

  /* Brand wordmark gradient — ONLY for the AiSysLabs logotype */
  --brand-blue: #3b82f6;
  --brand-teal: #2dd4bf;

  /* Semantic */
  --live: #34d399;       /* emerald — "live" status */
  --live-dim: rgba(52, 211, 153, .14);

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Spacing scale (8pt-ish) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Radius scale */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 32px; --r-pill: 999px;

  /* Shadow scale (calibrated for dark field — no AI "glow") */
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, .4);
  --shadow-md: 0 8px 24px -8px rgba(2, 6, 23, .5);
  --shadow-lg: 0 28px 60px -22px rgba(2, 6, 23, .7);
  --shadow-inset-light: 0 1px 0 rgba(255,255,255,.7) inset, 0 24px 50px -24px rgba(2,6,23,.55);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--slate-900);
  color: var(--slate-200);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--sky-400);
  color: var(--slate-950);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, var(--shadow-md);
}
.btn-primary:hover { background: var(--sky-300); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--slate-100);
  border-color: rgba(148,163,184,.35);
}
.btn-ghost:hover { border-color: var(--slate-300); background: rgba(148,163,184,.08); }

/* ---- Focus rings (a11y) ---- */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Eyebrow / mono labels ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 500;
}

/* ---- Wordmark gradient (the ONLY place gradient text is allowed) ---- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(92deg, var(--brand-blue), var(--brand-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Status pill ---- */
.pill-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
  color: var(--live); background: var(--live-dim);
  padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
  border: 1px solid rgba(52,211,153,.25);
}
.pill-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}
.pill-soon {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500;
  color: var(--slate-400); background: rgba(148,163,184,.08);
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(148,163,184,.16);
}

/* ---- Image placeholder convention (striped + mono label) ---- */
.ph {
  position: relative;
  background-color: var(--slate-800);
  background-image: repeating-linear-gradient(
    -45deg, rgba(148,163,184,.07) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(148,163,184,.28);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--slate-500);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  text-align: center; padding: var(--s-4);
}

/* ---- Scroll reveal (progressive enhancement — content ALWAYS visible) ----
   Note: only opacity/transform via a short transition; base state is fully
   visible so content can never get stuck hidden if transitions don't run. */
.js-reveal [data-reveal] {
  opacity: 1;
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal [data-reveal].pre {
  opacity: 0;
  transform: translateY(16px);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .btn:hover { transform: none; }
}
