/* ============================================================
   GAZAFI Labs — Commercial Landing Page
   ============================================================ */

/* === RESET & BASE ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-1:            #07070f;
  --bg-2:            #0d0d1a;
  --bg-card:         #111120;
  --bg-card-hover:   #171730;
  --purple:          #6842f5;
  --purple-light:    #8b65f8;
  --purple-lighter:  #b69bff;
  --purple-glow:     rgba(104,66,245,.18);
  --purple-dim:      rgba(104,66,245,.08);
  --text-1:          #edeeff;
  --text-2:          #94a3b8;
  --text-3:          #64748b;
  --border:          rgba(255,255,255,.07);
  --border-purple:   rgba(104,66,245,.22);
  --gradient:        linear-gradient(135deg, #6842f5, #8b65f8);
  --radius:          12px;
  --radius-lg:       20px;
  --shadow:          0 4px 24px rgba(0,0,0,.45);
  --shadow-purple:   0 8px 40px rgba(104,66,245,.18);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

/* === TYPOGRAPHY ==================================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-lighter) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  color: var(--purple-lighter);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
}

/* === BUTTONS ======================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(104,66,245,.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(104,66,245,.45);
}

.btn-secondary {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-purple);
}
.btn-secondary:hover {
  background: var(--purple-dim);
  border-color: var(--purple-light);
  color: var(--purple-lighter);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  color: var(--text-1);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
  border-radius: 12px;
}

/* === HEADER ======================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7,7,15,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.header.scrolled { border-bottom-color: var(--border-purple); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255,255,255,.05); }

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 8px;
  font-size: 13px !important;
  box-shadow: 0 2px 12px rgba(104,66,245,.3);
}
.nav-cta:hover { opacity: .9; background: var(--gradient) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === HERO ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(104,66,245,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,66,245,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(104,66,245,.22) 0%, transparent 70%);
  top: -250px; right: -150px;
}
.hero-glow-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(80,60,200,.14) 0%, transparent 70%);
  bottom: -150px; left: -80px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  color: var(--purple-lighter);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple-light);
  box-shadow: 0 0 8px var(--purple-light);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.85); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--purple-lighter);
  letter-spacing: -.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease .6s both;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(5px); }
}

/* === WHAT WE DO ==================================================== */
.what-we-do { background: var(--bg-2); }

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.what-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .3s ease;
}
.what-card:hover {
  border-color: var(--border-purple);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-purple);
}

.what-icon {
  width: 52px;
  height: 52px;
  color: var(--purple-light);
  margin-bottom: 22px;
}
.what-icon svg { width: 100%; height: 100%; }

.what-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-1);
}
.what-card p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

/* === SERVICES ====================================================== */
.services { background: var(--bg-1); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover {
  border-color: var(--border-purple);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-purple);
}
.service-card:hover::before { opacity: 1; }

.service-card-featured {
  border-color: var(--border-purple);
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(104,66,245,.06) 100%);
}
.service-card-featured::before { opacity: 1; }

.service-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--purple-light);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}

.service-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-3);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  opacity: .7;
}

/* === ECOSYSTEM ===================================================== */
.ecosystem { background: var(--bg-2); }

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.eco-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all .3s ease;
}
.eco-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
  background: var(--bg-card-hover);
}
.eco-card-main { border-color: var(--border-purple); }

.eco-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-lighter);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

.eco-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.eco-logo-icon.purple { background: linear-gradient(135deg,#6842f5,#8b65f8); color:#fff; }
.eco-logo-icon.blue   { background: linear-gradient(135deg,#3b82f6,#60a5fa); color:#fff; }
.eco-logo-icon.dark   { background: linear-gradient(135deg,#1a1a32,#252545); border:1px solid var(--border-purple); color:var(--purple-lighter); }
.eco-logo-icon.grad   { background: linear-gradient(135deg,#6842f5,#3b82f6); color:#fff; }

.eco-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}
.eco-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.eco-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-lighter);
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  padding: 4px 12px;
  border-radius: 100px;
}

/* === PROCESS ======================================================= */
.process { background: var(--bg-1); }

.process-track {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 88px;
}
.process-track::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--border-purple) 0%,
    rgba(104,66,245,.1) 80%,
    transparent 100%
  );
}

.process-step {
  position: relative;
  padding-bottom: 44px;
}
.process-step:last-child { padding-bottom: 0; }

.step-num {
  position: absolute;
  left: -88px;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-lighter);
  z-index: 1;
  letter-spacing: -.02em;
}

.step-body { padding-top: 14px; }

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-1);
}
.step-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
}

/* === AUDIENCE ====================================================== */
.audience { background: var(--bg-2); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: all .3s;
  cursor: default;
}
.audience-card:hover {
  border-color: var(--border-purple);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.audience-icon { width: 40px; height: 40px; color: var(--purple-light); }
.audience-icon svg { width: 100%; height: 100%; }

.audience-card span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
}

/* === DIFFERENTIALS ================================================= */
.differentials {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.diff-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}

.diff-left .section-tag   { margin-bottom: 16px; }
.diff-left .section-title { font-size: clamp(26px,3.5vw,40px); margin-bottom: 16px; }
.diff-left .section-desc  { margin-bottom: 32px; }
.diff-left { text-align: left; }

.diff-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.diff-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--purple-light);
  margin-top: 2px;
}
.diff-check svg { width: 100%; height: 100%; }

.diff-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.diff-item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* === CTA FINAL ===================================================== */
.cta-final {
  position: relative;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(104,66,245,.2) 0%, transparent 70%);
  filter: blur(50px);
}
.cta-content { position: relative; z-index: 1; }

.cta-logo-img {
  height: 84px;
  width: auto;
  margin: 0 auto 44px;
}

.cta-title {
  font-size: clamp(30px,5vw,56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  max-width: 720px;
  margin: 0 auto 20px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 44px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-3);
}

/* === FOOTER ======================================================== */
.footer {
  background: #040409;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  margin-bottom: 56px;
}

.footer-brand { max-width: 380px; }

.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
  margin-bottom: 12px;
}

.footer-cnpj {
  font-size: 12px;
  color: var(--text-3);
  opacity: .5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: var(--text-3);
  transition: color .2s;
}
.footer-col a:hover { color: var(--purple-lighter); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-copy { font-size: 12px; color: var(--text-3); }

.footer-group {
  font-size: 12px;
  color: var(--text-3);
}
.footer-group strong { color: var(--purple-lighter); }

/* === SCROLL ANIMATIONS ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }
.fade-up-delay-5 { transition-delay: .5s; }

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

/* === RESPONSIVE ===================================================== */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .what-grid         { grid-template-columns: 1fr; }
  .diff-inner        { grid-template-columns: 1fr; gap: 48px; }
  .audience-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-top        { grid-template-columns: 1fr; gap: 48px; }
  .footer-brand      { max-width: 100%; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(7,7,15,.97);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-toggle { display: flex; }

  .hero { padding-top: 110px; }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .stat-divider { display: none; }

  .services-grid    { grid-template-columns: 1fr; }
  .ecosystem-grid   { grid-template-columns: 1fr; }
  .audience-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-links     { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom    { flex-direction: column; gap: 12px; text-align: center; }
  .process-track    { padding-left: 72px; }
  .step-num         { left: -72px; width: 48px; height: 48px; font-size: 12px; }
  .process-track::before { left: 23px; }
}

@media (max-width: 480px) {
  .hero-actions     { flex-direction: column; }
  .audience-grid    { grid-template-columns: 1fr; }
  .cta-actions      { flex-direction: column; align-items: center; }
  .footer-links     { grid-template-columns: 1fr; }
  .what-grid        { grid-template-columns: 1fr; }
}
