/* ==========================================================================
   NexWay — Mini Pack Lifestyle
   ========================================================================== */

:root {
  --bg: #0d1117;
  --bg-alt: #0a0e14;
  --card: #161b22;
  --card-border: #21262d;
  --accent: #22c55e;
  --accent-dim: #17803d;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --text: #ffffff;
  --text-secondary: #9aa4b2;
  --text-muted: #6b7280;

  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);

  --container-w: 1140px;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ==========================================================================
   Reusable elements
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow--center { display: block; text-align: center; }

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section__title--left { text-align: left; }

.section__subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 40px;
}

.section__subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #06170e;
}
.btn--primary:hover {
  background: #29d968;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large { padding: 18px 40px; font-size: 16px; }

.btn--glow { box-shadow: 0 0 0 0 var(--accent-glow); animation: pulseGlow 2.6s ease-in-out infinite; }

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 28px 6px var(--accent-glow); }
}

.btn--nav {
  padding: 10px 20px;
  font-size: 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn--nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  font-size: 26px;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-sm);
}

.card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
.card p { color: var(--text-secondary); font-size: 14.5px; }

.card--outline { border: 1px solid var(--card-border); }
.card--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim) inset; }

.card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.card__badge--accent { color: #06170e; background: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.navbar__logo span { color: var(--accent); }

.navbar__links {
  display: flex;
  gap: 32px;
}
.navbar__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.navbar__links a:hover { color: var(--text); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__subtitle strong { color: var(--text); }

.hero__price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}
.hero__price-label { color: var(--text-muted); font-size: 13px; }
.hero__price { font-size: 34px; font-weight: 800; color: var(--accent); }

.hero__checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero__media--empty {
  min-height: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--card-border);
  background:
    linear-gradient(135deg, rgba(34,197,94,0.08), transparent 60%),
    var(--card);
  position: relative;
  z-index: 1;
}
.hero__media--empty::after {
  content: "Mini Pack Lifestyle";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ==========================================================================
   Generator section
   ========================================================================== */

.section--generator {
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.generator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.generator__steps { margin: 28px 0; }

.generator__steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
}
.generator__steps li:last-child { border-bottom: none; }

.generator__step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  width: 28px;
  flex-shrink: 0;
}

.generator__result {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 15px;
}

.generator__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generator__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}

.generator__image {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
}

.generator__media--empty {
  min-height: 360px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--card-border);
  background: var(--card);
  position: relative;
  z-index: 1;
}
.generator__media--empty::after {
  content: "Gerador de Vídeos NexWay";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   Como funciona / automation list
   ========================================================================== */

.how-grid { margin-bottom: 48px; }

.automation-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.automation-item {
  font-size: 14.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.automation-item .check {
  color: var(--accent);
  font-weight: 700;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.12); }

.gallery-item--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(34,197,94,0.08), transparent 70%);
}
.gallery-item--empty::after {
  content: "🎬";
  font-size: 28px;
  opacity: 0.35;
}

/* ==========================================================================
   Antes e depois
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.compare-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  border: 1px solid var(--card-border);
}

.compare-card h3 { font-size: 19px; margin-bottom: 18px; }

.compare-card li {
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}
.compare-card li:last-child { border-bottom: none; }

.compare-card--before { border-color: rgba(239, 68, 68, 0.25); }
.compare-card--before li::before { content: "✕ "; color: #ef4444; }

.compare-card--after { border-color: var(--accent-dim); }
.compare-card--after li::before { content: "✓ "; color: var(--accent); }
.compare-card--after h3 { color: var(--accent); }

.compare-arrow {
  font-size: 26px;
  color: var(--accent);
  text-align: center;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 14px; }
.testimonial p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 18px; }
.testimonial__author { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ==========================================================================
   Guarantee
   ========================================================================== */

.guarantee {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 50px 40px;
  background: var(--card);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.08) inset;
}

.guarantee__seal { font-size: 40px; margin-bottom: 16px; }
.guarantee h2 { font-size: 26px; margin-bottom: 12px; }
.guarantee p { color: var(--text-secondary); font-size: 15px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-icon {
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-answer p { color: var(--text-secondary); font-size: 14.5px; }

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 55%),
    var(--bg-alt);
  border-top: 1px solid var(--card-border);
}

.cta-final h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-final__product {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 28px;
}
.cta-final__product span { color: var(--accent); font-weight: 700; margin: 0 6px; }

.cta-final__price-label { color: var(--text-muted); font-size: 13px; margin-bottom: 4px; }
.cta-final__price { font-size: 44px; font-weight: 800; color: var(--accent); margin-bottom: 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--bg-alt); border-top: 1px solid var(--card-border); padding: 56px 0 24px; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}

.footer__brand p { color: var(--text-muted); font-size: 13.5px; margin-top: 10px; max-width: 260px; }

.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  text-align: center;
}
.footer__bottom p { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   Fade-in animation
   ========================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .generator__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); }
  .automation-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .navbar__links { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 140px 0 60px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .automation-list { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
