/* Vidyn.AI design system — tokens + components, derived from the logo mark.
   The mark is four flat colors drawn as thick strokes with round caps on a
   near-white ground. So: circular geometry, generous radii, no gradients,
   no shadows doing decorative work, and the four colors used as CATEGORICAL
   marks — never as body text. Retune here; index.html only lays out. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ground + ink, sampled off the mark's paper */
  --bg: #fcfcfc; /* the logo art's own paper — the mark PNG is opaque, so this
                    value has to match it or the mark shows as a pale box */
  --surface: #ffffff;
  --surface-2: #f2f2f0;
  --ink: #1c1b1a;
  --ink-70: color-mix(in srgb, var(--ink) 70%, transparent);
  --ink-55: color-mix(in srgb, var(--ink) 55%, transparent);
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 22%, transparent);

  /* the four brand colors — mark values */
  --red: #e8483c;
  --amber: #f7b33f;
  --green: #43a863;
  --blue: #4b87e8;

  /* text-safe steps of the same four (≥4.5:1 on --bg) — use these whenever
     a brand color has to carry small type */
  --red-ink: #b3271c;
  --amber-ink: #8a5a00;
  --green-ink: #1c7a44;
  --blue-ink: #1f5cc0;

  /* tinted grounds for chips and panels */
  --red-tint: #fdecea;
  --amber-tint: #fef4e3;
  --green-tint: #e8f5ec;
  --blue-tint: #ebf1fd;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-md: 0 6px 20px color-mix(in srgb, var(--ink) 8%, transparent);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin: 0 0 var(--space-3); }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--blue-ink); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: color-mix(in srgb, var(--amber) 45%, transparent); }

.text-muted { color: var(--ink-70); }

/* — the four-color rule: the logo's palette as a piece of structure — */
.brandbar { display: flex; gap: 4px; height: 5px; }
.brandbar span { flex: 1; border-radius: var(--radius-pill); }
.brandbar span:nth-child(1) { background: var(--red); }
.brandbar span:nth-child(2) { background: var(--amber); }
.brandbar span:nth-child(3) { background: var(--green); }
.brandbar span:nth-child(4) { background: var(--blue); }

.hr { height: 1px; border: 0; margin: 0; background: var(--line); }

/* — buttons: pills, matching the mark's round caps — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2;
  color: var(--ink); background: transparent;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  padding: 11px 20px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.btn-secondary { border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-ink); }
.btn-invert { background: var(--bg); color: var(--ink); }
.btn-invert:hover { background: #fff; }
.btn-outline-invert { border-color: color-mix(in srgb, #fff 45%, transparent); color: var(--bg); }
.btn-outline-invert:hover { background: color-mix(in srgb, #fff 12%, transparent); border-color: #fff; }

/* — chips — */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-70);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-red    { background: var(--red-tint);   color: var(--red-ink); }
.chip-amber  { background: var(--amber-tint); color: var(--amber-ink); }
.chip-green  { background: var(--green-tint); color: var(--green-ink); }
.chip-blue   { background: var(--blue-tint);  color: var(--blue-ink); }

/* — cards — */
.card {
  display: flex; flex-direction: column;
  padding: var(--space-8);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.card-body { margin: 0; font-size: 15.5px; color: var(--ink-70); }

/* — nav — */
.nav { display: flex; align-items: center; gap: var(--space-6); }
/* :not(.btn) — a .btn inside the nav keeps its own color, which this rule
   would otherwise outrank (ink on ink = invisible label) */
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--blue-ink); }

/* — spec table — */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  text-align: left; font-weight: 500; color: var(--ink-70);
  padding: 13px 0; border-bottom: 1px solid var(--line); width: 45%;
}
.table td {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500;
}
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
