/* ============================================================
   PROJETIUM — Landing Page
   Design System + Layout
   ============================================================ */

/* ── 1. DESIGN TOKENS ── */
:root {
  /* Neutros QUENTES (harmonizam com o charcoal do logo Projetium) */
  --ink:         #3A3632;
  --muted:       #6E665D;
  --line:        #E9E3DC;
  --surface:     #FFFFFF;
  --surface-2:   #FAF6F1;

  /* Acento TERRACOTA (laranja do logo Projetium) */
  --accent:      #B15A2E;
  --accent-700:  #8E4522;
  --accent-soft: #F7E8DE;
  --brand-terra: #A85A31;

  /* Hero — charcoal QUENTE */
  --hero-bg-1:   #24211E;
  --hero-bg-2:   #1A1815;
  --hero-text:   #F3EEE9;
  --hero-muted:  #C9C0B8;
  --hero-eyebrow:#E8895F;

  /* Execfy — EXCLUSIVO da seção do produto */
  --execfy:      #3885C1;
  --execfy-bg-1: #0F2233;
  --execfy-bg-2: #16324A;

  /* Sistema */
  --font:   "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw:   1120px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(58,54,50,.04), 0 12px 32px rgba(58,54,50,.06);
  --shadow-hover: 0 4px 8px rgba(58,54,50,.08), 0 24px 48px rgba(58,54,50,.10);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── 3. LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px)  { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--light { background: var(--surface); }
.section--alt   { background: var(--surface-2); }

/* ── 4. TIPOGRAFIA ── */
.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .875rem;
}
.eyebrow--execfy { color: #8FC0E8; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 3rem;
  line-height: 1.75;
}

/* ── 5. UTILITÁRIOS ── */

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  min-height: 44px;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-700);
  border-color: var(--accent-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(177,90,46,.35);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.btn--on-dark.btn--ghost {
  color: var(--hero-text);
  border-color: rgba(243,238,233,.35);
}
.btn--on-dark.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(243,238,233,.65);
}
.btn--execfy {
  background: var(--execfy);
  color: #fff;
  border-color: var(--execfy);
}
.btn--execfy:hover {
  background: #2d70ad;
  border-color: #2d70ad;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56,133,193,.4);
}
.btn--execfy:focus-visible { outline-color: #8FC0E8; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--ink);
}
.card > p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Grids */
.cards-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}
@media (min-width: 640px) { .cards-2 { grid-template-columns: 1fr 1fr; } }

.cards-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.cards-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(58,54,50,.09);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 1.5rem;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo { height: 28px; width: auto; }

/* Nav */
.main-nav { flex: 1; position: static; }

.nav-list {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 12px 32px rgba(58,54,50,.12);
  z-index: 199;
}
.nav-list.open { display: flex; }

@media (min-width: 768px) {
  .main-nav { display: flex; justify-content: center; }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: .125rem;
    z-index: auto;
  }
}

.nav-link {
  display: block;
  padding: .625rem .75rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-left: auto;
}
@media (max-width: 639px) { .header-cta .btn--primary { display: none; } }

/* Hambúrguer */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  transition: background .2s;
}
.hamburger:hover { background: var(--surface-2); }
.hamburger:focus-visible { outline: 2px solid var(--accent); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) { .hamburger { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 65%;
  height: 170%;
  background: radial-gradient(ellipse at center, rgba(177,90,46,.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero .eyebrow { color: var(--hero-eyebrow); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--hero-text);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--hero-muted);
  max-width: 46ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

/* Visual decorativo do hero */
.hero-visual {
  display: none;
}
@media (min-width: 768px) {
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-svg { max-width: 440px; width: 100%; }
}

/* ============================================================
   QUEM SOMOS — STATS
   ============================================================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.stat { flex: 1; min-width: 120px; }
.stat-number {
  display: block;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.diferencial {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: box-shadow .25s, transform .25s;
}
.diferencial:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.diferencial-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diferencial-text h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}
.diferencial-text p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   METODOLOGIA (TIMELINE)
   ============================================================ */
.timeline {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .timeline::before {
    content: '';
    position: absolute;
    top: 27px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 2px;
    background: var(--line);
    z-index: 0;
  }
}
.timeline-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .timeline-step {
    flex-direction: column;
    gap: 1rem;
  }
}
.timeline-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  letter-spacing: -.01em;
  box-shadow: 0 4px 16px rgba(177,90,46,.3);
}
.timeline-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}
.timeline-content p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   EXECFY SECTION
   ============================================================ */
.section--execfy {
  background: linear-gradient(135deg, var(--execfy-bg-1) 0%, var(--execfy-bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.section--execfy::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 55%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(56,133,193,.16) 0%, transparent 65%);
  pointer-events: none;
}
.execfy-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .execfy-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.execfy-logo {
  height: 60px;
  width: auto;
  max-width: 240px;
  margin-bottom: 1.5rem;
  border-radius: 10px;
}
.execfy-inner h2 {
  color: #EDF4FB;
  margin-bottom: 1rem;
}
.execfy-inner > .execfy-content > p {
  color: #A8C5E0;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.execfy-bullets {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.execfy-bullets li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #C2DCF0;
  font-size: .9375rem;
  font-weight: 500;
}
.execfy-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--execfy);
  box-shadow: 0 0 8px rgba(56,133,193,.5);
}

/* Chat mockup */
.execfy-visual {
  display: none;
}
@media (min-width: 768px) {
  .execfy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.execfy-mockup {
  width: 280px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  backdrop-filter: blur(8px);
}
.mockup-header {
  display: flex;
  gap: 5px;
  margin-bottom: .25rem;
}
.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}
.mockup-line {
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
}
.mockup-line--short { width: 60%; }
.mockup-bubble {
  border-radius: 14px;
  padding: .625rem .875rem;
  font-size: .8125rem;
  line-height: 1.5;
  max-width: 82%;
}
.mockup-bubble--in {
  background: rgba(56,133,193,.22);
  color: #B8D8F0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.mockup-bubble--out {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* ============================================================
   CASES DE SUCESSO
   ============================================================ */
.case-card {
  display: flex;
  flex-direction: column;
}
.case-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.client-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) opacity(.5);
  transition: filter .3s ease;
}
.case-card:hover .client-logo,
.case-card:focus-within .client-logo {
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .client-logo { transition: none; }
}

/* ============================================================
   PRÓXIMOS PASSOS
   ============================================================ */
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: .25rem;
}
.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}
.step-card > p {
  font-size: .9375rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.65;
}

/* CTA final */
.cta-final {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 50%, rgba(177,90,46,.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final > * { position: relative; z-index: 1; }
.cta-final h2 {
  color: var(--hero-text);
  margin-bottom: 1rem;
}
.cta-final > p {
  color: var(--hero-muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #201D1A;
  color: var(--hero-muted);
  padding: clamp(48px, 6vw, 80px) 0 0;
}
.footer-inner {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (min-width: 640px)  { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 2fr; } }

.logo-white { height: 24px; width: auto; margin-bottom: .875rem; }
.footer-tagline {
  font-size: .9375rem;
  color: rgba(255,255,255,.38);
  max-width: 30ch;
}

.footer-nav ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-nav a {
  font-size: .9375rem;
  color: rgba(255,255,255,.48);
  transition: color .2s;
}
.footer-nav a:hover { color: rgba(255,255,255,.9); }
.footer-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.footer-contact a {
  font-size: .9375rem;
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.footer-contact a:hover { color: rgba(255,255,255,.95); }
.footer-contact a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-address {
  font-size: .875rem;
  color: rgba(255,255,255,.3);
  line-height: 1.65;
  margin-top: .25rem;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { font-size: .8125rem; color: rgba(255,255,255,.22); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

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