/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1326;
  --surface: #121a30;
  --surface-2: #161f3a;
  --border: #232d4a;

  --text: #eef1f7;
  --text-muted: #94a3b8;
  --text-faint: #5c6785;

  --cream: #ecdfc4;
  --blue: #0034f9;
  --blue-hover: #3355ff;
  --green: #22c55e;
  --red: #ef4444;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-display: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* =========================================================
   RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* =========================================================
   LAYOUT BASE
   ========================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--blue);
}

/* =========================================================
   EYEBROW / TAG
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 52, 249, 0.35);
  background: rgba(0, 52, 249, 0.1);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-brand .logo-icon {
  width: 30px;
  height: 30px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.logo-text small {
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chev {
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
}

.dropdown-menu a:hover {
  background: var(--surface-2);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 100px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagem de fundo em tela cheia, com blur progressivo do lado do texto */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 72%);
  mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 72%);
}

.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--bg) 0%,
      rgba(10, 14, 26, 0.88) 28%,
      rgba(10, 14, 26, 0.35) 55%,
      transparent 85%
    ),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.hero-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--blue);
}

.hero-features li div {
  display: flex;
  flex-direction: column;
}

.hero-features strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-features span {
  color: var(--text-faint);
  font-size: 0.78rem;
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  margin-top: 6px;
}

.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

.section-head.split p {
  color: var(--text-muted);
  max-width: 360px;
}

/* =========================================================
   FEATURES ("O que fazemos")
   ========================================================= */
.features {
  padding: 90px 0;
}

.feature-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.feature-grid::-webkit-scrollbar {
  display: none;
}

.feature-card {
  scroll-snap-align: start;
  flex: 0 0 calc(25% - 12px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 52, 249, 0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   STACK (Tecnologias)
   ========================================================= */
.stack {
  padding: 90px 0;
  background: var(--bg-alt);
  text-align: center;
}

.stack h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 46px;
}

/* Grid vira trilho de scroll horizontal com setas */
.stack-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.stack-grid::-webkit-scrollbar {
  display: none;
}

.stack-item {
  scroll-snap-align: start;
  flex: 0 0 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stack-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.stack-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.stack-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stack-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   STORE (Loja de sistemas)
   ========================================================= */
.store {
  padding: 90px 0;
}

.carousel-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.product-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 calc(25% - 14px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 52, 249, 0.5);
  box-shadow: 0 20px 50px rgba(0, 52, 249, 0.15);
}

.product-card.featured {
  border-color: rgba(0, 52, 249, 0.45);
  background: linear-gradient(180deg, rgba(0, 52, 249, 0.1) 0%, var(--surface) 40%);
}

.product-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--blue);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 52, 249, 0.4);
}

.product-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 52, 249, 0.22), rgba(0, 52, 249, 0.06));
  border: 1px solid rgba(0, 52, 249, 0.25);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.product-card > p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.product-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.product-card ul li {
  font-size: 0.81rem;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}

.product-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 52, 249, 0.15);
  color: var(--blue);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.product-cta {
  width: 100%;
  justify-content: center;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-bottom: 2px;
  white-space: nowrap;
}

.product-price strong {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}


/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 70px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--text);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-icons a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .feature-card {
    flex-basis: calc(50% - 8px);
  }

  .product-card {
    flex-basis: calc(50% - 9px);
  }

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

@media (max-width: 900px) {
  .hero {
    min-height: unset;
    padding: 60px 0 50px;
  }

  .hero-bg-blur,
  .hero-bg-scrim {
    -webkit-mask-image: none;
    mask-image: none;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .features,
  .stack,
  .store {
    padding: 50px 0;
  }

  .site-footer {
    padding: 36px 0 0;
  }

  .footer-grid {
    gap: 26px;
    padding-bottom: 32px;
  }

  .footer-col {
    gap: 8px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }

  .main-nav.open a,
  .main-nav.open .dropdown-toggle {
    padding: 10px 0;
    width: 100%;
  }

  .main-nav.open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    translate: 0;
    display: none;
    background: none;
    border: none;
    padding: 0 0 0 12px;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }
}

@media (max-width: 640px) {
  .feature-card {
    flex-basis: 100%;
  }

  .stack-item {
    flex-basis: 100%;
  }

  .product-card {
    flex-basis: 100%;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .logo {
    display: none;
  }

  .footer-col {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
  }
}