/* ============================================================
   HTP — styles.css
   Palette: #121212 ink / deep teal surfaces / bright teal signal
   Type: Bricolage Grotesque (display) / Instrument Sans (body)
         IBM Plex Mono (utility)
   ============================================================ */

:root {
  --ink: #121212;
  --ink-2: #181d1c;
  --panel: #161c1b;
  --line: #263230;
  --teal-deep: #0f5c55;
  --teal: #1fb8a6;
  --teal-bright: #3ee6cf;
  --bone: #eef4f2;
  --mist: #9fb0ac;
  --dim: #6b7a76;
  --max: 1120px;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px; /* keep anchored sections clear of the sticky header */
}
body {
  background: var(--ink);
  color: var(--mist);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--teal-deep);
  color: var(--bone);
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  color: var(--teal-bright);
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--teal-deep),
    var(--teal),
    var(--teal-bright)
  );
  box-shadow: 0 0 12px rgba(62, 230, 207, 0.5);
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 18, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
header.scrolled {
  background: rgba(18, 18, 18, 0.94);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.3s var(--ease);
}
header.scrolled .nav {
  height: 58px;
}
.mark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  color: var(--bone);
  letter-spacing: 0.02em;
}
.mark .tick {
  color: var(--teal);
}
.mark .tick:last-child {
  animation: blink 1.2s steps(1) infinite;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}
.nav-links a {
  color: var(--mist);
  position: relative;
}
.nav-links a:nth-child(4) {
  color: var(--bone);
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--teal);
  transition: width 0.25s var(--ease);
}
.nav-links a:not(.btn):hover {
  color: var(--bone);
}
.nav-links a:not(.btn):hover::after {
  width: 100%;
}
.nav-links a:not(.btn).active {
  color: var(--bone);
}
.nav-links a:not(.btn).active::after {
  width: 100%;
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--teal);
  padding: 11px 20px;
  border-radius: 6px;
  border: 1px solid var(--teal);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.btn:hover {
  background: var(--teal-bright);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(62, 230, 207, 0.45);
}
.btn:active {
  transform: translateY(0);
}
/* sheen sweep on solid CTAs only */
.btn:not(.btn-ghost)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn:not(.btn-ghost):hover::before {
  left: 130%;
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
}
.btn-ghost:hover {
  background: rgba(31, 184, 166, 0.08);
  color: var(--teal-bright);
  box-shadow: none;
}
.btn-lg {
  padding: 15px 28px;
  font-size: 15px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      600px 420px at 18% 12%,
      rgba(15, 92, 85, 0.35),
      transparent 65%
    ),
    radial-gradient(
      520px 380px at 88% 85%,
      rgba(15, 92, 85, 0.22),
      transparent 65%
    );
  will-change: transform;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(38, 50, 48, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 50, 48, 0.55) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 30%,
    black 35%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 30%,
    black 35%,
    transparent 75%
  );
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  text-wrap: balance;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.04;
  color: var(--bone);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
/* underline draws in after the headline reveals */
h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.02em;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease) 0.55s;
}
h1.in em::after,
.no-js h1 em::after {
  transform: scaleX(1);
}
.lede {
  font-size: 19px;
  max-width: 34em;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  font-size: 14px;
  color: var(--dim);
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- terminal (signature) ---------- */
.term {
  background: #0c1110;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(31, 184, 166, 0.06),
    0 24px 60px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  line-height: 1.7;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.dot.d1 {
  background: #3a4a47;
}
.dot.d2 {
  background: #2c3b39;
}
.dot.d3 {
  background: var(--teal-deep);
}
.term-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
}
.term-body {
  padding: 18px 18px 22px;
  min-height: 300px;
}
.t-prompt {
  color: var(--teal);
}
.t-cmd {
  color: var(--bone);
}
.t-dim {
  color: var(--dim);
}
.t-key {
  color: var(--teal-bright);
}
.t-line {
  white-space: pre-wrap;
  word-break: break-word;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--teal);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  background: var(--ink-2);
}
.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: ticker 36s linear infinite;
}
.ticker-track span:nth-child(even) {
  color: var(--teal-deep);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------- sections ---------- */
section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}
.sec-head {
  margin-bottom: 48px;
  max-width: 640px;
}
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  text-wrap: balance;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  color: var(--bone);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

/* ---------- cards + spotlight ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(31, 184, 166, 0.09),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  border-color: var(--teal-deep);
  transform: translateY(-4px);
}
.card:hover::before {
  opacity: 1;
}
/* border glow ring that follows the cursor with the spotlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(62, 230, 207, 0.45),
    transparent 70%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.card:hover::after {
  opacity: 1;
}
.card-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 12px;
  line-height: 1.2;
}
.card p {
  font-size: 15.5px;
  flex: 1;
  position: relative;
}
.card-price {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.card-price a {
  font-size: 13px;
}
.card-tag {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  transition: border-color 0.25s var(--ease);
}
.step:hover {
  border-color: var(--teal-deep);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.step h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--bone);
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
}

/* ---------- retainer strip ---------- */
.strip {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    120deg,
    rgba(15, 92, 85, 0.28),
    rgba(15, 92, 85, 0.06)
  );
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  padding: 30px 32px;
  flex-wrap: wrap;
}
.strip h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--bone);
  margin-bottom: 6px;
}
.strip p {
  font-size: 15.5px;
  max-width: 44em;
}
.strip .price {
  font-family: "IBM Plex Mono", monospace;
  color: var(--teal-bright);
  white-space: nowrap;
  font-size: 15px;
}

/* ---------- faq ---------- */
.faq {
  max-width: 760px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--bone);
  transition: color 0.2s var(--ease);
}
summary:hover {
  color: var(--teal-bright);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  color: var(--teal);
  font-size: 20px;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
details[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  overflow: hidden;
}
.faq-body p {
  padding: 0 0 22px;
  font-size: 16px;
  max-width: 60em;
}

/* ---------- footer cta ---------- */
.footer-cta {
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    560px 300px at 50% 100%,
    rgba(15, 92, 85, 0.25),
    transparent 70%
  );
}
.footer-cta .wrap {
  position: relative;
}
.footer-cta h2 {
  margin-bottom: 14px;
}
/* each sentence on its own line on desktop */
.footer-cta h2 span {
  display: block;
}
.footer-cta p {
  max-width: 38em;
  margin: 0 auto 30px;
}
.footer-sub {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--dim);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--dim);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- demo video lightbox ---------- */
body.modal-open {
  overflow: hidden;
}
.modal[hidden] {
  display: none;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 12, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-panel {
  position: relative;
  width: min(920px, 100%);
  background: #0c1110;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(31, 184, 166, 0.08),
    0 40px 90px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.modal.open .modal-backdrop {
  opacity: 1;
}
.modal.open .modal-panel {
  opacity: 1;
  transform: none;
}
.modal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  font-family: "IBM Plex Mono", monospace;
}
.modal-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
}
.modal-close {
  background: none;
  border: none;
  color: var(--mist);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  margin: -4px 0;
  border-radius: 4px;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.modal-close:hover {
  color: var(--bone);
  background: rgba(31, 184, 166, 0.12);
}
.modal-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.modal-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
  font-family: "IBM Plex Mono", monospace;
}
.modal-placeholder p {
  font-size: 14px;
  color: var(--dim);
}
.modal-placeholder .t-prompt {
  font-size: 15px;
}

/* ============================================================
   Reveal-on-scroll states (driven by js/main.js)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Reduced motion: everything visible, nothing moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .ticker-track {
    animation: none;
  }
  .cursor {
    animation: none;
  }
}

/* No-JS fallback: content must never be invisible */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 20px;
  }
  .nav {
    height: 64px;
  }
  header.scrolled .nav {
    height: 56px;
  }
  .hero {
    padding: 56px 0;
  }
  .hero-grid {
    gap: 36px;
  }
  .lede {
    font-size: 17px;
    margin-bottom: 26px;
  }
  section {
    padding: 64px 0;
  }
  .sec-head {
    margin-bottom: 36px;
  }
  .cards,
  .steps {
    gap: 16px;
  }
  .strip {
    padding: 24px 22px;
    gap: 14px;
  }
  .footer-cta {
    padding: 72px 0;
  }
  /* let text-wrap: balance handle the breaks instead of forcing them */
  .footer-cta h2 span {
    display: inline;
  }
  .term {
    font-size: 12.5px;
  }
  .term-body {
    min-height: 240px;
    padding: 14px 14px 18px;
  }
  /* thumb-sized tap target without shifting the layout */
  .card-price a {
    padding: 10px 0;
    margin: -10px 0;
  }
}

@media (max-width: 480px) {
  .mark {
    font-size: 14px;
  }
  .nav .btn {
    padding: 9px 13px;
    font-size: 13px;
  }
  h1 {
    font-size: clamp(32px, 9.4vw, 38px);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn {
    text-align: center;
  }
  .btn-lg {
    display: block;
    text-align: center;
  }
  .modal {
    padding: 12px;
  }
  .modal-placeholder p {
    font-size: 12.5px;
  }
  summary {
    font-size: 16.5px;
  }
  footer .wrap {
    flex-direction: column;
    gap: 6px;
  }
}
