/* Auto Escola Atualcar — Landing Page v2 */
:root {
  --red: #DC2626;
  --red-dark: #991B1B;
  --yellow: #FBBF24;
  --yellow-dark: #D97706;
  --dark: #0A0A0A;
  --dark-soft: #171717;
  --gray: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark-soft);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(255,255,255,.95);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.nav.scrolled .nav-links a { color: var(--gray); }
.nav.scrolled .nav-links a:hover { color: var(--red); }
.nav.scrolled .menu-toggle { color: var(--dark); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1rem; gap: .75rem;
  position: relative;
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none;
  flex-shrink: 1; min-width: 0; max-width: 55%;
}
.nav-logo-img {
  height: 42px; width: auto;
  max-width: 100%; max-height: 42px;
  object-fit: contain; object-position: left center;
  filter: brightness(1.05);
}
.nav.scrolled .nav-logo-img { filter: none; }

.brand-text {
  font-size: clamp(.95rem, 3.5vw, 1.2rem);
  font-weight: 800; letter-spacing: -.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text .atual { color: var(--red); }
.brand-text .car { color: var(--yellow); }
.nav:not(.scrolled) .brand-text .atual { color: #fff; }
.nav:not(.scrolled) .brand-text .car { color: var(--yellow); }

.nav-links {
  display: flex; align-items: center; gap: 1.1rem; list-style: none;
}
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,.75);
  font-weight: 500; font-size: .82rem; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav.scrolled .nav-links a { color: var(--gray); }
.nav.scrolled .nav-links a:hover { color: var(--red); }

.nav-ctas { display: flex; gap: .45rem; flex-shrink: 0; }
.nav-ctas .btn { padding: .4rem .75rem; font-size: .75rem; border-radius: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .875rem;
  text-decoration: none; border: none; cursor: pointer; transition: all .25s;
  white-space: nowrap;
}
.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; box-shadow: 0 4px 15px rgba(220,38,38,.35);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(220,38,38,.45); }
.btn-yellow {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark); box-shadow: 0 4px 15px rgba(251,191,36,.35);
}
.btn-yellow:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--dark-soft);
  border: 2px solid rgba(0,0,0,.12);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: .85rem 1.35rem; font-size: .92rem; border-radius: 14px; }
.btn-xl { padding: .9rem 1.5rem; font-size: .95rem; border-radius: 14px; }

.menu-toggle {
  display: none; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; font-size: 1.25rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px;
  flex-shrink: 0;
}
.nav.scrolled .menu-toggle {
  background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); color: var(--dark);
}

/* Mobile menu overlay */
.nav-mobile-panel {
  display: none;
  position: fixed; inset: 0; top: 58px; z-index: 999;
  background: rgba(10,10,10,.97);
  padding: 1.25rem 1rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav.open .nav-mobile-panel { display: block; }
.nav-mobile-panel .nav-links {
  flex-direction: column; align-items: stretch; gap: 0;
  margin-bottom: 1.25rem;
}
.nav-mobile-panel .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-mobile-panel .nav-links a {
  display: block; padding: .9rem .5rem; font-size: 1rem; color: rgba(255,255,255,.9);
}
.nav-mobile-panel .nav-ctas {
  flex-direction: column; gap: .65rem;
}
.nav-mobile-panel .nav-ctas .btn {
  width: 100%; padding: .85rem; font-size: .95rem; justify-content: center;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 5.5rem 1rem 3rem;
  background: var(--dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 80% 10%, rgba(220,38,38,.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(251,191,36,.1) 0%, transparent 50%),
    linear-gradient(165deg, #0A0A0A 0%, #150808 45%, #0A0A0A 100%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .035;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25);
  color: var(--yellow); padding: .35rem .9rem; border-radius: 50px;
  font-size: .75rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero-badge span {
  width: 7px; height: 7px; background: var(--yellow);
  border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  font-size: clamp(1.75rem, 5.5vw, 3.25rem); font-weight: 800;
  color: #fff; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero-desc {
  font-size: clamp(.95rem, 2.5vw, 1.08rem);
  color: rgba(255,255,255,.62); max-width: 520px;
  margin-bottom: 1.75rem; line-height: 1.7;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem;
}
.hero-buttons .btn { flex: 1 1 auto; min-width: min(100%, 200px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 420px;
}
.hero-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: .75rem .85rem; text-align: center;
}
.hero-stat strong {
  display: block; font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 800; color: #fff; line-height: 1.2;
}
.hero-stat span {
  font-size: .65rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .5px;
}

/* Phone mockup */
.hero-visual {
  position: relative; display: flex; justify-content: center;
  width: 100%; max-width: 320px; margin: 0 auto;
}
.phone {
  width: min(280px, 78vw); background: #111;
  border-radius: 32px; padding: 10px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.06);
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: perspective(900px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-6deg) rotateX(2deg) translateY(-10px); }
}
.phone-notch {
  width: 88px; height: 22px; background: #000;
  border-radius: 0 0 14px 14px; margin: 0 auto 6px;
}
.phone-screen {
  background: #141414;
  border-radius: 22px; overflow: hidden;
  min-height: 420px; padding: 0;
}
.phone-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 1rem .25rem; font-size: .6rem; color: rgba(255,255,255,.5);
}
.phone-appbar {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: .85rem 1rem 1rem;
  text-align: center;
}
.phone-appbar-title {
  color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .3px;
}
.phone-appbar-sub {
  color: rgba(255,255,255,.75); font-size: .65rem; margin-top: .15rem;
}
.phone-logo-wrap {
  background: #fff; margin: .85rem .85rem 0;
  border-radius: 12px; padding: .55rem .75rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
}
.phone-logo-wrap img {
  max-height: 38px; max-width: 100%; width: auto;
  object-fit: contain; margin: 0 auto;
}
.phone-menu {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
  padding: .85rem;
}
.phone-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: .85rem .5rem;
  text-align: center; color: #fff; font-size: .68rem; font-weight: 500;
  transition: background .2s;
}
.phone-item .icon { font-size: 1.35rem; margin-bottom: .3rem; line-height: 1; }

.hero-phone-photo {
  max-height: min(520px, 70vh); width: auto;
  max-width: min(100%, 300px);
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,.5));
  animation: floatPhoto 6s ease-in-out infinite;
}
@keyframes floatPhoto { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.glow {
  position: absolute; width: min(280px, 80vw); height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,38,38,.25), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: -1; pointer-events: none;
}

.saas-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: .4rem .85rem; border-radius: 50px; font-size: .72rem;
  color: rgba(255,255,255,.55); margin-top: 1.25rem;
  max-width: 100%; text-align: left; line-height: 1.4;
}

/* ── SECTIONS ── */
section { padding: clamp(3rem, 8vw, 5rem) 1rem; }
.section-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.section-tag {
  display: inline-block; color: var(--red); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: .65rem;
}
.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 800;
  color: var(--dark); margin-bottom: .85rem; line-height: 1.15;
}
.section-desc {
  color: var(--gray); font-size: clamp(.9rem, 2.5vw, 1.02rem);
  max-width: 600px; margin-bottom: 2.5rem; line-height: 1.65;
}

.features { background: var(--light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.15rem;
}
.feature-card {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06); transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(220,38,38,.15);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem;
}
.feature-icon.red { background: rgba(220,38,38,.1); }
.feature-icon.yellow { background: rgba(251,191,36,.15); }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { color: var(--gray); font-size: .88rem; line-height: 1.6; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem; counter-reset: step;
}
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 1rem;
  margin: 0 auto 1rem;
}
.step:not(:last-child)::after { display: none; }
.step h3 { font-size: .98rem; font-weight: 700; margin-bottom: .4rem; }
.step p { font-size: .84rem; color: var(--gray); line-height: 1.55; }

.modules { background: var(--dark); color: #fff; }
.modules .section-title { color: #fff; }
.modules .section-desc { color: rgba(255,255,255,.55); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: .75rem;
}
.module-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 1rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
}
.module-item .m-icon { font-size: 1.25rem; flex-shrink: 0; }
.module-item span { font-weight: 600; font-size: .85rem; line-height: 1.3; }

.contract {
  background: linear-gradient(145deg, var(--red) 0%, #7F1D1D 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
  padding-left: 1rem; padding-right: 1rem;
}
.contract::before {
  content: ''; position: absolute; inset: 0; opacity: .4;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/svg%3E");
}
.contract .section-inner { position: relative; z-index: 1; }
.contract .section-title { color: #fff; max-width: 700px; margin: 0 auto .85rem; }
.contract p {
  color: rgba(255,255,255,.85); max-width: 560px;
  margin: 0 auto 1.75rem; font-size: clamp(.9rem, 2.5vw, 1.02rem); line-height: 1.65;
}
.contract-buttons {
  display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap;
  max-width: 480px; margin: 0 auto;
}
.contract-buttons .btn { width: 100%; max-width: 100%; }
.contract .btn-yellow {
  font-size: clamp(.88rem, 2.5vw, 1rem);
  padding: .95rem 1.25rem; line-height: 1.35;
  white-space: normal; text-align: center;
}
.contract .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
}

.portals { background: var(--light); }
.portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem; max-width: 800px; margin: 0 auto;
}
.portal-card {
  background: #fff; border-radius: 18px; padding: 2rem 1.5rem; text-align: center;
  border: 2px solid transparent; transition: all .3s;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.portal-card.aluno:hover { border-color: var(--red); }
.portal-card.instrutor:hover { border-color: var(--yellow-dark); }
.portal-card .p-icon { font-size: 2.5rem; margin-bottom: .85rem; }
.portal-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .45rem; }
.portal-card p { color: var(--gray); font-size: .88rem; margin-bottom: 1.25rem; line-height: 1.55; }
.portal-card .btn { width: 100%; }

/* Footer */
.footer {
  background: var(--dark); color: rgba(255,255,255,.55);
  padding: 2.5rem 1rem 1.5rem; font-size: .84rem;
  overflow: hidden;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { min-width: 0; overflow: hidden; }
.footer-brand .brand-text { font-size: 1.25rem; margin-bottom: .65rem; display: block; }
.footer-logo-wrap {
  background: #fff; border-radius: 12px;
  padding: .65rem .85rem; margin-bottom: .85rem;
  display: inline-flex; align-items: center; justify-content: flex-start;
  max-width: 100%; width: fit-content;
}
.footer-logo {
  height: auto; max-height: 44px; width: auto;
  max-width: min(200px, calc(100vw - 4rem));
  object-fit: contain; object-position: left center;
}
.footer-brand p {
  line-height: 1.65; max-width: 360px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer h4 {
  color: #fff; font-size: .78rem; font-weight: 700;
  margin-bottom: .85rem; text-transform: uppercase; letter-spacing: 1px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .45rem; }
.footer a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--yellow); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: .75rem; font-size: .78rem;
}
.footer-bottom a { color: var(--yellow); font-weight: 600; }

/* ── RESPONSIVE ── */
@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center; gap: 2rem;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { margin: 0 auto; max-width: 100%; }
  .saas-badge { margin-left: auto; margin-right: auto; }
  .hero-visual { order: -1; }
  .phone {
    transform: none; animation: none;
    width: min(260px, 72vw);
  }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links:not(.nav-mobile-panel .nav-links),
  .nav-ctas:not(.nav-mobile-panel .nav-ctas) { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: 4.75rem .85rem 2.5rem; min-height: auto; }
  .hero-buttons .btn { width: 100%; min-width: 0; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .hero-stat { padding: .55rem .35rem; }
  .hero-stat span { font-size: .58rem; }

  section { padding: 2.75rem .85rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-logo { max-height: 40px; max-width: min(180px, calc(100vw - 3rem)); }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }

  .contract-buttons .btn-outline { width: 100%; }
}

@media (min-width: 641px) {
  .nav-mobile-panel { display: none !important; }
  .contract-buttons .btn { width: auto; flex: 0 1 auto; }
}
