/* AlephVec Labs - site styles. Static, no build step, no third-party requests. */
:root {
  --bg: #0b1017;
  --bg-2: #101722;
  --card: #151e29;
  --card-hi: #1c2733;
  --line: #253140;
  --text: #e9eef5;
  --dim: #95a3b3;
  --faint: #6b7a8b;
  --cyan: #2a9fbd;
  --cyan-hi: #55c6e0;
  --copper: #cf8a45;
  --copper-hi: #e6a565;
  --ok: #3ddc84;
  --warn: #ffb300;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #16243300 0%, transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 23, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { display: block; font-weight: 500; color: var(--faint); font-size: 12px; letter-spacing: .4px; line-height: 1.1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--dim); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.eyebrow { color: var(--cyan-hi); font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.5px; }
h1 .accent { color: var(--copper-hi); }
.lede { color: var(--dim); font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 0 0 28px; }
.rule { width: 72px; height: 4px; border-radius: 2px; background: var(--copper); margin: 0 0 22px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px; font-weight: 650; font-size: 15px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.btn:hover { text-decoration: none; background: var(--card-hi); border-color: #33424f; }
.btn.primary { background: var(--cyan); border-color: var(--cyan); color: #04121a; }
.btn.primary:hover { background: var(--cyan-hi); border-color: var(--cyan-hi); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- sections ---------- */
section { padding: 40px 0; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; letter-spacing: -.2px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.section-lede { color: var(--dim); margin: 0 0 26px; max-width: 680px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card p { color: var(--dim); margin: 0; }
.card p + p { margin-top: 10px; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--card-hi); color: var(--cyan-hi); margin-bottom: 14px;
}
.card .icon svg { width: 20px; height: 20px; }

/* app tiles on the studio home page */
.app-tile { display: flex; flex-direction: column; gap: 16px; }
.app-tile .head { display: flex; gap: 14px; align-items: center; }
.app-tile .head img, .app-tile .head .glyph { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.app-tile .head .glyph { display: grid; place-items: center; background: var(--card-hi); border: 1px solid var(--line); }
.app-tile .head .glyph svg { width: 32px; height: 32px; }
.app-tile .meta { color: var(--faint); font-size: 13px; }
.app-tile .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor;
}
.tag.live { color: var(--ok); }
.tag.dev { color: var(--warn); }

/* feature banner */
.banner { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #0b1017; }

/* numbered steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--copper); color: #1a0f04;
}

/* callout */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--warn);
  background: var(--card); border-radius: 10px; padding: 16px 18px; color: var(--dim);
}
.callout strong { color: var(--text); }
.callout.info { border-left-color: var(--cyan); }

/* ---------- long-form legal pages ---------- */
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 22px; margin: 38px 0 10px; padding-top: 8px; }
.doc h3 { margin-top: 22px; }
.doc p, .doc li { color: #c9d3de; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--faint); font-size: 14px; margin-top: -6px; }
.doc .toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin: 26px 0;
}
.doc .toc ol { margin: 6px 0 0; columns: 2 220px; column-gap: 28px; }
.doc .toc a { color: var(--dim); }

.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--card-hi); color: var(--text); font-weight: 650; }
td { color: #c9d3de; }
tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 36px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--dim); }

.site-footer .legal { max-width: 640px; }

/* company facts (about / contact / privacy) */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.facts dt { background: var(--card-hi); color: var(--text); font-weight: 650; }
.facts dd { background: var(--card); color: #c9d3de; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
address { font-style: normal; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; color: var(--cyan-hi); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
  .facts dt:last-of-type { border-bottom: 0; }
}

/* FAQ */
.faq { display: grid; gap: 10px; margin: 14px 0 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; color: var(--text); list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p, .faq details li { color: #c9d3de; }
.faq details > :last-child { margin-bottom: 14px; }

/* keep anchor targets clear of the sticky header */
[id] { scroll-margin-top: 84px; }
@media (max-width: 560px) { [id] { scroll-margin-top: 124px; } }

/* buttons sitting on a card need a lighter fill to read as buttons */
.card .btn:not(.primary) { background: var(--card-hi); }
.card .btn:not(.primary):hover { background: #243140; }

/* data tables stack into labelled rows on phones */
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  td { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    color: var(--cyan-hi); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  }
}

/* ---------- services (security testing / quote) ---------- */
[hidden] { display: none !important; }
.section-lede.follow { margin: 18px 0 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px; }
.cta h2 { margin-bottom: 6px; }

.quote-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 880px) { .quote-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.aside { display: grid; gap: 16px; }

.form { display: grid; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.form fieldset:not(:last-of-type) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.form legend { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--text); }
.form legend .num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--copper); color: #1a0f04;
}
.form legend .opt { color: var(--faint); font-weight: 500; font-size: 14px; }
.form .row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field label { display: block; font-weight: 650; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.field .opt { color: var(--faint); font-weight: 500; }
.req { color: var(--copper-hi); }
.form .hint { color: var(--faint); font-size: 13px; margin: 6px 0 0; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan-hi); }
.form input::placeholder { color: var(--faint); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-status .form-actions { margin-top: 12px; }
.form .copy-text { margin-top: 12px; min-height: 200px; font-size: 14px; }
button.btn { font-family: inherit; cursor: pointer; }

@media (max-width: 560px) {
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .hero { padding: 44px 0 36px; }
  section { padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
