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

:root {
  --primary: #6C63FF;
  --primary-dark: #4f46e5;
  --accent: #00D4FF;
  --bg: #0A0B0F;
  --bg-2: #111318;
  --bg-3: #1a1d27;
  --border: rgba(255,255,255,0.08);
  --text: #E8E9EF;
  --text-muted: #8B8FA8;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(108,99,255,0.25);
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.55);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,11,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}
.nav.scrolled {
  background: rgba(10,11,15,0.96);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 64px;
  width: 100%;
}
.nav__logo {
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo img {
  height: 44px;
  width: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(108,99,255,0.5));
  border-radius: 10px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.btn--cta {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn--cta:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
#heroCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 140px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.hero__bg {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: bgPulse 8s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a5a0ff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .5px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a5a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Code card */
.hero__visual { position: relative; z-index: 1; }
.code-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 32px 64px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.code-card__code {
  padding: 24px;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
}
.c-purple { color: #c792ea; }
.c-blue { color: #82aaff; }
.c-green { color: #c3e88d; }
.c-yellow { color: #ffcb6b; }
.c-white { color: #fff; }
.c-comment { color: #546e7a; font-style: italic; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }
.section--dark { background: transparent; }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__tag {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a5a0ff;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(17,19,24,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.4);
}
.card--glow:hover { box-shadow: 0 8px 40px rgba(108,99,255,0.15); }
.card--featured {
  background: linear-gradient(135deg, rgba(108,99,255,0.18), rgba(0,212,255,0.08));
  border-color: rgba(108,99,255,0.4);
  box-shadow: var(--shadow-glow);
}
.card__badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: .5px;
}
.card__icon {
  width: 56px;
  height: 56px;
  background: rgba(108,99,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}
.card--featured .card__icon { background: rgba(108,99,255,0.2); }
.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card__text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  background: rgba(17,19,24,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s;
}
.step:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-4px); }
.step__num {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step__body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step__body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step__arrow {
  font-size: 24px;
  color: var(--text-muted);
  align-self: center;
  margin-top: -16px;
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre__text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.sobre__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(17,19,24,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.value__icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.value strong { display: block; font-size: 15px; margin-bottom: 2px; }
.value span { font-size: 13px; color: var(--text-muted); }
.glow-box {
  background: rgba(17,19,24,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-glow);
  text-align: center;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.tech {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  color: #a5a0ff;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.tech-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: transparent;
  padding: 100px 0;
  text-align: center;
}
.cta-section__inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section__inner p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 36px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.form__group input,
.form__group select,
.form__group textarea {
  background: rgba(17,19,24,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(139,143,168,0.5); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--primary); }
.form__group select option { background: var(--bg-2); }
.form__success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(17,19,24,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.contact__card:hover { border-color: rgba(108,99,255,0.4); transform: translateX(4px); }
.contact__card--whatsapp { border-color: rgba(34,197,94,0.3); color: #4ade80; }
.contact__card--whatsapp:hover { background: rgba(34,197,94,0.08); }
.contact__card strong { display: block; font-size: 15px; margin-bottom: 2px; }
.contact__card span { font-size: 13px; color: var(--text-muted); }
.contact__promise {
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact__promise strong { color: var(--text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 260px;
}
.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all .2s;
  animation: pulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__sub { margin: 0 auto 36px; }
  .hero__ctas { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sobre__grid { grid-template-columns: 1fr; gap: 48px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,11,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: none;
    left: 0;
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }
  .btn--cta { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); margin: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
