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

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ================= VARIÁVEIS ================= */
:root {
  --orange: #FA9701;
  --gray: #ccc;
  --dark: #111;
}

/* ================= CONTAINER ================= */
.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  padding: 20px 0;
  position: relative;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: clamp(260px, 12vw, 150px);
  height: auto;
}

.nav {
  display: flex;
}

.nav a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  margin-left: 32px;
  font-weight: 500;
  padding-bottom: 8px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--orange);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 10vw, 140px) 0;
}

.hero-layout {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(26px, 6vw, 60px);
  line-height: 1.05;
}

.hero-text span {
  color: var(--orange);
  font-size: clamp(38px, 9vw, 84px);
}

.hero-text p {
  margin-top: 18px;
  color: var(--gray);
  max-width: 520px;
}

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

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 3635 / 2408;
}

/* ===== MASK ===== */
.hero-mask {
  position: absolute;
  left: -1%;
  width: 60%;
  top: 0;
  bottom: 0;
  background: #000;
  clip-path: polygon(
    100% 0%,
    75% 50%,
    100% 100%,
    0 100%,
    0 50%,
    0 0
  );
  z-index: 2;
}

/* ===== IMAGEM FUNDO ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

/* ===== CARRO SEM FUNDO ===== */
.hero-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  transform: translate(-6%,0%);
  pointer-events: none;
}


/* Glows */
.glow-1,
.glow-2 {
  position: absolute;
  background: radial-gradient(circle, var(--orange), transparent 70%);
  filter: blur(90px);
  z-index: 0;
}

.glow-1 {
  top: -260px;
  right: 30%;
  width: 420px;
  height: 160px;
}

.glow-2 {
  top: 25%;
  right: -120px;
  width: 220px;
  height: 420px;
}

.hero-visual,
.hero-image-wrap,
.hero-bg,
.hero-car,
.glow-1,
.glow-2,
.glow-3,
.glow-4 {
  pointer-events: none;
}

/* ================= BOTÕES ================= */
.btn-outline {
  text-align: center;
  margin-top: 32px;
  background: transparent;
  border: 2px solid var(--orange);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  cursor: pointer;
  transition: .3s;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--orange);
  color: #000;
}

.btn {
  background: var(--orange);
  border: none;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= PROBLEMAS ================= */
.problems {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
}

.problems h2 {
  font-size: clamp(30px, 6vw, 52px);
}

.problems h2 span {
  color: var(--orange);
}

.problems-grid {
  margin-top: 50px;
  display: grid;
  gap: 26px;
}

.problem-card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 34px;
  border-radius: 22px;
  transition: .3s;
}

.problem-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 90px rgba(250,151,1,.35);
  transform: translateY(-6px);
}

.problem-card h3 {
  color: var(--orange);
  font-size: 32px;
}

/* ================= SISTEMA ================= */

.system {
  padding: clamp(120px, 14vw, 200px) 0;
  position: relative;
}

.system-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

.system-mockup {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transform: translateX(-25%);
}

.phone {
  width: clamp(300px, 60vw, 600px);
  height: auto;
  position: relative;
  z-index: 3;
}

.floating-bars {
  position: absolute;
  inset: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-bars li {
  position: absolute;
  width: 240px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--orange);
  color: #000;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: float 4s ease-in-out infinite;
}


.floating-bars li:nth-child(1) {
  top: 15%;
  left: 59%;
}

.floating-bars li:nth-child(2) {
  top: 38%;
  left: 59%;
  animation-delay: .4s;
}

.floating-bars li:nth-child(3) {
  bottom: 28%;
  left: 59%;
  animation-delay: .8s;
}

.floating-bars li:nth-child(4) {
  bottom: 5%;
  left: 59%;
  animation-delay: 1.2s;
}

.system-content h2 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
}

.system-content span {
  color: var(--orange);
  font-size: clamp(46px, 8vw, 88px);
}


.system-metrics {
  margin-top: 100px;
  display: grid;
  gap: 32px;
  text-align: center;
}

.metric h3 {
  font-size: clamp(32px, 5vw, 42px);
}

.metric p {
  background: var(--orange);
  color: #000;
  padding: 6px 26px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

/* ================= COMO FUNCIONA ================= */
.how {
  padding: clamp(120px, 14vw, 200px) 0;
}

.how-grid {
  display: grid;
  gap: clamp(60px, 8vw, 120px);
}

.how-text h2 {
  font-size: clamp(42px, 7vw, 64px);
}

.stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.step {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step span {
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* ================= FOOTER ================= */
.footer {
  padding: 70px 0 30px;
  color: #777;
}

.footer-line {
  height: 1px;
  width: 60%;
  background: #222;
  margin: 0 auto 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;
  gap: 16px;

  font-size: 14px;
}

.footer-content span:first-child {
  text-align: right;
}

.footer-content img {
  height: 42px;
  justify-self: center;
}

.footer-content span:last-child {
  text-align: left;
}

/* ================= BREAKPOINTS ================= */

/* >= 640px */
@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* >= 768px */
@media (min-width: 768px) {
  .hero-layout,
  .system-grid,
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* >= 1024px */
@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

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

  .system-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }
}

/* ================= AJUSTE TABLET / 1024 ================= */
@media (max-width: 1024px) {

  /* ========= HERO ========= */
  .hero-layout {
    grid-template-columns: 1fr; /* empilha */
    text-align: center;
  }

  .hero-text {
    margin: 0 auto;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .hero-image-wrap {
    max-width: 520px;
  }

  .hero-car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  transform: translate(0%);
  pointer-events: none;
}

  /* ========= SYSTEM ========= */
  .system-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .system-mockup {
    transform: none;
    justify-content: center;
    margin-bottom: 40px;
  }

  .system-content {
    max-width: 600px;
    margin: 0 auto;
  }

}

@media (max-width: 768px) {

  /* ========= GLOW ========= */
  .glow-1 {
    right: 0;
    transform: translateX(40%);
  }

  /* ========= PROBLEMS ========= */
  .problems-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .problem-card {
    width: 100%;
    max-width: 420px;
  }

}

@media (max-width: 425px) {

  /* ========= NAV ========= */
  .nav {
    display: none;
  }

  .header-flex {
    justify-content: center;
  }

  .glow-1 {
    display: none;
  }

  .hero-mask {
    inset: -1% -1%;
  }

  .system-mockup {
    justify-content: flex-start;transform: translateX(-20%);
  }

  .phone {
    width: 95%;
  }

  .floating-bars {
    left: 0%;
    transform: translateX(0%);
  }

  .floating-bars li {
    position: relative;
    width: 200px;
  }

  .floating-bars li:nth-child(1) {
  top: 10%;
  }

  .floating-bars li:nth-child(2) {
    top: 15%;
    animation-delay: .4s;
  }

  .floating-bars li:nth-child(3) {
    bottom: -20%;
    animation-delay: .8s;
  }

  .floating-bars li:nth-child(4) {
    bottom: -25%;
    animation-delay: 1.2s;
  }
}

@media (max-width: 375px) {

  .hero-mask {
    inset: -1% 0;
  }

}

@media (max-width: 320px) {

  .phone {
    display: none;
  }

  .system-mockup {
    justify-content: center;
    transform: translateX(-50%);
  }

  .floating-bars {
    position: relative;
    inset: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .floating-bars li {
    position: relative;
    width: 250px;
  }

}

/* >= 1440px (Ultra wide / premium) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }

  .hero-car {
    bottom: -24%;
    width: 115%;
  }
}
