:root {
  --bg: #070a12;
  --bg-soft: #0d1324;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #aab7cf;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #6d5dfc;
  --secondary: #13d7ff;
  --accent: #ff4fd8;
  --success: #24d982;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

body.light-mode {
  --bg: #f6f8ff;
  --bg-soft: #ffffff;
  --surface: rgba(10, 20, 40, 0.06);
  --surface-strong: rgba(10, 20, 40, 0.1);
  --text: #07101f;
  --muted: #536176;
  --line: rgba(10, 20, 40, 0.12);
  --shadow: 0 24px 70px rgba(66, 76, 112, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(109, 93, 252, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(19, 215, 255, 0.16), transparent 24rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--muted); line-height: 1.75; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #050712;
  transition: opacity .45s ease, visibility .45s ease;
}

.preloader.loaded { opacity: 0; visibility: hidden; }

.loader-orbit {
  width: 72px;
  height: 72px;
  position: relative;
  animation: spin 1.3s linear infinite;
}

.loader-orbit span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 0 28px rgba(19, 215, 255, .6);
}

.loader-orbit span:nth-child(1) { top: 0; left: 27px; }
.loader-orbit span:nth-child(2) { bottom: 8px; left: 5px; }
.loader-orbit span:nth-child(3) { bottom: 8px; right: 5px; }

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

.tech-navbar {
  padding: 18px 0;
  transition: .35s ease;
}

.tech-navbar.scrolled,
.tech-navbar.menu-open {
  padding: 10px 0;
  background: rgba(7, 10, 18, 0.76);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

body.light-mode .tech-navbar.scrolled,
body.light-mode .tech-navbar.menu-open { background: rgba(255, 255, 255, .82); }

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 12px 28px rgba(109, 93, 252, .35);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  margin: 0 6px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

.navbar-toggler {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: none;
}

.navbar-toggler span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: .3s ease;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  border-width: 0;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 42px rgba(109, 93, 252, .3);
}

.btn-outline-light {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.btn-light { color: #07101f; }
.btn-whatsapp { background: #25d366; color: #06130a; }

.hero-section,
.page-hero {
  position: relative;
  padding: 150px 0 90px;
}

.page-hero { min-height: 58vh; display: grid; place-items: center; overflow: hidden; }
.page-hero h1 { max-width: 900px; margin: 16px auto; font-size: clamp(2.7rem, 7vw, 5.8rem); }
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(64px);
  opacity: .58;
  animation: float 8s ease-in-out infinite;
}

.hero-glow-one { top: 12%; right: 8%; background: var(--primary); }
.hero-glow-two { bottom: 8%; left: 4%; background: var(--secondary); animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(18px,-24px,0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
  font-size: .78rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
  color: var(--text);
}

.fw-black { font-weight: 900; }

.gradient-text {
  background: linear-gradient(135deg, var(--secondary), #ffffff 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy { max-width: 640px; font-size: 1.13rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.hero-trust strong {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-device {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
    rgba(255,255,255,.04);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-10deg) rotateX(6deg);
}

.device-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 14px;
  color: var(--muted);
}

.device-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.device-toolbar span:nth-child(2) { background: #ffc14f; }
.device-toolbar span:nth-child(3) { background: var(--success); }
.device-toolbar small { margin-left: auto; }

.device-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 1fr 150px;
  gap: 14px;
}

.glass-panel,
.service-card,
.deep-service-card,
.mission-card,
.contact-form,
.contact-info-card,
.skills-panel,
.map-placeholder,
.testimonial-carousel {
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.large-panel { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.large-panel h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.mini-label { color: var(--secondary); font-weight: 800; margin-bottom: 12px; }

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.metric-row div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.metric-row strong { display: block; font-size: 2rem; color: var(--text); }
.metric-row span { color: var(--muted); font-size: .85rem; }

.visual-tile {
  border-radius: 8px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)), url("https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=700&q=80") center/cover;
}

.small-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.small-panel i,
.service-card i,
.mission-card i,
.contact-info-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 30px rgba(109, 93, 252, .28);
}

.accent-panel { background: linear-gradient(135deg, rgba(19,215,255,.2), rgba(255,79,216,.12)); }

.section-pad { padding: 110px 0; }
.alt-section { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border-block: 1px solid var(--line); }

.section-heading { max-width: 760px; }
.section-heading h2,
.section-title { font-size: clamp(2rem, 5vw, 3.9rem); margin-top: 12px; }

.service-card {
  padding: 28px;
  min-height: 280px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.service-card:hover,
.deep-service-card:hover,
.team-card:hover,
.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(19,215,255,.42);
}

.service-card h3 { margin-top: 24px; font-size: 1.3rem; }

.stacked-visual,
.about-visual { position: relative; }

.stacked-visual img,
.about-visual img {
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-badge,
.about-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(7,10,18,.76);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-list i { color: var(--success); margin-top: 4px; }

.stats-strip {
  padding: 55px 0;
  background: linear-gradient(135deg, rgba(109,93,252,.35), rgba(19,215,255,.16));
  border-block: 1px solid var(--line);
}

.stats-strip strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.stats-strip span { color: var(--muted); font-weight: 700; }

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: .3s ease;
}

.project-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform .45s ease;
}

.project-card:hover img { transform: scale(1.08); }

.project-card div {
  position: absolute;
  inset: auto 18px 18px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(7,10,18,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.project-card span { color: var(--secondary); font-weight: 800; }

.testimonial-carousel {
  max-width: 900px;
  margin-inline: auto;
  padding: 42px 72px;
}

.testimonial-carousel blockquote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.25;
}

.testimonial-author { color: var(--text); font-weight: 900; }
.testimonial-author span { color: var(--muted); display: block; font-weight: 500; }
.carousel-control-prev,
.carousel-control-next { width: 46px; opacity: 1; color: var(--text); }

.cta-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 18rem),
    linear-gradient(135deg, var(--primary), #0d9dff 52%, var(--accent));
  box-shadow: var(--shadow);
}

.cta-banner h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 760px; }
.cta-banner .eyebrow { color: white; }
.cta-banner .eyebrow::before { background: white; }

.deep-service-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  overflow: hidden;
  transition: .3s ease;
}

.deep-service-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 20%;
  height: 220px;
  background: radial-gradient(circle, rgba(19,215,255,.22), transparent 65%);
  transition: .35s ease;
}

.deep-service-card:hover::after { transform: translateY(-30px); }
.deep-service-card h2 { margin-top: 24px; font-size: 1.55rem; }
.service-icon i { font-size: 1.4rem; }
.featured-service { background: linear-gradient(145deg, rgba(109,93,252,.44), rgba(255,79,216,.18)); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-grid div {
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.process-grid span { color: var(--secondary); font-weight: 900; }

.lead-text { font-size: 1.12rem; }
.about-card { flex-direction: column; align-items: flex-start; min-width: 180px; }
.about-card strong { font-size: 3rem; line-height: 1; }

.mission-card { padding: 34px; min-height: 250px; }
.mission-card h2 { margin-top: 22px; }

.team-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transition: .3s ease;
}

.team-card img { width: 100%; height: 360px; object-fit: cover; }
.team-card h3 { padding: 22px 22px 0; margin: 0; }
.team-card span { display: block; color: var(--muted); padding: 6px 22px 24px; }

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.timeline div {
  padding: 20px 20px 20px 28px;
  border-left: 3px solid var(--secondary);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
}

.timeline span { color: var(--secondary); font-weight: 900; }

.skills-panel { padding: 34px; }
.skill { margin-top: 22px; }
.skill span { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 800; }
.progress { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar { width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); transition: width 1.2s ease; }

.contact-info-card {
  padding: 28px;
  min-height: 210px;
}

.contact-info-card h2 { margin-top: 20px; font-size: 1.35rem; }
.contact-form { padding: 34px; }
.contact-form label { margin-bottom: 8px; font-weight: 800; color: var(--text); }
.form-control,
.form-select {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background-color: rgba(255,255,255,.06);
}
.form-control:focus,
.form-select:focus {
  color: var(--text);
  background-color: rgba(255,255,255,.08);
  border-color: var(--secondary);
  box-shadow: 0 0 0 .25rem rgba(19,215,255,.16);
}
.form-select option { color: #07101f; }
.form-status { margin: 18px 0 0; color: var(--success); font-weight: 800; }

.map-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px;
  background:
    linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 1px, transparent 1px 22px);
}

.map-placeholder i { font-size: 4rem; color: var(--secondary); margin-bottom: 18px; }

.faq-accordion .accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--surface);
  color: var(--text);
}

.faq-accordion .accordion-button {
  background: transparent;
  color: var(--text);
  font-weight: 900;
  box-shadow: none;
}

.faq-accordion .accordion-button::after { filter: invert(1); }
.faq-accordion .accordion-body { color: var(--muted); }

.site-footer {
  padding: 80px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.18);
}

.site-footer h3 { font-size: 1rem; margin-bottom: 16px; }
.site-footer a:not(.footer-brand) { display: block; color: var(--muted); margin-bottom: 10px; transition: .25s ease; }
.site-footer a:hover { color: var(--secondary); }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-links a {
  display: grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text) !important;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.newsletter-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: .3s ease;
  z-index: 50;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.link-arrow {
  color: var(--secondary);
  font-weight: 900;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7,10,18,.92);
    backdrop-filter: blur(18px);
  }

  body.light-mode .navbar-collapse { background: rgba(255,255,255,.96); }

  .hero-section { padding-top: 130px; }
  .hero-device { transform: none; }
  .device-grid { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .visual-tile { min-height: 260px; }
  .cta-banner { align-items: flex-start; flex-direction: column; }
  .testimonial-carousel { padding: 34px 56px; }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 78px 0; }
  .page-hero { min-height: 50vh; padding: 130px 0 70px; }
  .display-3 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .hero-trust { align-items: stretch; }
  .hero-trust strong { flex: 1 1 auto; text-align: center; }
  .metric-row,
  .process-grid { grid-template-columns: 1fr; }
  .stacked-visual img,
  .about-visual img { min-height: 330px; }
  .floating-badge,
  .about-card { left: 16px; right: 16px; bottom: 16px; }
  .project-card,
  .project-card img { min-height: 340px; height: 340px; }
  .testimonial-carousel { padding: 30px 24px 64px; }
  .carousel-control-prev,
  .carousel-control-next { align-items: flex-end; padding-bottom: 16px; }
  .contact-form { padding: 22px; }
}
