:root {
  --bg: #070b0d;
  --bg-soft: #101719;
  --ink: #f7f3ea;
  --muted: #aab4af;
  --panel: rgba(13, 21, 23, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --secondary: #143f3b;
  --secondary-soft: rgba(64, 118, 109, 0.18);
  --accent: #d8892f;
  --accent-dark: #f2aa4f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --glow: 0 0 52px rgba(216, 137, 47, 0.28);
  --glass-blur: blur(22px) saturate(130%);
  --heading: "Space Grotesk", sans-serif;
  --body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

body[data-theme="amber"] {
  --theme-name: "Amber";
  --bg: #070b0d;
  --bg-soft: #101719;
  --ink: #f7f3ea;
  --muted: #aab4af;
  --panel: rgba(13, 21, 23, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --secondary: #143f3b;
  --secondary-soft: rgba(64, 118, 109, 0.18);
  --accent: #d8892f;
  --accent-dark: #f2aa4f;
  --line: rgba(255, 255, 255, 0.14);
  --glow: 0 0 52px rgba(216, 137, 47, 0.28);
}

body[data-theme="cyber"] {
  --theme-name: "Cyber";
  --bg: #050812;
  --bg-soft: #0c1223;
  --ink: #f4fbff;
  --muted: #9fc7dd;
  --panel: rgba(8, 18, 34, 0.76);
  --panel-strong: rgba(53, 215, 255, 0.1);
  --secondary: #123357;
  --secondary-soft: rgba(54, 148, 255, 0.18);
  --accent: #35d7ff;
  --accent-dark: #7de8ff;
  --line: rgba(125, 232, 255, 0.18);
  --glow: 0 0 58px rgba(53, 215, 255, 0.3);
}

body[data-theme="luxe"] {
  --theme-name: "Luxe";
  --bg: #090609;
  --bg-soft: #160e14;
  --ink: #fff8ec;
  --muted: #d7b8c6;
  --panel: rgba(30, 14, 24, 0.76);
  --panel-strong: rgba(230, 193, 106, 0.1);
  --secondary: #4a1831;
  --secondary-soft: rgba(234, 84, 140, 0.18);
  --accent: #e6c16a;
  --accent-dark: #f4d98f;
  --line: rgba(230, 193, 106, 0.2);
  --glow: 0 0 58px rgba(230, 193, 106, 0.28);
}

body::before {
  display: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #1d1408;
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.animated-background,
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.animated-background {
  z-index: -1;
  background:
    radial-gradient(circle at 72% 18%, rgba(216, 137, 47, 0.16), transparent 280px),
    linear-gradient(135deg, rgba(21, 72, 67, 0.42), transparent 34%),
    linear-gradient(180deg, #070b0d 0%, #0a1113 52%, #10120f 100%);
}

.ambient {
  position: absolute;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(72px);
  transform: translateZ(0);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

.ambient-one {
  top: -18vw;
  left: -12vw;
  background: rgba(216, 137, 47, 0.42);
}

.ambient-two {
  right: -18vw;
  top: 18vh;
  background: rgba(35, 113, 102, 0.56);
  animation-delay: 2.8s;
}

.ambient-three {
  left: 28vw;
  bottom: -24vw;
  background: rgba(255, 225, 173, 0.22);
  animation-delay: 5.2s;
}

.noise-overlay {
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 3px 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: var(--scroll-progress, 0%);
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ffe0ad);
  box-shadow: 0 0 22px rgba(216, 137, 47, 0.5);
}

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

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

:focus-visible {
  outline: 3px solid rgba(242, 170, 79, 0.92);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 11, 13, 0.62);
  color: #fff;
  transform: translateX(-50%);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  animation: headerDrop 720ms ease both;
}

.brand,
.nav-links,
.hero-actions,
.hero-proof,
.metrics,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4bd72, var(--accent));
  color: #16120d;
  font-family: var(--heading);
  font-size: 0.78rem;
}

.nav-links {
  gap: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.header-cta {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #111714;
  font-size: 0.88rem;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.12);
}

.button {
  border: 1px solid transparent;
  padding: 0 22px;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #f4bd72, var(--accent) 56%, #b96d21);
  color: #1d1408;
  box-shadow: 0 16px 42px rgba(216, 137, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.button-primary::after {
  position: absolute;
  inset: -70% auto -70% -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  content: "";
  transform: rotate(18deg);
  transition: left 520ms ease;
}

.button-primary:hover::after {
  left: 110%;
}

.button-primary:hover {
  background: #eda247;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: var(--glass-blur);
}

.button-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.button-whatsapp {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(31, 143, 86, 0.92);
  color: #fff;
}

.button-whatsapp:hover {
  background: #26a866;
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 35%, rgba(216, 137, 47, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(5, 9, 10, 0.94) 0%, rgba(7, 12, 13, 0.74) 48%, rgba(7, 12, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 9, 10, 0.24) 0%, rgba(5, 9, 10, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 172px 0 86px;
}

.hero-content::after {
  display: block;
  width: min(360px, 68vw);
  height: 2px;
  margin-top: 46px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  transform-origin: left;
  animation: lineGrow 1100ms 420ms ease both;
}

.hero-ui-lab {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(430px, 36vw);
  min-height: 360px;
  pointer-events: none;
}

.browser-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(9, 16, 18, 0.58);
  box-shadow: var(--shadow), 0 0 72px rgba(216, 137, 47, 0.16);
  backdrop-filter: var(--glass-blur);
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
  animation: browserFloat 7s ease-in-out infinite;
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.browser-top i {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.browser-screen {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 310px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(20, 63, 59, 0.56), rgba(10, 16, 18, 0.64)),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 47px 48px);
}

.browser-hero {
  min-height: 126px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, #143f3b, #2e736a 58%, var(--accent));
  box-shadow: var(--glow);
}

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

.browser-content span,
.browser-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.browser-content span {
  min-height: 74px;
}

.browser-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
  backdrop-filter: var(--glass-blur);
  animation: windowFloat 6s ease-in-out infinite;
}

.browser-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.browser-card strong {
  font-family: var(--heading);
  line-height: 1;
}

.browser-card-primary {
  right: -22px;
  bottom: 42px;
}

.browser-card-primary strong {
  color: #f4bd72;
  font-size: 2rem;
}

.browser-card-secondary {
  left: -26px;
  bottom: 96px;
  animation-delay: 1s;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

h3 {
  font-size: 1.38rem;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
  animation: floatChip 5s ease-in-out infinite;
}

.hero-proof span:nth-child(2) {
  animation-delay: 450ms;
}

.hero-proof span:nth-child(3) {
  animation-delay: 900ms;
}

.motion-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 18, 20, 0.88);
  color: #fff;
}

.motion-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 18px 0;
  animation: marquee 24s linear infinite;
}

.motion-track span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--heading);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
}

.motion-track span::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.kinetic-section {
  overflow: hidden;
  padding: 92px max(16px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 137, 47, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(10, 18, 20, 0.9), rgba(14, 28, 30, 0.72)),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 255, 255, 0.035) 23px 24px);
}

.kinetic-copy {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: end;
  margin-bottom: 36px;
}

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

.glass-card,
.kinetic-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: var(--glass-blur);
}

.glass-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%);
  content: "";
  opacity: 0.62;
  pointer-events: none;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.kinetic-card {
  min-height: 280px;
  padding: 28px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.kinetic-card::before {
  position: absolute;
  inset: auto -20% -38%;
  height: 180px;
  background: radial-gradient(circle, rgba(216, 137, 47, 0.24), transparent 64%);
  content: "";
  transition: transform 300ms ease;
}

.kinetic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.kinetic-card:hover::before {
  transform: translateY(-22px) scale(1.14);
}

.kinetic-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary-soft);
  color: var(--secondary);
  font-family: var(--heading);
  font-weight: 800;
}

.kinetic-card h3 {
  margin-top: 60px;
}

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

.kinetic-card.dark {
  background: linear-gradient(145deg, rgba(20, 63, 59, 0.78), rgba(9, 15, 17, 0.7));
  color: #fff;
}

.kinetic-card.dark p {
  color: rgba(255, 255, 255, 0.74);
}

.kinetic-card.dark span {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.kinetic-card.accent {
  background: linear-gradient(145deg, rgba(244, 189, 114, 0.92), rgba(216, 137, 47, 0.82));
  color: #1d1408;
}

.kinetic-card.accent p {
  color: rgba(29, 20, 8, 0.7);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.intro,
.split,
.contact-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 7vw, 86px);
}

.intro {
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro > p,
.sticky-copy p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 120px;
}

.sticky-copy p {
  margin-top: 22px;
}

.steps,
.service-grid {
  display: grid;
  gap: 18px;
}

.step-card,
.service-card,
.package-card,
.contact-form {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.step-card:hover,
.service-card:hover,
.package-card:hover {
  border-color: rgba(216, 137, 47, 0.45);
  box-shadow: var(--shadow);
  --lift: -5px;
}

.step-card {
  padding: 32px;
}

.step-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--accent-dark);
  font-family: var(--heading);
  font-weight: 700;
}

.step-card p,
.service-card p,
.service-card li,
.contact-note p,
.form-status {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

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

.service-card {
  min-height: 390px;
  padding: 30px;
}

.packages {
  padding-top: 48px;
}

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

.package-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 430px;
  padding: 30px;
}

.package-card > span {
  color: var(--accent-dark);
  font-family: var(--heading);
  font-weight: 800;
}

.package-card p,
.package-card li {
  color: var(--muted);
}

.package-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.package-card .button {
  align-self: end;
  justify-self: start;
  margin-top: auto;
}

.featured-package {
  background: linear-gradient(145deg, rgba(20, 63, 59, 0.92), rgba(9, 15, 17, 0.84));
  box-shadow: var(--shadow), 0 0 72px rgba(216, 137, 47, 0.12);
}

.studio-lab {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.studio-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.lab-kicker {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid rgba(216, 137, 47, 0.32);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(216, 137, 47, 0.12);
  color: var(--accent-dark);
  font-family: var(--heading);
  font-size: 0.86rem;
  font-weight: 800;
}

.lab-controls {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.lab-group {
  display: grid;
  gap: 10px;
}

.lab-group-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--heading);
  font-size: 0.92rem;
  font-weight: 800;
}

.lab-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lab-pill {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.lab-pill:hover,
.lab-pill.is-active {
  border-color: rgba(216, 137, 47, 0.52);
  background: var(--accent);
  color: #14100a;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.surprise-button {
  margin-top: 28px;
}

.live-visual {
  min-height: 620px;
  padding: clamp(20px, 3vw, 34px);
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 16%, rgba(216, 137, 47, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(13, 21, 23, 0.76));
}

.live-orbit {
  position: absolute;
  inset: 24px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  animation: orbitSpin 18s linear infinite;
}

.live-orbit span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
}

.live-orbit span:nth-child(1) {
  top: 12%;
  left: 22%;
}

.live-orbit span:nth-child(2) {
  right: 14%;
  top: 48%;
}

.live-orbit span:nth-child(3) {
  left: 42%;
  bottom: 6%;
}

.live-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  min-height: 555px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 80% 20%, rgba(216, 137, 47, 0.16), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: perspective(1000px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition:
    transform 180ms ease,
    background 240ms ease;
}

.live-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.live-top strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--heading);
  font-size: 0.92rem;
}

.live-stage {
  position: relative;
  display: grid;
  min-height: clamp(390px, 42vw, 470px);
  align-content: center;
  gap: 20px;
  overflow: hidden;
  border-radius: 16px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(20, 63, 59, 0.62), rgba(8, 13, 15, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.04) 45px 46px);
}

.live-stage::before {
  z-index: 1;
  position: absolute;
  inset: -30% auto -30% -22%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  content: "";
  transform: rotate(12deg);
  animation: labSweep 4s ease-in-out infinite;
}

.live-stage::after {
  position: absolute;
  inset: 0;
  z-index: 7;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 7px),
    radial-gradient(circle at var(--pulse-x, 72%) var(--pulse-y, 34%), rgba(255, 255, 255, 0.18), transparent 24%);
  content: "";
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
  animation: signalNoise 1.8s steps(2, end) infinite;
}

.lab-chaos,
.lab-signal,
.lab-hud,
.lab-wave,
.live-logo,
.live-lines,
.live-grid,
.live-code {
  position: relative;
  z-index: 2;
}

.lab-chaos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lab-chaos span {
  position: absolute;
  width: var(--size, 10px);
  height: var(--size, 10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px currentColor;
  color: var(--accent);
  opacity: 0.72;
  animation: particleRush var(--speed, 4.4s) linear infinite;
}

.lab-chaos span:nth-child(1) {
  --size: 9px;
  --speed: 3.7s;
  left: 9%;
  top: 78%;
}

.lab-chaos span:nth-child(2) {
  --size: 15px;
  --speed: 5.1s;
  left: 22%;
  top: 24%;
  animation-delay: -1.4s;
}

.lab-chaos span:nth-child(3) {
  --size: 7px;
  --speed: 3.2s;
  left: 42%;
  top: 86%;
  animation-delay: -2.3s;
}

.lab-chaos span:nth-child(4) {
  --size: 18px;
  --speed: 6s;
  left: 66%;
  top: 18%;
  animation-delay: -0.7s;
}

.lab-chaos span:nth-child(5) {
  --size: 11px;
  --speed: 4.8s;
  left: 82%;
  top: 72%;
  animation-delay: -3s;
}

.lab-chaos span:nth-child(6) {
  --size: 6px;
  --speed: 2.9s;
  left: 58%;
  top: 46%;
  animation-delay: -1.9s;
}

.lab-chaos span:nth-child(7) {
  --size: 13px;
  --speed: 5.5s;
  left: 14%;
  top: 48%;
  animation-delay: -4s;
}

.lab-chaos span:nth-child(8) {
  --size: 8px;
  --speed: 3.9s;
  left: 92%;
  top: 34%;
  animation-delay: -2.7s;
}

.lab-signal {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 140px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  pointer-events: none;
}

.lab-signal span,
.lab-hud {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 11, 13, 0.48);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--heading);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.lab-signal span {
  padding: 6px 9px;
  animation: glitchTag 2.8s steps(2, end) infinite;
}

.lab-signal span:nth-child(2) {
  animation-delay: -0.8s;
}

.lab-signal span:nth-child(3) {
  animation-delay: -1.6s;
}

.lab-hud {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 190px);
  padding: 8px 10px;
  border-radius: 12px;
  animation: hudFloat 3.6s ease-in-out infinite;
}

.lab-hud span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #14100a;
}

.lab-hud strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lab-wave {
  position: absolute;
  inset: auto -18% 26% -18%;
  z-index: 1;
  height: 86px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent),
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.12) 17px 18px);
  opacity: 0.32;
  transform: skewY(-7deg);
  animation: waveSlide 3.2s linear infinite;
}

.live-logo {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), rgba(255, 255, 255, 0.18));
  color: #14100a;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--glow);
  animation: liveLogoPulse 3.8s ease-in-out infinite, logoGlitch 5.4s steps(2, end) infinite;
}

.live-lines {
  display: grid;
  gap: 10px;
  width: min(300px, 80%);
}

.live-lines span,
.live-grid span,
.live-code code {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.live-lines span {
  height: 12px;
  overflow: hidden;
  animation: dataFlicker 2.4s steps(2, end) infinite;
}

.live-lines span:nth-child(2) {
  width: 72%;
  animation-delay: -0.7s;
}

.live-lines span:nth-child(3) {
  width: 48%;
  animation-delay: -1.3s;
}

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

.live-grid span {
  min-height: 58px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(216, 137, 47, 0.08);
  transform-origin: center;
  animation: cardPulse 4s ease-in-out infinite, tileFlip 7s ease-in-out infinite;
}

.live-grid span:nth-child(2) {
  animation-delay: 220ms;
}

.live-grid span:nth-child(3) {
  animation-delay: 440ms;
}

.live-grid span:nth-child(4) {
  animation-delay: 660ms;
}

.live-code {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 7px;
  min-width: 132px;
}

.live-code code {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--heading);
  font-size: 0.76rem;
  animation: codeJitter 3.3s steps(2, end) infinite;
}

.live-code code:nth-child(2) {
  animation-delay: -0.9s;
}

.live-code code:nth-child(3) {
  animation-delay: -1.8s;
}

.live-stage.is-rebuilding .live-logo,
.live-stage.is-rebuilding .live-grid span,
.live-stage.is-rebuilding .lab-hud {
  animation-duration: 620ms, 620ms;
}

.live-stage.is-rebuilding::after {
  animation: signalNoise 260ms steps(2, end) 4;
}

.live-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.lab-result {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.lab-result span {
  color: var(--accent-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-build-button {
  justify-self: start;
}

.before-after-lab,
.export-flow {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.comparison-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.comparison-head .eyebrow {
  margin-bottom: 6px;
  font-size: 0.66rem;
}

.comparison-head h3 {
  font-size: clamp(1.04rem, 1.8vw, 1.26rem);
}

.comparison-head strong {
  display: grid;
  min-width: 58px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #14100a;
  font-family: var(--heading);
  font-size: 0.9rem;
}

.comparison-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.comparison-side {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.comparison-side span {
  color: var(--accent-dark);
  font-family: var(--heading);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-side small {
  color: var(--muted);
  line-height: 1.45;
}

.comparison-after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--after-width, 68%);
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(216, 137, 47, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(20, 63, 59, 0.96), rgba(8, 13, 15, 0.94));
  box-shadow: var(--glow);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--after-width, 68%);
  width: 2px;
  background: var(--accent);
  box-shadow: var(--glow);
  transform: translateX(-1px);
}

.comparison-handle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #14100a;
  content: "";
  transform: translate(-50%, -50%);
}

.comparison-range {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.comparison-range input {
  width: 100%;
  accent-color: var(--accent);
}

.export-flow > span {
  color: var(--accent-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.export-flow p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.export-actions .button {
  margin: 0;
}

.live-visual[data-style="futuristic"] {
  background:
    radial-gradient(circle at 75% 16%, rgba(53, 215, 255, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(17, 44, 76, 0.72), rgba(5, 8, 18, 0.9));
}

.live-visual[data-style="futuristic"] .live-stage,
.live-visual[data-style="neon"] .live-stage {
  background:
    linear-gradient(135deg, rgba(10, 22, 36, 0.78), rgba(8, 13, 15, 0.82)),
    repeating-linear-gradient(0deg, transparent 0 36px, rgba(255, 255, 255, 0.04) 37px 38px);
}

.live-visual[data-style="neon"] {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 46, 213, 0.24), transparent 30%),
    radial-gradient(circle at 20% 76%, rgba(53, 215, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(13, 21, 23, 0.82), rgba(8, 5, 18, 0.92));
}

.live-visual[data-style="clean-business"] .live-stage,
.live-visual[data-style="minimal"] .live-stage {
  background:
    linear-gradient(135deg, rgba(235, 240, 232, 0.2), rgba(12, 20, 22, 0.8)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.05) 53px 54px);
}

.live-visual[data-style="premium"] .live-stage {
  background:
    linear-gradient(135deg, rgba(82, 54, 20, 0.62), rgba(8, 13, 15, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(230, 193, 106, 0.07) 45px 46px);
}

.live-visual[data-style="streetwear"] .live-stage,
.live-visual[data-style="bold"] .live-stage {
  background:
    linear-gradient(135deg, rgba(22, 22, 22, 0.74), rgba(8, 13, 15, 0.86)),
    repeating-linear-gradient(-8deg, transparent 0 42px, rgba(255, 255, 255, 0.055) 43px 46px);
}

.live-visual[data-style="streetwear"] .live-logo,
.live-visual[data-style="bold"] .live-logo {
  border-radius: 12px;
  transform: rotate(-2deg);
}

.live-visual[data-style="minimal"] .live-logo,
.live-visual[data-style="clean-business"] .live-logo {
  border-radius: 18px;
  box-shadow: none;
}

.service-card.featured {
  background: linear-gradient(145deg, rgba(20, 63, 59, 0.92), rgba(9, 15, 17, 0.84));
  color: #fff;
  box-shadow: var(--shadow), 0 0 72px rgba(216, 137, 47, 0.12);
}

.service-card.featured p,
.service-card.featured li {
  color: rgba(255, 255, 255, 0.74);
}

.badge {
  display: inline-block;
  margin: 0 0 36px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(216, 137, 47, 0.18);
  color: #ffd39f;
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding-left: 18px;
}

.result-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
  width: 100%;
  padding-right: max(16px, calc((100% - 1120px) / 2));
  padding-left: max(16px, calc((100% - 1120px) / 2));
  background:
    radial-gradient(circle at 78% 50%, rgba(216, 137, 47, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(20, 63, 59, 0.94), rgba(8, 13, 15, 0.96));
  color: #fff;
}

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.showcase-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.design-board {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(20, 63, 59, 0.24)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255, 255, 255, 0.045) 55px 56px);
  box-shadow: var(--shadow);
}

.design-board::before {
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(216, 137, 47, 0.18), transparent);
  content: "";
  transform: rotate(-8deg);
  animation: boardSweep 4.8s ease-in-out infinite;
}

.board-top,
.board-grid {
  display: flex;
  gap: 10px;
}

.board-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.32;
}

.board-hero,
.board-grid span,
.board-line,
.board-button {
  position: relative;
  z-index: 1;
  border-radius: 8px;
}

.board-hero {
  min-height: 145px;
  background: linear-gradient(135deg, var(--secondary), #2b625d 55%, var(--accent));
  box-shadow: var(--glow);
}

.shimmer::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.24) 46%, transparent 70%);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 3.4s ease-in-out infinite;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.board-grid span {
  min-height: 92px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  animation: cardPulse 4.6s ease-in-out infinite;
}

.board-grid span:nth-child(2) {
  animation-delay: 320ms;
}

.board-grid span:nth-child(3) {
  animation-delay: 640ms;
}

.board-line {
  height: 12px;
  width: 54%;
  background: rgba(255, 255, 255, 0.18);
}

.board-line.wide {
  width: 82%;
}

.board-button {
  width: 170px;
  height: 46px;
  background: var(--accent);
  box-shadow: 0 14px 28px rgba(216, 137, 47, 0.25);
}

.metrics {
  justify-content: space-between;
  gap: 18px;
}

.metrics div {
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 22px;
}

.metrics strong {
  display: block;
  color: var(--accent);
  font-family: var(--heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  align-items: start;
}

.contact-copy .eyebrow {
  margin-top: 12px;
}

.contact-copy > p {
  margin-top: 22px;
}

.contact-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.contact-note span {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-note p {
  margin: 0;
}

.contact-note a {
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  backdrop-filter: var(--glass-blur);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 9, 10, 0.64);
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 14px 15px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(216, 137, 47, 0.14);
}

::placeholder {
  color: rgba(247, 243, 234, 0.48);
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.92rem;
}

.form-status.is-success {
  color: #89f0b5;
}

.form-status.is-error {
  color: #ffb3a7;
}

.form-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 1px;
  min-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 12px 15px;
  background: #1f8f56;
  color: #fff;
  box-shadow: 0 18px 44px rgba(31, 143, 86, 0.34);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  animation: whatsappPulse 2.8s ease-in-out infinite;
}

.whatsapp-float:hover {
  box-shadow: 0 24px 54px rgba(31, 143, 86, 0.42);
  transform: translateY(-3px);
}

.whatsapp-float span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.whatsapp-float strong {
  font-family: var(--heading);
  line-height: 1.1;
}

.theme-dock {
  position: fixed;
  top: 92px;
  right: auto;
  left: 18px;
  z-index: 31;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-14px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

body.studio-mode .theme-dock {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.theme-dock span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.theme-dot {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.theme-dot:hover,
.theme-dot.is-active {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), var(--glow);
  transform: translateY(-2px) scale(1.08);
}

.theme-amber {
  background: linear-gradient(135deg, #143f3b, #d8892f);
}

.theme-cyber {
  background: linear-gradient(135deg, #123357, #35d7ff);
}

.theme-luxe {
  background: linear-gradient(135deg, #4a1831, #e6c16a);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translate(-50%, -16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-18px, -10px, 0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes floatChip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes boardSweep {
  0%,
  100% {
    transform: translateX(-20%) rotate(-8deg);
  }
  50% {
    transform: translateX(28%) rotate(-8deg);
  }
}

@keyframes shimmer {
  0%,
  45% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes cardPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.025);
  }
}

@keyframes windowFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(1.6deg);
  }
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vw, -3vw, 0) scale(1.12);
  }
}

@keyframes browserFloat {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-14px);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes labSweep {
  0%,
  40% {
    transform: translateX(-120%) rotate(12deg);
  }
  100% {
    transform: translateX(360%) rotate(12deg);
  }
}

@keyframes liveLogoPulse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes signalNoise {
  0%,
  100% {
    opacity: 0.16;
    transform: translateY(0);
  }
  35% {
    opacity: 0.28;
    transform: translateY(-1px);
  }
  68% {
    opacity: 0.2;
    transform: translateY(2px);
  }
}

@keyframes particleRush {
  0% {
    opacity: 0;
    transform: translate3d(0, 38px, 0) scale(0.4);
  }
  18% {
    opacity: 0.82;
  }
  62% {
    opacity: 0.55;
    transform: translate3d(-26px, -92px, 0) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate3d(38px, -190px, 0) scale(0.72);
  }
}

@keyframes glitchTag {
  0%,
  88%,
  100% {
    transform: translate(0, 0);
    opacity: 0.74;
  }
  90% {
    transform: translate(-7px, 2px);
    opacity: 1;
  }
  92% {
    transform: translate(8px, -1px);
  }
  94% {
    transform: translate(-2px, 0);
  }
}

@keyframes hudFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -8px, 0);
  }
}

@keyframes waveSlide {
  from {
    transform: translateX(-18%) skewY(-7deg);
  }
  to {
    transform: translateX(18%) skewY(-7deg);
  }
}

@keyframes logoGlitch {
  0%,
  86%,
  100% {
    filter: none;
  }
  88% {
    filter: drop-shadow(7px 0 0 rgba(53, 215, 255, 0.7)) drop-shadow(-7px 0 0 rgba(255, 46, 213, 0.55));
  }
  91% {
    filter: drop-shadow(-4px 0 0 rgba(53, 215, 255, 0.5)) drop-shadow(5px 0 0 rgba(255, 46, 213, 0.42));
  }
}

@keyframes dataFlicker {
  0%,
  100% {
    opacity: 0.78;
    transform: scaleX(1);
  }
  48% {
    opacity: 0.34;
    transform: scaleX(0.82);
  }
  52% {
    opacity: 0.92;
    transform: scaleX(1.04);
  }
}

@keyframes tileFlip {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0) rotateX(0deg);
  }
  44% {
    filter: saturate(1.6);
  }
  52% {
    filter: saturate(2);
    transform: translateY(-10px) rotateX(12deg);
  }
}

@keyframes codeJitter {
  0%,
  80%,
  100% {
    transform: translateX(0);
  }
  84% {
    transform: translateX(7px);
  }
  88% {
    transform: translateX(-5px);
  }
  92% {
    transform: translateX(2px);
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .intro,
  .split,
  .showcase,
  .studio-lab,
  .contact-section,
  .result-band {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }

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

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

  .service-card {
    min-height: auto;
  }

  .package-card {
    min-height: auto;
  }

  .metrics {
    align-items: stretch;
    flex-direction: column;
  }

  .design-board {
    min-height: 360px;
  }

  .hero-ui-lab {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 250px;
    margin-top: 36px;
  }

  .browser-shell {
    transform: none;
  }

  .kinetic-copy,
  .kinetic-grid {
    grid-template-columns: 1fr;
  }

  .kinetic-card {
    min-height: 220px;
  }

  .theme-dock {
    top: 84px;
    right: auto;
    left: 12px;
  }

  .live-visual {
    min-height: auto;
  }

  .live-panel {
    min-height: auto;
  }

  .live-stage {
    min-height: 300px;
  }

  .lab-signal {
    left: 18px;
    justify-content: flex-start;
  }

  .lab-signal span {
    font-size: 0.56rem;
  }

  .lab-hud {
    max-width: calc(100% - 36px);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 8px 8px 8px 12px;
  }

  .brand span:last-child {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero {
    min-height: 96vh;
  }

  .live-stage {
    min-height: 340px;
    padding: 20px;
  }

  .live-logo {
    width: 78px;
    height: 78px;
    font-size: 1.55rem;
  }

  .lab-signal {
    right: 14px;
    left: 112px;
  }

  .lab-signal span:nth-child(3) {
    display: none;
  }

  .lab-wave {
    bottom: 34%;
  }

  .hero-content {
    width: min(100% - 28px, 1120px);
    padding-top: 128px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .button {
    width: 100%;
  }

  .hero-ui-lab {
    display: block;
    min-height: auto;
  }

  .browser-shell {
    border-radius: 16px;
  }

  .browser-screen {
    min-height: 245px;
  }

  .browser-card {
    display: none;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 72px 0;
  }

  .step-card,
  .service-card,
  .contact-form {
    padding: 24px;
  }

  .result-band {
    width: 100%;
    padding: 72px 14px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 1120px);
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    min-width: 124px;
    padding: 10px 12px;
  }

  .kinetic-section {
    padding: 72px 14px;
  }

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

  .live-visual {
    min-height: 430px;
    padding: 16px;
  }

  .live-panel {
    min-height: 390px;
  }

  .live-stage {
    min-height: 250px;
    padding: 18px;
  }

  .live-code {
    position: static;
    grid-template-columns: 1fr;
  }

  .theme-dock {
    padding: 8px;
  }

  .theme-dock span {
    display: none;
  }
}

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

  .motion-track {
    transform: none !important;
  }

  .ambient,
  .browser-shell,
  .browser-card,
  .live-orbit,
  .live-logo,
  .lab-chaos span,
  .lab-signal span,
  .lab-hud,
  .lab-wave,
  .live-stage::after,
  .live-lines span,
  .live-grid span,
  .live-code code,
  .hero-image,
  .hero-proof span,
  .whatsapp-float {
    animation: none !important;
  }
}

/* StudioLab Live Build Mode */
body {
  --studio-motion: 55;
  --studio-glow: 0.48;
}

body[data-vibe="dark-mode"] {
  --bg: #070b0d;
  --bg-soft: #101719;
  --secondary: #143f3b;
  --secondary-soft: rgba(64, 118, 109, 0.18);
  --accent: #d8892f;
  --accent-dark: #f2aa4f;
  --glow: 0 0 58px rgba(216, 137, 47, calc(0.22 + var(--studio-glow, 0.48) * 0.22));
}

body[data-vibe="premium"] {
  --bg: #090609;
  --bg-soft: #170f12;
  --secondary: #4a1831;
  --secondary-soft: rgba(230, 193, 106, 0.16);
  --accent: #e6c16a;
  --accent-dark: #f4d98f;
  --glow: 0 0 72px rgba(230, 193, 106, calc(0.22 + var(--studio-glow, 0.48) * 0.24));
}

body[data-vibe="futuristic"] {
  --bg: #030814;
  --bg-soft: #0c1223;
  --secondary: #123357;
  --secondary-soft: rgba(54, 148, 255, 0.18);
  --accent: #35d7ff;
  --accent-dark: #7de8ff;
  --glow: 0 0 78px rgba(53, 215, 255, calc(0.22 + var(--studio-glow, 0.48) * 0.28));
}

body[data-vibe="clean-business"] {
  --bg: #07100f;
  --bg-soft: #101a18;
  --secondary: #255b50;
  --secondary-soft: rgba(124, 214, 190, 0.14);
  --accent: #9ce4c8;
  --accent-dark: #caf5e6;
  --glow: 0 0 58px rgba(156, 228, 200, calc(0.16 + var(--studio-glow, 0.48) * 0.2));
}

body[data-vibe="streetwear"] {
  --bg: #080808;
  --bg-soft: #151515;
  --secondary: #2d2d2d;
  --secondary-soft: rgba(255, 255, 255, 0.12);
  --accent: #ff6b35;
  --accent-dark: #ffb08f;
  --glow: 0 0 68px rgba(255, 107, 53, calc(0.22 + var(--studio-glow, 0.48) * 0.24));
}

body[data-vibe="neon"] {
  --bg: #05010f;
  --bg-soft: #0d0620;
  --secondary: #16124a;
  --secondary-soft: rgba(255, 46, 213, 0.16);
  --accent: #ff2ed5;
  --accent-dark: #35d7ff;
  --glow: 0 0 82px rgba(255, 46, 213, calc(0.25 + var(--studio-glow, 0.48) * 0.3));
}

body[data-vibe="minimal"] {
  --bg: #080b0d;
  --bg-soft: #121719;
  --secondary: #384344;
  --secondary-soft: rgba(255, 255, 255, 0.1);
  --accent: #e9ede8;
  --accent-dark: #ffffff;
  --glow: 0 0 42px rgba(255, 255, 255, calc(0.12 + var(--studio-glow, 0.48) * 0.16));
}

body[data-vibe="bold"] {
  --bg: #090608;
  --bg-soft: #180e12;
  --secondary: #501427;
  --secondary-soft: rgba(255, 63, 115, 0.18);
  --accent: #ff3f73;
  --accent-dark: #ffc0d0;
  --glow: 0 0 72px rgba(255, 63, 115, calc(0.22 + var(--studio-glow, 0.48) * 0.25));
}

body.studio-mode .animated-background {
  background:
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 320px),
    radial-gradient(circle at 18% 78%, color-mix(in srgb, var(--accent-dark) 18%, transparent), transparent 360px),
    linear-gradient(135deg, color-mix(in srgb, var(--secondary) 44%, transparent), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 58%, #050607 100%);
}

body.studio-mode .site-header,
body.studio-mode .glass-card,
body.studio-mode .contact-form,
body.studio-mode .theme-dock,
body.studio-mode .whatsapp-float {
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    0 0 calc(56px * var(--studio-glow, 0.48)) color-mix(in srgb, var(--accent) 36%, transparent);
}

body.studio-mode .hero-overlay {
  background:
    radial-gradient(circle at 72% 35%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 32%),
    linear-gradient(90deg, rgba(5, 9, 10, 0.95) 0%, rgba(7, 12, 13, 0.76) 48%, rgba(7, 12, 13, 0.3) 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 9, 10, 0.92) 100%);
}

body.studio-mode .button-primary,
body.studio-mode .brand-mark,
body.studio-mode .live-logo {
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

body.studio-mode .motion-track {
  animation-duration: calc(34s - (var(--studio-motion, 55) * 0.18s));
}

body.studio-mode .ambient {
  animation-duration: calc(24s - (var(--studio-motion, 55) * 0.12s));
}

.lab-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lab-action-row .button {
  margin-top: 0;
}

.studio-mode-button {
  position: relative;
  overflow: hidden;
}

.studio-mode-button::before {
  position: absolute;
  inset: -80% auto -80% -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  content: "";
  transform: rotate(16deg);
  animation: studioButtonSweep 2.8s ease-in-out infinite;
}

.lab-brief {
  padding: 16px;
}

.lab-brief .eyebrow {
  margin-bottom: 8px;
  font-size: 0.66rem;
}

.lab-brief h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.lab-brief ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.lab-brief li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lab-brief strong {
  color: var(--ink);
}

.figma-canvas {
  position: absolute;
  inset: 18px;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96) translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

body.studio-mode .figma-canvas,
.live-stage.is-rebuilding .figma-canvas {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.canvas-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(5, 8, 10, 0.58);
  background-size: 28px 28px;
}

.design-frame {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  backdrop-filter: blur(12px);
  animation: canvasFloat calc(5.4s - (var(--studio-motion, 55) * 0.018s)) ease-in-out infinite;
}

.design-frame::before,
.design-frame::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  background: var(--bg);
  content: "";
}

.design-frame::before {
  top: -5px;
  left: -5px;
}

.design-frame::after {
  right: -5px;
  bottom: -5px;
}

.frame-hero {
  top: 16%;
  left: 7%;
  width: 58%;
  height: 34%;
}

.frame-card {
  top: 42%;
  right: 8%;
  width: 34%;
  height: 28%;
  animation-delay: -1.2s;
}

.frame-cta {
  bottom: 12%;
  left: 18%;
  width: 38%;
  height: 18%;
  animation-delay: -2s;
}

.canvas-cursor {
  position: absolute;
  right: 16%;
  top: 24%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #14100a;
  font-weight: 900;
  box-shadow: var(--glow);
  animation: cursorBuild calc(4.8s - (var(--studio-motion, 55) * 0.02s)) ease-in-out infinite;
}

.build-scanner {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), color-mix(in srgb, var(--accent) 72%, transparent), transparent),
    repeating-linear-gradient(0deg, transparent 0 12px, rgba(255, 255, 255, 0.04) 13px 14px);
  opacity: 0;
  transform: translateY(-120%);
}

body.is-rebuilding-site .build-scanner {
  animation: siteScan 900ms ease both;
}

.studio-toolbar {
  position: fixed;
  right: auto;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(310px, calc(100vw - 36px));
  padding: 16px;
  background: rgba(7, 11, 13, 0.76);
  backdrop-filter: blur(24px) saturate(150%);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

body.studio-mode .studio-toolbar {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.toolbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-head strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
}

.toolbar-head span {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-head button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.studio-toolbar label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.studio-toolbar input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.toolbar-buttons {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.toolbar-buttons button {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.toolbar-buttons button:hover,
.toolbar-buttons button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #14100a;
}

.toolbar-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* StudioLab All Out Upgrade */

.studio-helper-copy {
  max-width: 62ch;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.65;
}

.generate-direction-button {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
  box-shadow: var(--glow), 0 18px 48px color-mix(in srgb, var(--accent) 22%, transparent);
}

.lab-group {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.025);
}

.step-badge {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-dark);
  font-family: var(--heading);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-preset-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.generated-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.045);
}

.generated-step-label span {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--accent);
  color: #14100a;
  font-family: var(--heading);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generated-step-label strong {
  color: var(--ink);
  font-family: var(--heading);
  font-size: 0.9rem;
}

.preset-pill.is-active,
.device-switcher button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #14100a;
  box-shadow: var(--glow);
}

.device-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
}

.device-switcher span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-switcher button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.generated-site-preview {
  --preview-offset: 0;
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 6;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 28%),
    linear-gradient(145deg, rgba(8, 13, 15, 0.96), rgba(18, 28, 29, 0.88));
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(var(--preview-offset));
  transition:
    width 260ms ease,
    max-width 260ms ease,
    border-radius 260ms ease,
    transform 260ms ease;
}

.generated-site-preview.is-highlighted {
  border-color: color-mix(in srgb, var(--accent) 72%, white 8%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 54px color-mix(in srgb, var(--accent) 34%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  animation: previewFocus 780ms ease both;
}

.generated-site-preview[data-device="tablet"] {
  right: auto;
  left: 50%;
  width: min(72%, 440px);
  --preview-offset: -50%;
  border-radius: 28px;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.035),
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.generated-site-preview[data-device="mobile"] {
  top: 14px;
  bottom: 14px;
  right: auto;
  left: 50%;
  width: min(44%, 238px);
  min-width: 190px;
  border-radius: 34px;
  padding: 11px;
  grid-template-rows: auto auto auto 1fr auto;
  --preview-offset: -50%;
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, 0.04),
    0 18px 60px rgba(0, 0, 0, 0.36),
    var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.generated-browser-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.generated-browser-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.generated-browser-top strong {
  overflow: hidden;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-hero {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 130px;
}

.generated-hero p,
.generated-route {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.generated-hero > p:first-child {
  color: var(--accent-dark);
  font-family: var(--heading);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.generated-hero h3 {
  max-width: 92%;
  font-size: clamp(1.25rem, 2.8vw, 2.15rem);
  line-height: 0.98;
}

.generated-site-preview[data-device="tablet"] .generated-hero h3 {
  max-width: 100%;
  font-size: clamp(1.25rem, 2.2vw, 1.72rem);
}

.generated-site-preview[data-device="mobile"] .generated-hero {
  align-content: start;
  min-height: auto;
  gap: 7px;
  padding-top: 4px;
}

.generated-site-preview[data-device="mobile"] .generated-hero h3 {
  max-width: 100%;
  font-size: 1.02rem;
  line-height: 1.04;
}

.generated-site-preview[data-device="mobile"] .generated-hero p,
.generated-site-preview[data-device="mobile"] .generated-route {
  font-size: 0.66rem;
}

.generated-site-preview[data-device="mobile"] .generated-hero button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.68rem;
}

.generated-hero button {
  justify-self: start;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--accent);
  color: #14100a;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: var(--glow);
}

.generated-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.generated-site-preview[data-device="tablet"] .generated-proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.generated-site-preview[data-device="mobile"] .generated-proof-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.generated-proof-grid span {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.66rem;
  font-weight: 900;
}

.generated-site-preview[data-device="mobile"] .generated-proof-grid span {
  min-height: 28px;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 0.58rem;
}

.generated-mockup-area {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr;
  gap: 8px;
}

.generated-site-preview[data-device="mobile"] .generated-mockup-area {
  grid-template-columns: 1fr 0.7fr;
  align-self: end;
  gap: 6px;
}

.generated-site-preview[data-device="mobile"] .generated-mockup-area span:nth-child(3) {
  display: none;
}

.generated-mockup-area span {
  min-height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, transparent), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  animation: generatedCardFloat 4.2s ease-in-out infinite;
}

.generated-mockup-area span:nth-child(2) {
  animation-delay: -1s;
}

.generated-mockup-area span:nth-child(3) {
  animation-delay: -2s;
}

.generated-route {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-dna-panel,
.build-console,
.recommendation-card,
.build-timeline {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.panel-heading .eyebrow {
  margin-bottom: 6px;
  font-size: 0.66rem;
}

.panel-heading h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.dna-meter {
  display: grid;
  grid-template-columns: 92px 1fr 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.dna-meter i {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dna-meter b {
  display: block;
  width: var(--meter-value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  box-shadow: var(--glow);
  transition: width 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dna-meter strong {
  color: var(--ink);
  font-size: 0.76rem;
  text-align: right;
}

.build-console ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-console li {
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  padding-left: 10px;
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.78rem;
}

.build-console li.is-active {
  border-color: var(--accent);
  color: var(--accent-dark);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 56%, transparent);
}

.build-console li.is-done {
  color: rgba(255, 255, 255, 0.78);
}

.recommendation-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.recommendation-card dl div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.recommendation-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 900;
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.build-timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.build-timeline span {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.25;
}

.build-timeline span.is-active,
.build-timeline.is-building span {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.build-timeline.is-building span:nth-child(2) {
  transition-delay: 90ms;
}

.build-timeline.is-building span:nth-child(3) {
  transition-delay: 180ms;
}

.build-timeline.is-building span:nth-child(4) {
  transition-delay: 270ms;
}

.build-timeline.is-building span:nth-child(5) {
  transition-delay: 360ms;
}

.brief-action-status {
  min-height: 20px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

@keyframes generatedCardFloat {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes previewFocus {
  0% {
    transform: translateX(var(--preview-offset)) scale(0.985);
  }

  55% {
    transform: translateX(var(--preview-offset)) scale(1.012);
  }

  100% {
    transform: translateX(var(--preview-offset)) scale(1);
  }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 0;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

/* Performance smoothing */
.ambient,
.hero-image,
.browser-shell,
.browser-window,
.floating-chip,
.whatsapp-float,
.live-orbit,
.lab-chaos span,
.lab-signal span,
.lab-hud,
.lab-wave,
.live-logo,
.live-lines span,
.live-grid span,
.live-code code,
.design-frame,
.figma-canvas,
.canvas-cursor,
.generated-mockup-area span {
  animation: none;
}

.ambient {
  opacity: 0.2;
  filter: blur(46px);
}

.live-stage::before,
.live-stage::after {
  animation: none;
}

.live-stage::after {
  opacity: 0.08;
}

.lab-chaos {
  opacity: 0.35;
}

.motion-track {
  animation-duration: 46s;
}

.whatsapp-float {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

body[data-layout-mode="editorial"] .service-grid {
  grid-template-columns: 1.16fr 0.84fr 1fr;
}

body[data-layout-mode="editorial"] .service-card:nth-child(2) {
  transform: translateY(-12px);
}

body[data-layout-mode="chaos"] .service-card:nth-child(odd),
body[data-layout-mode="chaos"] .step-card:nth-child(odd) {
  transform: rotate(-1.1deg) translateY(-4px);
}

body[data-layout-mode="chaos"] .service-card:nth-child(even),
body[data-layout-mode="chaos"] .step-card:nth-child(even) {
  transform: rotate(1.1deg) translateY(4px);
}

body[data-layout-mode="clean"] .glass-card::after,
body[data-layout-mode="clean"] .noise-overlay {
  opacity: 0.02;
}

body[data-layout-mode="clean"] .service-card,
body[data-layout-mode="clean"] .step-card {
  border-radius: 28px;
}

body.site-effect-clean .glass-card,
body.site-effect-clean .button,
body.site-effect-clean .brand-mark {
  animation: polishPop 1500ms ease both;
}

body.site-effect-editorial .hero-image,
body.site-effect-editorial .animated-background,
body.site-effect-editorial .glass-card {
  animation: spotlightPulse 1500ms ease both;
}

body.site-effect-editorial .build-scanner {
  animation: siteScan 1100ms ease both;
}

body.site-effect-chaos main,
body.site-effect-chaos .site-header,
body.site-effect-chaos .whatsapp-float,
body.site-effect-chaos .theme-dock,
body.site-effect-chaos .studio-toolbar {
  animation: siteGlitchShake 2000ms steps(2, end) both;
}

body.site-effect-chaos .glitch-layer {
  opacity: 0.32;
  animation: glitchLayerMove 120ms steps(2, end) infinite;
}

body.site-effect-chaos .animated-background {
  animation: chaosColorFlash 2000ms steps(3, end) both;
}

body.site-effect-chaos .glass-card,
body.site-effect-chaos .button-primary {
  animation: chaosGlowPunch 2000ms steps(2, end) both;
}

@keyframes studioButtonSweep {
  0%, 45% {
    left: -35%;
  }

  100% {
    left: 130%;
  }
}

@keyframes canvasFloat {
  50% {
    transform: translateY(-12px) scale(1.02);
  }
}

@keyframes cursorBuild {
  0%, 100% {
    transform: translate(0, 0);
  }

  35% {
    transform: translate(-90px, 76px);
  }

  70% {
    transform: translate(-170px, -18px);
  }
}

@keyframes siteScan {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }

  12% {
    opacity: 0.82;
  }

  100% {
    transform: translateY(120%);
    opacity: 0;
  }
}

@keyframes polishPop {
  0%,
  100% {
    filter: saturate(1);
    transform: translateY(0) scale(1);
  }

  38% {
    filter: saturate(1.18) brightness(1.06);
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes spotlightPulse {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }

  42% {
    filter: saturate(1.22) brightness(1.14) contrast(1.06);
  }
}

@keyframes siteGlitchShake {
  0%,
  100% {
    filter: none;
    transform: translate(0, 0);
  }

  8% {
    filter: hue-rotate(18deg) contrast(1.16);
    transform: translate(6px, -3px);
  }

  16% {
    transform: translate(-7px, 4px) skewX(-1deg);
  }

  28% {
    filter: hue-rotate(-18deg) saturate(1.35);
    transform: translate(5px, 2px) skewX(1deg);
  }

  42% {
    transform: translate(-4px, -2px);
  }

  58% {
    filter: contrast(1.22) saturate(1.45);
    transform: translate(8px, 0);
  }

  72% {
    transform: translate(-6px, 3px);
  }

  86% {
    filter: hue-rotate(8deg) contrast(1.08);
    transform: translate(3px, -2px);
  }
}

@keyframes chaosColorFlash {
  0%,
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }

  30% {
    filter: hue-rotate(54deg) saturate(1.5) contrast(1.12);
  }

  64% {
    filter: hue-rotate(-42deg) saturate(1.65) contrast(1.18);
  }
}

@keyframes chaosGlowPunch {
  0%,
  100% {
    box-shadow: var(--shadow);
  }

  34% {
    box-shadow: var(--shadow), 0 0 42px color-mix(in srgb, var(--accent) 42%, transparent);
  }

  68% {
    box-shadow: var(--shadow), 0 0 64px color-mix(in srgb, var(--accent-dark) 50%, transparent);
  }
}

@media (max-width: 960px) {
  body[data-layout-mode="editorial"] .service-grid {
    grid-template-columns: 1fr;
  }

  .figma-canvas {
    inset: 12px;
  }

  .studio-toolbar {
    left: 12px;
    bottom: 12px;
  }

  .trust-strip {
    justify-content: flex-start;
  }
}

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

  .lab-controls {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .studio-helper-copy {
    font-size: 0.92rem;
  }

  .lab-group {
    padding: 12px;
  }

  .lab-options {
    gap: 7px;
  }

  .lab-pill {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .lab-action-row .button,
  .generate-direction-button,
  .export-actions .button {
    width: 100%;
    justify-content: center;
  }

  .device-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .device-switcher span {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .device-switcher button {
    padding: 0 8px;
  }

  .figma-canvas {
    display: none;
  }

  .live-visual {
    min-height: 560px;
  }

  .live-panel {
    min-height: auto;
  }

  .live-stage {
    min-height: 405px;
    padding: 12px;
  }

  .generated-site-preview {
    inset: 10px;
    border-radius: 22px;
    --preview-offset: 0;
  }

  .generated-site-preview[data-device="tablet"] {
    top: 10px;
    bottom: 10px;
    left: 50%;
    right: auto;
    width: min(82%, 330px);
    border-radius: 26px;
    --preview-offset: -50%;
  }

  .generated-site-preview[data-device="mobile"] {
    top: 10px;
    bottom: 10px;
    left: 50%;
    right: auto;
    width: min(78%, 250px);
    min-width: 0;
    border-radius: 32px;
    --preview-offset: -50%;
  }

  .generated-mockup-area,
  .recommendation-card dl,
  .build-timeline {
    grid-template-columns: 1fr;
  }

  .generated-site-preview:not([data-device="desktop"]) .generated-proof-grid {
    grid-template-columns: 1fr;
  }

  .generated-hero h3 {
    font-size: 1.28rem;
  }

  .generated-hero {
    min-height: 112px;
  }

  .generated-route {
    white-space: normal;
  }

  .dna-meter {
    grid-template-columns: 78px 1fr 38px;
  }

  .export-actions {
    display: grid;
  }

  .studio-toolbar {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 34vh;
    overflow: auto;
    padding: 12px;
  }

  body.studio-mode .whatsapp-float {
    transform: translateY(-190px);
  }

  .theme-dock,
  .mega-theme-dock {
    top: 76px;
    bottom: auto;
  }

  .trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-mode-button::before,
  .design-frame,
  .canvas-cursor,
  .generated-mockup-area span,
  body.is-rebuilding-site .build-scanner,
  .generated-site-preview.is-highlighted,
  body.site-effect-clean .glass-card,
  body.site-effect-clean .button,
  body.site-effect-clean .brand-mark,
  body.site-effect-editorial .hero-image,
  body.site-effect-editorial .animated-background,
  body.site-effect-editorial .glass-card,
  body.site-effect-editorial .build-scanner,
  body.site-effect-chaos main,
  body.site-effect-chaos .site-header,
  body.site-effect-chaos .whatsapp-float,
  body.site-effect-chaos .theme-dock,
  body.site-effect-chaos .studio-toolbar,
  body.site-effect-chaos .glitch-layer,
  body.site-effect-chaos .animated-background,
  body.site-effect-chaos .glass-card,
  body.site-effect-chaos .button-primary {
    animation: none !important;
  }

  .build-scanner,
  .figma-canvas,
  .generated-site-preview,
  .dna-meter b {
    transition: none !important;
  }
}

/* ================================
   MEGA THEME REACTOR
================================ */

body {
  --theme-name: "Amber";
  --reactor-speed: 1;
  --reactor-chaos: 0;
}

/* Extra Themes */
body[data-theme="neon"] {
  --bg: #05010f;
  --bg-soft: #0d0620;
  --ink: #fff7ff;
  --muted: #c9a8ff;
  --panel: rgba(17, 8, 36, 0.76);
  --panel-strong: rgba(255, 46, 213, 0.11);
  --secondary: #18134a;
  --secondary-soft: rgba(255, 46, 213, 0.18);
  --accent: #ff2ed5;
  --accent-dark: #35d7ff;
  --line: rgba(255, 255, 255, 0.17);
  --glow: 0 0 78px rgba(255, 46, 213, 0.38);
}

body[data-theme="glacier"] {
  --bg: #061019;
  --bg-soft: #0e2230;
  --ink: #f0fbff;
  --muted: #a8c9d6;
  --panel: rgba(11, 30, 42, 0.72);
  --panel-strong: rgba(140, 230, 255, 0.1);
  --secondary: #17485d;
  --secondary-soft: rgba(120, 220, 255, 0.16);
  --accent: #8ce6ff;
  --accent-dark: #d7f7ff;
  --line: rgba(220, 250, 255, 0.16);
  --glow: 0 0 70px rgba(140, 230, 255, 0.32);
}

body[data-theme="inferno"] {
  --bg: #120504;
  --bg-soft: #21100b;
  --ink: #fff1e8;
  --muted: #d3a48a;
  --panel: rgba(42, 13, 7, 0.76);
  --panel-strong: rgba(255, 84, 31, 0.13);
  --secondary: #5d1b10;
  --secondary-soft: rgba(255, 84, 31, 0.18);
  --accent: #ff541f;
  --accent-dark: #ffbc74;
  --line: rgba(255, 207, 160, 0.16);
  --glow: 0 0 82px rgba(255, 84, 31, 0.36);
}

body[data-theme="toxic"] {
  --bg: #050b04;
  --bg-soft: #0e1c0a;
  --ink: #f2ffe8;
  --muted: #b5d89e;
  --panel: rgba(10, 31, 11, 0.74);
  --panel-strong: rgba(166, 255, 64, 0.12);
  --secondary: #1e4d19;
  --secondary-soft: rgba(166, 255, 64, 0.17);
  --accent: #a6ff40;
  --accent-dark: #e0ff9c;
  --line: rgba(218, 255, 190, 0.15);
  --glow: 0 0 74px rgba(166, 255, 64, 0.32);
}

body[data-theme="candy"] {
  --bg: #130817;
  --bg-soft: #24102a;
  --ink: #fff4fb;
  --muted: #e4b8d8;
  --panel: rgba(42, 14, 45, 0.74);
  --panel-strong: rgba(255, 130, 210, 0.12);
  --secondary: #5c2456;
  --secondary-soft: rgba(255, 130, 210, 0.17);
  --accent: #ff82d2;
  --accent-dark: #ffd36a;
  --line: rgba(255, 230, 250, 0.16);
  --glow: 0 0 76px rgba(255, 130, 210, 0.35);
}

body[data-theme="matrix"] {
  --bg: #010704;
  --bg-soft: #07130d;
  --ink: #eaffef;
  --muted: #78b889;
  --panel: rgba(2, 16, 8, 0.78);
  --panel-strong: rgba(0, 255, 106, 0.1);
  --secondary: #0b3a1b;
  --secondary-soft: rgba(0, 255, 106, 0.14);
  --accent: #00ff6a;
  --accent-dark: #a8ffc7;
  --line: rgba(0, 255, 106, 0.18);
  --glow: 0 0 72px rgba(0, 255, 106, 0.32);
}

body[data-theme="midnight"] {
  --bg: #030712;
  --bg-soft: #0a1222;
  --ink: #eef4ff;
  --muted: #9daecf;
  --panel: rgba(8, 17, 34, 0.76);
  --panel-strong: rgba(105, 139, 255, 0.12);
  --secondary: #16265a;
  --secondary-soft: rgba(105, 139, 255, 0.16);
  --accent: #698bff;
  --accent-dark: #bbc8ff;
  --line: rgba(210, 220, 255, 0.15);
  --glow: 0 0 74px rgba(105, 139, 255, 0.34);
}

body[data-theme="royal"] {
  --bg: #0d0613;
  --bg-soft: #1a0d25;
  --ink: #fff8ef;
  --muted: #d8c3ef;
  --panel: rgba(27, 11, 43, 0.76);
  --panel-strong: rgba(183, 118, 255, 0.12);
  --secondary: #3b1666;
  --secondary-soft: rgba(183, 118, 255, 0.18);
  --accent: #b776ff;
  --accent-dark: #f2c46d;
  --line: rgba(238, 218, 255, 0.16);
  --glow: 0 0 78px rgba(183, 118, 255, 0.34);
}

body[data-theme="mono"] {
  --bg: #050505;
  --bg-soft: #101010;
  --ink: #f7f7f7;
  --muted: #a9a9a9;
  --panel: rgba(18, 18, 18, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --secondary: #262626;
  --secondary-soft: rgba(255, 255, 255, 0.1);
  --accent: #ffffff;
  --accent-dark: #d4d4d4;
  --line: rgba(255, 255, 255, 0.16);
  --glow: 0 0 54px rgba(255, 255, 255, 0.18);
}

/* Better dock */
.mega-theme-dock {
  display: grid;
  gap: 12px;
  width: auto;
  min-width: 218px;
  padding: 14px;
}

.theme-dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.theme-dock-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dock-head strong {
  color: var(--accent);
  font-family: var(--heading);
  font-size: 0.86rem;
}

.theme-dot-grid {
  display: grid;
  grid-template-columns: repeat(6, 22px);
  gap: 8px;
}

.theme-dot {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.theme-dot:hover,
.theme-dot.is-active {
  border-color: #fff;
  transform: translateY(-2px) scale(1.14);
  box-shadow: 0 0 24px currentColor;
}

.theme-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.theme-actions button {
  min-height: 31px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.theme-actions button:hover,
.theme-actions button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
  transform: translateY(-2px);
}

/* Dot colors */
.theme-amber {
  background: linear-gradient(135deg, #f4bd72, #d8892f);
  color: #d8892f;
}

.theme-cyber {
  background: linear-gradient(135deg, #35d7ff, #123357);
  color: #35d7ff;
}

.theme-luxe {
  background: linear-gradient(135deg, #e6c16a, #4a1831);
  color: #e6c16a;
}

.theme-neon {
  background: linear-gradient(135deg, #ff2ed5, #35d7ff);
  color: #ff2ed5;
}

.theme-glacier {
  background: linear-gradient(135deg, #8ce6ff, #17485d);
  color: #8ce6ff;
}

.theme-inferno {
  background: linear-gradient(135deg, #ff541f, #ffbc74);
  color: #ff541f;
}

.theme-toxic {
  background: linear-gradient(135deg, #a6ff40, #1e4d19);
  color: #a6ff40;
}

.theme-candy {
  background: linear-gradient(135deg, #ff82d2, #ffd36a);
  color: #ff82d2;
}

.theme-matrix {
  background: linear-gradient(135deg, #00ff6a, #031f0e);
  color: #00ff6a;
}

.theme-midnight {
  background: linear-gradient(135deg, #698bff, #030712);
  color: #698bff;
}

.theme-royal {
  background: linear-gradient(135deg, #b776ff, #f2c46d);
  color: #b776ff;
}

.theme-mono {
  background: linear-gradient(135deg, #ffffff, #111111);
  color: #ffffff;
}

/* Theme affects whole site harder */
body[data-theme] .animated-background {
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 300px),
    radial-gradient(circle at 20% 84%, color-mix(in srgb, var(--accent-dark) 16%, transparent), transparent 340px),
    radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--secondary) 46%, transparent), transparent 320px),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 56%, #050505 100%);
}

body[data-theme] .button-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 56%, color-mix(in srgb, var(--accent) 65%, #000));
}

body[data-theme] .brand-mark,
body[data-theme] .live-logo,
body[data-theme] .lab-hud span {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

body[data-theme] .scroll-progress {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  box-shadow: var(--glow);
}

body[data-theme] .glass-card,
body[data-theme] .site-header,
body[data-theme] .contact-form {
  border-color: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.12));
}

body[data-theme] .hero-proof span,
body[data-theme] .lab-pill,
body[data-theme] .theme-dock,
body[data-theme] .studio-toolbar {
  box-shadow: 0 0 calc(24px * var(--reactor-speed, 1)) color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Burst when theme switches */
.theme-reactor-burst {
  position: fixed;
  inset: 0;
  z-index: 88;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 16%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-dark) 24%, transparent), transparent 34%);
  opacity: 0;
  transform: scale(0.65);
}

body.theme-bursting .theme-reactor-burst {
  animation: themeBurst 760ms ease both;
}

@keyframes themeBurst {
  0% {
    opacity: 0;
    transform: scale(0.65);
    filter: blur(20px);
  }

  28% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(1.45);
    filter: blur(0);
  }
}

/* Insane mode */
body.insane-mode {
  --reactor-speed: 1.6;
  --reactor-chaos: 1;
}

body.insane-mode .animated-background {
  animation: insaneHue 10s linear infinite;
}

body.insane-mode .hero-image {
  animation:
    heroFloat 8s ease-in-out infinite alternate,
    insaneZoom 7s ease-in-out infinite alternate;
}

body.insane-mode .glass-card,
body.insane-mode .service-card,
body.insane-mode .step-card,
body.insane-mode .live-panel {
  animation: insaneCardPulse 3.8s ease-in-out infinite;
}

body.insane-mode .motion-track {
  animation-duration: 12s;
}

body.insane-mode .ambient {
  opacity: 0.48;
  animation-duration: 8s;
}

body.insane-mode .button-primary::after {
  animation: insaneButtonLight 1.8s ease-in-out infinite;
}

body.insane-mode .lab-chaos span {
  animation-duration: 1.8s;
}

body.insane-mode .figma-canvas {
  opacity: 1;
  transform: scale(1);
}

body.insane-mode .glitch-layer {
  opacity: 0.16;
}

.glitch-layer {
  position: fixed;
  inset: 0;
  z-index: 87;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.16) 0 1px,
      transparent 1px 7px
    ),
    repeating-linear-gradient(
      90deg,
      color-mix(in srgb, var(--accent) 18%, transparent) 0 1px,
      transparent 1px 18px
    );
  animation: glitchLayerMove 400ms steps(2, end) infinite;
}

@keyframes insaneHue {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }

  100% {
    filter: hue-rotate(360deg) saturate(1.3);
  }
}

@keyframes insaneZoom {
  50% {
    transform: scale(1.06) rotate(0.4deg);
  }
}

@keyframes insaneCardPulse {
  0%,
  100% {
    box-shadow:
      0 18px 60px rgba(0, 0, 0, 0.22),
      0 0 0 rgba(255, 255, 255, 0);
  }

  50% {
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.34),
      var(--glow);
  }
}

@keyframes insaneButtonLight {
  0% {
    left: -60%;
  }

  100% {
    left: 130%;
  }
}

@keyframes glitchLayerMove {
  0% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(8px, -4px);
  }

  50% {
    transform: translate(-6px, 3px);
  }

  75% {
    transform: translate(3px, 5px);
  }

  100% {
    transform: translate(0, 0);
  }
}

/* Matrix special */
body[data-theme="matrix"]::after {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0, 255, 106, 0.16) 50%, transparent 100%);
  background-size: 100% 160px;
  content: "";
  animation: matrixRain 1.8s linear infinite;
}

@keyframes matrixRain {
  from {
    background-position: 0 -160px;
  }

  to {
    background-position: 0 160px;
  }
}

/* Mono special */
body[data-theme="mono"] img,
body[data-theme="mono"] .hero-image {
  filter: grayscale(1) contrast(1.12);
}

/* Candy special */
body[data-theme="candy"] .hero-overlay {
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 130, 210, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(19, 8, 23, 0.94) 0%, rgba(36, 16, 42, 0.72) 50%, rgba(19, 8, 23, 0.28) 100%),
    linear-gradient(180deg, rgba(19, 8, 23, 0.18) 0%, rgba(19, 8, 23, 0.9) 100%);
}

/* Toxic special */
body[data-theme="toxic"] .noise-overlay {
  opacity: 0.065;
  mix-blend-mode: screen;
}

/* Mobile */
@media (max-width: 720px) {
  .mega-theme-dock {
    left: 12px;
    right: 12px;
    top: 76px;
    bottom: auto;
    width: auto;
    min-width: 0;
  }

  .theme-dot-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .theme-dot {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }

  .theme-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  body.studio-mode .mega-theme-dock {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.insane-mode .animated-background,
  body.insane-mode .hero-image,
  body.insane-mode .glass-card,
  body.insane-mode .service-card,
  body.insane-mode .step-card,
  body.insane-mode .live-panel,
  body.theme-bursting .theme-reactor-burst,
  .glitch-layer,
  body[data-theme="matrix"]::after {
    animation: none !important;
  }
}
