/* ═══════════════════════════════════════════════
   DESIGN SYSTEM — Gato Preto LP
   ═══════════════════════════════════════════════ */

:root {
  /* Palette */
  --bg-deep:    #0c0e10;
  --bg-surface: #14171a;
  --bg-card:    rgba(255, 255, 255, 0.02);
  --border:     rgba(255, 255, 255, 0.05);
  --border-hover: rgba(229, 169, 59, 0.3);

  --text-primary:   #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted:     #6b7280;

  --accent-start:  #e5a93b;
  --accent-mid:    #df7d56;
  --accent-end:    #4a907a;
  --accent-glow:   rgba(229, 169, 59, 0.25);

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-py: clamp(5rem, 10vw, 8rem);
  --container:  min(1120px, 90vw);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ═══════════════════ RESET & BASE ═══════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

ul { list-style: none; }

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

strong { color: var(--text-primary); font-weight: 600; }
em { font-style: italic; color: var(--accent-mid); }

.container {
  width: var(--container);
  margin: 0 auto;
}


/* ═══════════════════ GRADIENT TEXT ═══════════════════ */

.gradient-text {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ═══════════════════ BUTTONS ═══════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-xl);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-start);
  background: rgba(229, 169, 59, 0.08);
  box-shadow: 0 4px 20px rgba(229, 169, 59, 0.15);
}

.btn--glow {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(229, 169, 59, 0.15);
}

.btn--glow:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(229, 169, 59, 0.2);
}

.btn__arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}


/* ═══════════════════ NAV ═══════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), 
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(12, 14, 16, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 0.7rem 0;
  border-bottom-color: var(--border);
}

.nav__container {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  font-size: 1.4rem;
}


/* ═══════════════════ HERO ═══════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(229, 169, 59, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(74, 144, 122, 0.05), transparent),
    linear-gradient(to bottom, transparent 60%, var(--bg-deep));
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: var(--r-xl);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: rgba(229, 169, 59, 0.1);
  border: 1px solid rgba(229, 169, 59, 0.15);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-start), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}


/* ═══════════════════ SECTIONS ═══════════════════ */

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}

.section__tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: var(--r-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: rgba(229, 169, 59, 0.08);
  border: 1px solid rgba(229, 169, 59, 0.12);
  margin-bottom: 1.25rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ═══════════════════ PAIN CARDS ═══════════════════ */

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

.card--glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.card--glass:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(229, 169, 59, 0.06);
}

.card__icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(229, 169, 59, 0.15), rgba(74, 144, 122, 0.1));
  margin-bottom: 1.25rem;
}

.card__icon {
  width: 24px;
  height: 24px;
  color: var(--accent-mid);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* ═══════════════════ SOLUTION STEPS ═══════════════════ */

.section--solution {
  background: var(--bg-surface);
}

.solution__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.step__number {
  flex-shrink: 0;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}


/* ═══════════════════ PLANS ═══════════════════ */

.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.plan {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.plan__badge {
  position: absolute;
  top: 1rem;
  right: -2rem;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 2.5rem;
  transform: rotate(35deg);
}

.plan--featured {
  border-color: rgba(229, 169, 59, 0.25);
  background: rgba(229, 169, 59, 0.04);
}

.plan--featured:hover {
  border-color: rgba(229, 169, 59, 0.4);
}

.plan__header {
  margin-bottom: 2rem;
}

.plan__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-mid);
  margin-bottom: 0.5rem;
}

.plan__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.plan__price-from {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.plan__price-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.plan__feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.plan__check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-end);
}


/* ═══════════════════ CTA FINAL ═══════════════════ */

.section--cta {
  text-align: center;
  position: relative;
}

.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(229, 169, 59, 0.1), transparent),
    radial-gradient(ellipse 30% 40% at 30% 50%, rgba(74, 144, 122, 0.05), transparent);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}


/* ═══════════════════ FOOTER ═══════════════════ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ═══════════════════ REVEAL ANIMATIONS ═══════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 768px) {
  .hero__content {
    padding: 0 1rem;
    padding-top: 5rem;
  }

  .pain__grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .step__number {
    font-size: 2rem;
  }

  .plans__grid {
    grid-template-columns: 1fr;
  }

  .plan__badge {
    top: 0.7rem;
    right: -2.5rem;
    font-size: 0.6rem;
  }

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

  .hero__scroll-hint {
    display: none;
  }

  .section__header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .cta__title {
    font-size: 1.5rem;
  }

  .plan {
    padding: 2rem 1.5rem;
  }
}
