/* Bayou Barrier — brand guide v1
   Ink #17191C · Access #4BB6E8 · Alert #E2593C · Paper #F6F4EF
   Wordmark: Roboto Slab 900 · Tags: JetBrains Mono · Body: Inter

   Design language: the logo mark is a filtered-traffic grid — coral (blocked)
   over blue (passed) — read against a barrier line. That grid/gauge grammar
   is reused across the page (hero gauge, spec-sheet coordinates, step marks,
   the closing stamp) instead of stock card/icon/badge patterns.
*/

:root {
  --ink: #17191c;
  --ink-raised: #1e2125;
  --ink-line: #2a2e33;
  --paper: #f6f4ef;
  --paper-dim: #c9c6bd;
  --access: #4bb6e8;
  --alert: #e2593c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(to bottom, rgba(246, 244, 239, 0.035) 0, rgba(246, 244, 239, 0.035) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(to right, rgba(246, 244, 239, 0.035) 0, rgba(246, 244, 239, 0.035) 1px, transparent 1px, transparent 48px),
    var(--ink);
  color: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
}

.tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

/* ---------- titlebar ---------- */

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--paper-dim);
  border-bottom: 1px solid var(--ink-line);
}

@media (max-width: 560px) {
  .titlebar span:last-child {
    display: none;
  }
}

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

header {
  border-bottom: 1px solid var(--ink-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav .logo {
  height: 96px;
  width: auto;
  min-width: 320px;
}

@media (max-width: 700px) {
  .nav .logo {
    height: 56px;
    min-width: 187px;
  }
}

.nav a.cta {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--access);
  text-decoration: none;
  border: 1px solid var(--access);
  padding: 10px 16px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a.cta:hover {
  background: var(--access);
  color: var(--ink);
}

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

.hero {
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

.hero .tag {
  color: var(--alert);
  display: inline-block;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  max-width: 14ch;
}

.hero h1 .accent {
  color: var(--access);
  box-shadow: inset 0 -0.09em 0 0 rgba(75, 182, 232, 0.45);
}

.hero p.lede {
  max-width: 50ch;
  margin: 24px 0 0;
  color: var(--paper-dim);
  font-size: 1.08rem;
}

.hero .actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--access);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #6cc3ea;
}

.btn-secondary {
  display: inline-block;
  color: var(--paper);
  text-decoration: none;
  padding: 14px 20px;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  font-size: 1rem;
}

.btn-secondary:hover {
  border-color: var(--paper-dim);
}

/* ---------- hero gauge ----------
   A stage gauge, the instrument Acadiana already reads for river/flood
   levels, repurposed for network exposure. Coral marks above the line are
   attempts the barrier stopped; the fill below is what the barrier lets
   through on purpose. Same coral-over-blue order as the logo mark. */

.hero-gauge {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gauge-readout {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
}

.gauge {
  position: relative;
  width: 132px;
  height: 320px;
}

.gauge-track {
  position: absolute;
  inset: 0;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  overflow: hidden;
}

.gauge-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 38%;
  background: linear-gradient(to top, rgba(75, 182, 232, 0.28), rgba(75, 182, 232, 0.08));
  background-size: 100% 100%;
  transform-origin: bottom;
}

.gauge-blocked {
  position: absolute;
  inset: 0;
}

.gauge-blocked .gc {
  position: absolute;
  top: var(--t);
  left: var(--l);
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--alert);
  opacity: 0.85;
}

.gauge-barrier {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  height: 3px;
  background: var(--access);
  transform-origin: left;
}

.gauge-barrier-label {
  position: absolute;
  left: calc(100% + 18px);
  top: 38%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--access);
  padding: 3px 7px;
  border-radius: 3px;
}

.gauge-barrier-label::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--access);
}

@media (prefers-reduced-motion: no-preference) {
  .gauge-fill {
    animation: gauge-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .gauge-barrier {
    animation: gauge-draw 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
  }
  .gauge-blocked .gc {
    animation: gauge-blip 0.3s ease both;
  }
  .gauge-blocked .gc:nth-child(1) { animation-delay: 0.4s; }
  .gauge-blocked .gc:nth-child(2) { animation-delay: 0.47s; }
  .gauge-blocked .gc:nth-child(3) { animation-delay: 0.53s; }
  .gauge-blocked .gc:nth-child(4) { animation-delay: 0.6s; }
  .gauge-blocked .gc:nth-child(5) { animation-delay: 0.65s; }
  .gauge-blocked .gc:nth-child(6) { animation-delay: 0.71s; }
}

@keyframes gauge-rise {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes gauge-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes gauge-blip {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 0.85; transform: scale(1); }
}

@media (max-width: 860px) {
  .hero-gauge {
    justify-self: start;
  }
  .gauge {
    width: 104px;
    height: 240px;
  }
}

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

section {
  padding: 72px 0;
  border-top: 1px solid var(--ink-line);
  position: relative;
}

.section-head {
  margin-bottom: 40px;
}

.section-head .tag {
  color: var(--access);
  display: block;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  max-width: 26ch;
}

/* ---------- services: spec sheet ---------- */

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink-line);
  border-left: 1px solid var(--ink-line);
}

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

.spec-row {
  display: flex;
  gap: 18px;
  padding: 28px 28px 30px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}

.spec-coord {
  flex: none;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--access);
  border: 1px solid var(--ink-line);
  background: var(--ink-raised);
  border-radius: 4px;
  padding: 4px 7px;
  height: fit-content;
}

.spec-body h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.spec-body p {
  color: var(--paper-dim);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step {
  position: relative;
  padding-left: 44px;
}

.step-mark {
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--access);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.step:nth-child(2) .step-mark {
  background: var(--paper);
}

.step:nth-child(3) .step-mark {
  background: var(--alert);
}

.step h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--paper-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- who it's for ---------- */

.pitch {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.pitch h2 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.pitch p {
  margin-top: 20px;
  color: var(--paper-dim);
  font-size: 1.02rem;
}

.credentials {
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 24px;
  background: var(--ink-raised);
}

.credentials-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-line);
}

.credentials-body {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- faq ---------- */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  border-top: 1px solid var(--ink-line);
}

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

.faq-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink-line);
}

.faq-row h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.faq-row p {
  color: var(--paper-dim);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* ---------- final CTA ---------- */

.cta-band {
  border-top: 1px solid var(--ink-line);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 48px;
  align-items: center;
}

@media (max-width: 700px) {
  .cta-grid {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.cta-band .tag {
  color: var(--alert);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  max-width: 18ch;
  margin: 16px 0 16px;
}

.cta-band p {
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 28px;
}

.stamp {
  justify-self: end;
  width: 148px;
  aspect-ratio: 1;
  border: 2px dashed var(--alert);
  border-radius: 50%;
  color: var(--alert);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  transform: rotate(-8deg);
  gap: 10px;
}

@media (max-width: 700px) {
  .stamp {
    justify-self: start;
  }
}

.stamp-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 3px;
}

.stamp-mark span {
  border-radius: 2px;
  background: var(--alert);
}

.stamp-mark span:nth-child(2) {
  background: var(--access);
}

.stamp-mark span:nth-child(3) {
  background: transparent;
  border: 1px solid var(--alert);
}

.stamp-mark span:nth-child(4) {
  background: transparent;
  border: 1px solid var(--alert);
}

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

footer {
  border-top: 1px solid var(--ink-line);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row .logo {
  height: 68px;
  width: auto;
  min-width: 227px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .footer-row .logo {
    height: 44px;
    min-width: 147px;
  }
}

.footer-row a.email {
  color: var(--access);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.footer-row a.email:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-fine {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.82rem;
}

/* ---------- focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--access);
  outline-offset: 2px;
}
