:root {
  color-scheme: dark;
  --bg: #070b18;
  --surface: #0f172a;
  --surface-strong: #111d35;
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #f8fafc;
  --muted: #9fb7d1;
  --accent: #4fd1ff;
  --accent-2: #60a5fa;
  --border: rgba(159, 183, 212, 0.18);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(79, 209, 255, 0.12), transparent 32%), linear-gradient(180deg, #07101f 0%, #04070f 100%);
  color: var(--text);
}

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

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

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 19, 0.88);
  border-bottom: 1px solid rgba(159, 183, 212, 0.12);
  transition: padding 0.25s ease, backdrop-filter 0.25s ease;
  backdrop-filter: blur(20px);
}

.site-header.shrink {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list a,
.nav-toggle {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-toggle:hover,
.nav-list a:focus,
.nav-toggle:focus {
  color: var(--accent);
}

.nav-item.has-dropdown:hover .dropdown-panel,
.nav-item.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(12px);
  min-width: 320px;
  padding: 1.5rem;
  background: rgba(8, 16, 31, 0.98);
  border: 1px solid rgba(159, 183, 212, 0.12);
  border-radius: 20px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 40;
}

.mega-menu {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.mega-group h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.mega-group a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mega-group a:hover {
  color: var(--accent);
}

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

.whatsapp-link {
  color: var(--accent);
  font-size: 1.35rem;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(159, 183, 212, 0.2);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 209, 255, 0.16), transparent 30%), radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: clamp(3rem, 4.4vw, 5.2rem);
  line-height: 1.02;
}

.hero-subtitle {
  margin: 1.5rem 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-trust {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
  background: linear-gradient(180deg, rgba(15, 29, 56, 0.96), rgba(9, 16, 33, 0.92));
  border: 1px solid rgba(159, 183, 212, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.node {
  position: absolute;
  border-radius: 50%;
  background: rgba(79, 209, 255, 0.18);
  box-shadow: 0 0 40px rgba(79, 209, 255, 0.25);
  animation: float 6s ease-in-out infinite;
}

.node-large {
  width: 130px;
  height: 130px;
  top: 18%;
  left: 14%;
}

.node-medium {
  width: 90px;
  height: 90px;
  top: 55%;
  left: 30%;
}

.node-small {
  width: 60px;
  height: 60px;
}

.node-a {
  top: 28%;
  right: 14%;
  animation-duration: 5s;
}

.node-b {
  bottom: 20%;
  left: 22%;
  animation-duration: 7s;
}

.node-c {
  bottom: 24%;
  right: 22%;
}

.visual-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  padding: 2rem;
}

.flow-line {
  position: absolute;
  border: 1px solid rgba(79, 209, 255, 0.2);
  border-radius: 999px;
}

.line-one {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 40%;
}

.line-two {
  width: 240px;
  height: 240px;
  bottom: 10%;
  right: 20%;
}

.trust-bar {
  padding: 1rem 0;
  background: rgba(5, 11, 25, 0.75);
  border-top: 1px solid rgba(159, 183, 212, 0.1);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .eyebrow {
  display: block;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.cards-grid,
.case-grid,
.stack-grid,
.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-section,
.why-section,
.solutions-section,
.process-section,
.case-section,
.stack-section,
.testimonial-section,
.insights-section,
.contact-section {
  padding: 5rem 0;
}

.service-card,
.case-card,
.stack-card,
.insight-card,
.testimonial-card,
.contact-card,
.contact-form-panel,
.cta-panel,
.stat-card,
.industry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 183, 212, 0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.service-card,
.case-card,
.industry-card,
.stack-card,
.insight-card,
.testimonial-card,
.contact-card,
.stat-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.case-card:hover,
.industry-card:hover,
.stack-card:hover,
.insight-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 209, 255, 0.28);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
}

.service-card h3,
.case-card h3,
.stack-card,
.insight-card h3,
.testimonial-card p,
.contact-card h3,
.stat-card h3 {
  margin-bottom: 0.85rem;
}

.service-card a,
.industry-card a,
.case-card a {
  display: inline-block;
  margin-top: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
}

.why-list li {
  position: relative;
  padding-left: 1.8rem;
}

.why-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.stat-card {
  text-align: left;
}

.stat-card span {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(79, 209, 255, 0.15);
}

.stat-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

.industry-scroll {
  display: grid;
  gap: 1.5rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.industry-card {
  min-width: 260px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(17, 34, 68, 0.98), rgba(12, 20, 40, 0.95));
}

.industry-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--accent);
}

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

.timeline-step {
  padding: 1.75rem;
}

.timeline-step span {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(79, 209, 255, 0.12);
  margin-bottom: 1rem;
}

.case-card .case-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.case-result {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

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

.stack-card {
  display: grid;
  align-items: center;
  justify-items: start;
  padding: 1.5rem;
}

.stack-card:hover {
  transform: translateY(-4px);
}

.testimonial-carousel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-meta {
  color: var(--muted);
}

.cta-banner {
  padding: 3rem 0;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.5rem;
  background: rgba(15, 30, 58, 0.98);
  border: 1px solid rgba(79, 209, 255, 0.12);
  border-radius: 28px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.insight-card {
  padding: 1.75rem;
}

.insight-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.contact-form-panel {
  padding: 2.5rem;
}

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

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(159, 183, 212, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-info-panel {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 0.75rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: rgba(79, 209, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}

.footer-grid h4 {
  margin-bottom: 1rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(159, 183, 212, 0.1);
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent);
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .timeline,
  .stats-grid,
  .footer-grid,
  .cards-grid,
  .case-grid,
  .insight-grid,
  .team-grid,
  .about-grid,
  .stack-grid,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust-list {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .service-card,
  .case-card,
  .stack-card,
  .insight-card,
  .testimonial-card,
  .contact-card,
  .team-card {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-nav {
    order: 3;
    width: 100%;
    display: none;
  }

  .site-header.mobile-open .site-nav {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: rgba(6, 10, 19, 0.98);
    padding: 1rem 1rem 1.25rem;
    border-radius: 0 0 24px 24px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a,
  .nav-toggle {
    width: 100%;
    display: inline-flex;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-radius: 16px;
  }

  .dropdown-panel {
    position: relative;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    width: 100%;
    left: 0;
    top: 0;
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .mega-menu {
    grid-template-columns: 1fr;
  }

  .header-actions {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-visual {
    display: none;
  }

  .industry-scroll {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

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

@media (max-width: 660px) {
  .hero-buttons,
  .cta-actions,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons a,
  .cta-actions a {
    width: 100%;
  }

  .cta-panel {
    flex-direction: column;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .section-header {
    text-align: center;
  }

  .trust-list {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-bottom p,
  .footer-bottom .social-links {
    width: 100%;
    justify-content: center;
  }
}
