:root,
[data-bs-theme="dark"] {
  --pg-black: #030305;
  --pg-surface: #0a090d;
  --pg-surface-soft: #121016;
  --pg-border: rgba(255, 255, 255, 0.1);
  --pg-text: #f7f4f8;
  --pg-muted: #aaa2ae;
  --pg-purple: #8d18ff;
  --pg-magenta: #df0077;
  --pg-red: #ff164f;
  --pg-gradient: linear-gradient(105deg, var(--pg-purple) 0%, var(--pg-magenta) 52%, var(--pg-red) 100%);
  --bs-primary: #a21cff;
  --bs-primary-rgb: 162, 28, 255;
  --bs-info: #e10070;
  --bs-info-rgb: 225, 0, 112;
  --bs-success: #ff285d;
  --bs-success-rgb: 255, 40, 93;
  --bs-secondary: #9b8ca3;
  --bs-secondary-rgb: 155, 140, 163;
  --bs-body-color: var(--pg-text);
  --bs-body-bg: var(--pg-black);
  --bs-border-color: var(--pg-border);
}

html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  color: var(--pg-text);
  background: var(--pg-black);
  text-rendering: optimizeLegibility;
}
main { display: block; min-height: calc(100vh - 150px); padding-top: 72px; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(225, 0, 112, 0.45);
  outline-offset: 3px;
}

.text-gradient {
  display: inline-block;
  color: var(--pg-magenta);
  background: var(--pg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tracking-wide { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.12em; }
.py-6 { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.pb-6 { padding-bottom: 5.5rem; }
.mb-6 { margin-bottom: 6rem; }
.min-vh-75 { min-height: 75vh; }
.z-index-1 { z-index: 1; }
.inset-0 { inset: 0; }

.bg-glass {
  background: rgba(3, 3, 5, 0.88) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.navbar {
  min-height: 72px;
  border-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
}
.navbar-brand { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-x { color: var(--pg-red); -webkit-text-fill-color: var(--pg-red); }
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar-dark .navbar-nav:not(.navbar-actions) .nav-link:hover,
.navbar-dark .navbar-nav:not(.navbar-actions) .nav-link:focus-visible { color: #fff; }
.navbar-dark .navbar-actions .btn-outline-light:hover,
.navbar-dark .navbar-actions .btn-outline-light:focus-visible {
  color: #08070a !important;
  background-color: #fff;
  border-color: #fff;
}
.navbar-toggler {
  padding: 0.55rem;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(162, 28, 255, 0.2); }

.hero-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 32%, rgba(141, 24, 255, 0.2), transparent 27%),
    radial-gradient(circle at 92% 75%, rgba(255, 22, 79, 0.13), transparent 24%),
    linear-gradient(135deg, #030305 0%, #070509 62%, #0e060c 100%);
}
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 2px;
  background: var(--pg-gradient);
  box-shadow: 0 0 22px rgba(225, 0, 112, 0.6);
  transform: rotate(-45deg);
}
.hero-section::before { top: 58px; left: -70px; }
.hero-section::after { right: -75px; bottom: 60px; }
.hero-section h1 { max-width: 850px; letter-spacing: -0.045em; }
.hero-section .lead { line-height: 1.7; color: #cbc4ce !important; }
.badge { letter-spacing: 0.06em; border: 1px solid currentColor; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn-primary {
  color: #fff;
  background: var(--pg-gradient);
  border: 0;
  box-shadow: 0 10px 28px rgba(225, 0, 112, 0.22);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  background: linear-gradient(105deg, #9e3bff 0%, #f20a82 52%, #ff315f 100%);
  box-shadow: 0 14px 34px rgba(225, 0, 112, 0.34);
}
.btn-outline-primary {
  color: var(--pg-text);
  background: rgba(14, 11, 17, 0.72);
  border-color: var(--pg-border);
}
.btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary {
  color: #fff;
  background: rgba(162, 28, 255, 0.13);
  border-color: var(--pg-magenta);
  box-shadow: 0 0 0 1px rgba(225, 0, 112, 0.16), 0 12px 30px rgba(0, 0, 0, 0.2);
}
.hover-lift:hover { transform: translateY(-3px); }
.hover-scale { transition: transform 0.2s ease, filter 0.2s ease; filter: grayscale(20%); }
.hover-scale:hover { transform: scale(1.12); filter: none; }
.service-card img[src$="/n8n.svg"],
img.n8n-color {
  filter: invert(42%) sepia(88%) saturate(1570%) hue-rotate(314deg) brightness(100%) contrast(84%) !important;
}

.tech-marquee-item img[src$="/n8n.svg"] {
  filter: grayscale(100%) brightness(0) invert(65%) opacity(0.72) !important;
}

.tech-marquee-item:hover img[src$="/n8n.svg"] {
  filter: invert(42%) sepia(88%) saturate(1570%) hue-rotate(314deg) brightness(100%) contrast(84%) !important;
}

.service-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--pg-border) !important;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(20, 15, 23, 0.93), rgba(8, 7, 10, 0.96)) !important;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
}
.service-card:hover { border-color: rgba(225, 0, 112, 0.28) !important; }
.service-row { padding: 2rem 0; }
.service-row h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.service-row p, .service-row li { line-height: 1.75; }
.service-icon-box {
  isolation: isolate;
  border-color: var(--pg-border) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35) !important;
}
.service-icon-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(141, 24, 255, 0.08), rgba(255, 22, 79, 0.13));
}
.border-gray-800 { border-color: var(--pg-border) !important; }
hr.border-gray-800 { opacity: 1; }
.title-separator {
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--pg-gradient) !important;
  box-shadow: 0 0 18px rgba(225, 0, 112, 0.35);
}

.tech-circle-wrapper { position: relative; width: 350px; height: 350px; }
.tech-circle-inner, .tech-circle-outer {
  border-color: rgba(162, 28, 255, 0.42) !important;
  will-change: transform;
}
.tech-circle-inner { animation: pg-spin 13s linear infinite !important; }
.tech-circle-outer { animation: pg-spin-reverse 19s linear infinite !important; }
.tech-circle-outer { border-top-color: var(--pg-red) !important; }
.tech-circle-inner::before,
.tech-circle-outer::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: -6px;
  left: 50%;
  border-radius: 50%;
  background: var(--pg-red);
  box-shadow: 0 0 18px var(--pg-red);
}
.tech-circle-inner::before {
  background: var(--pg-purple);
  box-shadow: 0 0 18px var(--pg-purple);
}
.hero-logo {
  width: 138px;
  height: 138px;
  z-index: 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  clip-path: circle(50%);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 28px rgba(225, 0, 112, 0.1) !important;
  animation: pg-logo-breathe 5s ease-in-out infinite;
}
.glow-orb { background: var(--pg-magenta) !important; }
.glow-orb.bg-info { background: var(--pg-red) !important; }
.tech-marquee-container {
  background: rgba(7, 5, 9, 0.86) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}
.tech-marquee-item { color: rgba(255, 255, 255, 0.62) !important; }
.tech-marquee-item:hover { color: #fff !important; }
.tech-marquee-track {
  animation: pg-marquee 38s linear infinite !important;
  will-change: transform;
}
.tech-marquee-track:hover { animation-play-state: paused !important; }
.tech-marquee-item.ai-tool {
  color: rgba(255, 255, 255, 0.84) !important;
}
@keyframes pg-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes pg-spin-reverse {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes pg-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes pg-logo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}
@keyframes pg-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.value-cards > [class*="col-"] { display: flex; }
.value-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--pg-border);
  border-radius: 0.8rem;
  background: #0a090c;
}
.value-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--pg-border);
  background: #050506;
}
.value-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.value-card:hover .value-card-media img { transform: scale(1.025); }
.value-card-body { padding: 1.5rem; }
.value-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 0;
  font-size: 1.4rem;
  background: transparent;
}
.value-icon-red { color: var(--pg-red); }
.value-icon-purple { color: var(--pg-purple); }
.value-icon-magenta { color: var(--pg-magenta); }
.value-icon i { animation: pg-icon-float 4s ease-in-out infinite; }
.value-cards > div:nth-child(2) .value-icon i { animation-delay: -1.25s; }
.value-cards > div:nth-child(3) .value-icon i { animation-delay: -2.5s; }
.value-card h2 {
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.28;
}
.value-card p {
  margin: 0;
  color: #bdb5c0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.support-highlight {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--pg-border);
  border-bottom: 1px solid var(--pg-border);
}
.support-icon,
.whatsapp-modal-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid var(--pg-border);
  border-radius: 0.8rem;
  background: #0a090c;
  font-size: 1.7rem;
}
.support-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pg-magenta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.support-highlight h2 { margin-bottom: 0.5rem; color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); }
.support-highlight p { max-width: 820px; color: #bdb5c0; line-height: 1.65; }

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1035;
  width: 56px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--pg-gradient);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.48), 0 0 28px rgba(225, 0, 112, 0.25);
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 18px 45px rgba(0, 0, 0, 0.56), 0 0 34px rgba(225, 0, 112, 0.35); }
.whatsapp-float i { font-size: 1.45rem; }
.whatsapp-dialog { max-width: 480px; }
.whatsapp-modal {
  overflow: hidden;
  border: 1px solid rgba(225, 0, 112, 0.3);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 0, rgba(141, 24, 255, 0.2), transparent 36%),
    #09070b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.whatsapp-modal-icon {
  margin: 0 auto 1.25rem;
  border: 0;
  border-radius: 18px;
  background: var(--pg-gradient);
  box-shadow: 0 12px 30px rgba(225, 0, 112, 0.25);
}
.support-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.support-pills span {
  padding: 0.5rem 0.75rem;
  color: #ded7e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
}

.carousel-indicators [data-bs-target] {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.42);
}
.carousel-indicators .active { background: var(--pg-gradient); }
.carousel-control-prev, .carousel-control-next { width: 11%; }
.carousel-img-mobile {
  height: 340px;
  object-fit: contain;
  object-position: center;
  cursor: zoom-in;
  background: #050506;
}
#imageModal .modal-content { background: transparent !important; }
#imageModal .modal-header { position: relative; z-index: 2; }
#imageModal .btn-close {
  width: 2rem;
  height: 2rem;
  padding: 0.7rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.72);
  filter: invert(1) grayscale(100%) brightness(200%);
}
#modalImage { width: auto; max-width: 100%; max-height: 84vh; object-fit: contain; }

.form-control, .form-select, .input-group-text {
  min-height: 48px;
  color: var(--pg-text);
  background-color: rgba(16, 12, 19, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.form-control::placeholder { color: #77707b; opacity: 1; }
.form-control:focus, .form-select:focus {
  color: #fff;
  background-color: #130e17 !important;
  border-color: var(--pg-magenta) !important;
  box-shadow: 0 0 0 0.25rem rgba(225, 0, 112, 0.16);
}
.table-dark {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(162, 28, 255, 0.07);
  --bs-table-border-color: var(--pg-border);
}
.modal-content.bg-dark { background: var(--pg-surface) !important; }
.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--pg-purple), var(--pg-red)); border-radius: 10px; }

.site-footer {
  color: var(--pg-muted);
  background: rgba(3, 3, 5, 0.94);
  border-color: rgba(255, 255, 255, 0.08) !important;
  font-size: 0.9rem;
}
.footer-logo { width: 34px; height: 34px; object-fit: cover; border-radius: 9px; }
.footer-link { color: #e9e2eb; text-decoration: none; }
.footer-link:hover { color: var(--pg-magenta); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.75s ease both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@media (max-width: 991.98px) {
  main { padding-top: 68px; }
  .navbar { min-height: 68px; }
  .navbar-collapse {
    margin-top: 0.8rem;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .navbar-nav .nav-link { padding: 0.75rem 0.5rem; }
  .navbar-actions .nav-link { width: 100%; }
  .hero-section { min-height: auto; padding: 5rem 0 4rem; }
  .hero-section .lead { margin-inline: auto; }
  .service-row, .service-row .text-lg-end { text-align: left !important; }
  .service-row .justify-content-lg-end { justify-content: flex-start !important; }
  .service-icon-box { min-height: 310px !important; }
  .support-highlight { align-items: flex-start; flex-wrap: wrap; }
  .py-6 { padding-top: 4rem; padding-bottom: 4rem; }
  .pb-6 { padding-bottom: 4rem; }
  .mb-6 { margin-bottom: 4rem; }
}

@media (max-width: 767.98px) {
  html { scroll-padding-top: 76px; }
  .container { --bs-gutter-x: 2rem; }
  .brand-logo { width: 40px; height: 40px; }
  .navbar-brand span { font-size: 0.98rem; }
  .hero-section { padding: 3.75rem 0 3rem !important; }
  .hero-section::before, .hero-section::after { width: 180px; }
  .hero-section h1 { font-size: clamp(2.25rem, 11vw, 3.15rem); line-height: 1.06 !important; }
  .hero-section .lead { min-height: 116px !important; font-size: 1rem; line-height: 1.65; }
  .hero-section .d-flex { width: 100%; }
  .hero-section .btn { width: 100%; padding: 0.85rem 1.25rem !important; }
  .py-6 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .mb-6 { margin-bottom: 3.5rem; }
  .display-5 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .display-6 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .service-row { padding: 0; }
  .service-row p.lead { font-size: 1rem; }
  .service-row li { display: flex; align-items: flex-start; }
  .service-row li i { margin-top: 0.32rem; }
  .service-icon-box { min-height: 235px !important; }
  .service-row .d-flex.align-items-center { flex-wrap: wrap; }
  .value-card-body { padding: 1.35rem; }
  .support-highlight {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    padding: 1.35rem;
  }
  .support-icon { width: 54px; height: 54px; border-radius: 15px; font-size: 1.4rem; }
  .pb-6 { padding-bottom: 3.5rem; }
  .tech-marquee-items { gap: 2.5rem !important; padding-right: 2.5rem !important; }
  .tech-marquee-item img { height: 27px !important; }
  .carousel-img-mobile { height: 225px !important; }
  .carousel-control-prev, .carousel-control-next { width: 15%; }
  .service-card { padding: 1.25rem !important; border-radius: 1rem; }
  .container-fluid.py-6 > .d-flex:first-child {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1.25rem;
  }
  .container-fluid.py-6 > .d-flex:first-child > .d-flex { flex-wrap: wrap; }
  .container-fluid.py-6 > .d-flex:first-child .btn { flex: 1 1 150px; }
  .table { min-width: 800px; font-size: 0.88rem; }
  .modal-dialog { margin: 0.75rem; }
  #imageModal .modal-header { padding-right: 0; }
  #modalImage { max-height: 78vh; }
  .site-footer { text-align: center; }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp-float i { font-size: 1.35rem; }
  .whatsapp-dialog { max-width: none; }
  .whatsapp-modal { border-radius: 1.2rem; }
}

@media (max-width: 420px) {
  .container { --bs-gutter-x: 1.5rem; }
  .hero-section .badge { font-size: 0.68rem; }
  .tracking-widest { letter-spacing: 0.08em; }
  .carousel-img-mobile { height: 190px !important; }
  .support-highlight { grid-template-columns: 1fr; text-align: center; }
  .support-icon { margin: 0 auto; }
}

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