/* Datastry Labs — homepage styles
   Global resets, custom properties, keyframes, and reusable component classes.
   Repeated visual patterns are defined here as classes; genuinely one-off
   layout (per-section padding, grid templates) stays inline in index.html. */

:root {
  --bg: #fbfcfe;
  --ink: #0b0d13;
  --muted: #565c69;
  --line: rgba(11, 13, 19, .09);
  --accent: #1f34d6;
  --deep: #0a1250;
  --panel: #ffffff;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--deep); }

.ds-shell { max-width: 1760px; width: 100%; margin: 0 auto; background: var(--bg); }

/* ---- typography / labels ------------------------------------------------ */
.eyebrow {
  font: 500 12px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--light { color: #8a97ff; }

.h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.035em;
  margin: 14px 0 0;
  line-height: 1.05;
}

.num { font: 600 13px var(--mono); color: var(--accent); }

/* ---- nav ---------------------------------------------------------------- */
.ds-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  border-bottom: 1px solid var(--line);
}
.nav-link { color: inherit; text-decoration: none; transition: color .15s; }
.nav-link:hover { color: var(--accent); }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 5px;
  font: 600 14px 'Archivo', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--md { padding: 14px 28px; font-size: 14px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--dark { background: #0b0d13; color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: var(--accent); transform: translateY(-1px); }
.btn--outline {
  padding: 14px 24px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(11, 13, 19, .22);
}
.btn--block { display: block; width: 100%; padding: 14px; text-align: center; }
.btn[disabled] { opacity: .7; cursor: default; transform: none; }

/* ---- foundation feature columns ---------------------------------------- */
.feature-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: 16px;
  line-height: 1.25;
}
.feature-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }

/* ---- bottlenecks / paradoxes ------------------------------------------- */
.paradox { padding: 44px 4px; border-top: 1px solid var(--line); }
.paradox-grid { display: grid; grid-template-columns: 290px 1fr 1fr; gap: 0; align-items: stretch; }
.paradox-head { padding-right: 36px; }
.paradox-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 12px 0 0;
  white-space: nowrap;
}
.paradox-cell { padding: 2px 34px; border-left: 1px solid var(--line); }
.paradox-cell--last { padding: 2px 0 2px 34px; border-left: 1px solid var(--line); }
.label-kicker {
  font: 600 10.5px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label-symptom { color: #b7869a; }
.label-break { color: var(--accent); }
.paradox-text { font-size: 14.5px; line-height: 1.62; margin: 12px 0 0; }
.paradox-text--sym { color: var(--muted); }
.paradox-text--break { color: var(--ink); }

/* ---- ecosystem pipeline ------------------------------------------------- */
.eco-stage {
  flex: 1 1 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.step-badge {
  flex: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  font: 600 15px var(--mono);
}
.step-title {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 20px 0 0;
  line-height: 1.25;
  padding-right: 18px;
  min-height: 42px;
}
.step-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 9px 0 0;
  padding-right: 18px;
  min-height: 63px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tag {
  font: 500 10px var(--mono);
  color: #6a6f7e;
  background: transparent;
  border: 1px solid rgba(11, 13, 19, .12);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}

/* ---- flywheel ----------------------------------------------------------- */
.fly-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 22px 24px 24px;
  text-align: left;
  backdrop-filter: blur(2px);
}
.fly-num { font: 700 30px var(--mono); color: #6f83ff; letter-spacing: -.02em; }
.fly-title { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-top: 12px; }
.fly-desc { font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .6); margin: 9px 0 0; }

/* ---- tech stack --------------------------------------------------------- */
.stack-group { border-top: 1px solid var(--line); padding-top: 18px; }
.stack-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stack-group-num { font: 600 12px var(--mono); color: var(--accent); }
.stack-group-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; }
.stack-tag {
  font: 500 12.5px var(--mono);
  color: #4a4e63;
  background: #f5f7fc;
  border: 1px solid rgba(11, 13, 19, .08);
  border-radius: 8px;
  padding: 7px 13px;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.stack-tag:hover { background: #eef1fb; border-color: rgba(10, 18, 80, .3); color: var(--deep); }

/* ---- form fields -------------------------------------------------------- */
.field { display: grid; gap: 7px; }
.field-label {
  font: 600 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.field-input {
  font: 400 14px 'Archivo', sans-serif;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fbfcfe;
  color: var(--ink);
  outline: none;
}
.field-input:focus { border-color: var(--accent); }
textarea.field-input { resize: vertical; }

/* ---- animations --------------------------------------------------------- */
@keyframes ds-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ds-draw { to { stroke-dashoffset: 0; } }
@keyframes ds-spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes hbDrop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes fwSpin { to { transform: rotate(360deg); } }

/* ---- contact modal ------------------------------------------------------ */
.ds-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 18, 80, .42);
  backdrop-filter: blur(4px);
}
.ds-modal-overlay.is-open { display: flex; }
.ds-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 80px -24px rgba(10, 18, 80, .45);
  padding: 44px 46px 40px;
}
.ds-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

/* honeypot — visually hidden, off-screen, not in keyboard flow */
.ds-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
