/* blerglab.com — mobile-first.
   Palette: near-black ground, bone text, moss accent. Each product card wears
   its own product's colours, which is why the card rules repeat rather than
   share a single themed variable set. */

:root {
  --bg:        #0d1214;
  --bg-band:   #0b1012;
  --ink:       #e6e4dc;
  --ink-bright:#f2f0e9;
  --ink-mute:  #a3b3ac;
  --ink-soft:  #b6c4bd;
  --moss:      #6fbf95;
  --moss-dim:  #6c8a80;
  --rule:      #1c2529;
  --rule-soft: #182124;

  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;

  --gutter: 22px;
  --measure: 62ch;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;               /* nothing may scroll sideways on a phone */
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { padding-block: 52px; border-top: 1px solid var(--rule); }
.band   { background: var(--bg-band); }

h2 {
  font-size: clamp(21px, 5.4vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink-bright);
  margin: 0 0 10px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-dim);
  margin: 0 0 18px;
}
.eyebrow--loc { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(111, 191, 149, 0.16);
}

.kicker {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0;
}

/* ── bullets ─────────────────────────────────────────────── */

.bullets { list-style: none; padding: 0; margin: 22px 0 0; max-width: var(--measure); }
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 1.5px;
  background: var(--moss);
  opacity: 0.85;
}
.bullets li b { color: var(--ink-bright); font-weight: 600; }
.bullets li:last-child { margin-bottom: 0; }

/* ── hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 76px 68px;
  border-top: 0;
}

.hero__terrain {
  position: absolute; inset: 0;
  background: url("/assets/terrain-narrow.jpg") center 38% / cover no-repeat;
}
/* Angled scrim keeps the left edge dark enough for text while letting the
   terrain stay visible on the right. */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(13, 18, 20, 0.90) 0%,
    rgba(13, 18, 20, 0.74) 46%,
    rgba(13, 18, 20, 0.52) 100%
  );
}
.hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 18, 20, 0.55) 0%,
    transparent 22%,
    transparent 58%,
    var(--bg) 100%
  );
}
.hero__inner { position: relative; z-index: 2; }

.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(54px, 16vw, 140px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: #f4f2eb;
  margin: 0 0 22px;
  text-shadow: 0 2px 44px rgba(0, 0, 0, 0.6);
}
.wordmark__lab { color: var(--moss); }

.hero__line {
  font-size: clamp(18px, 4.8vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #e8e6de;
  max-width: 33ch;
  margin: 0 0 20px;
}
.hero__bullets { margin-top: 0; }
.hero__bullets li { color: #a9b9b1; }

/* ── product cards ───────────────────────────────────────── */

.products { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}
.card > * { position: relative; z-index: 2; }

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.card__name { font-size: 19px; letter-spacing: -0.01em; margin: 0; font-weight: 600; }

.card ul { list-style: none; padding: 0; margin: 0 0 auto; }
.card ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 14.5px;
  line-height: 1.5;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 6px; height: 1.5px;
}
.card__origin { font-size: 13px; line-height: 1.5; margin: 13px 0 0; opacity: 0.74; }

.status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

/* zarnk — phosphor terminal */
.card--zarnk { background: #05070a; border: 1px solid #143323; font-family: var(--mono); }
.card--zarnk::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(47, 224, 138, 0.05) 0 1px, transparent 1px 3px);
}
.card--zarnk .card__name { color: #d8ffe9; }
.card--zarnk ul li { color: #8fc4a8; }
.card--zarnk ul li::before { background: #2fe08a; opacity: 0.6; }
.card--zarnk .card__origin { color: #4f7a63; }
.card--zarnk .status { color: #2fe08a; border: 1px solid #1d4a35; }

.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #2fe08a;
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* swimwith.ai — pool water */
.card--swim { background: linear-gradient(170deg, #08202e, #0a2f42); border: 1px solid #14455e; }
.card--swim::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1; opacity: 0.5;
  background: repeating-linear-gradient(103deg, transparent 0 16px, rgba(120, 200, 235, 0.09) 16px 18px);
}
.card--swim .card__name { color: #dff2fb; }
.card--swim ul li { color: #9fcbe2; }
.card--swim ul li::before { background: #7cc6e8; opacity: 0.65; }
.card--swim .card__origin { color: #6795ae; }
.card--swim .status { color: #7cc6e8; border: 1px solid rgba(124, 198, 232, 0.3); }

/* zalgo — corruption */
.card--zalgo { background: #0a0a0c; border: 1px solid #2a1e26; font-family: var(--mono); }
.card--zalgo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background: radial-gradient(120% 90% at 78% 8%, rgba(150, 40, 60, 0.2), transparent 60%);
}
.card--zalgo .card__name { color: #e8dfe2; }
.card--zalgo ul li { color: #a89aa0; }
.card--zalgo ul li::before { background: #c0616f; opacity: 0.7; }
.card--zalgo .card__origin { color: #6e5c64; }
.card--zalgo .status { color: #c0616f; border: 1px solid rgba(192, 97, 111, 0.3); }

/* kwisatz — dune */
.card--kwisatz { background: linear-gradient(168deg, #1a1207, #241a0c); border: 1px solid #46331a; }
.card--kwisatz::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; z-index: 1; opacity: 0.42;
  background: repeating-linear-gradient(96deg, transparent 0 22px, rgba(226, 160, 74, 0.11) 22px 25px);
}
.card--kwisatz .card__name { color: #f4e6cd; }
.card--kwisatz ul li { color: #cbae82; }
.card--kwisatz ul li::before { background: #e2a04a; opacity: 0.7; }
.card--kwisatz .card__origin { color: #8e7350; }
.card--kwisatz .status { color: #e2a04a; border: 1px solid rgba(226, 160, 74, 0.3); }

/* ── footer ──────────────────────────────────────────────── */

footer { border-top: 1px solid var(--rule); background: var(--bg-band); padding-block: 44px 48px; }
.footer__inner { display: flex; flex-direction: column; gap: 22px; }
.footer__email {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 191, 149, 0.3);
  padding-bottom: 2px;
  display: inline-block;      /* keeps the tap target a comfortable size */
  min-height: 32px;
}
.footer__email:hover, .footer__email:focus-visible { border-bottom-color: var(--moss); }
.footer__fine {
  font-family: var(--mono);
  font-size: 11px;
  color: #4e6159;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ── larger screens ──────────────────────────────────────── */

@media (min-width: 640px) {
  :root { --gutter: 40px; }
  .products { grid-template-columns: 1fr 1fr; }
  .bullets--two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: none; }
}

@media (min-width: 761px) {
  :root { --gutter: 56px; }
  section { padding-block: 66px; }
  .hero { padding-block: 100px; }
  .hero__terrain { background-image: url("/assets/terrain-wide.jpg"); background-position: center 40%; }
  .hero__scrim {
    background: linear-gradient(
      102deg,
      rgba(13, 18, 20, 0.92) 0%,
      rgba(13, 18, 20, 0.74) 44%,
      rgba(13, 18, 20, 0.34) 74%,
      rgba(13, 18, 20, 0.50) 100%
    );
  }
  .hero__fade {
    background: linear-gradient(to bottom, rgba(13,18,20,0.5) 0%, transparent 24%, transparent 64%, var(--bg) 100%);
  }
  .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

@media (min-width: 1000px) {
  :root { --gutter: 72px; }
}

/* ── accessibility ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  * { scroll-behavior: auto !important; }
}

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

@media print {
  .hero__terrain, .hero__scrim, .hero__fade { display: none; }
  body { background: #fff; color: #000; }
}
