:root {
  --bg: #05070d;
  --bg-soft: #07182f;
  --surface: rgba(12, 18, 35, 0.74);
  --surface-strong: rgba(10, 14, 28, 0.92);
  --surface-light: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-soft: #b8c3d9;
  --title: #f5f8ff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --primary: #164a8b;
  --secondary: #7b2cff;
  --accent: #ff2f92;
  --coral: #e9876a;
  --white: #ffffff;
  --light-bg: #eef3fb;
  --light-surface: rgba(255, 255, 255, 0.76);
  --light-text: #12233f;
  --light-text-soft: #52637f;
  --container: min(1180px, calc(100% - 2rem));
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --header-height: 84px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123, 44, 255, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 47, 146, 0.18), transparent 24%),
    radial-gradient(circle at bottom center, rgba(22, 74, 139, 0.32), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.theme-light {
  --bg: #f4f7fc;
  --bg-soft: #dfe8f9;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-light: rgba(11, 30, 61, 0.06);
  --text: #12233f;
  --text-soft: #52637f;
  --title: #081221;
  --border: rgba(17, 33, 59, 0.08);
  --shadow: 0 24px 70px rgba(54, 73, 112, 0.14);
  background:
    radial-gradient(circle at top left, rgba(123, 44, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(233, 135, 106, 0.18), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #edf3fb 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

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

.section-heading h2,
.hero-copy h1,
.about-copy h2,
.cta-card h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Space Grotesk", "Outfit", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--title);
}

.section-heading h2,
.about-copy h2,
.cta-card h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--coral);
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 13, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

body.theme-light .site-header {
  background: rgba(244, 247, 252, 0.82);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.site-header.is-scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body.theme-light .site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 54px;
  object-fit: contain;
  max-width: min(220px, 42vw);
  transition: height var(--transition), max-width var(--transition);
}

.site-header.is-scrolled .brand img {
  height: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-soft);
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 14px 40px rgba(123, 44, 255, 0.34);
}

.hero-cta {
  position: relative;
  overflow: hidden;
  padding-inline: 1.55rem 1.8rem;
  isolation: isolate;
}

.hero-cta::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.hero-cta::after {
  content: "";
  position: absolute;
  inset: -42% auto -42% -24%;
  width: 58px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.05));
  transform: rotate(22deg) translateX(0);
  animation: heroCtaSheen 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hero-cta:hover::after,
.hero-cta:focus-visible::after {
  animation-duration: 1.9s;
}

.btn-secondary,
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

body.theme-light .btn-secondary,
body.theme-light .btn-ghost {
  border-color: rgba(9, 30, 66, 0.12);
  background: rgba(9, 30, 66, 0.03);
}

.theme-toggle,
.mobile-toggle,
.back-to-top,
.floating-whatsapp {
  border: 0;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 56px;
  height: 48px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

body.theme-light .theme-toggle {
  background: rgba(9, 30, 66, 0.07);
}

.theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.theme-icon--sun {
  background: linear-gradient(135deg, #ffd36e, var(--coral));
}

.theme-icon--moon {
  border: 2px solid #9bb7ff;
  border-left-color: transparent;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-image,
.hero-bg-grain,
.hero-bg-drift,
.hero-bg-sheen,
.hero-bg-vignette {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-bg-image {
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.76) 0%, rgba(4, 8, 18, 0.52) 30%, rgba(4, 8, 18, 0.24) 58%, rgba(4, 8, 18, 0.48) 100%),
    url("assets/img/hero-grain-bg.png") center 26% / cover no-repeat;
  filter: blur(5px) saturate(0.96) brightness(0.9);
  transform: scale(1.04);
  opacity: 0.92;
  will-change: transform, background-position, filter;
  animation: heroBgFloat 8s ease-in-out infinite alternate;
}

.hero-bg-grain {
  opacity: 0.3;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.22) 0.6px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.7px);
  background-position: 0 0, 9px 11px;
  background-size: 18px 18px, 16px 16px;
  mix-blend-mode: soft-light;
  animation: heroGrainShift 3.2s steps(10) infinite;
}

.hero-bg-drift {
  inset: -6% -8%;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 47, 146, 0.24), transparent 20%),
    radial-gradient(circle at 72% 26%, rgba(123, 44, 255, 0.3), transparent 24%),
    radial-gradient(circle at 60% 68%, rgba(22, 74, 139, 0.28), transparent 22%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 1;
  will-change: transform, opacity;
  animation: heroColorDrift 6.5s ease-in-out infinite alternate;
}

.hero-bg-sheen {
  inset: -12% auto -12% -18%;
  width: min(44vw, 520px);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.16) 34%, rgba(255, 255, 255, 0.38) 50%, rgba(255, 255, 255, 0.16) 66%, transparent 100%);
  filter: blur(12px);
  opacity: 0.66;
  transform: skewX(-18deg);
  will-change: transform, opacity;
  animation: heroSheenSweep 5.2s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.hero-bg-vignette {
  background:
    radial-gradient(circle at 78% 24%, rgba(160, 79, 255, 0.13), transparent 18%),
    radial-gradient(circle at 84% 44%, rgba(255, 47, 146, 0.07), transparent 18%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.04), rgba(4, 8, 18, 0.12)),
    linear-gradient(90deg, rgba(4, 8, 18, 0.1), rgba(4, 8, 18, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 5% 0 auto;
  height: 72%;
  background:
    radial-gradient(circle at 78% 24%, rgba(160, 79, 255, 0.18), transparent 22%),
    radial-gradient(circle at 84% 44%, rgba(255, 47, 146, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(4, 8, 18, 0.08), rgba(4, 8, 18, 0));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 3%;
  right: -8%;
  width: min(54vw, 680px);
  height: 140px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(153, 88, 255, 0.08) 18%, rgba(167, 87, 255, 0.34) 52%, rgba(255, 47, 146, 0.12) 74%, transparent 100%);
  filter: blur(10px);
  opacity: 0.9;
  transform: rotate(-6deg);
  animation: topSheen 8s cubic-bezier(0.42, 0, 0.22, 1) infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

.hero-motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 34%, rgba(0, 0, 0, 0.72) 50%, #000 62%);
  z-index: 1;
}

.hero-motion-line,
.hero-grid-glow {
  position: absolute;
  display: block;
}

.hero-motion-line {
  inset: auto;
  width: min(64vw, 760px);
  height: 210px;
  border-radius: 48% 52% 56% 44% / 44% 42% 58% 56%;
  opacity: 0.44;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.hero-motion-line::before,
.hero-motion-line::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero-motion-line::before {
  background-image:
    radial-gradient(circle at 72% 46%, rgba(196, 112, 255, 0.18) 0, transparent 20%),
    linear-gradient(90deg, transparent 0%, rgba(108, 64, 255, 0.04) 14%, rgba(147, 75, 255, 0.68) 48%, rgba(255, 47, 146, 0.14) 66%, transparent 100%);
  mask:
    radial-gradient(130% 78% at 50% 50%, #000 42%, transparent 54%),
    linear-gradient(#000 0 0);
  mask-composite: intersect;
}

.hero-motion-line::after {
  border: 1px solid rgba(173, 122, 255, 0.18);
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(123, 44, 255, 0.28),
    0 0 44px rgba(255, 47, 146, 0.08);
  transform: scaleY(0.82) rotate(-2deg);
}

.hero-motion-line-a {
  top: 2%;
  right: -8%;
  transform: rotate(-8deg);
  animation: fluidRibbonA 18s cubic-bezier(0.42, 0, 0.23, 1) infinite;
}

.hero-motion-line-b {
  top: 18%;
  right: -14%;
  width: min(56vw, 620px);
  height: 170px;
  transform: rotate(2deg);
  opacity: 0.3;
  animation: fluidRibbonB 22s cubic-bezier(0.45, 0.02, 0.2, 1) infinite;
}

.hero-motion-line-c {
  display: none;
}

.hero-grid-glow {
  inset: auto;
  top: 12%;
  right: 8%;
  width: 420px;
  height: 420px;
  background:
    radial-gradient(circle, rgba(123, 44, 255, 0.14) 0, rgba(123, 44, 255, 0.04) 30%, transparent 66%);
  filter: blur(16px);
  animation: glowPulse 12s ease-in-out infinite;
}

.hero-copy,
.hero-highlights,
.hero-actions {
  position: relative;
  z-index: 2;
}

@keyframes heroBgFloat {
  0% {
    transform: scale(1.05) translate3d(-4%, 0, 0);
    background-position: 42% 22%;
    filter: blur(4px) saturate(0.9) brightness(0.82);
  }

  100% {
    transform: scale(1.12) translate3d(4%, -2.6%, 0);
    background-position: 58% 32%;
    filter: blur(6px) saturate(1.04) brightness(0.98);
  }
}

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

  25% {
    transform: translate(1.4%, -0.8%);
  }

  50% {
    transform: translate(-1%, 1.2%);
  }

  75% {
    transform: translate(0.8%, 0.5%);
  }

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

@keyframes heroColorDrift {
  0% {
    transform: translate3d(-7%, 0, 0) scale(1);
    opacity: 0.76;
  }

  50% {
    transform: translate3d(4%, 5%, 0) scale(1.12);
    opacity: 0.98;
  }

  100% {
    transform: translate3d(7%, -3%, 0) scale(1.05);
    opacity: 0.82;
  }
}

@keyframes heroSheenSweep {
  0%,
  12% {
    transform: translate3d(0, 0, 0) skewX(-18deg);
    opacity: 0;
  }

  28% {
    opacity: 0.42;
  }

  52% {
    transform: translate3d(210%, 0, 0) skewX(-18deg);
    opacity: 0.72;
  }

  70%,
  100% {
    transform: translate3d(220%, 0, 0) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes heroCtaSheen {
  0%,
  18% {
    transform: rotate(22deg) translateX(0);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  58% {
    transform: rotate(22deg) translateX(320px);
    opacity: 0.88;
  }

  100% {
    transform: rotate(22deg) translateX(320px);
    opacity: 0;
  }
}

.hero-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--white);
  max-width: 33rem;
}

body.theme-light .hero-subtitle {
  color: var(--light-text);
}

.hero-text,
.about-copy p,
.cta-card p,
.contact-copy p,
.section-heading p,
.benefit-card p,
.product-card p,
.tech-card p,
.contact-detail span,
.contact-detail a,
.stat-card span,
.info-card span {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-actions,
.hero-highlights,
.about-points,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-highlights {
  margin-top: 1rem;
}

.stat-card,
.about-point,
.contact-detail {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  flex: 1 1 220px;
}

.stat-card strong,
.about-point strong,
.contact-detail strong,
.info-card strong {
  display: block;
  margin-bottom: 0.4rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.hero-panel {
  position: absolute;
  border-radius: 32px;
}

.hero-panel-main {
  inset: 2rem 1rem 5rem 0;
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(123, 44, 255, 0.16), transparent 36%, rgba(6, 9, 17, 0.2));
  pointer-events: none;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-lg {
  height: 100%;
  min-height: 520px;
}

.screen-sm {
  min-height: 220px;
}

.screen-badge,
.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.screen-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}

.product-icon {
  width: 52px;
  height: 52px;
  padding: 0;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(123, 44, 255, 0.2), rgba(255, 47, 146, 0.18));
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-orb-a {
  width: 180px;
  height: 180px;
  top: 0;
  right: 2rem;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.9), transparent 70%);
}

.hero-orb-b {
  width: 220px;
  height: 220px;
  left: -1rem;
  bottom: 4rem;
  background: radial-gradient(circle, rgba(233, 135, 106, 0.55), transparent 70%);
}

.info-card {
  position: absolute;
  left: 1rem;
  bottom: 0;
  max-width: 300px;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
}

.benefits-grid,
.products-grid,
.tech-grid {
  display: grid;
  gap: 1.2rem;
}

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

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

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

.benefit-card,
.product-card,
.tech-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.benefit-card::after,
.product-card::after,
.tech-card::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 44, 255, 0.32), transparent 70%);
  pointer-events: none;
}

.benefit-card h3,
.product-card h3,
.tech-card h3,
.timeline-item h3 {
  margin: 0 0 0.75rem;
  color: var(--title);
  font-size: 1.15rem;
}

.product-card a {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--coral);
  font-weight: 600;
}

.portfolio-action {
  position: relative;
  margin-top: 1.4rem;
  gap: 1rem;
  width: min(100%, 430px);
  min-height: 76px;
  padding: 0.95rem 1.15rem 0.95rem 1rem;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 47, 146, 0.28), rgba(123, 44, 255, 0.32)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 44px rgba(123, 44, 255, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  isolation: isolate;
  animation: portfolioPulse 2.3s ease-in-out infinite;
}

.portfolio-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.13) 18%, transparent 38%),
    radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.portfolio-action::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -18%;
  width: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02));
  transform: rotate(24deg) translateX(0);
  animation: portfolioSheen 3.1s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.portfolio-action__icon,
.portfolio-action__content,
.portfolio-action__badge {
  position: relative;
  z-index: 1;
}

.portfolio-action__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 20px rgba(31, 13, 78, 0.2);
}

.portfolio-action__icon-card {
  position: relative;
  width: 34px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 9px;
}

.portfolio-action__icon-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 8px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.portfolio-action__icon-ring {
  position: absolute;
  inset: 5px 7px 6px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.42);
}

.portfolio-action__icon-head {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.portfolio-action__icon-body {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 16px;
  height: 8px;
  border: 3px solid #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
  transform: translateX(-50%);
}

.portfolio-action__content {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.portfolio-action__content strong {
  font-size: 1rem;
  color: #fff;
  line-height: 1.1;
}

.portfolio-action__content small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  line-height: 1.2;
}

.portfolio-action__badge {
  margin-left: auto;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.portfolio-action:hover,
.portfolio-action:focus-visible {
  transform: translateY(-4px) scale(1.025);
  box-shadow:
    0 24px 56px rgba(255, 47, 146, 0.28),
    0 12px 28px rgba(123, 44, 255, 0.25);
}

@keyframes portfolioPulse {
  0%,
  100% {
    box-shadow:
      0 16px 34px rgba(123, 44, 255, 0.18),
      0 0 0 0 rgba(255, 47, 146, 0.12);
  }

  50% {
    box-shadow:
      0 24px 54px rgba(123, 44, 255, 0.3),
      0 0 0 12px rgba(255, 47, 146, 0);
  }
}

@keyframes portfolioSheen {
  0%,
  20% {
    transform: rotate(24deg) translateX(0);
    opacity: 0;
  }

  34% {
    opacity: 1;
  }

  60% {
    transform: rotate(24deg) translateX(330px);
    opacity: 0.9;
  }

  100% {
    transform: rotate(24deg) translateX(330px);
    opacity: 0;
  }
}

.product-card--gallery {
  padding: 0;
}

.product-gallery-trigger {
  width: 100%;
  padding: 1.5rem;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.product-preview {
  display: block;
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 16 / 10;
}

.product-preview--portrait {
  aspect-ratio: 4 / 5;
}

.product-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
}

.product-gallery-trigger:hover .product-preview img,
.product-gallery-trigger:focus-visible .product-preview img {
  transform: scale(1.03);
  filter: saturate(1.04);
}

.product-copy h3 {
  margin: 0 0 0.75rem;
}

.esl-benefits {
  margin-top: 1rem;
}

.esl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.real-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.video-preview {
  position: relative;
  display: block;
  margin-bottom: 1rem;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8, 12, 24, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.84);
  backdrop-filter: blur(14px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 1rem;
  border-radius: 28px;
  background: rgba(8, 12, 24, 0.94);
}

.video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 20, 0.78);
  color: #fff;
  font-size: 1.8rem;
}

.video-modal__frame {
  border-radius: 22px;
  overflow: hidden;
}

.video-modal__player {
  width: 100%;
  max-height: 78vh;
  display: block;
  background: #000;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(14px);
}

.gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  padding: 1rem;
  border-radius: 28px;
  background: rgba(8, 12, 24, 0.92);
}

.gallery-modal__figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}

.gallery-modal__image {
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-modal__close,
.gallery-modal__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 10, 20, 0.78);
  color: var(--white);
  font-size: 1.8rem;
}

.gallery-modal__close {
  top: 1rem;
  right: 1rem;
}

.gallery-modal__nav {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-modal__nav--prev {
  left: 1rem;
}

.gallery-modal__nav--next {
  right: 1rem;
}

.gallery-modal__footer {
  display: flex;
  justify-content: center;
  padding: 0.9rem 0 0.25rem;
}

.gallery-modal__counter {
  color: var(--text-soft);
  font-weight: 600;
}

.showcase-frame {
  padding: 1rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(123, 44, 255, 0.22), rgba(255, 47, 146, 0.12)),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.showcase-frame img {
  border-radius: 28px;
  min-height: 520px;
  object-fit: cover;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 2.1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(233, 135, 106, 0.2), rgba(123, 44, 255, 0.8), rgba(22, 74, 139, 0.2));
}

.timeline-item {
  position: relative;
  padding-top: 0.4rem;
}

.timeline-item span {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 14px 32px rgba(123, 44, 255, 0.35);
  font-weight: 700;
}

.cta-card {
  position: relative;
  padding: 3rem;
  border-radius: 36px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 74, 139, 0.72), rgba(123, 44, 255, 0.52)),
    var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
  padding: 1.6rem;
  border-radius: 26px;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.contact-form span {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

body.theme-light .contact-form input,
body.theme-light .contact-form textarea {
  background: rgba(11, 30, 61, 0.03);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(233, 135, 106, 0.8);
}

.form-feedback {
  min-height: 1.2rem;
  margin: 0;
  color: var(--coral);
}

.site-footer {
  padding: 0 0 2.5rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.floating-whatsapp,
.back-to-top {
  position: fixed;
  right: 1.2rem;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
  z-index: 25;
}

.floating-whatsapp {
  bottom: 1.2rem;
  background: linear-gradient(135deg, #23cf71, #128c7e);
  color: #fff;
  font-weight: 800;
}

.whatsapp-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #43f28d 0%, #19d667 42%, #08b94e 72%, #069641 100%);
  box-shadow:
    inset -8px -10px 18px rgba(0, 0, 0, 0.12),
    inset 8px 10px 16px rgba(255, 255, 255, 0.24),
    0 10px 22px rgba(6, 150, 65, 0.34);
}

.whatsapp-badge__inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62%;
  height: 62%;
  border: 4px solid #fff;
  border-radius: 50%;
}

.whatsapp-badge__inner::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -10%;
  width: 24%;
  height: 24%;
  background: #fff;
  clip-path: polygon(0 0, 100% 20%, 38% 100%);
  border-bottom-left-radius: 4px;
}

.whatsapp-badge__mark {
  position: relative;
  z-index: 1;
  color: #11b856;
  font-size: 0.95rem;
  line-height: 1;
  transform: rotate(8deg);
}

.whatsapp-badge--small {
  width: 42px;
  height: 42px;
}

.whatsapp-badge--inline {
  width: 22px;
  height: 22px;
  margin-right: 0.45rem;
  vertical-align: middle;
  box-shadow:
    inset -4px -5px 10px rgba(0, 0, 0, 0.1),
    inset 4px 5px 8px rgba(255, 255, 255, 0.22),
    0 4px 10px rgba(6, 150, 65, 0.22);
}

.whatsapp-badge--inline .whatsapp-badge__inner {
  border-width: 2px;
}

.whatsapp-badge--inline .whatsapp-badge__mark {
  font-size: 0.48rem;
}

.whatsapp-badge--floating {
  width: 56px;
  height: 56px;
}

.back-to-top {
  bottom: 5.5rem;
  background: var(--surface-strong);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fluidRibbonA {
  0%, 100% {
    transform: rotate(-8deg) translate3d(0, 0, 0) scale(1);
    border-radius: 48% 52% 56% 44% / 44% 42% 58% 56%;
  }
  50% {
    transform: rotate(-5deg) translate3d(-34px, 10px, 0) scale(1.03);
    border-radius: 54% 46% 52% 48% / 40% 48% 52% 60%;
  }
}

@keyframes fluidRibbonB {
  0%, 100% {
    transform: rotate(2deg) translate3d(0, 0, 0) scale(1);
    border-radius: 50% 50% 54% 46% / 42% 44% 56% 58%;
  }
  50% {
    transform: rotate(4deg) translate3d(-28px, -8px, 0) scale(1.02);
    border-radius: 46% 54% 50% 50% / 54% 40% 60% 46%;
  }
}

@keyframes topSheen {
  0%, 100% {
    transform: rotate(-6deg) translate3d(0, 0, 0) scaleX(1);
    opacity: 0.55;
  }
  50% {
    transform: rotate(-4deg) translate3d(-42px, 10px, 0) scaleX(1.08);
    opacity: 0.88;
  }
}

@keyframes fluidRibbonC {
  0%, 100% {
    transform: rotate(-8deg) translate3d(0, 0, 0) scale(1);
    border-radius: 48% 52% 42% 58% / 54% 38% 62% 46%;
  }
  50% {
    transform: rotate(-4deg) translate3d(52px, -18px, 0) scale(1.07);
    border-radius: 38% 62% 54% 46% / 46% 58% 42% 54%;
  }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(0.94);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion-line,
  .hero-grid-glow,
  .hero::after {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .portfolio-action {
    width: 100%;
    justify-content: flex-start;
  }

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

  .timeline::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: auto auto auto;
  }

  .mobile-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .main-nav,
  .header-actions .btn-ghost,
  .header-actions .btn-primary {
    display: none;
  }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.8rem);
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero-visual {
    min-height: 540px;
  }

  .hero-panel-main {
    inset: 1rem 0 5rem;
  }

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

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.2rem 0;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .benefits-grid,
  .products-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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

  .real-cases-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-action {
    min-height: 68px;
    padding: 0.9rem 1rem;
  }

  .portfolio-action__icon {
    width: 50px;
    height: 50px;
  }

  .portfolio-action__content strong {
    font-size: 0.92rem;
  }

  .portfolio-action__content small,
  .portfolio-action__badge {
    font-size: 0.68rem;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-panel-main {
    inset: 0 0 5.5rem;
  }

  .screen-lg {
    min-height: 380px;
  }

  .showcase-frame img {
    min-height: 360px;
  }

  .gallery-modal {
    padding: 0.75rem;
  }

  .gallery-modal__dialog {
    padding: 0.75rem;
    border-radius: 22px;
  }

  .gallery-modal__nav,
  .gallery-modal__close {
    width: 42px;
    height: 42px;
  }

  .gallery-modal__nav--prev {
    left: 0.75rem;
  }

  .gallery-modal__nav--next {
    right: 0.75rem;
  }

  .cta-card {
    padding: 2rem;
  }

  .floating-whatsapp,
  .back-to-top {
    width: 50px;
    height: 50px;
    right: 0.85rem;
  }
}
