/* Recovery polish: keep the static export readable before JavaScript animations hydrate. */
:root {
  color-scheme: dark;
  --ais-ink: #f8fbff;
  --ais-muted: #aebbd1;
  --ais-line: rgba(255, 255, 255, 0.14);
  --ais-blue: #7cc7ff;
  --ais-blue-strong: #1f8fff;
  --ais-gold: #d7b56d;
  --ais-panel: rgba(7, 13, 25, 0.72);
}

html {
  background: #02040a;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 143, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(215, 181, 109, 0.13), transparent 26rem),
    linear-gradient(180deg, #02040a 0%, #050914 48%, #02040a 100%) !important;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(121, 192, 255, 0.22);
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 70%);
}

body > div.fixed.inset-0,
body > div.fixed.inset-0 * {
  pointer-events: none !important;
}

body [style*="opacity:0"],
body [style*="opacity: 0"],
body [style*="opacity:0."],
body [style*="opacity: 0."] {
  opacity: 1 !important;
}

body [style*="opacity:0"][style*="translate"],
body [style*="opacity: 0"][style*="translate"],
body [style*="opacity:0."][style*="translate"],
body [style*="opacity: 0."][style*="translate"] {
  transform: none !important;
}

body [class~="opacity-0"] {
  opacity: 1 !important;
}

body [class*="translate-y-"],
body [class*="translate-x-"] {
  transform: none !important;
}

#main-content > main > section {
  position: relative;
}

#main-content > main > section > div.absolute {
  pointer-events: none !important;
}

:where(a, button):focus-visible {
  outline: 2px solid #79c0ff;
  outline-offset: 4px;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

nav[aria-label="Main navigation"] {
  top: 1rem !important;
  max-width: min(76rem, calc(100% - 2rem));
  margin-inline: auto !important;
  background:
    linear-gradient(135deg, rgba(7, 13, 25, 0.84), rgba(9, 20, 38, 0.66)) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

nav[aria-label="Main navigation"] img {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(31, 143, 255, 0.25);
}

section[aria-labelledby="hero-heading"] {
  min-height: 92vh !important;
  isolation: isolate;
}

section[aria-labelledby="hero-heading"] > div:first-child {
  display: none !important;
  pointer-events: none !important;
}

section[aria-labelledby="hero-heading"] > div.absolute {
  pointer-events: none !important;
}

section[aria-labelledby="hero-heading"]::before {
  content: "Strategy  Systems  Automation";
  position: absolute;
  top: 18%;
  left: max(1rem, calc(50% - 38rem));
  z-index: 4;
  width: 12rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.9;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

section[aria-labelledby="hero-heading"]::after {
  content: "";
  position: absolute;
  right: max(1rem, calc(50% - 42rem));
  bottom: 10%;
  z-index: 4;
  width: min(34vw, 24rem);
  aspect-ratio: 1;
  border: 1px solid rgba(124, 199, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(124, 199, 255, 0.20), transparent 34%),
    conic-gradient(from 220deg, transparent 0 18%, rgba(215, 181, 109, 0.6) 18% 21%, transparent 21% 52%, rgba(124, 199, 255, 0.62) 52% 55%, transparent 55%);
  box-shadow: inset 0 0 70px rgba(124, 199, 255, 0.08), 0 0 80px rgba(31, 143, 255, 0.12);
}

#hero-heading {
  max-width: 11ch;
  margin-inline: auto;
  letter-spacing: -0.075em !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
  background: none !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}

#hero-heading span {
  color: #70b9ff !important;
  -webkit-text-fill-color: #70b9ff !important;
}

section[aria-labelledby="hero-heading"] [class*="backdrop-blur"] {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

section[aria-labelledby="hero-heading"] a {
  position: relative;
  z-index: 30;
  pointer-events: auto !important;
}

#hero-heading + p {
  color: #d8e2f2 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

#hero-heading + p span {
  color: #8fd2ff !important;
  font-weight: 700;
}

section[aria-labelledby="hero-heading"] a,
section[aria-labelledby="hero-heading"] > div:last-child > div:first-child {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a[href="/contact/"].group,
a[href="/contact/"]:has(span) {
  box-shadow: 0 18px 55px rgba(31, 143, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#services {
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.35), rgba(5, 9, 20, 0.88)),
    radial-gradient(circle at 24% 0%, rgba(31, 143, 255, 0.18), transparent 28rem);
}

#services h2,
section h2 {
  letter-spacing: -0.06em !important;
}

#services .grid > a > div,
section .grid > div,
section article,
section [class*="rounded-2xl"][class*="border"] {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(145deg, rgba(8, 15, 28, 0.86), rgba(8, 16, 32, 0.58)) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

#services a.group > div,
#services a.group > div[class*="bg-"],
#services a.group [class*="bg-gradient"],
#services a.group [class*="from-blue"],
#services a.group [class*="from-purple"],
#services a.group [class*="from-green"],
#services a.group [class*="from-orange"] {
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 199, 255, 0.12), transparent 13rem),
    linear-gradient(145deg, rgba(8, 15, 28, 0.94), rgba(6, 11, 21, 0.88)) !important;
}

#services a.group > div::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(124, 199, 255, 0.16), transparent 38%);
  opacity: 0.5;
}

#services .grid > a > div:hover,
section [class*="rounded-2xl"][class*="border"]:hover {
  border-color: rgba(124, 199, 255, 0.42) !important;
  box-shadow: 0 34px 100px rgba(31, 143, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#services .text-6xl {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
  border: 1px solid rgba(124, 199, 255, 0.22);
  border-radius: 1.25rem;
  background: rgba(124, 199, 255, 0.08);
  font-size: 2rem !important;
  filter: grayscale(1) saturate(0.2);
  opacity: 0.82;
}

section:not([aria-labelledby="hero-heading"]) img {
  border-radius: 0.8rem;
  filter: grayscale(0.22) saturate(0.58) contrast(1.05);
}

img[alt="Tab Editor thumbnail"] {
  width: min(100%, 10rem) !important;
  height: auto !important;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain !important;
  image-rendering: auto;
}

section:not([aria-labelledby="hero-heading"]) a[class*="bg-"],
section:not([aria-labelledby="hero-heading"]) button[class*="bg-"] {
  background:
    linear-gradient(135deg, rgba(31, 143, 255, 0.92), rgba(10, 62, 120, 0.92)) !important;
  border: 1px solid rgba(124, 199, 255, 0.30) !important;
  box-shadow: 0 14px 38px rgba(31, 143, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

section:not([aria-labelledby="hero-heading"]) a[class*="bg-white"] {
  color: #07172f !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(221, 236, 255, 0.94)) !important;
}

section:not([aria-labelledby="hero-heading"]) .text-green-400,
section:not([aria-labelledby="hero-heading"]) .text-blue-400 {
  color: var(--ais-blue) !important;
}

section:not([aria-labelledby="hero-heading"]) .bg-green-500,
section:not([aria-labelledby="hero-heading"]) .bg-blue-500 {
  background-color: var(--ais-blue-strong) !important;
}

section:not([aria-labelledby="hero-heading"]) .bg-yellow-500,
section:not([aria-labelledby="hero-heading"]) .text-yellow-400 {
  background-color: rgba(215, 181, 109, 0.18) !important;
  color: var(--ais-gold) !important;
}

section:not([aria-labelledby="hero-heading"]) [class*="w-24"][class*="h-24"],
section:not([aria-labelledby="hero-heading"]) [class*="w-32"][class*="h-32"],
section:not([aria-labelledby="hero-heading"]) [class*="w-40"][class*="h-40"] {
  background:
    radial-gradient(circle, rgba(124, 199, 255, 0.14), rgba(8, 15, 28, 0.8)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

[class*="bg-gradient-to-br"][class*="from-blue-600"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.20), transparent 32rem),
    linear-gradient(135deg, #07172f 0%, #0a3e78 54%, #08101e 100%) !important;
}

[class*="bg-gradient-to-br"][class*="from-blue-600"] h2 {
  color: var(--ais-ink);
}

.demo-lab {
  position: relative;
  z-index: 20;
  padding: clamp(4rem, 9vw, 7rem) 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 143, 255, 0.18), transparent 34rem),
    linear-gradient(180deg, rgba(2, 4, 10, 0.92), rgba(5, 9, 20, 0.98));
}

.demo-lab__shell {
  max-width: 76rem;
  margin: 0 auto;
}

.demo-lab__kicker {
  color: var(--ais-gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.demo-lab__top {
  max-width: 52rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.demo-lab__top h2 {
  margin: 0 0 1rem;
  color: var(--ais-ink);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.demo-lab__top p,
.demo-card p {
  color: var(--ais-muted);
  line-height: 1.7;
}

.demo-lab__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.demo-card {
  min-height: 100%;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 199, 255, 0.13), transparent 14rem),
    linear-gradient(145deg, rgba(8, 15, 28, 0.92), rgba(6, 11, 21, 0.86));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demo-card__header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.demo-card__header span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(124, 199, 255, 0.24);
  border-radius: 999px;
  color: var(--ais-blue);
  font-weight: 850;
  font-size: 0.78rem;
}

.demo-card h3 {
  margin: 0;
  color: var(--ais-ink);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.demo-card label {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--ais-muted);
  font-size: 0.9rem;
}

.demo-card input[type="range"] {
  width: 100%;
  accent-color: var(--ais-blue-strong);
}

.demo-card label strong {
  color: var(--ais-ink);
}

.demo-result,
.demo-output {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ais-muted);
}

.demo-result {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.demo-result strong {
  color: var(--ais-blue);
  font-size: 1.45rem;
}

.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.demo-pills button,
.demo-primary {
  min-height: 2.55rem;
  border: 1px solid rgba(124, 199, 255, 0.26);
  border-radius: 999px;
  background: rgba(124, 199, 255, 0.10);
  color: var(--ais-ink);
  cursor: pointer;
  font-weight: 800;
}

.demo-pills button {
  padding: 0.55rem 0.85rem;
}

.demo-primary {
  width: 100%;
  margin-top: 0.75rem;
}

.demo-input {
  width: 100%;
  min-height: 2.8rem;
  margin-top: 1rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  color: var(--ais-ink);
  background: rgba(255, 255, 255, 0.07);
}

.demo-output strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--ais-ink);
}

.demo-output ol,
.demo-output ul {
  margin: 0;
  padding-left: 1.15rem;
}

.demo-output li + li {
  margin-top: 0.4rem;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  color: #0f172a;
  background-color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

.demo-lab input[type="range"] {
  background: transparent;
}

.demo-lab .demo-input {
  color: var(--ais-ink);
  background: rgba(255, 255, 255, 0.07);
}

.demo-lab .demo-input::placeholder {
  color: rgba(230, 239, 255, 0.52);
}

main[id="main-content"] > .min-h-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 143, 255, 0.22), transparent 42rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.56));
}

form {
  text-align: left;
}

main[id="main-content"] .bg-white {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 241, 255, 0.92)) !important;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(124, 199, 255, 0.10) !important;
}

main[id="main-content"] label {
  font-weight: 750 !important;
  letter-spacing: -0.01em;
}

footer a:focus-visible {
  outline: 2px solid #79c0ff;
  outline-offset: 4px;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(5, 9, 20, 0.78), rgba(2, 4, 10, 0.94)) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  section[aria-labelledby="hero-heading"]::before,
  section[aria-labelledby="hero-heading"]::after {
    display: none;
  }

  #hero-heading {
    font-size: clamp(4rem, 18vw, 6rem) !important;
  }

  .demo-lab__grid {
    grid-template-columns: 1fr;
  }

}
