/* Kimss site — Aurora design system (canonical marketing tokens + shared components)
 * Used by all public marketing/legal pages. Homepage keeps landing-redesign.css for
 * page-specific layout; acquisition pages keep acquisition-pages.css mapped to these tokens.
 */
:root {
  --au-bg: #05060f;
  --au-bg-2: #0a0c1d;
  --au-surface: rgba(255, 255, 255, 0.035);
  --au-surface-2: rgba(255, 255, 255, 0.06);
  --au-line: rgba(139, 124, 246, 0.16);
  --au-line-strong: rgba(139, 124, 246, 0.38);
  --au-text: #f7f8ff;
  --au-muted: #c8cee8;
  --au-dim: #9aa3c4;
  --au-violet: #8b5cf6;
  --au-indigo: #818cf8;
  --au-cyan: #22d3ee;
  --au-grad: linear-gradient(100deg, #c4b5fd 0%, #818cf8 38%, #22d3ee 100%);
  --au-font-display: "Space Grotesk", Inter, system-ui, sans-serif;
  --au-font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --au-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --au-radius: 16px;
  --au-max: 1200px;
  --au-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --au-shadow: 0 12px 40px rgba(5, 6, 15, 0.55);

  /* Aliases for acquisition / legacy class names */
  --bg: var(--au-bg);
  --panel: var(--au-bg-2);
  --line: var(--au-line-strong);
  --text: var(--au-text);
  --muted: var(--au-muted);
  --violet: var(--au-violet);
  --cyan: var(--au-cyan);
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--au-bg);
  color: var(--au-text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--au-font-body);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(99, 102, 241, 0.14), transparent 60%),
    radial-gradient(900px 600px at 0% 35%, rgba(139, 92, 246, 0.08), transparent 55%),
    radial-gradient(1000px 800px at 100% 80%, rgba(34, 211, 238, 0.05), transparent 60%),
    var(--au-bg);
  color: var(--au-text);
  line-height: 1.6;
  overflow-x: clip;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

a {
  color: var(--au-cyan);
  transition: color 0.2s var(--au-ease);
}

a:hover {
  color: #a5f3fc;
}

:focus-visible {
  outline: 2px solid var(--au-cyan);
  outline-offset: 3px;
}

/* ---- Shared layout ---- */
.site-wrap,
.au-wrap {
  max-width: var(--au-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.site-section {
  padding: clamp(64px, 8vw, 110px) 0;
  position: relative;
}

.site-kicker,
.au-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--au-line);
  background: rgba(139, 92, 246, 0.07);
  color: #c4b5fd;
  font-family: var(--au-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-h1,
.site-h2 {
  font-family: var(--au-font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--au-text);
  margin: 0 0 1rem;
}

.site-h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.site-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.site-grad,
.au-h1-grad {
  background: var(--au-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-lede {
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--au-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

/* ---- Buttons ---- */
.site-btn,
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--au-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--au-ease), box-shadow 0.25s var(--au-ease), background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-btn:focus-visible,
.au-btn:focus-visible {
  outline: 2px solid var(--au-cyan);
  outline-offset: 3px;
}

.site-btn-primary,
.au-btn-primary {
  background: linear-gradient(120deg, #6366f1, #22d3ee);
  color: #05060f;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.22);
}

.site-btn-primary:hover,
.au-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.3);
  color: #05060f;
}

.site-btn-ghost,
.au-btn-ghost {
  background: rgba(129, 140, 248, 0.08);
  border-color: var(--au-line-strong);
  color: var(--au-text);
}

.site-btn-ghost:hover,
.au-btn-ghost:hover {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
  color: var(--au-text);
}

.site-btn::after,
.au-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s var(--au-ease);
  pointer-events: none;
}

.site-btn:hover::after,
.au-btn:hover::after {
  transform: translateX(120%);
}

/* ---- Cards ---- */
.site-card,
.au-card {
  background: var(--au-surface);
  border: 1px solid var(--au-line);
  border-radius: var(--au-radius);
  padding: 1.35rem 1.4rem;
  transition: transform 0.3s var(--au-ease), border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-card:hover,
.au-card:hover {
  transform: translateY(-4px);
  border-color: var(--au-line-strong);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
}

/* ---- Comparison / data tables ---- */
.site-table-wrap {
  overflow-x: auto;
  border-radius: var(--au-radius);
  border: 1px solid var(--au-line);
  background: var(--au-surface);
  box-shadow: var(--au-shadow);
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.site-table th,
.site-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--au-line);
}

.site-table thead th {
  background: rgba(99, 102, 241, 0.22);
  color: var(--au-text);
  font-family: var(--au-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.site-table thead th:first-child {
  background: rgba(5, 6, 15, 0.85);
}

.site-table tbody tr:nth-child(even) {
  background: rgba(139, 92, 246, 0.04);
}

.site-table tbody tr:hover {
  background: rgba(129, 140, 248, 0.08);
}

.site-table tbody tr:last-child td {
  border-bottom: none;
}

.site-table a {
  color: var(--au-indigo);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Callout / note ---- */
.site-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--au-line);
  background: rgba(129, 140, 248, 0.08);
  color: var(--au-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.site-callout strong {
  color: var(--au-text);
}

/* ---- Unified footer (au-footer is canonical; acq-footer aliased) ---- */
.au-footer,
.acq-footer,
.kimss-footer,
.ins-footer {
  margin-top: 64px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--au-line);
  background: linear-gradient(180deg, transparent, rgba(10, 12, 29, 0.85));
  color: var(--au-muted);
}

.au-footer-grid,
.acq-footer-inner,
.kimss-footer-inner {
  max-width: var(--au-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.au-footer-logo,
.acq-footer-logo,
.ins-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--au-font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: #c4b5fd;
  text-decoration: none;
}

.au-footer-logo:hover,
.acq-footer-logo:hover {
  color: #e9d5ff;
}

.au-footer-logo svg,
.acq-footer-logo svg,
.kimss-logo-mark {
  display: block;
  flex-shrink: 0;
  height: 28px;
  width: auto;
  overflow: visible;
}

.au-footer-brand p,
.acq-footer-brand p {
  margin: 14px 0 0;
  max-width: 280px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--au-dim);
}

.au-footer-heading,
.acq-footer-heading {
  font-family: var(--au-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--au-indigo);
  margin-bottom: 14px;
}

.au-footer-links,
.acq-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.au-footer-links li,
.acq-footer-links li {
  margin-bottom: 10px;
}

.au-footer-links a,
.acq-footer-links a {
  color: var(--au-muted);
  text-decoration: none;
  font-size: 0.925rem;
}

.au-footer-links a:hover,
.acq-footer-links a:hover {
  color: var(--au-cyan);
}

.au-footer-bottom,
.acq-footer-bottom {
  max-width: var(--au-max);
  margin: 2rem auto 0;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem) 0;
  border-top: 1px solid rgba(139, 124, 246, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--au-dim);
}

.au-footer-bottom a,
.acq-footer-bottom a {
  color: var(--au-muted);
  text-decoration: none;
  margin-left: 1rem;
}

.au-footer-bottom a:hover,
.acq-footer-bottom a:hover {
  color: var(--au-cyan);
}

@media (max-width: 860px) {
  .au-footer-grid,
  .acq-footer-inner,
  .kimss-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .au-footer-grid,
  .acq-footer-inner,
  .kimss-footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---- Scroll reveal states ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--au-ease), transform 0.65s var(--au-ease);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="left"] {
  transform: translateX(-22px);
}

[data-reveal="right"] {
  transform: translateX(22px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--au-ease), transform 0.55s var(--au-ease);
}

[data-reveal-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.04s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.08s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.12s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.16s; }
[data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.2s; }
[data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.24s; }
[data-reveal-stagger].is-revealed > *:nth-child(7) { transition-delay: 0.28s; }
[data-reveal-stagger].is-revealed > *:nth-child(8) { transition-delay: 0.32s; }
[data-reveal-stagger].is-revealed > *:nth-child(9) { transition-delay: 0.36s; }
[data-reveal-stagger].is-revealed > *:nth-child(n+10) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
