:root{
  --bg: #12141c;
  --bg-alt: #171a24;
  --surface: #1c202c;
  --surface-2: #232838;
  --border: #2c3244;
  --text: #f4f5f7;
  --text-dim: #a7acc0;
  --orange-1: #f9a227;
  --orange-2: #e8452c;
  --gradient: linear-gradient(135deg, var(--orange-1), var(--orange-2));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --maxw: 1120px;

  /* WhatsApp simulator palette (authentic WA dark theme) */
  --wa-bg: #0b141a;
  --wa-panel: #111b21;
  --wa-header: #202c33;
  --wa-in: #202c33;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-text-dim: #8696a0;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3{ font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0; line-height: 1.15; }
p{ margin: 0; }
a{ color: inherit; }
ul{ margin:0; padding:0; }
img{ max-width: 100%; display:block; }
button{ font-family: inherit; cursor: pointer; }

.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---------- Header ---------- */
.header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(18,20,28,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled{ background: rgba(18,20,28,.92); border-bottom-color: var(--border); }
.header__row{ display:flex; align-items:center; justify-content: space-between; height: 68px; }

.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand__logo{ width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.brand__name{ font-family:'Space Grotesk',sans-serif; font-weight:700; letter-spacing:.08em; font-size: 18px; }

.nav{ display:flex; align-items:center; gap: 28px; }
.nav__link{ text-decoration:none; color: var(--text-dim); font-weight:500; font-size:15px; transition: color .2s ease; }
.nav__link:hover{ color: var(--text); }
.nav__link--cta{
  color:#fff; background: var(--gradient); padding: 9px 18px; border-radius: 999px;
  font-weight:600;
}
.nav__link--cta:hover{ color:#fff; opacity:.92; }

.burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 40px; height: 40px; background:none; border:none; padding: 0;
}
.burger span{ display:block; width: 24px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .3s ease, opacity .3s ease; border-radius: 2px; }
.burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
  opacity:0; pointer-events:none; transition: opacity .3s ease; z-index: 90;
}
.nav-overlay.is-visible{ opacity:1; pointer-events:auto; }

/* ---------- Hero ---------- */
.hero{
  position: relative; min-height: 100svh; display:flex; align-items:center;
  padding: 120px 0 80px; overflow:hidden;
}
.hero__glow{
  position:absolute; top:-20%; right:-15%; width: 70vw; height: 70vw; max-width: 700px; max-height:700px;
  background: radial-gradient(circle, rgba(232,69,44,.35), transparent 65%);
  filter: blur(10px); pointer-events:none;
}
.hero__content{ position: relative; max-width: 680px; }
.eyebrow{
  display:inline-block; color: var(--orange-1); font-weight:700; letter-spacing:.12em; text-transform:uppercase; font-size: 13px; margin-bottom: 18px;
}
.hero__title{ font-size: clamp(32px, 6vw, 56px); font-weight:700; margin-bottom: 20px; }
.hero__subtitle{ font-size: 17px; line-height:1.65; color: var(--text-dim); margin-bottom: 32px; }
.hero__actions{ display:flex; gap:14px; flex-wrap:wrap; }

.scroll-cue{ position:absolute; bottom: 28px; left:50%; transform: translateX(-50%); }
.scroll-cue span{
  display:block; width: 22px; height: 36px; border: 2px solid var(--border); border-radius: 20px; position:relative;
}
.scroll-cue span::before{
  content:""; position:absolute; top:6px; left:50%; width:4px; height:8px; background: var(--orange-1);
  border-radius: 2px; transform: translateX(-50%); animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove{ 0%,100%{ opacity:1; top:6px;} 50%{ opacity:.3; top:16px; } }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 14px 26px; border-radius: 999px; font-weight:600; font-size:15px;
  text-decoration:none; border: none; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active{ transform: scale(.97); }
.btn--primary{ background: var(--gradient); color:#fff; box-shadow: 0 12px 30px -10px rgba(232,69,44,.55); }
.btn--primary:hover{ box-shadow: 0 16px 36px -10px rgba(232,69,44,.7); }
.btn--ghost{ background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover{ border-color: var(--orange-1); color: var(--orange-1); }
.btn--lg{ padding: 16px 32px; font-size:16px; }
.btn--block{ width:100%; margin-top: 8px; }
.btn--whatsapp{ background:#25D366; color:#06280f; }
.btn--whatsapp:hover{ opacity:.92; }

/* ---------- Sections ---------- */
.section{ padding: 90px 0; }
.section--alt{ background: var(--bg-alt); }
.tag{
  display:inline-block; background: var(--surface-2); color: var(--orange-1); border: 1px solid var(--border);
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section__title{ font-size: clamp(26px, 4.5vw, 38px); font-weight:700; margin-bottom: 14px; }
.section__lead{ font-size: 16px; color: var(--text-dim); max-width: 620px; line-height:1.6; margin-bottom: 44px; }
.center{ text-align:center; }
.center .section__lead{ margin-left:auto; margin-right:auto; }

/* ---------- Grids & cards ---------- */
.grid{ display:grid; gap: 20px; }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(249,162,39,.4); box-shadow: var(--shadow); }
.card__icon{ font-size: 30px; margin-bottom: 14px; }
.card h3{ font-size: 18px; margin-bottom: 8px; }
.card p{ color: var(--text-dim); font-size: 14.5px; line-height:1.55; }

.card--service{
  text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display:flex; flex-direction:column; gap: 4px;
}
.card--service.is-active{ border-color: var(--orange-1); box-shadow: 0 0 0 1px var(--orange-1) inset; }
.card__tag{ color: var(--orange-1); font-size: 12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.card__list{ list-style:none; margin: 12px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.card__list li{ position:relative; padding-left: 16px; font-size: 13px; color: var(--text-dim); line-height:1.5; }
.card__list li::before{ content:"—"; position:absolute; left:0; color: var(--orange-1); }
.card__list--lg li{ font-size: 15px; }
.card__cta{ margin-top: 16px; color: var(--orange-1); font-weight:600; font-size: 13.5px; }

.feature{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature h3{ font-size: 19px; margin-bottom: 10px; }
.feature p{ color: var(--text-dim); font-size:14.5px; line-height:1.6; }

/* ---------- Manual / WhatsApp simulator ---------- */
.section--manual{ background: var(--bg-alt); }
.manual{ display:flex; flex-direction:column; align-items:center; gap: 22px; }
.manual__tabs{
  display:flex; gap:8px; background: var(--surface); border:1px solid var(--border); padding:6px; border-radius: 999px;
  flex-wrap:wrap; justify-content:center;
}
.manual__tab{
  background:none; border:none; color: var(--text-dim); font-weight:600; font-size: 14px; padding: 9px 18px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.manual__tab.is-active{ background: var(--gradient); color:#fff; }

.phone{
  width: 100%; max-width: 360px; background: var(--wa-bg); border-radius: 32px; border: 8px solid #05070a;
  box-shadow: var(--shadow); overflow:hidden; position:relative;
}
.phone__notch{
  position:absolute; top:0; left:50%; transform:translateX(-50%); width: 120px; height: 20px;
  background:#05070a; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone__header{
  background: var(--wa-header); display:flex; align-items:center; gap:10px; padding: 22px 16px 12px;
}
.phone__avatar{ width: 34px; height:34px; border-radius:50%; object-fit: cover; }
.phone__headerText{ display:flex; flex-direction:column; }
.phone__headerText strong{ color: var(--wa-text); font-size: 14.5px; }
.phone__headerText span{ color: #8fe4c4; font-size: 12px; }
.phone__body{
  background: var(--wa-panel); min-height: 420px; max-height: 460px; overflow-y:auto;
  padding: 16px; display:flex; flex-direction:column; gap: 10px;
  background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bubble-row{ display:flex; flex-direction:column; opacity:0; transform: translateY(8px); animation: bubbleIn .35s ease forwards; }
.bubble-row--out{ align-items:flex-end; }
.bubble-row--in{ align-items:flex-start; }
@keyframes bubbleIn{ to{ opacity:1; transform:translateY(0); } }

.bubble{
  max-width: 78%; padding: 9px 13px; border-radius: 13px; font-size: 13.5px; line-height:1.45;
  white-space: pre-line; color: var(--wa-text);
}
.bubble--in{ background: var(--wa-in); border-top-left-radius: 3px; }
.bubble--out{ background: var(--wa-out); border-top-right-radius: 3px; }

.bubble-photo-wrap{ display:flex; flex-direction:column; gap:6px; max-width:78%; margin-left:auto; }
.bubble-photo-wrap .bubble{ max-width:100%; }
.bubble-photo{
  width: 200px; max-width:100%; height: 130px; background: #2a3942; border-radius: 12px 12px 4px 4px;
  display:flex; align-items:center; justify-content:center; color: var(--wa-text-dim); font-size:12.5px;
}
.bubble-card{ width: 220px; border-radius: 13px; overflow:hidden; border-top-left-radius:3px; }
.bubble-card__img{ height: 110px; background:#2a3942; }
.bubble-card__body{ background: var(--wa-in); padding: 10px 12px; display:flex; flex-direction:column; gap:2px; }
.bubble-card__body strong{ font-size: 13.5px; color: var(--wa-text); }
.bubble-card__body em{ font-style:normal; font-size:12.5px; color:#00d9a3; }
.bubble-card__body small{ font-size: 11px; color: var(--wa-text-dim); }

.typing{ display:flex; gap:4px; padding: 10px 13px; background: var(--wa-in); border-radius: 13px; border-top-left-radius:3px; width:fit-content; }
.typing span{ width:6px; height:6px; border-radius:50%; background: var(--wa-text-dim); animation: typingBounce 1s infinite; }
.typing span:nth-child(2){ animation-delay:.15s; }
.typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typingBounce{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }

.manual__howto{ max-width: 560px; text-align:center; color: var(--text-dim); font-size: 14.5px; line-height:1.6; }
.manual__howto strong{ color: var(--orange-1); }

/* ---------- Pricing ---------- */
.price-box{ display:flex; flex-direction:column; gap: 14px; }
.price-box__row{ display:flex; align-items:baseline; justify-content:space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.price-box__row:last-of-type{ border-bottom:none; }
.price-box__label{ color: var(--text-dim); font-size: 14px; }
.price-box__value{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size: 18px; }
.price-box__value--accent{ color: var(--orange-1); font-size: 26px; }
.price-box__value--accent small{ font-size: 13px; color: var(--text-dim); font-weight:500; }

/* ---------- Contact ---------- */
.contact-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; display:flex; flex-direction:column; align-items:center; gap: 18px; text-align:center;
}
.contact-details p{ color: var(--text-dim); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer{ padding: 32px 0 100px; border-top: 1px solid var(--border); }
.footer__row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.brand--footer .brand__logo{ width:26px; height:26px; }
.brand--footer .brand__name{ font-size: 14px; }
.footer__copy{ color: var(--text-dim); font-size: 13px; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab{
  position: fixed; bottom: 22px; right: 22px; width: 58px; height:58px; border-radius:50%;
  background:#25D366; color:#06280f; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); z-index: 80; transition: transform .2s ease;
}
.whatsapp-fab:hover{ transform: scale(1.08); }
.whatsapp-fab::before{
  content:""; position:absolute; inset:0; border-radius:50%; background:#25D366; opacity:.5;
  animation: fabPulse 2.4s ease-out infinite;
}
@keyframes fabPulse{ 0%{ transform:scale(1); opacity:.5; } 100%{ transform:scale(1.9); opacity:0; } }

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 900px){
  .grid--4{ grid-template-columns: repeat(2,1fr); }
  .grid--3{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px){
  .nav{
    position: fixed; top: 68px; right: -100%; height: calc(100svh - 68px); width: min(78vw, 320px);
    background: var(--bg-alt); border-left: 1px solid var(--border);
    flex-direction:column; align-items:flex-start; gap: 4px; padding: 24px 20px;
    transition: right .35s ease; overflow-y:auto;
  }
  .nav.is-open{ right: 0; }
  .nav__link{ width:100%; padding: 14px 8px; border-bottom: 1px solid var(--border); font-size:16px; }
  .nav__link--cta{ margin-top: 12px; text-align:center; }
  .burger{ display:flex; }

  .grid--4, .grid--3, .grid--2{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
  .hero{ padding-top: 110px; }
  .hero__actions{ flex-direction:column; }
  .hero__actions .btn{ width:100%; }
  .contact-card{ padding: 28px 20px; }
  .whatsapp-fab{ bottom: 16px; right: 16px; width:52px; height:52px; }
  .phone__body{ max-height: 400px; }
}
