:root {
  --blue: #0768f5;
  --cyan: #24d7ff;
  --green: #24d986;
  --magenta: #ff0358;
  --ink: #07111f;
  --ink-2: #12233a;
  --muted: #64748b;
  --line: rgba(7, 17, 31, 0.11);
  --soft: #f5f8fd;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(7, 17, 31, 0.14);
  --radius: 8px;
  --container: min(1160px, calc(100% - 40px));
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-marketing: "MuseoModerno", var(--font-ui);
  --font-digital: "Lobster", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(36, 215, 255, 0.12), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f7faff 56%, #ffffff 100%);
  overflow-x: hidden;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] body {
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at top left, rgba(36, 215, 255, 0.08), transparent 34rem),
    linear-gradient(180deg, #080c13 0%, #0d1420 52%, #080c13 100%);
}

html[data-theme="dark"] .site-header {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(10, 14, 22, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(10, 14, 22, 0.94);
}

html[data-theme="dark"] .site-nav {
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .site-nav .nav-switch a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .stack-lane,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .product-gateway,
html[data-theme="dark"] .page-context-bar,
html[data-theme="dark"] .workflow-card,
html[data-theme="dark"] .calculator {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .stat-item {
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .stat-item strong,
html[data-theme="dark"] .product-gateway strong,
html[data-theme="dark"] .page-context-bar strong,
html[data-theme="dark"] .workflow-card,
html[data-theme="dark"] .contact-form label,
html[data-theme="dark"] .calculator label {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] p,
html[data-theme="dark"] .stat-item span,
html[data-theme="dark"] .workflow-card p,
html[data-theme="dark"] .form-note {
  color: rgba(255, 255, 255, 0.68);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .calculator input {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

html[data-theme="dark"] .tool-grid img {
  background: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .section-dark,
html[data-theme="light"] .home-hero,
html[data-theme="light"] .clients-section {
  color: var(--white);
}

html[data-theme="light"] .brand img {
  filter: none;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 3px;
  background: rgba(7, 17, 31, 0.08);
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--green));
}

.site-header {
  position: fixed;
  z-index: 999;
  top: 16px;
  left: 50%;
  width: min(1160px, calc(100% - 32px));
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 14px 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(7, 17, 31, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 0.25s ease, box-shadow 0.25s ease, top 0.25s ease;
}

.site-header.is-scrolled {
  top: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 44px rgba(7, 17, 31, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  min-width: 148px;
  height: 48px;
  overflow: hidden;
}

.brand img {
  width: 142px;
  height: 44px;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: rgba(7, 104, 245, 0.08);
}

.nav-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 4px;
  padding: 4px;
  border: 1px solid rgba(7, 17, 31, 0.1);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.05);
}

.site-nav .nav-switch a {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.site-nav .nav-switch a.is-active {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.12);
}

.floating-theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 991;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(7, 17, 31, 0.18);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.floating-theme-toggle:hover,
.floating-theme-toggle:focus-visible {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(7, 104, 245, 0.32);
  box-shadow: 0 22px 64px rgba(7, 104, 245, 0.22);
}

.theme-icon {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.theme-icon-sun {
  border-radius: 50%;
  background: #ffb020;
  box-shadow:
    0 -11px 0 -8px #ffb020,
    0 11px 0 -8px #ffb020,
    11px 0 0 -8px #ffb020,
    -11px 0 0 -8px #ffb020,
    8px 8px 0 -8px #ffb020,
    -8px 8px 0 -8px #ffb020,
    8px -8px 0 -8px #ffb020,
    -8px -8px 0 -8px #ffb020,
    0 0 24px rgba(255, 176, 32, 0.34);
}

.theme-icon-moon {
  border-radius: 50%;
  background: #24d7ff;
  box-shadow:
    inset -7px 0 0 #0a0f18,
    0 0 28px rgba(36, 215, 255, 0.28);
  opacity: 0;
  transform: scale(0.62) rotate(-26deg);
}

html[data-theme="dark"] .floating-theme-toggle {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(9, 13, 21, 0.86);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.62) rotate(34deg);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.site-nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #05a9ff);
  box-shadow: 0 12px 32px rgba(7, 104, 245, 0.28);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: linear-gradient(135deg, #0657ce, var(--blue));
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 86px 0;
}

.section-dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(5, 27, 55, 0.96)),
    radial-gradient(circle at top right, rgba(7, 104, 245, 0.38), transparent 32rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px max(20px, calc((100vw - 1160px) / 2)) 34px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(36, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

.home-hero {
  min-height: 94svh;
  padding-top: 98px;
  background: #111317;
}

.home-hero::before {
  opacity: 0.22;
}

.home-hero-layout {
  position: relative;
  z-index: 2;
  width: min(1160px, 100%);
  min-height: calc(94svh - 132px);
  margin: 0 auto;
}

.hero-brand-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 170px;
  height: auto;
}

.home-title-wrap {
  position: absolute;
  z-index: 4;
  top: 112px;
  left: 46%;
  width: 900px;
  max-width: 78vw;
  height: 190px;
  transform: translateX(-50%);
}

.home-title {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  color: var(--white);
  font-family: var(--font-marketing);
  line-height: 0.78;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.home-title span:first-child {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  color: var(--white);
  font-size: 7.15rem;
}

.home-title .digital-word {
  position: absolute;
  z-index: 3;
  top: 70px;
  left: 520px;
  margin-top: 0;
  padding-right: 0;
  color: #4168c7;
  font-size: 6.05rem;
  line-height: 0.78;
  text-shadow: 0 20px 44px rgba(23, 55, 140, 0.38);
}

.rocket-poster {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 188px;
  width: 600px;
  max-width: 53vw;
  pointer-events: none;
  transform: rotate(-3.5deg);
  transform-origin: 50% 44%;
}

.rocket-poster::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 7% 11% 9%;
  border: 1px solid rgba(36, 215, 255, 0.32);
  border-right-color: rgba(65, 104, 199, 0.1);
  border-bottom-color: rgba(36, 217, 134, 0.2);
  border-radius: 50%;
  filter: blur(0.2px);
  transform: rotate(18deg) scale(1.03);
}

.rocket-poster::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 4%;
  width: 190px;
  height: 230px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(36, 215, 255, 0.28), rgba(7, 104, 245, 0.14) 48%, transparent 82%);
  filter: blur(16px);
  clip-path: polygon(44% 0, 56% 0, 88% 100%, 12% 100%);
  opacity: 0.9;
  transform: translateX(-50%) rotate(3.5deg);
}

.rocket-poster img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 30px 52px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 34px rgba(36, 215, 255, 0.08));
  animation: floatRocket 6s ease-in-out infinite;
}

.hero-side-copy {
  position: absolute;
  right: 24px;
  bottom: 50px;
  width: min(470px, 42vw);
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 650;
}

.launch-button {
  position: absolute;
  z-index: 5;
  right: 330px;
  bottom: 34px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(36, 215, 255, 0.32);
  border-radius: 8px;
  color: var(--white);
  background: rgba(7, 104, 245, 0.16);
  box-shadow: 0 14px 34px rgba(7, 104, 245, 0.16);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.launch-button:hover,
.launch-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(36, 215, 255, 0.62);
  background: rgba(7, 104, 245, 0.28);
}

.hero-star {
  position: absolute;
  left: 26px;
  bottom: 86px;
  width: 86px;
  height: 86px;
  background: var(--white);
  clip-path: polygon(50% 0, 59% 34%, 91% 15%, 68% 45%, 100% 50%, 68% 55%, 91% 85%, 59% 66%, 50% 100%, 41% 66%, 9% 85%, 32% 55%, 0 50%, 32% 45%, 9% 15%, 41% 34%);
  animation: slowSpin 15s linear infinite;
}

.flight-path {
  position: absolute;
  z-index: 1;
  width: 360px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(36, 215, 255, 0.56), transparent);
  filter: drop-shadow(0 0 12px rgba(36, 215, 255, 0.35));
  opacity: 0;
  transform: rotate(-18deg) translateX(-80px);
}

.flight-path-a {
  left: 12%;
  top: 42%;
  animation: flightSweep 5.6s ease-in-out infinite 0.8s;
}

.flight-path-b {
  left: 44%;
  top: 28%;
  width: 300px;
  animation: flightSweep 6.8s ease-in-out infinite 1.7s;
}

.flight-path-c {
  left: 38%;
  bottom: 18%;
  width: 430px;
  animation: flightSweep 7.2s ease-in-out infinite 2.6s;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(36, 215, 255, 0.08) 48%, transparent 56%);
  opacity: 0;
  transform: translateY(-35%);
}

.is-launching .home-hero::after {
  animation: scanLaunch 1.35s ease-out 2;
}

.is-launching .rocket-poster {
  animation: rocketTilt 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-launching .rocket-poster::after {
  opacity: 1;
  animation: engineBurst 0.75s ease-in-out 4;
}

.is-launching .home-title span:first-child,
.is-launching .home-title .digital-word {
  animation: titleCharge 1.1s ease-in-out 2;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.45;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-marketing);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 4.2rem;
  max-width: 13ch;
}

h2 {
  margin-bottom: 22px;
  font-size: 2.75rem;
  line-height: 1.08;
  max-width: 16ch;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-dark p,
.hero p {
  color: rgba(255, 255, 255, 0.74);
}

.digital-word {
  display: inline-block;
  color: var(--cyan);
  font-family: var(--font-digital);
  font-weight: 400;
  line-height: 0.92;
  text-transform: lowercase;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 32px;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.34) 42%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(120%);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #00a6ff);
  box-shadow: 0 20px 44px rgba(7, 104, 245, 0.32);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.light {
  color: var(--ink);
  border-color: rgba(7, 17, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.btn.quiet {
  color: var(--blue);
  border-color: rgba(7, 104, 245, 0.18);
  background: rgba(7, 104, 245, 0.08);
}

.btn.full {
  width: 100%;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.rocket-stage {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 0.86;
  display: grid;
  place-items: center;
}

.rocket-stage img {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.42));
  animation: floatRocket 5.5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(36, 215, 255, 0.34);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.orbit-one {
  inset: 8% -6%;
}

.orbit-two {
  inset: 18% 5%;
  border-color: rgba(36, 217, 134, 0.28);
  transform: rotate(24deg);
}

.mission-card {
  position: absolute;
  z-index: 3;
  width: 168px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.62);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.mission-card strong {
  display: block;
  color: var(--cyan);
  font-family: var(--font-marketing);
  font-size: 1.55rem;
  line-height: 1;
}

.mission-card span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.4;
}

.mission-card-a {
  top: 15%;
  right: -8%;
}

.mission-card-b {
  left: -10%;
  bottom: 17%;
}

.stats-strip,
.erp-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-28px);
}

.product-gateway,
.page-context-bar {
  width: var(--container);
  margin: -10px auto 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(7, 104, 245, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 52px rgba(7, 17, 31, 0.08);
}

.product-gateway span,
.page-context-bar span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-gateway strong,
.page-context-bar strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-marketing);
  font-size: 1.35rem;
  line-height: 1.1;
}

.product-gateway p,
.page-context-bar p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.page-context-bar {
  grid-template-columns: auto 1fr auto;
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.stat-item {
  position: relative;
  min-height: 132px;
  padding: 24px 24px 24px 92px;
  background: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, transform 0.2s ease;
}

.stat-item:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.stat-orb {
  position: absolute;
  left: 24px;
  top: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--white) 0 18%, var(--cyan) 19% 44%, var(--blue) 45% 100%);
  box-shadow: 0 14px 30px rgba(7, 104, 245, 0.22);
}

.stat-orb::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(7, 104, 245, 0.24);
  border-top-color: transparent;
  border-radius: 50%;
  animation: slowSpin 8s linear infinite;
}

.stat-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-marketing);
  font-size: 2rem;
  line-height: 1;
}

.stat-item span {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  align-items: start;
  gap: clamp(36px, 6vw, 84px);
}

.section-heading.center {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.center h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p:last-child {
  max-width: 640px;
}

.section-heading.center p:last-child {
  margin-left: auto;
  margin-right: auto;
}

.service-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card,
.feature-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(7, 17, 31, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 104, 245, 0.22);
  box-shadow: 0 24px 64px rgba(7, 17, 31, 0.11);
}

.service-card h3,
.feature-card h3 {
  font-size: 0.98rem;
  line-height: 1.28;
}

.service-card p,
.feature-card p {
  font-size: 0.9rem;
  line-height: 1.58;
}

.service-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--font-marketing);
  font-size: 1rem;
  font-weight: 900;
}

.service-icon {
  float: right;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(7, 104, 245, 0.1), rgba(36, 217, 134, 0.18));
  border: 1px solid rgba(7, 104, 245, 0.18);
  position: relative;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--blue);
}

.service-icon::after {
  inset: 8px;
  background: transparent;
  border: 1px solid var(--cyan);
  animation: pulseRing 2.6s ease-in-out infinite;
}

.service-card-wide {
  grid-column: 1 / -1;
  min-height: 150px;
}

.productions {
  width: 100%;
  padding: 92px 0;
}

.production-rail {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 34px auto 0;
  overflow: visible;
}

.production-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    #090d14;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  transform: translateZ(0);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(7, 17, 31, 0.62);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.92);
  transform: translate(-34%, -50%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.video-card:hover,
.video-card:focus-within {
  border-color: rgba(36, 215, 255, 0.34);
  box-shadow: 0 28px 86px rgba(7, 104, 245, 0.22);
  transform: translateY(-6px);
}

.video-card:hover::before,
.video-card:focus-within::before,
.video-card:hover::after,
.video-card:focus-within::after,
.video-card.is-playing::before,
.video-card.is-playing::after {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 24%, rgba(36, 215, 255, 0.2), transparent 11rem),
    linear-gradient(145deg, #111827, #05070a);
  transform: scale(1.01);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.video-card:hover video,
.video-card:focus-within video {
  transform: scale(1.045);
}

.video-card div {
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px);
}

.video-card strong,
.video-card span {
  display: block;
}

.video-card strong {
  font-size: 1rem;
}

.video-card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.clients-section {
  width: 100%;
  padding-top: 104px;
  padding-bottom: 112px;
  padding-left: max(20px, calc((100vw - 1160px) / 2));
  padding-right: max(20px, calc((100vw - 1160px) / 2));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    radial-gradient(circle at 16% 24%, rgba(36, 215, 255, 0.09), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(7, 104, 245, 0.13), transparent 30rem),
    #07090d;
}

.clients-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: 70px;
  margin: 0 auto 42px;
  width: min(1160px, 100%);
}

.clients-intro h2 {
  max-width: 520px;
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.04;
}

.clients-intro .eyebrow {
  margin-bottom: 14px;
}

.client-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.client-metrics span {
  min-height: 74px;
  padding: 17px 18px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font-size: 0.82rem;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.client-metrics span:last-child {
  border-right: 0;
}

.client-metrics strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-family: var(--font-marketing);
  font-size: 1.08rem;
  line-height: 1;
}

.logo-cloud {
  position: relative;
  display: flex;
  gap: 0;
  overflow: hidden;
  width: 100vw;
  margin: 0 50%;
  padding: 8px 0;
  border-block: 0;
  transform: translateX(-50%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.logo-cloud::before,
.logo-cloud::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 180px;
  pointer-events: none;
}

.logo-cloud::before {
  left: 0;
  background: linear-gradient(90deg, #07090d 12%, rgba(7, 9, 13, 0));
}

.logo-cloud::after {
  right: 0;
  background: linear-gradient(270deg, #07090d 12%, rgba(7, 9, 13, 0));
}

.logo-cloud::selection {
  background: transparent;
}

.logo-marquee-track {
  display: flex;
  min-width: max-content;
  align-items: center;
  will-change: transform;
  transform: translate3d(-240px, 0, 0);
}

.logo-row {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.logo-row img {
  width: 176px;
  height: 68px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.93));
  object-fit: contain;
  filter: grayscale(0.1) saturate(0.92);
  opacity: 1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.logo-row img:hover {
  transform: translateY(-4px) scale(1.03);
  filter: grayscale(0) saturate(1.05);
  box-shadow: 0 22px 48px rgba(7, 104, 245, 0.2);
}

.stack-section {
  padding-top: 70px;
}

.stack-section .section-heading {
  margin-bottom: 28px;
}

.stack-section .section-heading h2 {
  max-width: none;
  font-size: 2rem;
}

.stack-lanes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stack-lane {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tool-grid img {
  width: 100%;
  height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.method-section {
  width: 100%;
  padding: 112px max(20px, calc((100vw - 1160px) / 2));
}

.method-timeline,
.workflow-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.method-step,
.workflow-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.method-step span,
.workflow-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 34px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 900;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 84px);
  padding-top: 82px;
  padding-bottom: 104px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 50px rgba(7, 17, 31, 0.08);
}

.contact-form .field-wide,
.contact-form .full,
.contact-form .form-note {
  grid-column: 1 / -1;
}

.contact-form label,
.calculator label {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.calculator input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(7, 17, 31, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.calculator input:focus {
  border-color: rgba(7, 104, 245, 0.54);
  box-shadow: 0 0 0 4px rgba(7, 104, 245, 0.1);
}

.form-note {
  margin: 0;
  font-size: 0.84rem;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 64px 20px 36px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: var(--ink);
}

.site-footer img {
  width: 74px;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-weight: 800;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

.site-footer small {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-sticky-cta {
  position: fixed;
  z-index: 990;
  right: 16px;
  bottom: 16px;
  display: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 18px 44px rgba(7, 17, 31, 0.24);
  font-weight: 900;
}

.erp-page {
  background:
    radial-gradient(circle at top right, rgba(36, 217, 134, 0.15), transparent 28rem),
    linear-gradient(180deg, #f7fbff, #ffffff 40%, #f7fbff 100%);
}

.erp-hero {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(232, 244, 255, 0.92)),
    radial-gradient(circle at top right, rgba(7, 104, 245, 0.2), transparent 34rem);
}

.erp-hero .eyebrow {
  color: var(--blue);
}

.erp-hero p {
  color: var(--muted);
}

.erp-hero h1 {
  max-width: 12ch;
  font-size: 3.65rem;
}

.erp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 28px;
}

.erp-hero-pills span {
  padding: 9px 12px;
  border: 1px solid rgba(7, 104, 245, 0.14);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(7, 104, 245, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
}

html[data-theme="dark"] .erp-page {
  background:
    radial-gradient(circle at top right, rgba(36, 217, 134, 0.12), transparent 28rem),
    linear-gradient(180deg, #080c13, #0d1420 44%, #080c13 100%);
}

html[data-theme="dark"] .erp-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 74% 20%, rgba(36, 215, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 22% 78%, rgba(7, 104, 245, 0.16), transparent 28rem),
    linear-gradient(135deg, rgba(8, 12, 19, 0.98), rgba(12, 24, 42, 0.96));
}

html[data-theme="dark"] .erp-hero .eyebrow {
  color: var(--cyan);
}

html[data-theme="dark"] .erp-hero p {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .erp-hero-pills span {
  color: var(--cyan);
  border-color: rgba(36, 215, 255, 0.2);
  background: rgba(36, 215, 255, 0.08);
}

html[data-theme="dark"] .browser-frame {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.erp-showcase {
  position: relative;
  min-height: 500px;
}

.browser-frame {
  position: relative;
  padding-top: 34px;
}

.browser-frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: #eef4fb;
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
}

html[data-theme="dark"] .browser-frame::before {
  background: rgba(255, 255, 255, 0.075);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.browser-frame span {
  position: absolute;
  top: 13px;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.browser-frame span:nth-child(1) {
  left: 14px;
  background: var(--magenta);
}

.browser-frame span:nth-child(2) {
  left: 30px;
  background: #ffb020;
}

.browser-frame span:nth-child(3) {
  left: 46px;
  background: var(--green);
}

.main-frame {
  transform: rotate(1.4deg);
}

.main-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: left top;
}

.floating-panel {
  position: absolute;
  z-index: 4;
  width: 190px;
  padding: 16px;
  border-radius: 8px;
  color: var(--white);
  box-shadow: 0 22px 54px rgba(7, 17, 31, 0.2);
}

.floating-panel strong,
.floating-panel span {
  display: block;
}

.floating-panel span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.panel-green {
  left: -18px;
  bottom: 74px;
  background: linear-gradient(135deg, #17c97c, var(--green));
}

.panel-blue {
  right: -18px;
  top: 72px;
  background: linear-gradient(135deg, var(--blue), #0099ff);
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  min-height: 178px;
}

.feature-card h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.demo-section {
  width: 100%;
  padding: 112px max(20px, calc((100vw - 1160px) / 2));
}

.erp-tabs {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.tab-list button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.tab-list button.active {
  color: var(--white);
  background: rgba(7, 104, 245, 0.38);
}

.tab-panel {
  display: none;
  grid-template-columns: 0.42fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 30px;
}

.tab-panel.active {
  display: grid;
}

.tab-panel h3 {
  font-family: var(--font-marketing);
  font-size: 2rem;
}

.tab-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.tab-panel img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  object-position: left top;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.impact-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.calc-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #02a4ff);
}

.calc-result span,
.calc-result small {
  color: rgba(255, 255, 255, 0.76);
}

.calc-result strong {
  font-family: var(--font-marketing);
  font-size: 3.65rem;
  line-height: 1;
}

.workflow-section {
  padding-top: 40px;
}

.workflow-card {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.workflow-card p {
  color: var(--muted);
}

.faq-section {
  width: 100%;
  padding: 112px max(20px, calc((100vw - 1160px) / 2));
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.faq-list summary {
  cursor: pointer;
  padding: 22px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-ready .delay-1 {
  transition-delay: 0.12s;
}

.js-ready .delay-2 {
  transition-delay: 0.22s;
}

@keyframes logoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 16px));
  }
}

@keyframes floatRocket {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes flightSweep {
  0%,
  54%,
  100% {
    opacity: 0;
    transform: rotate(-18deg) translateX(-130px);
  }
  62% {
    opacity: 0.9;
  }
  78% {
    opacity: 0;
    transform: rotate(-18deg) translateX(180px);
  }
}

@keyframes scanLaunch {
  0% {
    opacity: 0;
    transform: translateY(-42%);
  }
  32% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(52%);
  }
}

@keyframes rocketTilt {
  0%,
  100% {
    transform: rotate(-3.5deg) translateY(0) scale(1);
  }
  38% {
    transform: rotate(-6deg) translateY(-18px) scale(1.025);
  }
  64% {
    transform: rotate(-2.2deg) translateY(8px) scale(0.998);
  }
}

@keyframes engineBurst {
  0%,
  100% {
    transform: translateX(-50%) rotate(3.5deg) scaleY(0.92);
    filter: blur(16px);
  }
  50% {
    transform: translateX(-50%) rotate(3.5deg) scaleY(1.24);
    filter: blur(22px);
  }
}

@keyframes titleCharge {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(36, 215, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(36, 215, 255, 0.28));
  }
}

@media (max-width: 1020px) {
  .site-header {
    height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(7, 17, 31, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  html[data-theme="dark"] .site-nav {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 22, 0.98);
  }

  .nav-switch {
    width: 100%;
    margin-right: 0;
  }

  .site-nav .nav-switch a {
    flex: 1;
    justify-content: center;
    min-height: 42px;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    min-height: 46px;
  }

  .hero-grid,
  .split-section,
  .contact-section,
  .impact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-copy {
    max-width: none;
  }

  h1,
  h2 {
    max-width: 13ch;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .home-title {
    font-size: 4.75rem;
  }

  .home-title-wrap {
    left: 46%;
    width: 720px;
    max-width: 82vw;
    height: 152px;
    transform: translateX(-50%);
  }

  .home-title span:first-child {
    font-size: 5.1rem;
  }

  .home-title .digital-word {
    top: 50px;
    left: 374px;
    padding-right: 0;
    font-size: 4.55rem;
  }

  .erp-hero h1 {
    font-size: 3rem;
  }

  .rocket-poster {
    left: 92px;
    width: 490px;
    max-width: 58vw;
    transform: rotate(-3deg);
  }

  .hero-side-copy {
    width: min(390px, 44vw);
    right: 0;
  }

  .launch-button {
    right: 0;
    bottom: 8px;
  }

  .stats-strip,
  .erp-proof,
  .method-timeline,
  .workflow-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-gateway,
  .page-context-bar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .clients-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .clients-intro .eyebrow {
    margin-bottom: 0;
  }

  .client-metrics {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .calculator {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  body {
    padding-bottom: 70px;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 20px);
    padding-left: 12px;
  }

  .brand {
    width: 126px;
    min-width: 126px;
    height: 44px;
  }

  .brand img {
    width: 120px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    padding: 104px 14px 34px;
  }

  .home-hero {
    min-height: auto;
    padding-top: 92px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .home-hero-layout {
    min-height: auto;
    display: grid;
    gap: 20px;
  }

  .hero-brand-large,
  .home-title-wrap,
  .rocket-poster,
  .hero-side-copy,
  .launch-button,
  .hero-star {
    position: static;
  }

  .home-title-wrap {
    width: auto;
    max-width: none;
    height: auto;
    transform: none;
  }

  .hero-brand-large {
    width: 132px;
  }

  .home-title {
    font-size: 3.45rem;
    line-height: 0.9;
    height: auto;
  }

  .home-title span:first-child,
  .home-title .digital-word {
    position: static;
  }

  .home-title .digital-word {
    margin-top: -10px;
    padding-right: 0;
    font-size: 3.15rem;
  }

  .erp-hero h1 {
    font-size: 2.45rem;
  }

  .rocket-poster {
    width: min(365px, 100%);
    max-width: none;
    margin: -18px auto 0;
    transform: rotate(-2deg);
  }

  .hero-side-copy {
    width: auto;
    font-size: 0.94rem;
  }

  .launch-button {
    width: fit-content;
    margin-top: -8px;
  }

  .hero-star {
    display: none;
  }

  .flight-path {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .rocket-stage {
    width: min(340px, 96vw);
  }

  .mission-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .rocket-stage {
    gap: 10px;
  }

  .orbit {
    display: none;
  }

  .stats-strip,
  .erp-proof,
  .service-grid,
  .feature-grid,
  .method-timeline,
  .workflow-line,
  .stack-lanes {
    grid-template-columns: 1fr;
  }

  .stats-strip,
  .erp-proof {
    transform: none;
    margin-top: 22px;
  }

  .product-gateway,
  .page-context-bar {
    margin-top: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .productions,
  .method-section,
  .demo-section,
  .faq-section {
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .production-rail {
    width: min(100% - 28px, 520px);
  }

  .production-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-card video {
    aspect-ratio: 9 / 12.5;
  }

  .logo-row img {
    width: 148px;
    height: 62px;
  }

  .logo-cloud {
    width: 100vw;
  }

  .clients-intro h2 {
    font-size: 2rem;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-frame img {
    height: 300px;
  }

  .floating-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .erp-showcase {
    min-height: auto;
  }

  .tab-panel {
    padding: 18px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .calc-result strong {
    font-size: 2.35rem;
  }

  .mobile-sticky-cta {
    display: inline-flex;
  }

  .floating-theme-toggle {
    right: 16px;
    bottom: 86px;
    width: 50px;
    height: 50px;
  }
}

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

/* APL polish v017 */
.page-context-bar {
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(170px, auto) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  margin: clamp(24px, 3.5vw, 46px) auto 0;
  padding: 18px 22px;
}

.page-context-bar p {
  margin: 0;
}

.page-context-bar .btn {
  width: auto;
  justify-self: end;
  white-space: nowrap;
}

.erp-proof {
  position: relative;
  z-index: 1;
  margin-top: clamp(22px, 2.8vw, 34px);
  transform: none;
}

.erp-proof .stat-item {
  display: grid;
  align-content: center;
  min-height: 148px;
  padding: 32px clamp(24px, 3vw, 40px);
}

.erp-proof .stat-item strong {
  font-size: clamp(1.85rem, 2.6vw, 2.3rem);
}

@media (max-width: 1080px) {
  .page-context-bar {
    grid-template-columns: 1fr;
  }

  .page-context-bar .btn {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 96px 16px 46px;
  }

  .home-hero-layout {
    width: min(100%, 520px);
    gap: 16px;
    align-items: start;
  }

  .hero-brand-large {
    order: 0;
    width: 118px;
    margin-bottom: 2px;
  }

  .home-title-wrap {
    order: 1;
    width: 100%;
  }

  .home-title {
    max-width: 9ch;
    font-size: clamp(3rem, 16.5vw, 4.1rem);
    line-height: 0.88;
  }

  .home-title span:first-child,
  .home-title .digital-word {
    display: block;
  }

  .home-title .digital-word {
    margin-top: -0.04em;
    font-size: clamp(2.9rem, 15vw, 3.85rem);
  }

  .rocket-poster {
    order: 2;
    width: min(310px, 88vw);
    margin: -4px auto 0;
    transform: rotate(-1.25deg);
  }

  .hero-side-copy {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .launch-button {
    order: 4;
    width: 100%;
    min-height: 52px;
    margin-top: 0;
    justify-content: center;
  }

  .page-context-bar {
    width: min(100% - 28px, 520px);
    margin-top: 22px;
    padding: 18px;
    gap: 12px;
  }

  .page-context-bar .btn {
    width: 100%;
    justify-self: stretch;
  }

  .erp-proof {
    width: min(100% - 28px, 520px);
    margin-top: 18px;
  }

  .erp-proof .stat-item {
    min-height: 126px;
    padding: 26px 24px;
  }
}

@media (max-width: 420px) {
  .home-title {
    max-width: 8.5ch;
    font-size: clamp(2.72rem, 16vw, 3.2rem);
  }

  .home-title .digital-word {
    font-size: clamp(2.58rem, 14.8vw, 3rem);
  }

  .rocket-poster {
    width: min(286px, 86vw);
  }
}


/* APL mobile hero polish v018 */
@media (max-width: 720px) {
  .home-title {
    max-width: 100%;
  }

  .home-title span:first-child {
    font-size: clamp(3.05rem, 17vw, 4.1rem);
  }

  .rocket-poster {
    width: min(272px, 78vw);
  }

  .hero-side-copy {
    padding: 14px 15px;
    font-size: 0.91rem;
    line-height: 1.48;
  }

  .mobile-sticky-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  body.has-sticky-cta .mobile-sticky-cta {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .home-title span:first-child {
    font-size: clamp(2.75rem, 15.4vw, 3.15rem);
  }

  .home-title .digital-word {
    font-size: clamp(2.5rem, 14.4vw, 2.9rem);
  }

  .rocket-poster {
    width: min(252px, 76vw);
  }
}


/* APL mobile floating controls v019 */
@media (max-width: 720px) {
  .floating-theme-toggle {
    display: none;
  }
}

/* APL mobile overflow and production carousel v020 */
.production-rail {
  overflow: hidden;
  max-width: 100%;
}

.production-rail::before,
.production-rail::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: clamp(54px, 8vw, 118px);
  pointer-events: none;
}

.production-rail::before {
  left: 0;
  background: linear-gradient(90deg, #07090d 0%, rgba(7, 9, 13, 0));
}

.production-rail::after {
  right: 0;
  background: linear-gradient(270deg, #07090d 0%, rgba(7, 9, 13, 0));
}

.production-track {
  display: flex;
  grid-template-columns: none;
  width: max-content;
  max-width: none;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.production-rail.is-looping .production-track {
  animation: productionLoop 62s linear infinite;
}

.production-rail:hover .production-track,
.production-rail:focus-within .production-track {
  animation-play-state: paused;
}

.video-card {
  flex: 0 0 clamp(224px, 23vw, 274px);
}

.video-card.is-carousel-clone {
  pointer-events: none;
}

@keyframes productionLoop {
  to {
    transform: translate3d(var(--production-loop-distance, -50%), 0, 0);
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .clients-section {
    overflow: hidden;
  }

  .logo-cloud {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none;
    contain: paint;
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }

  .logo-cloud::before,
  .logo-cloud::after {
    width: 58px;
  }

  .logo-marquee-track {
    transform: translate3d(0, 0, 0);
  }

  .production-rail {
    width: min(100% - 28px, 520px);
  }

  .production-track {
    grid-template-columns: none;
    gap: 14px;
  }

  .production-rail.is-looping .production-track {
    animation-duration: 46s;
  }

  .video-card {
    flex-basis: min(74vw, 284px);
  }

  .floating-theme-toggle {
    display: grid;
    right: 16px;
    bottom: 86px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 420px) {
  .video-card {
    flex-basis: min(76vw, 278px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .production-rail.is-looping .production-track {
    animation: none;
  }
}

/* APL global overflow guard v021 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.home-hero,
.productions,
.clients-section {
  overflow-x: hidden;
}


/* APL spacing and video poster polish v022 */
@media (min-width: 761px) {
  .erp-hero {
    min-height: clamp(590px, 72svh, 720px);
    padding-bottom: clamp(34px, 4vw, 54px);
  }

  .erp-hero + .page-context-bar {
    margin-top: clamp(12px, 1.8vw, 24px);
  }
}

.video-card video[poster] {
  background-size: cover;
  background-position: center;
}

.video-card:not(.is-playing) video[poster] {
  opacity: 0.94;
}

.video-card:not(.is-playing)::before {
  background: rgba(7, 17, 31, 0.5);
}

@media (max-width: 720px) {
  .productions {
    padding-top: 70px;
    padding-bottom: 72px;
  }

  .production-rail {
    margin-top: 26px;
  }
}


/* APL clients polish v023 */
.clients-section {
  padding-top: clamp(82px, 8vw, 116px);
  padding-bottom: clamp(88px, 8vw, 124px);
}

.clients-intro {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.04fr);
  align-items: end;
  gap: clamp(34px, 5vw, 72px);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.clients-intro h2 {
  max-width: 580px;
  font-size: clamp(2.42rem, 3.35vw, 3.18rem);
  line-height: 0.98;
}

.client-metrics {
  gap: 10px;
  border: 0;
}

.client-metrics span {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.client-metrics strong {
  margin-bottom: 8px;
  font-size: clamp(1.24rem, 1.7vw, 1.48rem);
}

.logo-cloud {
  width: min(1160px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 0;
  transform: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-cloud::before,
.logo-cloud::after {
  width: clamp(42px, 6vw, 96px);
}

.logo-marquee-track {
  transform: translate3d(0, 0, 0);
}

.logo-row {
  gap: 14px;
  padding-right: 14px;
}

.logo-row img {
  width: clamp(190px, 15.8vw, 228px);
  height: 90px;
  padding: 10px 16px;
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1080px) {
  .clients-intro {
    width: min(100% - 28px, 760px);
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .clients-intro .eyebrow {
    margin-bottom: 12px;
  }

  .client-metrics {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .clients-section {
    padding: 72px 14px 88px;
  }

  .clients-intro {
    width: min(100%, 520px);
    margin: 0 auto 30px;
  }

  .clients-intro h2 {
    max-width: 10.8ch;
    font-size: clamp(2.28rem, 10.8vw, 3rem);
  }

  .client-metrics {
    gap: 8px;
  }

  .client-metrics span {
    min-height: 86px;
    padding: 13px 10px;
    font-size: 0.74rem;
    line-height: 1.28;
  }

  .client-metrics strong {
    margin-bottom: 6px;
    font-size: 1.08rem;
  }

  .logo-cloud {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 8px 0;
    transform: none;
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  .logo-cloud::before,
  .logo-cloud::after {
    width: 42px;
  }

  .logo-row {
    gap: 10px;
    padding-right: 10px;
  }

  .logo-row img {
    width: 172px;
    height: 76px;
    padding: 9px 12px;
  }
}

@media (max-width: 360px) {
  .client-metrics {
    grid-template-columns: 1fr;
  }
}


/* APL optimized client logos v024 */
.logo-row img[src*="assets/clientes/optimized/"] {
  padding: 8px 14px;
}

@media (max-width: 720px) {
  .logo-row img[src*="assets/clientes/optimized/"] {
    padding: 7px 11px;
  }
}


/* APL video lightbox v028 */
body.video-modal-open {
  overflow: hidden;
}

.video-lightbox {
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  color: #f8fbff;
  background: transparent;
  border: 0;
}

.video-lightbox::backdrop {
  background: rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(16px);
}

.video-lightbox-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 21, 38, 0.98), rgba(3, 10, 20, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 16px 12px;
}

.video-lightbox-kicker {
  display: block;
  color: #24d7ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.video-lightbox h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  line-height: 1.05;
}

.video-lightbox-close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.video-lightbox-close span {
  font-size: 1.55rem;
  line-height: 1;
  transform: translateY(-1px);
}

.video-lightbox-close:hover,
.video-lightbox-close:focus-visible {
  border-color: rgba(36, 215, 255, 0.48);
  background: rgba(36, 215, 255, 0.18);
  transform: translateY(-1px);
}

.video-lightbox video {
  display: block;
  width: 100%;
  max-height: min(72dvh, 760px);
  background: #02060c;
  object-fit: contain;
}

.video-lightbox-caption {
  margin: 0;
  padding: 12px 16px 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.video-card {
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 520px) {
  .video-lightbox {
    width: calc(100vw - 20px);
  }

  .video-lightbox-header {
    padding: 14px 14px 10px;
  }

  .video-lightbox video {
    max-height: 70dvh;
  }
}

/* APL mobile video carousel fix v028 */
@media (hover: none), (pointer: coarse) {
  .production-rail:hover .production-track,
  .production-rail:focus-within .production-track,
  .production-rail.is-looping .production-track {
    animation-play-state: running !important;
  }

  .video-card:focus-within,
  .video-card:hover {
    transform: none;
  }

  .video-card:focus-within video,
  .video-card:hover video {
    transform: none;
  }
}

body.video-modal-open .production-rail.is-looping .production-track {
  animation-play-state: paused !important;
}


/* APL professional theme switch v029 */
.floating-theme-toggle {
  width: 92px;
  height: 46px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(7, 17, 31, 0.12);
  box-shadow: 0 18px 52px rgba(7, 17, 31, 0.2);
}

.floating-theme-toggle:hover,
.floating-theme-toggle:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(7, 104, 245, 0.34);
  box-shadow: 0 22px 64px rgba(7, 104, 245, 0.22);
}

.theme-toggle-track {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(7, 104, 245, 0.1), rgba(36, 215, 255, 0.14));
  box-shadow: inset 0 0 0 1px rgba(7, 17, 31, 0.08);
}

.theme-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f4f8ff);
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.22s ease, box-shadow 0.22s ease;
}

.theme-icon,
.theme-icon-sun,
.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

.theme-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  color: #f5a400;
}

.theme-icon-moon {
  color: rgba(7, 17, 31, 0.42);
}

html[data-theme="dark"] .floating-theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(8, 13, 23, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, rgba(36, 215, 255, 0.16), rgba(7, 104, 245, 0.24));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(46px);
  background: linear-gradient(135deg, #111a2b, #07111f);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .theme-icon-sun {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .theme-icon-moon {
  color: #24d7ff;
}

.floating-theme-toggle:active .theme-toggle-thumb {
  transform: scale(0.96);
}

html[data-theme="dark"] .floating-theme-toggle:active .theme-toggle-thumb {
  transform: translateX(46px) scale(0.96);
}

@media (max-width: 720px) {
  .floating-theme-toggle {
    width: 88px;
    height: 44px;
    right: 14px;
    bottom: 86px;
  }

  .theme-toggle-thumb {
    width: 36px;
    height: 36px;
  }

  html[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(44px);
  }

  html[data-theme="dark"] .floating-theme-toggle:active .theme-toggle-thumb {
    transform: translateX(44px) scale(0.96);
  }
}
