/* ─────────────────────────────────────────────────────────────────────────────
   app2you — Landing Page Styles
   Organização: Variables → Reset → Layout → Components → Sections → Animations → Responsive
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:           #080C18;
  --bg-1:         #0D1425;
  --bg-2:         #111827;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(124, 58, 237, 0.45);

  --primary:       #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark:  #5B21B6;
  --secondary:     #2563EB;
  --accent:        #06B6D4;
  --success:       #10B981;
  --warning:       #F59E0B;

  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-subtle:  #475569;

  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --gradient-text:    linear-gradient(135deg, #C4B5FD 0%, #38BDF8 80%);
  --gradient-card:    linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(37,99,235,0.06) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-glow:    0 0 60px rgba(124, 58, 237, 0.18);
  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.35);
  --shadow-primary: 0 8px 32px rgba(124, 58, 237, 0.35);

  --nav-height: 72px;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1140px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section { padding-block: clamp(4rem, 8vw, 7rem); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--tr);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.875rem 1.75rem;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.45);
}

.btn--ghost {
  color: var(--text-muted);
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--primary-light);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.btn--sm { font-size: 0.875rem; padding: 0.6rem 1.25rem; }
.btn--lg { font-size: 1.0625rem; padding: 1rem 2rem; }

.btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--tr);
}
.card:hover {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, var(--bg-1) 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--tr);
}

.nav.scrolled {
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  flex-shrink: 0;
}
.nav__logo span { color: var(--primary-light); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: var(--tr);
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav__cta { margin-left: auto; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--tr);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  right: -15%;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: 10%;
  left: -8%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 6rem);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-light);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}

.badge__dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 820px;
  margin-inline: auto;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--tr);
}
.hero__scroll:hover { color: var(--text-muted); }

.scroll-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease infinite;
}

/* ─── Stats Bar ──────────────────────────────────────────────────────────── */
.stats {
  padding-block: 0;
}

.stats__inner {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding-block: 2.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat__number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Problem ────────────────────────────────────────────────────────────── */
.problem { background: var(--bg); }

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.problem-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--tr);
}
.problem-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-3px);
}

.problem-card__emoji {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.problem-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.problem-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.problem__solution {
  margin-top: 3rem;
  background: var(--gradient-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.problem__solution-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.problem__solution-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem__solution-text p {
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Services ───────────────────────────────────────────────────────────── */
.services { background: var(--bg-1); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--tr);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ─── How It Works ───────────────────────────────────────────────────────── */
.how-it-works { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.3;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-primary);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-primary);
}

.step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.step__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Tech Stack ─────────────────────────────────────────────────────────── */
.tech { background: var(--bg-1); }

.tech__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tech__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--tr);
}
.tech__item:hover {
  border-color: var(--primary-light);
  color: var(--text);
}
.tech__item span { font-size: 1.125rem; }

/* ─── CTA Final ──────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--bg);
  padding-block: clamp(5rem, 10vw, 8rem);
}

.cta-final__inner {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-final__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-final__text {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-final__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-final__note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.footer__logo span { color: var(--primary-light); }

.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--tr);
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Nav ─────────────────────────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--tr);
}
.nav__mobile a:hover { color: var(--text); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links,
  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .stat { padding: 0.75rem 0.5rem; }

  .steps::before { display: none; }

  .problem__solution {
    flex-direction: column;
    text-align: center;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}
