/* Dackota Consulting — single-page site styles.
   No framework, no external fonts: system stack, CSS custom props, grid. */

:root {
  --bg: #0b1020;
  --bg-raise: #111832;
  --bg-card: #141c3a;
  --border: rgba(148, 163, 199, 0.16);
  --text: #e7ebf6;
  --text-dim: #a3adc9;
  --accent: #4fd1c5;
  --accent-strong: #2cb5a8;
  --accent-ink: #062b27;
  --radius: 14px;
  --container: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keep anchored sections clear of the sticky nav */
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.narrow { max-width: 720px; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { color: var(--accent); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede, .section-lede {
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 46rem;
}

/* ------------------------------- header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  color: var(--accent-ink);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 550;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- hero ------------------------------- */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

/* soft radial glows behind the hero copy */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: rgba(79, 209, 197, 0.14);
}
.hero::after {
  width: 420px; height: 420px;
  bottom: -200px; left: -140px;
  background: rgba(59, 130, 246, 0.12);
}

.hero-inner { position: relative; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.08rem; }

.hero-metrics { margin-top: 3rem; }

.metrics-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.metrics li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-raise);
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ------------------------------ sections ----------------------------- */

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-alt {
  background: var(--bg-raise);
  border-block: 1px solid var(--border);
}

/* -------------------------------- grids ------------------------------ */

.grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card, .area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card p, .area p { color: var(--text-dim); margin-bottom: 0; }

.card {
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 209, 197, 0.45); }

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: rgba(79, 209, 197, 0.12);
  color: var(--accent);
  font-size: 1.2rem;
}

.area { background: transparent; }
.area h3 { color: var(--accent); }

/* -------------------------------- steps ------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step p { color: var(--text-dim); margin-bottom: 0; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}

/* ----------------------------- engagements --------------------------- */

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.badge-muted {
  background: rgba(148, 163, 199, 0.12);
  color: var(--text-dim);
}

.fineprint {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Spec rows inside an engagement card: label left, value right. */
.spec {
  margin: 0 0 1.1rem;
  padding: 0;
  border-top: 1px solid var(--border);
}

.spec > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.spec dt {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.spec dd {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
}

.spec dd em { color: var(--accent); font-style: normal; }

.card-engage p strong { color: var(--text); }

/* ------------------------------- panel ------------------------------- */

.panel {
  margin-top: 2.2rem;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel > h3 { margin-bottom: 1.2rem; }
.panel > p:last-child { margin-bottom: 0; color: var(--text-dim); }

/* The Phase 0 panel leads the engagements section, so it gets the accent
   edge that marks it as the entry point rather than one option among three. */
.panel-lead {
  margin-top: 1.5rem;
  border-left: 3px solid var(--accent);
}

.panel-lead h3 { font-size: 1.35rem; }

/* ---------------------------- deliverables --------------------------- */

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .deliverables { grid-template-columns: 1fr; }
}

/* Four artifacts you receive, not an ordered sequence — hence a plain list
   marked with an accent rule rather than numbering. */
.deliverables li {
  padding-left: 0.95rem;
  border-left: 2px solid rgba(79, 209, 197, 0.45);
}

.deliverables h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--accent);
}

.deliverables p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ------------------------------- checks ------------------------------ */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.8rem;
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
}

@media (max-width: 760px) {
  .checks { grid-template-columns: 1fr; }
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-dim);
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(79, 209, 197, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.excluded {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-dim);
}

.excluded strong { color: var(--text); }

/* ------------------------------- contact ------------------------------ */

.section-contact { text-align: center; }
.section-contact .section-lede { margin-inline: auto; }
.section-contact .hero-actions { justify-content: center; margin-top: 2rem; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--text-dim); }

/* --------------------------- reveal-on-scroll ------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* JS off, or reduced motion: show everything immediately */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ------------------------------ mobile nav ---------------------------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raise);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }

  .nav-links li { text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.8rem 1.25rem;
    font-size: 1.05rem;
  }
  .nav-cta {
    margin: 0.5rem 1.25rem 0;
    border-radius: 10px;
  }
}
