/* ============================================================
   SYNERGENTIC.AI — DEMO-LED HOMEPAGE ADDITIONS
   Layered on top of styles.css. WhatsApp receptionist demo,
   inline lead form, customer-journey, assessment CTA.
   ============================================================ */

/* ---- wordmark: the silver lining + brighter top rim are now baked into the
   artwork for the silver letters only (".AI" left clean), so no CSS edge needed. ---- */

/* ---- language switch (EN / ES) ---- */
.lang-switch{ display:inline-flex; align-items:center; gap:1px; padding:2px; border-radius:999px;
  border:1px solid var(--border-subtle); background:rgba(13,18,32,0.55); }
.ls-btn{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.06em; font-weight:500;
  color:var(--text-muted); background:none; border:none; cursor:pointer; padding:4px 8px; border-radius:999px;
  transition:color .15s ease, background .2s ease; }
.ls-btn:hover{ color:var(--text-secondary); }
.ls-btn.active{ color:#fff; background:var(--grad-cta-hot); }
.mm-lang{ margin-top:22px; align-self:flex-start; }
.mm-lang .ls-btn{ font-size:13px; padding:9px 16px; }

/* ---- hero rebalanced for the demo ---- */
.hero.demo-hero{ padding:72px 0 64px; }
.hero.demo-hero .hero-grid{ grid-template-columns:1.02fr 0.98fr; gap:56px; align-items:start; }
.hero.demo-hero h1{ font-size:clamp(38px,4.9vw,62px); margin:20px 0 0; }
.hero.demo-hero .lede{ font-size:17.5px; max-width:500px; margin:20px 0 0; }
.hero-trust{ display:flex; align-items:center; gap:14px; margin-top:22px; flex-wrap:wrap;
  font-family:var(--font-mono); font-size:11px; letter-spacing:0.06em; color:var(--text-muted); }
.hero-trust .seg{ display:inline-flex; align-items:center; gap:8px; }
.hero-trust .seg svg{ width:15px; height:15px; color:var(--emerald); flex:0 0 15px; }
.hero-trust .sep{ width:1px; height:13px; background:var(--border-strong); }

/* ---- inline demo lead form (the hero CTA) ---- */
.demo-card{ margin-top:28px; background:linear-gradient(180deg,rgba(13,18,32,0.7),rgba(9,13,24,0.65));
  border:1px solid var(--border-strong); border-radius:var(--r-lg); padding:22px;
  box-shadow:var(--shadow-card); position:relative; max-width:500px; }
.demo-card .dc-lead{ display:flex; align-items:center; gap:9px; margin:0 0 16px;
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--electric-orchid); }
.demo-card .dc-lead .pulse{ width:6px; height:6px; border-radius:50%; background:var(--emerald); box-shadow:0 0 12px var(--emerald); }
.demo-form .df-field{ display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.demo-form label{ font-family:var(--font-mono); font-size:10px; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-muted); }
.demo-form input,.demo-form select{ background:var(--surface-input); border:1px solid var(--border-subtle); color:var(--text-primary);
  padding:13px 14px; border-radius:var(--r-md); font-family:var(--font-body); font-size:14.5px; outline:none; width:100%;
  transition:border-color .15s ease,box-shadow .15s ease; }
.demo-form input::placeholder{ color:var(--text-disabled); }
.demo-form input:focus,.demo-form select:focus{ border-color:var(--royal-violet); box-shadow:0 0 0 3px rgba(109,53,255,0.18); }
.demo-form select{ appearance:none; -webkit-appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F7480' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
.demo-form select.placeholder{ color:var(--text-disabled); }
.df-phone{ display:grid; grid-template-columns:108px 1fr; gap:9px; }
.df-phone select{ padding-left:12px; padding-right:26px; background-position:right 9px center; font-family:var(--font-mono); font-size:13px; }

/* progressive-disclosure detail block */
.df-more{ overflow:hidden; max-height:0; opacity:0; transition:max-height .45s cubic-bezier(.4,0,.2,1),opacity .35s ease,margin .35s ease; }
.df-more.open{ max-height:360px; opacity:1; margin-top:2px; }
.df-more .df-more-inner{ padding:14px 0 4px; border-top:1px dashed var(--border-strong); margin-top:6px; }
.df-more .df-more-hint{ font-family:var(--font-mono); font-size:10px; letter-spacing:0.1em; color:var(--text-muted); margin:0 0 12px;
  display:flex; align-items:center; gap:8px; }
.df-more .df-more-hint b{ color:var(--electric-orchid); font-weight:500; }

.demo-form .df-submit{ width:100%; margin-top:6px; font-size:15px; padding:15px 22px; }
.demo-form .df-foot{ font-family:var(--font-mono); font-size:10px; letter-spacing:0.06em; color:var(--text-muted);
  margin:13px 0 0; text-align:center; line-height:1.6; }

/* demo success state */
.demo-success{ display:none; text-align:center; padding:14px 6px 6px; }
.demo-success.show{ display:block; animation:popIn .4s ease; }
@keyframes popIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.demo-success .ds-check{ width:54px; height:54px; border-radius:16px; margin:0 auto 16px; display:grid; place-items:center;
  background:linear-gradient(180deg,rgba(37,211,102,0.18),rgba(37,211,102,0.06)); border:1px solid rgba(37,211,102,0.4); color:#25d366; }
.demo-success .ds-check svg{ width:28px; height:28px; }
.demo-success h3{ font-size:21px; margin:0 0 8px; }
.demo-success p{ font-size:14px; color:var(--text-secondary); margin:0 auto; max-width:340px; line-height:1.55; }
.demo-success .ds-num{ color:var(--text-primary); font-family:var(--font-mono); }
.demo-success .ds-actions{ display:flex; gap:10px; justify-content:center; margin-top:20px; flex-wrap:wrap; }
.btn-wa{ background:#25d366; color:#04261a; font-weight:600; }
.btn-wa:hover{ background:#22c35e; }
.btn-wa svg{ width:17px; height:17px; }
.demo-success .ds-reset{ background:none; border:none; color:var(--text-muted); font-family:var(--font-mono); font-size:11px;
  letter-spacing:0.06em; cursor:pointer; text-decoration:underline; text-underline-offset:3px; padding:6px; }
.demo-success .ds-reset:hover{ color:var(--text-secondary); }

/* ============================================================
   WHATSAPP RECEPTIONIST MOCKUP
   ============================================================ */
.wa-stage{ position:relative; }
.wa-stage::before{ content:""; position:absolute; inset:-30px -20px; z-index:0;
  background:radial-gradient(closest-side,rgba(37,211,102,0.10),transparent 72%); pointer-events:none; }
.wa{ position:relative; z-index:1; width:100%; max-width:392px; margin:0 auto; border-radius:26px; overflow:hidden;
  background:#0b141a; border:1px solid var(--border-strong);
  box-shadow:0 1px 0 rgba(255,255,255,0.04) inset, 0 40px 90px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(37,211,102,0.05); }
/* header */
.wa-head{ display:flex; align-items:center; gap:12px; padding:13px 16px; background:#1f2c33; }
.wa-back{ color:#aebac1; display:flex; }
.wa-back svg{ width:20px; height:20px; }
.wa-av{ width:40px; height:40px; border-radius:50%; flex:0 0 40px; display:grid; place-items:center;
  background:var(--grad-mark); color:#fff; font-family:var(--font-mono); font-size:14px; font-weight:600; letter-spacing:-0.02em; overflow:hidden; }
.wa-av img{ width:62%; height:62%; object-fit:contain; }
.wa-id{ min-width:0; flex:1; }
.wa-id .nm{ color:#e9edef; font-size:15px; font-weight:600; letter-spacing:-0.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wa-id .st{ color:#25d366; font-size:11.5px; margin-top:1px; display:flex; align-items:center; gap:6px; }
.wa-id .st::before{ content:""; width:6px; height:6px; border-radius:50%; background:#25d366; }
.wa-icons{ display:flex; gap:18px; color:#aebac1; }
.wa-icons svg{ width:19px; height:19px; }
/* body */
.wa-body{ position:relative; height:430px; padding:16px 14px 12px; overflow:hidden;
  background:#0b141a;
  background-image:
    radial-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(180deg,#0b141a,#0b141a);
  background-size:18px 18px,100% 100%;
  display:flex; flex-direction:column; gap:9px; justify-content:flex-end; }
.wa-day{ align-self:center; background:#182229; color:#8696a0; font-size:10.5px; letter-spacing:0.04em;
  padding:5px 12px; border-radius:8px; margin-bottom:4px; font-family:var(--font-mono); }
.wa-msg{ max-width:80%; padding:8px 11px 7px; border-radius:10px; font-size:13.6px; line-height:1.42; color:#e9edef;
  position:relative; box-shadow:0 1px 1px rgba(0,0,0,0.2); word-wrap:break-word; }
.wa-msg .meta{ display:block; text-align:right; font-size:9.5px; color:rgba(233,237,239,0.45); margin-top:3px; font-family:var(--font-mono); }
.wa-msg.them{ align-self:flex-start; background:#1f2c33; border-top-left-radius:3px; }
.wa-msg.me{ align-self:flex-end; background:#005c4b; border-top-right-radius:3px; }
.wa-msg.me .meta{ color:rgba(233,237,239,0.55); display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.wa-msg.me .meta svg{ width:14px; height:14px; color:#53bdeb; }
/* entrance animation for dynamically added bubbles */
.wa-msg.enter{ animation:waPop .32s cubic-bezier(.2,.7,.3,1.2) both; }
@keyframes waPop{ from{ opacity:0; transform:translateY(10px) scale(0.96); } to{ opacity:1; transform:none; } }
/* typing indicator */
.wa-typing{ align-self:flex-start; background:#1f2c33; border-top-left-radius:3px; border-radius:10px; padding:11px 13px;
  display:inline-flex; gap:4px; align-items:center; }
.wa-typing i{ width:7px; height:7px; border-radius:50%; background:#8696a0; opacity:0.5; animation:waDot 1.2s infinite; }
.wa-typing i:nth-child(2){ animation-delay:.2s; } .wa-typing i:nth-child(3){ animation-delay:.4s; }
@keyframes waDot{ 0%,60%,100%{ transform:translateY(0); opacity:0.4; } 30%{ transform:translateY(-4px); opacity:0.9; } }
/* input bar */
.wa-input{ display:flex; align-items:center; gap:10px; padding:9px 12px; background:#1f2c33; }
.wa-input .box{ flex:1; background:#2a3942; border-radius:18px; padding:9px 14px; color:#8696a0; font-size:13px; }
.wa-input .send{ width:38px; height:38px; border-radius:50%; flex:0 0 38px; background:#25d366; display:grid; place-items:center; color:#04261a; }
.wa-input .send svg{ width:18px; height:18px; }
/* caption under phone */
.wa-cap{ position:relative; z-index:1; text-align:center; margin-top:18px; font-family:var(--font-mono);
  font-size:10.5px; letter-spacing:0.1em; color:var(--text-muted); }
.wa-cap b{ color:var(--text-secondary); font-weight:500; }

/* ============================================================
   CUSTOMER JOURNEY — Try / Keep / Go deeper
   ============================================================ */
.journey{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.jcard{ position:relative; background:var(--surface-raised); border:1px solid var(--border-subtle);
  border-radius:var(--r-lg); padding:32px 30px; display:flex; flex-direction:column; transition:border-color .2s ease,transform .2s ease; }
.jcard:hover{ transform:translateY(-2px); }
.jcard .jstep{ font-family:var(--font-mono); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--text-muted); }
.jcard .jstep b{ color:var(--electric-orchid); font-weight:500; }
.jcard .jico{ width:50px; height:50px; border-radius:var(--r-md); display:grid; place-items:center; margin:18px 0 18px;
  background:linear-gradient(180deg,rgba(193,59,255,0.16),rgba(109,53,255,0.06)); border:1px solid rgba(193,59,255,0.2); color:var(--electric-orchid); }
.jcard .jico svg{ width:24px; height:24px; }
.jcard h3{ font-size:21px; font-weight:600; margin:0 0 10px; letter-spacing:-0.015em; }
.jcard p{ font-size:14px; line-height:1.6; color:var(--text-secondary); margin:0 0 22px; }
.jcard .jlink{ margin-top:auto; font-family:var(--font-mono); font-size:12px; letter-spacing:0.04em; color:var(--text-primary);
  display:inline-flex; align-items:center; gap:8px; transition:gap .2s ease,color .2s ease; }
.jcard .jlink svg{ width:14px; height:14px; transition:transform .2s ease; }
.jcard:hover .jlink{ color:var(--electric-orchid); }
.jcard:hover .jlink svg{ transform:translateX(3px); }
/* first card highlighted as entry point */
.jcard.entry{ border-color:rgba(37,211,102,0.4);
  background:radial-gradient(600px 200px at 50% -10%,rgba(37,211,102,0.10),transparent 60%),var(--surface-raised); }
.jcard.entry .jstep b{ color:#25d366; }
.jcard.entry .jico{ background:linear-gradient(180deg,rgba(37,211,102,0.18),rgba(37,211,102,0.05)); border-color:rgba(37,211,102,0.3); color:#25d366; }
.jcard.entry:hover .jlink{ color:#25d366; }
.jcard .jfree{ position:absolute; top:26px; right:26px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:0.1em;
  text-transform:uppercase; padding:4px 9px; border-radius:999px; }
.jcard.entry .jfree{ background:rgba(37,211,102,0.12); color:#25d366; border:1px solid rgba(37,211,102,0.3); }
.jcard .jfree.sub{ background:rgba(193,59,255,0.12); color:var(--electric-orchid); border:1px solid rgba(193,59,255,0.3); }

/* ---- responsive ---- */
@media (max-width:1080px){
  .hero.demo-hero .hero-grid{ grid-template-columns:1fr; gap:48px; }
  .wa-stage{ max-width:420px; margin:0 auto; }
  .journey{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .demo-card{ max-width:none; }
  .wa-body{ height:380px; }
}
