/* ===========================================================
   SECRETÁRIA VIRTUAL — Landing styles
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:root {
  /* Brand palette — derived from the avatar (teal hair → purple tips) + the login gradient */
  --brand-teal: #14B8A6;
  --brand-cyan: #06B6D4;
  --brand-blue: #4F46E5;
  --brand-purple: #7C3AED;
  --brand-violet: #A855F7;

  /* Surfaces (dark by default) */
  --bg:        #0A0B14;
  --bg-2:      #0F1120;
  --bg-3:      #161830;
  --card:      rgba(255,255,255,0.04);
  --card-hi:   rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.16);

  /* Text */
  --text:      #ECEDF5;
  --text-soft: #A4A7BC;
  --text-mute: #6E7290;

  /* Accents */
  --accent:        var(--brand-teal);
  --accent-2:      var(--brand-purple);
  --accent-grad:   linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-cyan) 30%, var(--brand-blue) 60%, var(--brand-purple) 100%);
  --hair-grad:     linear-gradient(180deg, #2DD4BF 0%, #06B6D4 40%, #6366F1 70%, #7C3AED 100%);

  /* Radii / shadows */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 4px 14px rgba(0,0,0,0.25);
  --shadow:    0 18px 60px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  --glow-teal:   0 0 60px rgba(20,184,166,0.35);
  --glow-purple: 0 0 60px rgba(124,58,237,0.35);

  --display-font: 'Exo 2', 'Inter', sans-serif;
  --body-font:    'Inter', sans-serif;
  --mono-font:    'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg:        #F7F8FC;
  --bg-2:      #FFFFFF;
  --bg-3:      #EEF1FA;
  --card:      #FFFFFF;
  --card-hi:   #FFFFFF;
  --border:    rgba(15,17,32,0.08);
  --border-hi: rgba(15,17,32,0.18);
  --text:      #0F1120;
  --text-soft: #495066;
  --text-mute: #7A809A;
}

/* ===========================================================
   Aurora background — soft gradient blobs animated subtly
   =========================================================== */
.aurora {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
}
.aurora__blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.55;
  animation: drift 22s ease-in-out infinite;
}
.aurora__blob.b1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, #14B8A6 0%, transparent 60%); }
.aurora__blob.b2 { top: 20%;  right:-15%; width: 55vw; height: 55vw; background: radial-gradient(circle, #7C3AED 0%, transparent 60%); animation-delay:-7s; }
.aurora__blob.b3 { bottom:-20%; left: 20%; width: 60vw; height: 60vw; background: radial-gradient(circle, #4F46E5 0%, transparent 60%); animation-delay:-14s; }
[data-theme="light"] .aurora__blob { opacity: 0.18; }

@keyframes drift {
  0%,100% { transform: translate(0,0)   scale(1); }
  33%     { transform: translate(4%,-3%) scale(1.08); }
  66%     { transform: translate(-3%,4%) scale(0.96); }
}

/* Faint grid overlay */
.grid-overlay {
  position: fixed; inset:0; z-index:1; pointer-events:none;
  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 at center, black 30%, transparent 80%);
}
[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(15,17,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,17,32,0.04) 1px, transparent 1px);
}

/* ===========================================================
   Layout primitives
   =========================================================== */
.wrap { width: min(1240px, 92vw); margin-inline: auto; position: relative; z-index: 2; }
section { position: relative; z-index: 2; padding: 120px 0; }

.eyebrow {
  display: inline-flex; align-items:center; gap: 10px;
  font-family: var(--body-font);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  backdrop-filter: blur(12px);
}
.eyebrow .dot {
  width: 6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3, h4 { font-family: var(--display-font); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 54px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p  { line-height: 1.6; color: var(--text-soft); margin: 0; }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ===========================================================
   NAV
   =========================================================== */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.topnav.scrolled {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand {
  display: flex; align-items:center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.brand__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background-image: url('../img/avatar/avatar_07.png');
  background-size: 140%; background-position: center 22%;
  background-color: var(--bg-3);
  border: 1.5px solid var(--border-hi);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.18);
}
.brand__name {
  font-family: var(--display-font); font-weight: 800; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.brand__name span {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-links { display:flex; align-items:center; gap: 6px; }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-cta { display: flex; align-items:center; gap: 10px; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-family: var(--body-font); font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .25s ease, background .2s, border-color .2s;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  color: var(--text); background: transparent;
  border-color: var(--border-hi);
}
.btn--ghost:hover { background: var(--card-hi); border-color: var(--text); }
.btn--primary {
  color: white;
  background: var(--brand-teal);
  box-shadow:
    0 8px 22px -8px rgba(20,184,166,0.5),
    0 2px 6px rgba(20,184,166,0.15);
  transition: filter .25s ease, transform .15s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn--primary:hover {
  background: var(--brand-purple);
  filter: brightness(1.05);
  box-shadow:
    0 12px 30px -8px rgba(124,58,237,0.55),
    0 2px 6px rgba(124,58,237,0.2);
}
.btn--primary::after {
  content:''; position:absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--lg { padding: 17px 28px; font-size: 16px; border-radius: 14px; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  gap: 56px; align-items: center;
  /* no width:100% — let .wrap's min(1240px, 92vw) + auto margins center the
     hero like every other section (the mock hugged the viewport edge). */
}
.hero-copy h1 { margin-top: 0; font-size: clamp(40px, 4.4vw, 62px); }
.hero-copy h1 .underline-word {
  position: relative; display: inline-block;
}
.hero-copy h1 .underline-word::after {
  content:''; position:absolute; left: 0; right: 0; bottom: 6px; height: 14px;
  background: var(--accent-grad);
  border-radius: 14px; z-index: -1; opacity: 0.35;
  transform: skewX(-8deg);
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-soft);
  margin-top: 24px;
  max-width: 540px;
}
.hero-ctas { display:flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta {
  display:flex; align-items:center; gap: 18px;
  margin-top: 36px; flex-wrap: wrap;
  color: var(--text-mute); font-size: 13px;
}
.hero-meta .stat { display:flex; align-items:center; gap: 8px; }
.hero-meta .stat strong { color: var(--text); font-weight: 700; font-size: 16px; font-family: var(--display-font); }
.hero-meta .sep { width: 1px; height: 22px; background: var(--border); }

/* Hero avatar stage */
.avatar-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  /* Let the stage breathe beyond its grid cell on wide screens */
  width: 100%;
}
.avatar-stage__halo {
  position: absolute; inset: 6% 6% 0 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 60%, rgba(124,58,237,0.45), transparent 60%),
    conic-gradient(from 180deg at 50% 60%, rgba(20,184,166,0.5), rgba(99,102,241,0.4), rgba(124,58,237,0.5), rgba(20,184,166,0.5));
  filter: blur(40px);
  opacity: 0.7;
  animation: spin 20s linear infinite;
}
.avatar-stage__ring {
  position: absolute; left: 50%; top: 50%;
  width: 90%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  pointer-events: none;
  animation: spin 60s linear infinite reverse;
}
.avatar-stage__ring::before, .avatar-stage__ring::after {
  content:''; position:absolute; width: 12px; height:12px; border-radius:50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
.avatar-stage__ring::before { top: -6px; left: 50%; transform: translateX(-50%); }
.avatar-stage__ring::after  { bottom: -6px; left: 50%; transform: translateX(-50%); background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }

.avatar-stage__floor {
  position: absolute; left:50%; bottom: 4%;
  width: 70%; height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(8px);
  z-index: 1;
}
/* ===========================================================
   WORKSTATION SCENE — avatar (hero)
   =========================================================== */
.workstation {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: transparent;
  animation: ws-float 6s ease-in-out infinite;
  will-change: transform;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --parallax-r: 0deg;
  display: flex; align-items: flex-end; justify-content: center;
}

/* Full-body avatar fallback (used until assets/avatar-hero.mp4 is exported).
   width:100% + contain keeps the huge intrinsic image from inflating the
   hero grid column's min-content (which collapses the copy column).
   Bottom fade mirrors the video mask's soft edges. */
.ws-img {
  width: 100%;
  height: 118%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 12%);
          mask-image: linear-gradient(to top, transparent 0%, black 12%);
}
.hero-grid > * { min-width: 0; }

/* SVG mask: a heavily-blurred rectangle. The Gaussian falloff naturally
   feathers all four straight edges + the corners with the same softness. */
.ws-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;

  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'><defs><filter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'><feGaussianBlur stdDeviation='9'/></filter></defs><rect x='22' y='14' width='116' height='62' fill='black' filter='url(%23b)'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'><defs><filter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'><feGaussianBlur stdDeviation='9'/></filter></defs><rect x='22' y='14' width='116' height='62' fill='black' filter='url(%23b)'/></svg>");

  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
@keyframes ws-float {
  0%,100% { transform: translate(var(--parallax-x), calc(var(--parallax-y) - 0px)) rotate(var(--parallax-r)); }
  50%     { transform: translate(var(--parallax-x), calc(var(--parallax-y) - 10px)) rotate(var(--parallax-r)); }
}

/* Floating chat bubble */
.chat-bubble {
  position: absolute;
  z-index: 5;
  background: rgba(255,255,255,0.96);
  color: #0F1120;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 4px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 240px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  font-family: var(--body-font);
  animation: bubble-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.chat-bubble.left  { top: -8%; left: -6%; }
.chat-bubble.right { bottom: -6%; right: 1%; border-radius: 18px 18px 4px 18px; }
.chat-bubble__chan {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-purple); margin-bottom: 6px;
}
.chat-bubble__chan svg { width: 12px; height: 12px; }
.chat-bubble.wa .chat-bubble__chan { color: #25D366; }
.chat-bubble.ig .chat-bubble__chan { color: #E1306C; }
.chat-bubble__time { font-size: 10px; color: #8E92A8; margin-top: 4px; }

@keyframes bubble-pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Typing dots */
.typing { display:inline-flex; gap: 3px; padding: 2px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #6E7290; animation: tdot 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%,80%,100% { opacity:.3; transform: translateY(0); } 40% { opacity:1; transform: translateY(-3px); } }

/* ===========================================================
   META TRUST BAND
   =========================================================== */
.trust {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px;
}
.trust-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); max-width: 200px;
}
.trust-logos {
  display: flex; align-items: center; justify-content: center; gap: 64px;
  color: var(--text-soft);
}
.trust-logos .logo {
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px;
  opacity: 0.85; transition: opacity .2s;
}
.trust-logos .logo:hover { opacity: 1; }
.trust-logos .logo svg { width: 28px; height: 28px; }
.trust-badge {
  display: inline-flex; align-items:center; gap:8px;
  padding: 10px 16px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(124,58,237,0.12));
  border: 1px solid rgba(20,184,166,0.3);
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.trust-badge .verified { color: var(--brand-teal); }

/* ===========================================================
   SECTION HEADER
   =========================================================== */
.section-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  margin-bottom: 60px;
  max-width: 720px;
}
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }
.section-head p { font-size: 18px; }

/* ===========================================================
   FEATURE GRID
   =========================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  grid-column: span 4;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  transition: transform .3s, background .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
  min-height: 230px;
  display: flex; flex-direction: column; gap: 14px;
}
.feature::before {
  content:''; position:absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(124,58,237,0.18), transparent 60%);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-hi); background: var(--card-hi); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.feature.large { grid-column: span 6; min-height: 280px; }
.feature.wide  { grid-column: span 8; }
.feature.tall  { grid-column: span 4; grid-row: span 2; min-height: 480px; }

.feature__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(124,58,237,0.2));
  border: 1px solid var(--border-hi);
  display: grid; place-items: center;
  color: var(--accent);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 22px; }
.feature p  { font-size: 14.5px; color: var(--text-soft); }
.feature__tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); padding: 4px 9px; border-radius: 100px;
  background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.25);
}

/* Featured "no bans" card */
.feature.featured {
  background: linear-gradient(135deg, rgba(20,184,166,0.10), rgba(124,58,237,0.10));
  border-color: rgba(124,58,237,0.3);
}
.feature.featured .feature__icon { background: var(--accent-grad); color: white; border: none; box-shadow: var(--glow-teal); }

/* Mini chat preview for the "human-like" feature */
.feature__chat {
  margin-top: auto;
  background: rgba(0,0,0,0.25); border-radius: 12px;
  padding: 10px; font-family: var(--mono-font); font-size: 11.5px;
  color: var(--text-soft);
}
.feature__chat .line { display:flex; gap: 6px; align-items:flex-start; padding: 3px 0; }
.feature__chat .line .who { color: var(--accent); font-weight: 700; min-width: 28px; }

/* ===========================================================
   CHAT DEMO (phone mockup)
   =========================================================== */
.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.demo-copy h2 { margin-bottom: 24px; }
.demo-bullets { display:flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.demo-bullet {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.demo-bullet:hover { border-color: var(--border-hi); }
.demo-bullet.active { border-color: var(--accent); background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(124,58,237,0.08)); }
.demo-bullet__num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-grad); color: white;
  font-family: var(--display-font); font-weight: 700; font-size: 13px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.demo-bullet h4 { font-family: var(--body-font); font-size: 15px; margin: 0 0 4px; font-weight: 600; }
.demo-bullet p  { font-size: 13.5px; }

/* Phone */
.phone-wrap { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  width: 340px; height: 680px;
  background: #0a0a0f;
  border-radius: 44px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 60px 80px -30px rgba(124,58,237,0.4),
    0 30px 60px -20px rgba(0,0,0,0.6),
    inset 0 0 0 6px #1a1a26;
  padding: 14px;
  position: relative;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .6s;
}
.phone:hover { transform: rotateY(0) rotateX(0); }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #000; border-radius: 18px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: #0b141a; /* WA dark */
}
/* WhatsApp-style header */
.wa-header {
  display:flex; align-items:center; gap: 10px;
  padding: 38px 14px 12px;
  background: #1f2c33;
  color: white;
}
.wa-header__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background-image: url('../img/avatar/avatar_07.png');
  background-size: 145%; background-position: center 22%;
  background-color: #2a3b44;
  border: 1.5px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.wa-header__info { flex: 1; min-width: 0; }
.wa-header__name { font-size: 14.5px; font-weight: 600; line-height: 1.1; }
.wa-header__status { font-size: 11px; color: #8696a0; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.wa-header__status .live { width: 6px; height: 6px; border-radius: 50%; background: #25D366; box-shadow: 0 0 8px #25D366; }
.wa-header__icons { display:flex; gap: 14px; color: #aebac1; }

/* Chat area */
.wa-body {
  flex: 1; overflow: hidden;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 0 0, rgba(20,184,166,0.05), transparent 50%),
    #0b141a;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.msg {
  max-width: 80%;
  padding: 8px 10px 6px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #e9edef;
  position: relative;
  animation: msg-in .3s ease both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.me {
  align-self: flex-end;
  background: #005c4b;
  border-radius: 8px 8px 0 8px;
}
.msg.them {
  align-self: flex-start;
  background: #202c33;
  border-radius: 8px 8px 8px 0;
}
.msg .meta {
  display:flex; align-items:center; justify-content: flex-end; gap: 4px;
  font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 2px;
}
.msg .meta svg { width: 14px; height: 10px; }
.msg.typing-msg { padding: 10px 14px; }

/* WA input */
.wa-input {
  display:flex; align-items:center; gap: 8px;
  padding: 8px 10px;
  background: #1f2c33;
}
.wa-input__box {
  flex: 1; background: #2a3942; border-radius: 100px;
  padding: 10px 14px; color: #8696a0; font-size: 13px;
}
.wa-input__send {
  width: 42px; height: 42px; border-radius: 50%;
  background: #00a884; color: white;
  display: grid; place-items: center;
  cursor: pointer;
}

/* ===========================================================
   DASHBOARD PREVIEW
   =========================================================== */
.dashboard-preview {
  position: relative;
  margin-top: 60px;
  padding: 28px;
  background: linear-gradient(180deg, var(--card), transparent 80%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.dashboard-preview::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 50% -20%, rgba(124,58,237,0.18), transparent 60%);
  pointer-events: none;
}
.dash-window {
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.dash-window__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dash-window__bar .dots { display:flex; gap: 6px; }
.dash-window__bar .dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dash-window__bar .dots span:nth-child(1){ background: #FF5F57; }
.dash-window__bar .dots span:nth-child(2){ background: #FEBC2E; }
.dash-window__bar .dots span:nth-child(3){ background: #28C840; }
.dash-window__bar .url {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-mute); font-family: var(--mono-font);
}

.dash-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 460px;
}
.dash-sidebar {
  padding: 18px 14px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.dash-sidebar .item {
  display:flex; align-items:center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-soft); font-size: 13px; cursor: default;
}
.dash-sidebar .item.active { background: var(--card-hi); color: var(--text); }
.dash-sidebar .item svg { width: 16px; height: 16px; opacity: 0.7; }
.dash-sidebar .group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 12px 12px 6px;
}

.dash-content { padding: 24px; }
.dash-row { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.dash-row h4 { font-size: 18px; }
.dash-pill { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-mute); padding: 6px 10px; border: 1px solid var(--border); border-radius: 100px; }

.kpi-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
}
.kpi__label { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.kpi__val { font-family: var(--display-font); font-size: 26px; font-weight: 800; margin-top: 4px; }
.kpi__trend { font-size: 11px; color: var(--brand-teal); margin-top: 2px; }
.kpi__trend.down { color: #F87171; }

.dash-chart {
  margin-top: 16px;
  padding: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  height: 200px;
  position: relative;
}
.dash-chart svg { width: 100%; height: 100%; }

/* ===========================================================
   HOW IT WORKS
   =========================================================== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  position: relative;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s, border-color .3s;
}
.step:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.step__n {
  position: absolute;
  top: -20px; right: -10px;
  font-family: var(--display-font);
  font-weight: 800; font-size: 130px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-hi);
  opacity: 0.6;
}
.step h3 { font-size: 20px; }
.step p { font-size: 14px; }
.step__art {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 150px;
  height: 150px;
  opacity: 0.22;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.step:hover .step__art {
  opacity: 0.55;
  transform: translate(-4px, -4px) scale(1.05);
}

/* ===========================================================
   DIFFERENTIALS — Big quote-like rows
   =========================================================== */
.diff-list { display:flex; flex-direction: column; gap: 12px; }
.diff {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 28px 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .3s, background .3s;
}
.diff:hover { border-color: var(--border-hi); }
.diff__num {
  font-family: var(--display-font); font-weight: 800; font-size: 44px;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.04em;
  min-width: 60px;
}
.diff h3 { font-size: 22px; margin-bottom: 6px; }
.diff p  { font-size: 14.5px; max-width: 720px; }
.diff__visual {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(20,184,166,0.18), rgba(124,58,237,0.18));
  border: 1px solid var(--border-hi);
  display: grid; place-items: center;
  color: var(--accent);
}
.diff__visual svg { width: 28px; height: 28px; }

/* ===========================================================
   CTA / LOGIN SECTION
   =========================================================== */
.cta-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}
.cta-card {
  position: relative;
  padding: 60px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(20,184,166,0.10), rgba(79,70,229,0.10), rgba(124,58,237,0.16));
  border: 1px solid var(--border-hi);
  overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.cta-card::before {
  content:''; position:absolute; inset:-1px;
  background: var(--accent-grad);
  border-radius: var(--r-xl);
  z-index: -1; opacity: 0.6;
  filter: blur(20px);
}
.cta-content {
  align-self: stretch;
  display: flex; flex-direction: column;
  /* Pin content to the top of the card rather than centering */
  justify-content: flex-start;
}

/* Tag — distinct from the green-dotted eyebrow used elsewhere */
.cta-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--display-font);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-purple));
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px -6px rgba(124,58,237,0.5);
}

/* Highlight that stays legible regardless of theme — solid teal underline accent */
.cta-highlight {
  position: relative;
  color: var(--brand-purple);
  white-space: nowrap;
}
[data-theme="light"] .cta-highlight { color: var(--brand-purple); }
[data-theme="dark"] .cta-highlight  { color: var(--brand-teal); }
.cta-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 8px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-purple));
  border-radius: 8px;
  opacity: 0.22;
  z-index: -1;
}

.cta-card h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 8px; }
.cta-card p  { font-size: 16px; margin-top: 16px; max-width: 480px; margin-bottom: 0; }

.cta-card .hero-ctas { margin-top: 28px; }

/* WhatsApp brand button */
.btn--wa {
  color: white;
  background: #25D366;
  box-shadow:
    0 8px 22px -8px rgba(37,211,102,0.5),
    0 2px 6px rgba(37,211,102,0.15);
  transition: background-color .25s ease, filter .25s ease, transform .15s ease, box-shadow .25s ease;
}
.btn--wa:hover {
  background: #1ebe5d;
  filter: brightness(1.05);
  box-shadow:
    0 12px 30px -8px rgba(37,211,102,0.6),
    0 2px 6px rgba(37,211,102,0.2);
}

.cta-avatar {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.cta-avatar img {
  width: 100%; max-width: 320px;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,0.5));
  animation: float-y 5s ease-in-out infinite;
}
.cta-avatar .ping {
  position: absolute; top: 10%; right: 5%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.96); color: #0F1120;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.cta-avatar .ping .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}

/* ===========================================================
   LOGIN MODAL
   =========================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,9,18,0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in .25s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: slide-up .35s cubic-bezier(.16,1,.3,1);
}
@keyframes slide-up { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__left {
  padding: 48px 40px;
  background:
    radial-gradient(circle at 0 0, rgba(20,184,166,0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(124,58,237,0.20), transparent 60%);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  min-height: 540px;
}
.modal__left .brand { margin-bottom: 24px; }
.modal__left h3 { font-size: 28px; margin-bottom: 12px; }
.modal__left p { font-size: 14.5px; }
.modal__left .avatar-img {
  position: absolute; bottom: -80px; right: -50px;
  width: 55%; max-width: 280px;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.5));
  -webkit-mask-image: linear-gradient(to top, black 65%, transparent 100%);
  mask-image: linear-gradient(to top, black 65%, transparent 100%);
}

.modal__right {
  padding: 48px 40px;
  position: relative;
}

/* Forgot password view */
.modal__back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: var(--text-soft);
  font: 600 13px/1 var(--body-font);
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 14px;
  transition: color .2s;
}
.modal__back:hover { color: var(--text); }

.forgot-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20,184,166,0.18), rgba(124,58,237,0.18));
  border: 1px solid var(--border-hi);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}

.modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-soft); cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--card-hi); color: var(--text); }

.field { display:flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text); font-family: var(--body-font); font-size: 15px;
  transition: border-color .2s, background .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card-hi);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
}
.field-row { display:flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-soft); }
.field-row a { color: var(--accent); text-decoration: none; }
.checkbox { display:inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* Flash errors surfaced from the real /admin/login redirect */
.login-flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.35);
  color: #EF4444;
  font-size: 13.5px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-family: var(--body-font);
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 16px;
}
.footer-col a { display: block; color: var(--text-soft); text-decoration: none; padding: 6px 0; font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display:flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .social { display:flex; gap: 10px; }
.footer-bottom .social a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text-soft); padding: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-bottom .social a:hover { background: var(--card-hi); color: var(--text); border-color: var(--border-hi); }

/* ===========================================================
   PEEK AVATAR (decorative, in some sections)
   =========================================================== */
.peek {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background-image: url('../img/avatar/avatar_07.png');
  background-size: 145%; background-position: center 22%;
  background-color: var(--bg-3);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border-hi), 0 30px 60px rgba(0,0,0,0.5);
  pointer-events: none;
}
.peek.flip { transform: scaleX(-1); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .hero { padding-top: 130px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .avatar-stage { aspect-ratio: 1 / 1.2; max-width: 420px; margin-inline: auto; width: 100%; }
  .trust-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .trust-logos { gap: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature.large, .feature.wide, .feature.tall { grid-column: span 2; min-height: 200px; grid-row: auto; }
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .phone { transform: none; }
  .dash-body { grid-template-columns: 1fr; min-height: auto; }
  .dash-sidebar { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 36px; }
  .cta-avatar { display: none; }
  .modal { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal__left { min-height: 200px; padding: 32px; }
  .modal__left .avatar-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hero-meta .sep { display: none; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature.large, .feature.wide, .feature.tall { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .diff { grid-template-columns: auto 1fr; }
  .diff__visual { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-bubble.left { left: -2%; max-width: 200px; }
  .chat-bubble.right { right: -2%; max-width: 200px; }
}
