/* ═══════════════════════════════════════════════════════════
   Landing Pages — Serviço Page
   Acento: orange → amber (#fb923c / #f59e0b)
   Reusa variáveis do main.css + projects-shared.css
═══════════════════════════════════════════════════════════ */

:root {
  --lp-accent:    #fb923c;
  --lp-accent-2:  #f59e0b;
  --lp-warm:      #fbbf24;
  --lp-grad:      linear-gradient(135deg, #fb923c 0%, #f59e0b 60%, #fde68a 100%);
  --lp-grad-soft: linear-gradient(135deg, rgba(251,146,60,.16), rgba(245,158,11,.10));
}
body.light {
  --lp-accent:   #ea580c;
  --lp-accent-2: #d97706;
}

#site { opacity: 1; }

/* ═══════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) var(--pad-x) clamp(60px, 8vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.lp-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(251,146,60,.12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(245,158,11,.10), transparent 60%),
    var(--bg);
}

.lp-blob {
  position: absolute; z-index: -2;
  filter: blur(90px); opacity: .5;
  border-radius: 50%;
  pointer-events: none;
  animation: lpFloat 16s ease-in-out infinite;
}
.lp-blob.b1 {
  width: 420px; height: 420px; top: -100px; left: -140px;
  background: radial-gradient(circle, var(--lp-accent), transparent 65%);
}
.lp-blob.b2 {
  width: 500px; height: 500px; bottom: -140px; right: -160px;
  background: radial-gradient(circle, var(--lp-accent-2), transparent 65%);
  animation-delay: -6s; opacity: .4;
}

@keyframes lpFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -32px) scale(1.07); }
}

.lp-grid-lines {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(251,146,60,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,146,60,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
body.light .lp-grid-lines {
  background-image:
    linear-gradient(rgba(234,88,12,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,88,12,.07) 1px, transparent 1px);
}

.lp-hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.lp-hero-text { max-width: 600px; }

/* breadcrumb hover */
.case-breadcrumb a:hover { color: var(--lp-accent); }

.lp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251,146,60,.07);
  border: 1px solid rgba(251,146,60,.28);
  font-family: var(--mono);
  font-size: .76rem; font-weight: 600;
  color: var(--lp-accent);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0; transform: translateY(10px);
  animation: heroFade .8s var(--ease) .25s forwards;
}
.lp-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lp-accent);
  box-shadow: 0 0 10px var(--lp-accent);
  animation: lpPulse 2s ease-in-out infinite;
}
@keyframes lpPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(.85); }
}

.lp-title {
  font-family: var(--head);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05; letter-spacing: -.035em;
  margin-bottom: 18px;
}
.lp-title em {
  font-style: normal;
  background: var(--lp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-title .reveal-line {
  display: block;
  opacity: 0; transform: translateY(40px);
  animation: heroRise 1s var(--ease) .35s forwards;
}
.lp-title .reveal-line:nth-child(2) { animation-delay: .5s; }

.lp-tagline {
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.55;
  opacity: 0; transform: translateY(20px);
  animation: heroRise 1s var(--ease) .65s forwards;
}

.lp-description {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: heroRise 1s var(--ease) .75s forwards;
}
.lp-description b { color: var(--text-soft); font-weight: 600; }

.lp-hero-btns {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; transform: translateY(20px);
  animation: heroRise 1s var(--ease) 1s forwards;
}

/* ═══════════════════════════════════════════════
   2. HERO STAGE — browser mockup
═══════════════════════════════════════════════ */
.lp-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  opacity: 0; transform: translateY(30px);
  animation: heroRise 1.1s var(--ease) .7s forwards;
}

.lp-stage-glow {
  position: absolute;
  width: 380px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(251,146,60,.2), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

@keyframes floating {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes floatingRev {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(10px); }
}
.floating    { animation: floating    5s ease-in-out infinite; }
.floating-rev { animation: floatingRev 6s ease-in-out infinite; animation-delay: -2s; }

/* Browser frame */
.lp-browser {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow:
    0 4px 6px rgba(0,0,0,.06),
    0 20px 60px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
}

.lpb-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.lpb-dots {
  display: flex; gap: 5px;
}
.lpb-dots i {
  display: block; width: 10px; height: 10px;
  border-radius: 50%;
}
.lpb-dots i:nth-child(1) { background: #ff5f57; }
.lpb-dots i:nth-child(2) { background: #febc2e; }
.lpb-dots i:nth-child(3) { background: #28c840; }

.lpb-url {
  flex: 1; text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}

.lpb-screen {
  background: var(--bg);
  padding: 0;
  overflow: hidden;
}

/* fake navbar inside browser */
.lpb-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .65rem;
}
.lpb-logo {
  font-family: var(--head);
  font-weight: 800;
  font-size: .72rem;
  color: var(--lp-accent);
  letter-spacing: .08em;
  margin-right: auto;
}
.lpb-links { color: var(--muted-2); font-size: .63rem; }
.lpb-cta-btn {
  padding: 3px 9px;
  background: var(--lp-grad);
  border-radius: 5px;
  font-size: .62rem; font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* fake hero inside browser */
.lpb-hero-sec {
  padding: 20px 14px 16px;
  background: linear-gradient(160deg, var(--bg), var(--surface) 80%);
  border-bottom: 1px solid var(--border);
}
.lpb-tag {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--lp-accent);
  letter-spacing: .12em;
  display: block;
  margin-bottom: 6px;
}
.lpb-h1 {
  font-family: var(--head);
  font-size: .9rem; font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 6px;
}
.lpb-h1 em {
  font-style: normal;
  background: var(--lp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lpb-sub {
  font-size: .65rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.lpb-btns { display: flex; gap: 6px; }
.lpb-btn-p {
  font-size: .6rem; font-weight: 700;
  padding: 4px 10px;
  background: var(--lp-grad);
  border-radius: 5px;
  color: #fff;
  white-space: nowrap;
}
.lpb-btn-g {
  font-size: .6rem;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}

/* stats bar inside browser */
.lpb-stats {
  display: flex; justify-content: space-around;
  padding: 10px 14px 12px;
  gap: 6px;
}
.lpb-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
}
.lpb-stat b {
  font-size: .78rem; font-weight: 800;
  background: var(--lp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lpb-stat span {
  font-size: .6rem;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════
   3. METRIC CARD
═══════════════════════════════════════════════ */
.lp-metric-card {
  position: absolute;
  bottom: -8px; right: -32px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.16),
    0 0 0 1px rgba(251,146,60,.12);
  min-width: 160px;
  z-index: 5;
}
.lpm-label {
  display: block;
  font-size: .65rem;
  color: var(--muted-2);
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lpm-value {
  display: block;
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--lp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.lpm-delta {
  display: block;
  font-size: .65rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.lpm-delta.up { color: #34d399; }

.lpm-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 36px;
}
.lpm-bars span {
  flex: 1;
  height: var(--h, 50%);
  background: var(--lp-grad);
  border-radius: 3px 3px 0 0;
  opacity: .7;
  transition: opacity .3s;
}
.lpm-bars span:last-child { opacity: 1; }

/* ═══════════════════════════════════════════════
   4. FEATURES
═══════════════════════════════════════════════ */
.lp-features {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.lp-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 60px);
}

.lp-feat-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.lp-feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,146,60,.35);
  box-shadow: 0 12px 40px rgba(251,146,60,.1);
}
.lp-feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--lp-accent);
}
.lp-feat-icon svg { width: 22px; height: 22px; }
.lp-feat-card h3 {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.lp-feat-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════
   5. TIPOS
═══════════════════════════════════════════════ */
.lp-types {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  background: var(--bg-1);
}
.lp-types .section-header {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lp-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
  max-width: var(--max-w);
  margin-left: auto; margin-right: auto;
}

.lp-type-card {
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  cursor: default;
}
.lp-type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,146,60,.3);
  box-shadow: 0 10px 32px rgba(251,146,60,.09);
}
.lpt-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(251,146,60,.08);
  border: 1px solid rgba(251,146,60,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--lp-accent);
}
.lpt-icon svg { width: 20px; height: 20px; }
.lp-type-card h3 {
  font-size: .98rem; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.lp-type-card p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   6. PROCESSO
═══════════════════════════════════════════════ */
.lp-process {
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.lp-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 5vw, 60px);
  counter-reset: step;
}

.lp-step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.lp-step:hover {
  transform: translateY(-4px);
  border-color: rgba(251,146,60,.3);
  box-shadow: 0 12px 40px rgba(251,146,60,.09);
}
.lp-step-num {
  position: absolute;
  top: -14px; left: 20px;
  font-family: var(--mono);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em;
  padding: 4px 10px;
  background: var(--lp-grad);
  color: #fff;
  border-radius: 999px;
  line-height: 1;
}
.lp-step-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(251,146,60,.08);
  border: 1px solid rgba(251,146,60,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--lp-accent);
}
.lp-step-icon svg { width: 22px; height: 22px; }
.lp-step h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.lp-step p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* connector line between steps */
.lp-process-grid .lp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%; right: -14px;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, rgba(251,146,60,.4), transparent);
  z-index: 1;
}

/* ═══════════════════════════════════════════════
   7. SEÇÕES GLOBAIS (overrides para accent laranja)
═══════════════════════════════════════════════ */
.lp-features .section-title em,
.lp-types .section-title em,
.lp-process .section-title em {
  background: var(--lp-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA section accent */
.case-cta .btn-primary {
  background: var(--lp-grad);
}
.case-cta .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(251,146,60,.35);
}

/* ═══════════════════════════════════════════════
   8. RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 60px);
  }
  .lp-hero-text { max-width: 100%; }
  .lp-hero-stage {
    justify-content: center;
    padding: 0;
  }
  .lp-metric-card {
    right: 0; bottom: -20px;
  }
}

@media (max-width: 640px) {
  .lp-title { font-size: clamp(2.1rem, 9vw, 3rem); }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-types-grid { grid-template-columns: 1fr; }
  .lp-process-grid { grid-template-columns: 1fr; }
  .lp-process-grid .lp-step::after { display: none; }
  .lp-browser { width: 100%; }
  .lp-metric-card {
    position: static;
    margin-top: 16px;
    width: 100%;
  }
  .lp-hero-stage { flex-direction: column; align-items: stretch; }
  .lp-hero-btns { flex-direction: column; }
  .lp-hero-btns .btn-primary,
  .lp-hero-btns .btn-outline { width: 100%; justify-content: center; }
}
