:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #f8f0e7;
  --muted: rgba(248, 240, 231, 0.58);
  --warm: #ff7a00;
  --hot: #ff235e;
  --violet: #8d22dd;
  --edge: rgba(255, 255, 255, 0.12);
  --hero-width: min(94vw, 1280px);
  font-family:
    "Inter",
    "SF Pro Display",
    "Segoe UI",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.88)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.92)),
    url("../images/backgrounds/card-texture.jpg") center / cover no-repeat;
  opacity: 1;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.022),
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 5px
    ),
    linear-gradient(115deg, transparent, rgba(255, 34, 88, 0.08) 52%, rgba(112, 24, 200, 0.09) 74%, transparent);
  opacity: 0.48;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.84)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 46%, rgba(0, 0, 0, 0.76));
}

.page-shell::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent 0%, black 38%, black 100%);
  opacity: 0.32;
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  pointer-events: none;
  background: #000;
  animation: pageWake 950ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 64px clamp(24px, 5vw, 84px) 72px;
}

.hero-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: var(--hero-width);
  --brand-stack-gap: clamp(44px, 6.6vh, 66px);
  --button-stack-gap: clamp(56px, calc(var(--brand-stack-gap) + 1.2vw), 78px);
  transform: translateY(-3.2vh);
}

.hero-lockup::before {
  position: absolute;
  top: 19%;
  left: 50%;
  z-index: -1;
  width: min(76vw, 760px);
  height: 190px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.13), rgba(255, 35, 94, 0.15), rgba(141, 34, 221, 0.12));
  filter: blur(48px);
  opacity: 0;
  transform: translateX(-50%);
  animation:
    glowSettle 800ms ease 900ms forwards,
    glowBreathe 6200ms ease-in-out 1700ms infinite;
}

.split-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 960px);
  margin: 0;
  line-height: 0;
}

.os-wrap,
.mantic-wrap {
  display: block;
  line-height: 0;
}

.os-wrap {
  width: 35.2%;
  max-width: 350px;
  opacity: 0;
  animation: osIgnite 710ms steps(1, end) 90ms forwards;
}

.mantic-wrap {
  width: 65%;
  max-width: 640px;
  margin-left: clamp(12px, 1.7vw, 26px);
  opacity: 0;
  animation: manticIgnite 590ms steps(1, end) 440ms forwards;
}

.os-logo,
.mantic-name {
  display: block;
  width: 100%;
  height: auto;
}

.os-logo {
  filter: drop-shadow(0 0 10px rgba(255, 95, 0, 0.22));
}

.mantic-name {
  filter: drop-shadow(0 0 10px rgba(255, 34, 92, 0.12));
}

.service-strip {
  display: grid;
  justify-items: center;
  width: min(94vw, 1280px);
  margin-top: var(--brand-stack-gap);
  font-family:
    "Courier New",
    Courier,
    "Nimbus Mono PS",
    monospace;
  opacity: 0;
  animation: serviceIgnite 590ms steps(1, end) 440ms forwards;
}

.service-rule {
  display: none;
}

.service-rule span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--warm), var(--hot), var(--violet));
  box-shadow: 0 0 18px rgba(255, 35, 94, 0.24);
  transform: translateY(-50%);
}

.service-rule::before,
.service-rule::after {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.service-rule::before {
  left: -1px;
  color: var(--warm);
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.18);
}

.service-rule::after {
  right: -1px;
  color: var(--hot);
  box-shadow: 0 0 12px rgba(255, 35, 94, 0.18);
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0;
  row-gap: 0;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(90deg, var(--warm), #ff512e 34%, var(--hot) 68%, #ec1f77);
  background-clip: text;
  color: transparent;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 9px rgba(255, 64, 64, 0.14);
  white-space: normal;
}

.service-segment {
  display: inline-flex;
  white-space: nowrap;
}

.service-divider {
  margin-inline: 0.45ch;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 46px;
  margin-top: var(--button-stack-gap);
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #3b1705, #3f0d22 58%, #2a1247),
    #260b18;
  box-shadow:
    0 0 16px rgba(255, 35, 94, 0.14),
    0 0 8px rgba(255, 122, 0, 0.08),
    inset 0 -10px 18px rgba(255, 35, 94, 0.08),
    inset 0 9px 18px rgba(255, 122, 0, 0.05);
  background-clip: border-box;
  color: transparent;
  font-family:
    "Courier New",
    Courier,
    "Nimbus Mono PS",
    monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  transition:
    box-shadow 180ms ease,
    filter 180ms ease;
}

.contact-pill span {
  background: linear-gradient(90deg, #ff8a16, #ff6840 42%, #ff2d68 78%, #dc3aff);
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 3px rgba(255, 64, 64, 0.1);
}

.contact-pill:hover,
.contact-pill:focus-visible {
  box-shadow:
    0 0 22px rgba(255, 35, 94, 0.2),
    0 0 10px rgba(255, 122, 0, 0.1),
    inset 0 -10px 18px rgba(255, 35, 94, 0.1),
    inset 0 9px 18px rgba(255, 122, 0, 0.06);
  filter: saturate(1.05) brightness(1.05);
}

.contact-pill:focus-visible {
  outline: 1px solid rgba(255, 35, 94, 0.4);
  outline-offset: 4px;
}

@keyframes pageWake {
  0% {
    opacity: 0.96;
  }
  52% {
    opacity: 0.74;
  }
  100% {
    opacity: 0;
  }
}

@keyframes osIgnite {
  0% {
    opacity: 0;
  }
  9% {
    opacity: 0.35;
  }
  14% {
    opacity: 0.06;
  }
  22% {
    opacity: 0.72;
  }
  27% {
    opacity: 0.18;
  }
  39% {
    opacity: 0.95;
  }
  48% {
    opacity: 0.58;
  }
  63% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes manticIgnite {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.2;
  }
  23% {
    opacity: 0.04;
  }
  38% {
    opacity: 0.76;
  }
  46% {
    opacity: 0.38;
  }
  66% {
    opacity: 0.94;
  }
  100% {
    opacity: 1;
  }
}

@keyframes serviceIgnite {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 0 rgba(255, 35, 94, 0));
  }
  15% {
    opacity: 0.2;
    filter: drop-shadow(0 0 7px rgba(255, 122, 0, 0.12));
  }
  23% {
    opacity: 0.04;
    filter: drop-shadow(0 0 0 rgba(255, 35, 94, 0));
  }
  38% {
    opacity: 0.76;
    filter: drop-shadow(0 0 18px rgba(255, 35, 94, 0.18));
  }
  46% {
    opacity: 0.38;
    filter: drop-shadow(0 0 7px rgba(255, 122, 0, 0.1));
  }
  66% {
    opacity: 0.94;
    filter: drop-shadow(0 0 20px rgba(255, 35, 94, 0.16));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 35, 94, 0.1));
  }
}

@keyframes glowSettle {
  to {
    opacity: 0.72;
  }
}

@keyframes glowBreathe {
  0%,
  100% {
    opacity: 0.58;
    transform: translateX(-50%) scale(0.99);
  }
  50% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1.04);
  }
}

@media (max-width: 1040px) {
  :root {
    --hero-width: min(96vw, 920px);
  }

  .split-lockup {
    width: min(100%, 760px);
  }

  .hero-lockup {
    --brand-stack-gap: clamp(38px, 5.4vh, 54px);
  }

  .service-strip {
    width: min(96vw, 920px);
  }

  .service-rule {
    width: min(62vw, 500px);
  }

  .service-row {
    font-size: 1.04rem;
    line-height: 1.65;
  }

  .contact-pill {
    min-width: 124px;
    min-height: 42px;
    padding: 0 22px;
    font-size: 0.88rem;
  }
}

@media (max-width: 760px) {
  :root {
    --hero-width: min(100%, 360px);
  }

  .hero {
    min-height: 100svh;
    padding: 74px 22px 76px;
  }

  .hero-lockup {
    --brand-stack-gap: 34px;
    --button-stack-gap: 48px;
    transform: translateY(-6vh);
  }

  .split-lockup {
    width: min(100%, 335px);
  }

  .os-wrap {
    width: 34%;
  }

  .mantic-wrap {
    width: 64%;
    margin-left: 8px;
  }

  .service-strip {
    width: min(100%, 360px);
  }

  .service-rule {
    width: min(72vw, 240px);
    height: 20px;
    margin-bottom: 15px;
  }

  .service-row {
    font-size: 0.72rem;
    line-height: 1.6;
    white-space: normal;
  }

  .contact-pill {
    min-width: 116px;
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.82rem;
  }

}

@media (max-width: 390px) {
  .split-lockup {
    width: min(100%, 315px);
  }

  .service-strip {
    width: min(100%, 330px);
  }

  .service-row {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-force-motion="true"]) *,
  html:not([data-force-motion="true"]) *::before,
  html:not([data-force-motion="true"]) *::after {
    scroll-behavior: auto !important;
  }

  html:not([data-force-motion="true"]) .page-shell::after {
    animation: none;
    opacity: 0;
  }

  html:not([data-force-motion="true"]) .os-wrap,
  html:not([data-force-motion="true"]) .mantic-wrap,
  html:not([data-force-motion="true"]) .service-strip {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    opacity: 1;
    transform: none;
  }

}
