/* ============================================================
   CarWay — Landing page
   Paleta: #0A1931 (escuro) · #1A4B8C (médio) · #2E86DE (destaque)
           #27AE60 (sucesso) · #F39C12 (âmbar)
   ============================================================ */

:root {
  --navy: #0A1931;
  --blue: #1A4B8C;
  --sky: #2E86DE;
  --green: #27AE60;
  --amber: #F39C12;

  --ink: #16233a;
  --muted: #5a6b84;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(10, 25, 49, 0.08);
  --shadow-lg: 0 18px 50px rgba(10, 25, 49, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Tipografia ---------- */

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.desk-only { display: none; }
@media (min-width: 720px) { .desk-only { display: inline; } }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 6px 20px rgba(46, 134, 222, 0.35);
}
.btn-primary:hover { background: #2477c9; box-shadow: 0 8px 26px rgba(46, 134, 222, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Barra de topo ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.8rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.topbar.scrolled {
  background: rgba(10, 25, 49, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(10, 25, 49, 0.3);
  padding: 0.55rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; }

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(46, 134, 222, 0.28), transparent 65%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(26, 75, 140, 0.55), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0c2142 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hero-mark {
  display: none;
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-52%) rotate(-6deg);
  width: min(46vw, 620px);
  opacity: 0.09;
  pointer-events: none;
}

@media (min-width: 880px) { .hero-mark { display: block; } }

.hero-inner {
  position: relative;
  padding: 7.5rem 0 5rem;
  max-width: 780px;
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(243, 156, 18, 0.45);
  background: rgba(243, 156, 18, 0.1);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.hero h1 .accent { color: var(--sky); }

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.scroll-hint:hover { color: #fff; }
.scroll-hint svg { width: 18px; height: 18px; animation: bob 2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Seções ---------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- 2. Problema e ponte ---------- */

.problem-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.5rem;
}

@media (min-width: 720px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

.problem-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}

.problem-card p { color: var(--muted); margin-top: 0.6rem; }
.problem-card strong { color: var(--navy); }

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 134, 222, 0.12);
  color: var(--sky);
  margin-bottom: 1.1rem;
}
.icon-circle svg { width: 26px; height: 26px; }

.bridge {
  margin-top: 2rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  background-image: radial-gradient(ellipse 55% 80% at 90% 10%, rgba(46, 134, 222, 0.25), transparent 65%);
}

@media (min-width: 720px) { .bridge { padding: 3rem 3rem; } }

.bridge h3 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.bridge > p { margin-top: 0.9rem; color: rgba(255, 255, 255, 0.8); max-width: 720px; }

.pillars {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (min-width: 720px) { .pillars { grid-template-columns: 1fr 1fr; } }

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.pillars svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--sky); }

/* ---------- 3. Como funciona ---------- */

.how-grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .how-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.how-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--sky);
  display: flex;
  flex-direction: column;
}

.how-driver { border-top-color: var(--blue); }

.how-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.how-header svg { width: 30px; height: 30px; color: var(--sky); flex-shrink: 0; }
.how-driver .how-header svg { color: var(--blue); }

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.4rem;
  flex: 1;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(46, 134, 222, 0.12);
  color: var(--sky);
}

.how-driver .steps li::before {
  background: rgba(26, 75, 140, 0.12);
  color: var(--blue);
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.5rem;
  bottom: -1.2rem;
  width: 2px;
  background: var(--line);
}

.steps h4 { font-size: 1.02rem; color: var(--navy); }
.steps p { color: var(--muted); font-size: 0.94rem; margin-top: 0.2rem; }

.how-col .btn { margin-top: 1.8rem; align-self: flex-start; }

/* ---------- 4. Por que confiar ---------- */

.trust-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(46, 134, 222, 0.4);
}

.trust-card svg { width: 30px; height: 30px; color: var(--sky); margin-bottom: 1rem; }
.trust-card h3 { font-size: 1.08rem; }
.trust-card p { color: var(--muted); font-size: 0.94rem; margin-top: 0.5rem; }

/* FAQ */

.faq { margin-top: 3.5rem; max-width: 760px; }
.faq h3 { margin-bottom: 1.2rem; font-size: 1.35rem; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--sky);
  transition: transform 0.25s ease;
}

.faq details[open] summary svg { transform: rotate(180deg); }

.faq details p {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 5. Quem somos ---------- */

.about { max-width: 800px; }
.about > p { margin-top: 1.3rem; font-size: 1.1rem; color: var(--muted); }
.about strong { color: var(--navy); }

/* ---------- 6. Cadastro ---------- */

.signup {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse 50% 60% at 10% 10%, rgba(46, 134, 222, 0.22), transparent 65%),
    radial-gradient(ellipse 45% 55% at 95% 90%, rgba(26, 75, 140, 0.5), transparent 70%);
  color: #fff;
  padding: 5rem 0;
}

.signup-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .signup-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}

.signup-copy h2 { color: #fff; }
.signup-copy > p { margin-top: 1rem; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }

.signup-perks { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.7rem; }

.signup-perks li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.signup-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 13.6L7 11.8l1.4-1.4 2.4 2.4 4.8-4.8L17 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 13.6L7 11.8l1.4-1.4 2.4 2.4 4.8-4.8L17 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.signup-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

@media (min-width: 500px) { .signup-form { padding: 2.3rem 2.2rem; } }

.field { margin-bottom: 1.1rem; }

.field label,
.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font: inherit;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.18);
  background: #fff;
}

.field input.invalid { border-color: #e74c3c; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.radio-pill { position: relative; }

.radio-pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-block;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.radio-pill input:checked + span {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
}

.radio-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.3);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 1.1rem;
}

.form-feedback {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}

.form-feedback.success { color: var(--green); }
.form-feedback.error { color: #e74c3c; }

.form-privacy {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.btn[disabled] { opacity: 0.65; cursor: wait; }

/* ---------- 7. Rodapé ---------- */

.footer {
  background: #060f1f;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-brand p { margin-top: 0.9rem; font-size: 0.92rem; max-width: 340px; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) { .footer-contact { align-items: flex-end; } }

.footer-contact > a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-contact > a:hover { color: var(--sky); }

.footer-social { display: flex; gap: 0.9rem; }

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}
.footer-social a:hover { color: var(--sky); }
.footer-social svg { width: 22px; height: 22px; }

.footer-legal { padding-top: 1.5rem; }
.footer-legal p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Animações de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint svg { animation: none; }
}
