/* ============ Haydi — tokens ============ */
:root {
  --bg: #070710;
  --bg-soft: #0d0d1c;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ecedf6;
  --text-mut: #9a9ab5;
  --text-dim: #6b6b86;

  --c1: #8b5cf6;   /* roxo */
  --c2: #22d3ee;   /* ciano */
  --c3: #f472b6;   /* rosa */
  --grad: linear-gradient(110deg, var(--c1), var(--c2));
  --grad-text: linear-gradient(110deg, #a78bfa, #22d3ee 60%, #67e8f9);

  --maxw: 1140px;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ============ reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ============ background fx ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 { width: 620px; height: 620px; top: -200px; left: -160px;
  background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 70%); }
.bg-glow--2 { width: 560px; height: 560px; top: 280px; right: -180px;
  background: radial-gradient(circle, rgba(34,211,238,0.42), transparent 70%); }

/* ============ header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,7,16,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); background: rgba(7,7,16,0.82); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(139,92,246,0.6);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px;
  border-radius: 4px; background: var(--bg);
}
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand__dot { color: var(--c2); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-mut); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text) !important;
}
.nav__cta:hover { border-color: var(--c2); box-shadow: 0 0 20px rgba(34,211,238,0.25); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.97rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--primary { background: var(--grad); color: #08080f; box-shadow: 0 8px 30px rgba(139,92,246,0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(34,211,238,0.45); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--wa { background: rgba(37,211,102,0.14); border-color: rgba(37,211,102,0.5); color: #5af08a; }
.btn--wa:hover { background: rgba(37,211,102,0.22); transform: translateY(-2px); }

/* ============ shared ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--c2);
  margin-bottom: 18px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c2);
  box-shadow: 0 0 0 0 rgba(34,211,238,0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section__head { max-width: 640px; margin-bottom: 54px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__lead, .section__head p:not(.eyebrow) { color: var(--text-mut); font-size: 1.08rem; margin-top: 14px; }

/* ============ hero ============ */
.hero { padding-block: clamp(70px, 11vw, 140px) clamp(40px, 6vw, 80px); text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 800; max-width: 16ch; margin-inline: auto; }
.hero__sub { color: var(--text-mut); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; margin: 26px auto 0; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__stats {
  display: flex; gap: clamp(20px, 5vw, 64px); justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border);
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; }
.hero__stats strong {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }

/* ============ marquee ============ */
.marquee-wrap { padding-block: 8px 24px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex; gap: 28px; align-items: center; white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display); font-weight: 600; color: var(--text-dim); font-size: 1.05rem;
}
.marquee__track span:nth-child(even) { color: var(--c1); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ cards ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--text-mut); font-size: 0.98rem; }
.card__list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card__list li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 0.9rem; }
.card__list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--c2); font-weight: 700;
}

/* ============ steps ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step {
  padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  position: relative; transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step__num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px; opacity: 0.95;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-mut); font-size: 0.95rem; }

/* ============ about ============ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; }
.about__text p { color: var(--text-mut); margin-bottom: 16px; font-size: 1.05rem; }
.about__text .btn { margin-top: 10px; }

.about__panel { position: relative; }
.terminal {
  background: #0a0a18; border: 1px solid var(--border-strong); border-radius: var(--r);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(139,92,246,0.12);
  overflow: hidden;
}
.terminal__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a40; }
.terminal__bar span:nth-child(1) { background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__body {
  padding: 22px; font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.9rem; line-height: 1.8; color: var(--text); overflow-x: auto;
}
.c-mut { color: var(--text-dim); }
.c-key { color: #c084fc; }
.c-fn  { color: #22d3ee; }
.c-str { color: #5af08a; }

/* ============ cta ============ */
.cta {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(139,92,246,0.22), transparent 60%),
    radial-gradient(ellipse 80% 120% at 100% 100%, rgba(34,211,238,0.18), transparent 60%),
    var(--bg-soft);
}
.cta__inner { padding: clamp(36px, 6vw, 64px); max-width: 720px; margin-inline: auto; text-align: center; }
.cta__inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta__lead { color: var(--text-mut); font-size: 1.1rem; margin-top: 14px; }

/* ============ form ============ */
.form { margin-top: 32px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-mut); margin-bottom: 16px; }
.form input, .form textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font-body); font-size: 0.97rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-dim); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--c2); box-shadow: 0 0 0 3px rgba(34,211,238,0.15);
}
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form__note { margin-top: 16px; font-size: 0.92rem; color: var(--c2); min-height: 1.2em; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--border); margin-top: 40px; padding-block: 44px 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.footer__brand .brand__name { font-size: 1.4rem; }
.footer__brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer__links a { color: var(--text-mut); font-size: 0.95rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; color: var(--text-dim); font-size: 0.87rem; }

/* ============ whatsapp fab ============ */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #25d366, #128c4b);
  box-shadow: 0 10px 30px rgba(18,140,75,0.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: wa-pulse 2.4s infinite;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 14px 38px rgba(37,211,102,0.6); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 540px) { .wa-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; } }

/* ============ reveal anim ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 36px; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(7,7,16,0.97); backdrop-filter: blur(16px);
    padding: 18px 24px 28px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s var(--ease); align-items: stretch;
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 12px 4px; font-size: 1.05rem; }
  .nav__cta { text-align: center; margin-top: 8px; }
}
@media (max-width: 540px) {
  .form__row { grid-template-columns: 1fr; }
  .hero__actions .btn, .form__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
