/* app.css */

:root {
  --orange: #f28e20;
  --orange-deep: #d9740a;
  --blue: #215ba7;
  --ink: #12151c;
  --ink-soft: #1c212b;
  --paper: #faf8f5;
  --paper-dim: #f0ece6;
  --grey: #6b7280;
  --white: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}
h1,
h2,
h3,
.display {
  font-family: "Sora", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--orange);
  color: var(--white);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  transition:
    background 0.4s ease,
    padding 0.4s ease,
    box-shadow 0.4s ease;
}
.nav.solid {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  padding: 14px 5vw;
  box-shadow: 0 1px 0 rgba(18, 21, 28, 0.06);
}
.logo {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.4s ease;
}
.nav.solid .logo {
  color: var(--ink);
}
.logo svg {
  width: 26px;
  height: 26px;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}
.nav.solid .nav-links a {
  color: rgba(18, 21, 28, 0.75);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}
.nav-cta:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(
      180deg,
      rgba(18, 21, 28, 0.35) 0%,
      rgba(18, 21, 28, 0.15) 35%,
      rgba(18, 21, 28, 0.85) 100%
    ),
    linear-gradient(135deg, #2a3548, #12151c),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=2000&q=80")
      center/cover no-repeat;
  background-blend-mode: normal;
}
.hero-inner {
  padding: 0 5vw 7vw;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.hero-copy {
  max-width: 640px;
}
.eyebrow {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 34px;
  font-weight: 300;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--white);
  padding-bottom: 6px;
  min-width: 150px;
}
.stat-num {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue .line {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.4);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- SECTION SHELL ---------- */
section {
  padding: 120px 5vw;
}
.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head .eyebrow {
  color: var(--blue);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--ink);
}
.section-head p {
  color: var(--grey);
  font-size: 1.05rem;
  margin-top: 16px;
  line-height: 1.6;
  font-weight: 300;
}
.dark {
  background: var(--ink);
  color: var(--white);
}
.dark .section-head h2 {
  color: var(--white);
}
.dark .section-head p {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- SERVICES / PACKAGES (Tesla configurator style) ---------- */
.packages {
  background: var(--paper-dim);
  padding-top: 100px;
}
.package-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(18, 21, 28, 0.08);
}
.package-row:last-child {
  border-bottom: 1px solid rgba(18, 21, 28, 0.08);
}
.package-row.reverse {
  direction: rtl;
}
.package-row.reverse > * {
  direction: ltr;
}
.pkg-visual {
  aspect-ratio: 5/4;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: grayscale(45%) contrast(1.05);
  transition: filter 0.5s ease;
}
.package-row:hover .pkg-visual {
  filter: grayscale(0%) contrast(1.05);
}
.pkg-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 21, 28, 0.55), transparent 50%);
}
.pkg-tier {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: var(--white);
  z-index: 2;
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pkg-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 60px;
}
.pkg-content .pkg-name {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.pkg-content .pkg-name span {
  color: var(--orange);
}
.pkg-content p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 300;
  max-width: 420px;
}
.pkg-specs {
  list-style: none;
  margin-bottom: 28px;
}
.pkg-specs li {
  color: var(--ink);
  font-size: 0.92rem;
  padding: 9px 0;
  border-top: 1px solid rgba(18, 21, 28, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pkg-specs li:first-child {
  border-top: none;
}
.pkg-specs li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.pkg-link {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-bottom: 1px solid rgba(33, 91, 167, 0.3);
  padding-bottom: 4px;
}
.pkg-link:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

/* ---------- GALLERY (signature: develop-in-color reveal) ---------- */
.gallery-section {
  background: var(--paper);
}
.gallery-grid {
  columns: 4 260px;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #d8d3ca;
}
.gallery-item img {
  width: 100%;
  display: block;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transform: scale(1.04);
  opacity: 0;
  transition:
    opacity 1.1s ease,
    filter 1.6s ease,
    transform 1.6s ease;
  transition-delay: 0.05s;
}
.gallery-item.revealed img {
  opacity: 1;
  filter: grayscale(0%) contrast(1.02) brightness(1);
  transform: scale(1);
}
.gallery-item .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(18, 21, 28, 0.55);
  padding: 5px 10px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.gallery-item.revealed .tag {
  opacity: 1;
}
.gallery-note {
  margin-top: 32px;
  color: var(--grey);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- HOW IT WORKS ---------- */
.flow {
  background: var(--paper-dim);
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: rgba(18, 21, 28, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.flow-card {
  background: var(--paper);
  padding: 36px 28px;
  min-height: 220px;
  position: relative;
}
.flow-index {
  font-family: "Sora", sans-serif;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: block;
}
.flow-card h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.flow-card p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---------- ECOSYSTEM ---------- */
.ecosystem {
  background: var(--paper);
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(18, 21, 28, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.eco-card {
  background: var(--white);
  padding: 38px 30px;
}
.eco-card .icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: block;
}
.eco-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.eco-card ul {
  list-style: none;
}
.eco-card li {
  color: var(--grey);
  font-size: 0.88rem;
  padding: 4px 0;
  font-weight: 300;
}

.plataforma-img {
  width: 300px;
  height: 200px;
}
/* ---------- FINAL CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--blue), #163d73);
  text-align: center;
  padding: 130px 5vw;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 820px;
  margin: 0 auto 18px;
  line-height: 1.12;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 38px;
  font-weight: 300;
}
.final-cta .btn-primary {
  background: var(--orange);
}
.final-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
}

footer {
  background: var(--paper-dim);
  color: var(--grey);
  padding: 40px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  border-top: 1px solid rgba(18, 21, 28, 0.08);
  flex-wrap: wrap;
  gap: 16px;
}
footer .logo {
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  /* .nav {
    flex-direction: column;
    align-items: stretch; 
    gap: 0.5rem;
  }

  .nav .logo {
    text-align: center; 
  }

  .nav a {
    display: block;
  }

  .nav .nav-cta {
    text-align: center;
    
  } */



  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.6rem;
  }


  .hero-stats {
    flex-direction: row;
    gap: 34px;
  }
  .package-row,
  .package-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .pkg-content {
    padding: 44px 28px;
  }
  .gallery-grid {
    columns: 2 180px;
  }
  .flow-track {
    grid-template-columns: 1fr;
  }
  .eco-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 80px 6vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
