:root {
  --bg: oklch(0.15 0.007 70);
  --accent: oklch(0.76 0.13 253);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Shared by every reveal target. Element rules below splice this into their
     own transition list, because `transition` is a single property — two rules
     cannot each contribute, the more specific one replaces the other.

     The stagger delay comes from --reveal-delay, set per-element by main.js.
     It lives in a custom property rather than inline `transition-delay` so it
     applies ONLY to the reveal, not to the element's hover transitions. */
  --reveal-transition: opacity 0.9s var(--ease) var(--reveal-delay, 0s),
    translate 0.9s var(--ease) var(--reveal-delay, 0s);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: oklch(0.95 0.006 80);
  font-family: "Manrope", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: oklch(0.72 0.14 253);
  color: var(--bg);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

/* The browser default focus ring is a mid-blue that all but disappears on this
   near-black background. Replace it with a light, offset ring. */
:focus-visible {
  outline: 2px solid oklch(0.95 0.006 80);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- decorative drift animations --- */

@keyframes sm-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.12);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sm-drift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-5%, 3%, 0) scale(1);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
}

.drift-1 {
  animation: sm-drift 22s ease-in-out infinite;
}

.drift-2 {
  animation: sm-drift2 28s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .drift-1,
  .drift-2 {
    animation: none;
  }
}

/* --- reveal-on-scroll targets ---
   Visible by default; JS opts in to the hidden/reveal transition so
   the content is never lost if a script fails to load.

   The offset uses the `translate` property, NOT `transform`. Several reveal
   targets are also hover-lifted cards (.tier-card) or parallax targets
   (data-par), both of which drive `transform`. Keeping reveal on `translate`
   lets them compose instead of one clobbering the other. */

[data-reveal] {
  opacity: 1;
}

html.js [data-reveal] {
  opacity: 0;
  translate: 0 26px;
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  translate: 0 0;
}

/* Wrapped in :where() so this contributes ZERO specificity — any element rule
   below can restate the transition (adding its own hover properties) without
   needing to out-specify this. */
:where(html.js [data-reveal]) {
  transition: var(--reveal-transition);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}

/* --- interactive components ---------------------------------------------
   The rest of the page keeps its inline `style` attributes (that is how the
   design tool emits markup), but every element with a :hover state has its
   base declarations here instead.

   That is load-bearing, not tidiness: an inline style beats a stylesheet class
   no matter how specific the selector, so a `:hover` rule for a property also
   set inline on the same element silently does nothing. Leaving
   `background: …` inline on a card is enough to kill its hover background.

   Keep the base value and the :hover override in the same place — inline
   layout styles are fine, inline *hoverable* properties are not.

   Elements that are also reveal targets splice var(--reveal-transition) into
   their transition list; omitting it makes them snap to full opacity instead
   of fading, since `transition` is one property and this rule replaces the
   generic one above. */

.nav-link {
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.01em;
  color: oklch(0.72 0.006 80);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.nav-link:hover {
  color: oklch(0.95 0.006 80);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.tier-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 22px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: 999px;
  font-size: 14px;
}

.nav-cta,
.tier-cta {
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.nav-cta:hover,
.tier-cta:hover {
  background: oklch(0.95 0.006 80);
  color: oklch(0.15 0.007 70);
  border-color: oklch(0.95 0.006 80);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 17px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease), color 0.45s var(--ease);
}

.btn-primary {
  gap: 12px;
  background: oklch(0.95 0.006 80);
  color: oklch(0.15 0.007 70);
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px oklch(0 0 0 / 0.5);
  color: oklch(0.15 0.007 70);
}

.btn-secondary {
  border: 1px solid oklch(1 0 0 / 0.16);
  color: oklch(0.88 0.006 80);
}

.btn-secondary:hover {
  border-color: oklch(1 0 0 / 0.4);
  transform: translateY(-3px);
  color: oklch(0.95 0.006 80);
}

/* reveal target */
.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 18px;
  background: oklch(0.15 0.007 70);
  color: oklch(0.62 0.006 80);
  transition: var(--reveal-transition), background 0.5s, color 0.5s;
}

.logo-card:hover {
  background: oklch(0.18 0.008 258);
  color: oklch(0.92 0.006 80);
}

/* reveal target */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 3vw, 44px);
  min-height: 300px;
  background: oklch(0.17 0.006 70);
  transition: var(--reveal-transition), background 0.5s var(--ease);
}

.service-card:hover {
  background: oklch(0.21 0.012 258);
}

/* reveal target */
.contrast-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(26px, 2.6vw, 38px);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 18px;
  background: oklch(0.17 0.006 70);
  transition: var(--reveal-transition), border-color 0.5s, background 0.5s;
}

.contrast-card:hover {
  border-color: oklch(1 0 0 / 0.24);
  background: oklch(0.19 0.008 258);
}

/* reveal target */
.step-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(28px, 3vw, 40px) 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.09);
  transition: var(--reveal-transition), padding-left 0.5s var(--ease);
}

.step-row:hover {
  padding-left: 12px;
}

.case-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 34px);
  min-height: 150px;
  background: oklch(0.175 0.006 70);
  transition: background 0.5s;
}

.case-stat:hover {
  background: oklch(0.2 0.01 258);
}

/* reveal target — the hover lift rides on `transform` while reveal drives
   `translate`, so the two compose instead of overwriting each other. */
.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid oklch(1 0 0 / 0.1);
  border-radius: 18px;
  background: oklch(0.175 0.006 70);
  transition: var(--reveal-transition), transform 0.5s var(--ease),
    border-color 0.5s, box-shadow 0.5s;
}

.tier-card:hover {
  transform: translateY(-8px);
  border-color: oklch(1 0 0 / 0.28);
  box-shadow: 0 30px 70px oklch(0 0 0 / 0.45);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s;
}

.faq-question:hover {
  color: var(--accent);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid oklch(1 0 0 / 0.28);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(15px, 2.1vw, 30px);
  letter-spacing: -0.01em;
  transition: border-color 0.45s var(--ease), gap 0.45s var(--ease),
    color 0.45s var(--ease);
}

.contact-link:hover {
  border-color: var(--accent);
  gap: 30px;
  color: var(--accent);
}

/* --- FAQ accordion panel --- */

.faq-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s;
}

.faq-item.is-open .faq-panel {
  max-height: 560px;
  opacity: 1;
}

/* Without JS nothing can toggle the panels, so show every answer rather than
   leaving six of seven permanently collapsed. */
html:not(.js) .faq-panel {
  max-height: none;
  opacity: 1;
}

html:not(.js) .faq-question {
  cursor: default;
}
