/* ===================================================================
   sinergIA — design tokens
   =================================================================== */
@font-face {
  font-family: "Nexa";
  src: url("../assets/fonts/Nexa-Heavy.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nexa";
  src: url("../assets/fonts/Nexa-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Karla";
  src: url("../assets/fonts/Karla-Regular.ttf") format("truetype");
  font-weight: 400 800;
}

:root {
  /* color */
  --bg:            #0B0620;
  --bg-elevated:   #140C30;
  --bg-elevated-2: #1B1140;
  --line:          rgba(216, 219, 231, 0.14);
  --line-strong:   rgba(216, 219, 231, 0.28);
  --violet:        #AF3DF1;
  --violet-soft:   rgba(175, 61, 241, 0.14);
  --blue:          #2624C1;
  --heliotrope:    #A279FC;
  --mischka:       #D8DBE7;
  --white:         #FFFFFF;
  --ink-on-light:  #14102B;
  --wa:            #3DDC84;
  --fb:            #6C8CFF;
  --ig:            #FF7AC6;

  /* type */
  --f-display: "Nexa", "Poppins", sans-serif;
  --f-body: "Poppins", sans-serif;
  --f-data: "Karla", sans-serif;

  /* layout */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--mischka);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--white); margin: 0; font-family: var(--f-body); font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--heliotrope);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--f-data);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  margin: 0 0 14px;
}
.eyebrow--center { text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn--primary {
  background: var(--violet);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(175,61,241,0.0);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(175,61,241,0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--mischka);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--heliotrope); color: var(--white); }
.btn--block { width: 100%; }

/* ===================================================================
   Scroll progress thread
   =================================================================== */
.thread-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: transparent;
}
.thread-progress__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--heliotrope));
  transition: width 0.1s linear;
}

/* ===================================================================
   Nav
   =================================================================== */
.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 100;
  background: rgba(11, 6, 32, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.is-scrolled {
  background: rgba(11, 6, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--white); }
.nav__mark { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.nav__links a:not(.nav__cta) { color: var(--mischka); transition: color 0.15s ease; }
.nav__links a:not(.nav__cta):hover { color: var(--white); }
.nav__cta {
  background: var(--violet); color: var(--white); padding: 10px 20px; border-radius: 999px;
  font-weight: 600; transition: transform .18s ease, box-shadow .18s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(175,61,241,.6); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ===================================================================
   Hero
   =================================================================== */
.hero { padding: 168px var(--pad) 0; max-width: var(--maxw); margin: 0 auto; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero__lede { margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--mischka); max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__tagline { margin-top: 28px; font-style: italic; color: var(--heliotrope); font-size: 15px; }

.hero__visual { position: relative; }
.weave-svg { width: 100%; height: auto; overflow: visible; }
.thread { fill: none; stroke-width: 3; stroke-linecap: round; }
.thread--wa { stroke: var(--wa); opacity: .85; }
.thread--fb { stroke: var(--fb); opacity: .85; }
.thread--ig { stroke: var(--ig); opacity: .85; }
.thread--merged { stroke: var(--violet); stroke-width: 5; }
.node { fill: var(--bg); stroke-width: 3; }
.node--wa { stroke: var(--wa); }
.node--fb { stroke: var(--fb); }
.node--ig { stroke: var(--ig); }
.mark-wrap { fill: var(--white); }

.thread {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.6s ease forwards;
}
.thread--fb { animation-delay: .15s; }
.thread--ig { animation-delay: .3s; }
.thread--merged { animation-delay: .55s; animation-duration: 1s; }
.mark-wrap { opacity: 0; animation: fadein .6s ease forwards; animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.hero__labels { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; top: 0; height: 100%; pointer-events: none; }
.hero__label {
  position: absolute; font-family: var(--f-data); font-size: 12px; letter-spacing: .04em;
  color: var(--mischka); background: var(--bg-elevated); padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}
.hero__label--wa { left: -6px; top: 16%; }
.hero__label--fb { left: -6px; top: 47%; }
.hero__label--ig { left: -6px; top: 78%; }

.stat-strip {
  margin-top: 90px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip__item {
  padding: 26px 14px; text-align: center; border-left: 1px solid var(--line);
}
.stat-strip__item:first-child { border-left: none; }
.stat-strip__value {
  display: block; font-family: var(--f-data); font-weight: 800; font-size: 28px; color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-strip__label { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mischka); font-family: var(--f-data); }

/* ===================================================================
   Reveal on scroll
   =================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================================================================
   Split: problema / solución
   =================================================================== */
.split { max-width: var(--maxw); margin: 0 auto; padding: 140px var(--pad) 40px; }
.split__head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.transcripts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.transcript {
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.transcript--before { border-color: rgba(255,122,122,0.25); }
.transcript--after { border-color: rgba(175,61,241,0.35); }
.transcript__tag {
  display: inline-block; font-family: var(--f-data); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: #FF8C8C; margin-bottom: 18px; font-weight: 700;
}
.transcript__tag--live { color: var(--heliotrope); }
.transcript__list li {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.transcript__list li:first-child { border-top: none; }
.t-time { font-family: var(--f-data); font-size: 12.5px; color: rgba(216,219,231,0.55); min-width: 40px; font-variant-numeric: tabular-nums; }
.t-msg { flex: 1; font-size: 14.5px; color: var(--mischka); }
.t-msg--reply { color: var(--white); font-weight: 500; }
.t-status { font-family: var(--f-data); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.t-status--wait { background: rgba(255,140,140,0.12); color: #FF8C8C; }
.t-status--lost { background: rgba(255,90,90,0.18); color: #FF6A6A; font-weight: 700; }
.t-status--ok { background: var(--violet-soft); color: var(--heliotrope); font-weight: 700; }
.split__foot { margin-top: 36px; max-width: 68ch; font-size: 16px; color: var(--mischka); }

/* ===================================================================
   Steps
   =================================================================== */
.steps { max-width: var(--maxw); margin: 0 auto; padding: 100px var(--pad); }
.steps__head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.steps__list { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps__list::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--heliotrope), var(--violet), var(--blue));
  opacity: .5;
}
.step { position: relative; padding: 0 20px 0 0; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elevated);
  border: 1px solid var(--line-strong); color: var(--heliotrope);
  font-family: var(--f-data); font-weight: 800; font-size: 14px; margin-bottom: 20px; position: relative; z-index: 1;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--mischka); max-width: 30ch; }

/* ===================================================================
   Demo (phone)
   =================================================================== */
.demo { max-width: var(--maxw); margin: 0 auto; padding: 100px var(--pad); display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: center; }
.demo__copy h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.demo__copy p { color: var(--mischka); font-size: 16px; max-width: 46ch; }
.demo__tabs { display: flex; gap: 10px; margin-top: 28px; }
.demo__tab {
  background: var(--bg-elevated); border: 1px solid var(--line); color: var(--mischka);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.demo__tab.is-active { background: var(--violet); border-color: var(--violet); color: var(--white); }

.phone {
  justify-self: center; width: 300px; background: #0E0826; border: 1px solid var(--line-strong);
  border-radius: 34px; padding: 14px 10px 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  position: relative;
}
.phone__notch { width: 90px; height: 18px; background: #0E0826; border-radius: 0 0 14px 14px; margin: 0 auto 6px; position: relative; z-index: 2; }
.phone__header { display: flex; justify-content: space-between; align-items: center; padding: 4px 14px 12px; border-bottom: 1px solid var(--line); }
.phone__title { font-size: 13.5px; font-weight: 700; color: var(--white); }
.phone__status { font-size: 11px; color: var(--heliotrope); font-family: var(--f-data); }
.phone__body { padding: 16px 12px; min-height: 340px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.bubble--in { align-self: flex-start; background: var(--bg-elevated-2); color: var(--mischka); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--violet); color: var(--white); border-bottom-right-radius: 4px; }
.bubble--meta { align-self: flex-end; font-family: var(--f-data); font-size: 10.5px; color: rgba(216,219,231,0.45); margin-top: -4px; }
.phone__inputbar { margin: 8px 10px 14px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 12.5px; color: rgba(216,219,231,0.4); }

/* ===================================================================
   Results
   =================================================================== */
.results { max-width: var(--maxw); margin: 0 auto; padding: 100px var(--pad); text-align: center; }
.results__title { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; max-width: 900px; margin: 0 auto; }
.results__title span { color: var(--violet); }
.results__grid { margin-top: 60px; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); }
.results__item { padding: 30px 16px; border-left: 1px solid var(--line); text-align: left; }
.results__item:first-child { border-left: none; }
.results__item h3 { font-size: 16px; margin-bottom: 6px; }
.results__item p { font-size: 14px; color: var(--mischka); }

/* ===================================================================
   Pricing
   =================================================================== */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: 100px var(--pad); }
.pricing__head { text-align: center; }
.pricing__head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.pricing__table-wrap { margin-top: 52px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pricing__table { width: 100%; border-collapse: collapse; min-width: 640px; font-family: var(--f-data); }
.pricing__table th, .pricing__table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.pricing__table thead th { background: var(--bg-elevated); position: sticky; top: 0; }
.plan-head { vertical-align: top; }
.plan-head__name { font-family: var(--f-body); font-weight: 700; color: var(--white); font-size: 17px; display: block; }
.plan-head__tagline { font-weight: 400; font-size: 12.5px; color: var(--mischka); display: block; margin-top: 4px; }
.plan-head__price { display: block; margin-top: 12px; font-family: var(--f-data); font-weight: 800; font-size: 24px; color: var(--white); }
.plan-head__price span { font-size: 12px; font-weight: 400; color: var(--mischka); }
.plan-head.is-highlighted { background: var(--violet-soft); }
.pricing__table td.feature-name { color: var(--mischka); }
.pricing__table td.cell-yes { color: var(--heliotrope); font-weight: 700; }
.pricing__table td.cell-no { color: rgba(216,219,231,0.3); }
.pricing__table tbody tr:last-child td { border-bottom: none; }
.plan-cta { margin-top: 14px; }
.pricing__note { margin-top: 20px; font-size: 13px; color: rgba(216,219,231,0.5); text-align: center; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { max-width: 860px; margin: 0 auto; padding: 100px var(--pad); }
.faq__head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.faq__list { margin-top: 40px; }
.faq__item { border-top: 1px solid var(--line); padding: 20px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; font-weight: 600; color: var(--white); font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--violet); font-size: 20px; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin-top: 14px; color: var(--mischka); font-size: 14.5px; max-width: 65ch; }

/* ===================================================================
   Contact
   =================================================================== */
.contact { max-width: var(--maxw); margin: 0 auto; padding: 100px var(--pad) 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact__copy h2 { font-size: clamp(26px, 3.2vw, 40px); margin: 10px 0 16px; }
.contact__copy p { color: var(--mischka); font-size: 16px; max-width: 40ch; }
.contact__form { background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 13px; font-weight: 600; color: var(--mischka); font-family: var(--f-data); text-transform: uppercase; letter-spacing: .04em; padding: 0; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  color: var(--white); font-family: var(--f-body); font-size: 14.5px; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: none; }
.field--channels { border: none; margin: 0; display: flex; flex-direction: row; gap: 18px; flex-wrap: wrap; align-items: center; }
.checkbox { display: flex; align-items: center; gap: 7px; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--mischka); }
.form__status { font-size: 13.5px; min-height: 18px; color: var(--heliotrope); }
.form__status.is-error { color: #FF8C8C; }

/* ===================================================================
   Footer
   =================================================================== */
.footer { border-top: 1px solid var(--line); padding: 50px var(--pad) 40px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__mark { width: 32px; height: 32px; }
.footer__tagline { font-style: italic; color: var(--heliotrope); font-size: 14px; }
.footer__links { display: flex; gap: 24px; font-size: 14px; color: var(--mischka); flex-wrap: wrap; justify-content: center; }
.footer__links a:hover { color: var(--white); }
.footer__legal { font-size: 12px; color: rgba(216,219,231,0.4); margin-top: 10px; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .split__head, .steps__head, .pricing__head, .faq__head { text-align: left; }
  .transcripts { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps__list::before { display: none; }
  .demo { grid-template-columns: 1fr; }
  .phone { justify-self: start; margin-top: 30px; }
  .results__grid { grid-template-columns: 1fr 1fr; }
  .results__item { border-left: none !important; border-top: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; top: 64px; left: 0; right: 0; background: rgba(11,6,32,0.98); backdrop-filter: blur(10px); flex-direction: column; align-items: stretch; padding: 20px var(--pad) 30px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .nav__links.is-open { transform: translateY(0); }
  .nav__cta { text-align: center; }
  .nav__toggle { display: flex; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip__item:nth-child(2n+1) { border-left: none; }
  .stat-strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps__list { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .results__item { border-left: none !important; }
}
