/* Vela Drop — shared styles
   Brand: Manrope (headings), Inter (body), JetBrains Mono (code)
   Palette derived from the Vela Intelligence site. */

:root {
  --deep: #081937;
  --canvas: #07214d;
  --blue: #4d87e6;
  --blue-deep: #2f6ad0;
  --ink: #14142b;
  --body: #43434f;
  --muted: #8a8b93;
  --line: #e6e8eb;
  --panel: #f7f8fa;
  --bg: #ffffff;
  --green: #00875d;
  --amber: #c67c00;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 68rem;
  --shadow: 0 1px 2px rgba(8, 25, 55, 0.04), 0 8px 28px rgba(8, 25, 55, 0.07);
  --shadow-lg: 0 2px 4px rgba(8, 25, 55, 0.05), 0 24px 60px rgba(8, 25, 55, 0.13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --deep: #eaf0fb;
    --canvas: #d7e4fa;
    --blue: #7fa9f0;
    --blue-deep: #9dbdf5;
    --ink: #f2f5fa;
    --body: #b9c5d8;
    --muted: #8595ad;
    --line: #1c3358;
    --panel: #0b2249;
    --bg: #061733;
    --green: #45c295;
    --amber: #e0a344;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 28px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.033em;
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}
h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--blue-deep);
  text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

code,
kbd,
pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875em;
}

code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.4em;
  color: var(--ink);
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 0 0 1.2em;
  line-height: 1.6;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8125rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ---------- Layout ---------- */

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

.narrow {
  max-width: 46rem;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.eyebrow {
  font-family: Manrope, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  color: var(--body);
  max-width: 40rem;
}

/* ---------- Header / footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg {
  display: block;
  flex: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
}
.nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-header .wrap {
    gap: 0.75rem;
    padding-inline: 1rem;
  }
  .nav {
    gap: 0.9rem;
    font-size: 0.82rem;
  }
  .nav .nav-hide-sm {
    display: none;
  }
  .brand {
    font-size: 0.95rem;
    gap: 0.45rem;
  }
}

/* Below this the two nav labels no longer fit beside the wordmark. */
@media (max-width: 400px) {
  .brand span.brand-text {
    display: none;
  }
  .nav {
    gap: 1.1rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}
.site-footer .spacer {
  margin-left: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s,
    transform 0.1s;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--blue-deep) 85%, #000);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--muted);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* ---------- Cards & grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.55rem;
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .num {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
  display: block;
  margin-bottom: 0.7rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
}

.note {
  border-left: 3px solid var(--blue);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  font-size: 0.94rem;
  margin: 0 0 1.5rem;
}
.note p:last-child {
  margin-bottom: 0;
}
.note strong {
  color: var(--ink);
}

/* ---------- Pills / meta ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--body);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
}
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  min-width: 34rem;
}
th,
td {
  text-align: left;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Mockups ---------- */

.mock {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg);
  overflow: hidden;
}

.mock-caption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 0.9rem 0 0;
}

/* ---------- Forms ---------- */

label {
  display: block;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
textarea {
  min-height: 8rem;
  resize: vertical;
}

.field {
  margin-bottom: 1.15rem;
}
.hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
