/* ══════════════════════════════════════════════════════════
   CONTRATA — Landing Page Design System
   Clean • Modern • Unique • Anti-Generic
   ══════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --c-bg: #FAFAFB;
  --c-surface: #FFFFFF;
  --c-text: #0F172A;
  --c-text-muted: #64748B;
  --c-text-subtle: #94A3B8;
  --c-primary: #1E40AF;
  --c-primary-hover: #1E3A8A;
  --c-primary-light: #DBEAFE;
  --c-primary-glow: rgba(30, 64, 175, 0.15);
  --c-border: rgba(15, 23, 42, 0.06);
  --c-border-strong: rgba(15, 23, 42, 0.1);
  --c-dark-bg: #0F172A;
  --c-dark-text: #F1F5F9;
  --c-green: #10B981;
  --c-amber: #F59E0B;
  --c-badge-gray: #E2E8F0;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --text-hero: clamp(3rem, 7vw, 5rem);
  --text-2xl: clamp(1.75rem, 3.5vw, 2.75rem);
  --text-xl: clamp(1.25rem, 2vw, 1.5rem);
  --text-lg: 1.125rem;
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  --section-py: clamp(5rem, 12vh, 9rem);
  --container-max: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

/* Dot grid pattern — inherited from the app */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(#E5E7EB 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

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

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

ul {
  list-style: none;
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* Stagger children */
.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal:nth-child(5) {
  transition-delay: 0.32s;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 251, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 30px;
  width: auto;
}

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

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--c-text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-primary);
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--c-primary);
  border-radius: 10px;
  transition: all 0.2s var(--ease-out-expo);
}

.nav__cta:hover {
  background: var(--c-primary);
  color: white;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.875rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--c-primary);
  color: white;
  box-shadow: 0 4px 14px var(--c-primary-glow);
}

.btn--primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--c-primary-glow);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
  border-radius: 14px;
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-muted);
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--c-text);
}

.btn--outline {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border-strong);
  font-weight: 600;
}

.btn--outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

/* Shimmer */
.btn--shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    left: -100%;
  }

  30%,
  70% {
    left: 100%;
  }
}

/* ── Section Base ────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}

.section__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section__container--narrow {
  max-width: 880px;
}

.section__overline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.section__heading {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section__heading--large {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* nav */
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 720px;
  width: 100%;
}

.hero__logo {
  height: clamp(64px, 12vw, 100px);
  width: auto;
  margin-bottom: 2rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--c-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 0 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ── Asymmetric Grid ─────────────────────────────────────── */
.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.grid-asymmetric--reversed {
  grid-template-columns: 1.2fr 0.8fr;
}

/* ── Pain List ───────────────────────────────────────────── */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pain-list__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out-expo);
}

.pain-list__item:hover {
  border-color: var(--c-border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.pain-list__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text-muted);
}

.pain-list__item strong {
  display: block;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 0.125rem;
  color: var(--c-text);
}

.pain-list__item span {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ── Feature Grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-grid__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  transition: all 0.3s var(--ease-out-expo);
}

.feature-grid__item:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}

.feature-grid__item svg {
  flex-shrink: 0;
  color: var(--c-primary);
  margin-top: 2px;
}

.feature-grid__item span {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ── Solution Visual ─────────────────────────────────────── */
.solution-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
}

.solution-visual__number {
  display: flex;
  align-items: baseline;
}

.solution-visual__percent {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.solution-visual__symbol {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--c-primary);
  opacity: 0.6;
}

.solution-visual__caption {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  max-width: 220px;
  margin-top: 1rem;
}

/* ── Showcase Browser ────────────────────────────────────── */
.section--showcase {
  padding-bottom: 0;
}

.showcase-browser {
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--c-border-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  background: var(--c-surface);
}

.showcase-browser__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--c-border);
}

.showcase-browser__dots {
  display: flex;
  gap: 6px;
}

.showcase-browser__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
}

.showcase-browser__url {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.showcase-browser__body {
  padding: 2rem;
  background: var(--c-bg);
}

.showcase-caption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding: 2rem 0 var(--section-py);
}

/* ── Mockup (stylised dashboard) ─────────────────────────── */
.mockup__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.mockup__line {
  border-radius: 4px;
  background: #E2E8F0;
}

.mockup__line--title {
  width: 200px;
  height: 14px;
  margin-bottom: 6px;
  background: var(--c-text);
  border-radius: 3px;
}

.mockup__line--sub {
  width: 280px;
  height: 8px;
}

.mockup__line--name {
  width: 60%;
  height: 10px;
  margin-bottom: 6px;
}

.mockup__line--addr {
  width: 80%;
  height: 8px;
  margin-bottom: 12px;
}

.mockup__btn {
  width: 120px;
  height: 36px;
  background: var(--c-primary);
  border-radius: 10px;
}

.mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mockup__stat {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.mockup__stat-label {
  width: 80px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.mockup__stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-text);
}

.mockup__stat--amber .mockup__stat-label {
  background: #FDE68A;
}

.mockup__stat--amber .mockup__stat-num {
  color: var(--c-amber);
}

.mockup__stat--green .mockup__stat-label {
  background: #A7F3D0;
}

.mockup__stat--green .mockup__stat-num {
  color: var(--c-green);
  font-size: 1.5rem;
}

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

.mockup__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.3s var(--ease-out-expo);
}

.mockup__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.mockup__card-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.mockup__card-badge--gray {
  background: var(--c-badge-gray);
  color: #475569;
}

.mockup__card-badge--blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.mockup__card-badge--green {
  background: #D1FAE5;
  color: #065F46;
}

.mockup__card-footer {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}

.mockup__card-comissao {
  color: var(--c-primary);
}

/* ── Numbers Section ─────────────────────────────────────── */
.section--numbers {
  background: var(--c-dark-bg);
  position: relative;
}

.section--numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.numbers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.numbers-grid__item {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.numbers-grid__value {
  display: inline;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}

.numbers-grid__value-suffix {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: white;
  opacity: 0.6;
}

.numbers-grid__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--c-text-subtle);
  margin-top: 0.5rem;
  font-weight: 500;
}

.numbers-grid__divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── FAQ Section ─────────────────────────────────────────── */
.section--faq {
  background: var(--c-bg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease-out-expo);
}

.faq-item:hover {
  border-color: var(--c-border-strong);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.faq-item[open] {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}

.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--c-text);
  font-size: var(--text-lg);
  user-select: none;
  min-height: 64px;
  -webkit-tap-highlight-color: transparent;
}

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

.faq-icon {
  flex-shrink: 0;
  color: var(--c-text-muted);
  transition: transform 0.3s var(--ease-out-expo), color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] .faq-summary {
  color: var(--c-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--c-primary);
}

.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--c-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-summary {
    font-size: var(--text-base);
    padding: 1.25rem;
  }
  
  .faq-body {
    padding: 0 1.25rem 1.25rem;
    font-size: var(--text-sm);
  }
}

/* ── CTA Section ─────────────────────────────────────────── */
.section--cta {
  padding: var(--section-py) 0 calc(var(--section-py) * 1.2);
}

.section--cta .section__subtitle {
  text-align: center;
}



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

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 1.5rem 0;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  height: 54px;
  width: auto;
  opacity: 0.5;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links {
    gap: 1rem;
  }

  .nav__link {
    display: none;
  }

  .grid-asymmetric,
  .grid-asymmetric--reversed {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .mockup__cards,
  .mockup__stats {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .numbers-grid__divider {
    width: 60px;
    height: 1px;
  }

  .hide-mobile {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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

/* ── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn--shimmer::after {
    animation: none;
  }

  .hero__badge-dot {
    animation: none;
  }
}