/* ═══════════════════════════════════════════════════════════
   QAVIO — style.css
   ═══════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:        #E8E4DC;
  --bg2:       #F5F2EC;
  --white:     #FFFFFF;
  --dark:      #181D27;
  --dark2:     #0A0D12;
  --text:      #181D27;
  --text2:     #535862;
  --text3:     #717680;
  --orange:    #FF4405;
  --orange-h:  #E53D04;
  --orange-lt: rgba(255,68,5,.08);
  --border:    #D5D7DA;
  --border-l:  #E9EAEB;
  --r:         10px;
  --r-lg:      20px;
  --shadow-sm: 0 1px 3px rgba(10,13,18,.1), 0 1px 2px rgba(10,13,18,.06);
  --shadow-md: 0 4px 12px rgba(10,13,18,.1);
  --shadow-lg: 0 16px 40px rgba(10,13,18,.14);
  --shadow-xl: 0 32px 80px rgba(10,13,18,.2);
}

/* ─── BASE ─── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── CUSTOM CURSOR ─── */
#cur-dot {
  width: 9px; height: 9px;
  background: var(--orange); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s;
}
#cur-ring {
  width: 40px; height: 40px;
  border: 1.5px solid var(--orange); border-radius: 50%;
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .4s cubic-bezier(.23,1,.32,1), height .4s cubic-bezier(.23,1,.32,1);
}
body.c-hover #cur-dot { width: 0; height: 0; }
body.c-hover #cur-ring { width: 68px; height: 68px; }
input, textarea, select { cursor: auto; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 20px; left: 50%; right: auto; z-index: 100;
  transform: translateX(-50%);
  background: #fff; border-radius: 100px;
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
  transition: box-shadow .3s;
  white-space: nowrap;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.2); }
.nav-inner {
  max-width: none; margin: 0; padding: 7px 7px 7px 22px;
  height: auto; display: flex; align-items: center; gap: 4px;
}
.logo {
  font-size: 15px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.logo-mark { width: 9px; height: 9px; background: var(--orange); border-radius: 50%; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text2);
  text-decoration: none; transition: color .2s, background .2s;
  padding: 6px 14px; border-radius: 100px;
}
.nav-links a:hover { color: var(--text); background: var(--bg); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 20px; background: var(--dark);
  color: #fff; border-radius: 100px; font-size: 13px;
  font-weight: 600; text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--orange); }
.nav-right { display: flex; align-items: center; }
/* ─── LANG DROPDOWN (fixed top-right) ─── */
.lang-dd {
  position: fixed; top: 20px; right: 24px; z-index: 200;
  transition: opacity .3s ease, transform .3s ease;
}
.lang-dd.hidden {
  opacity: 0; pointer-events: none; transform: translateY(-8px);
}
.lang-trigger {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,0,0,.12);
  color: var(--text2); padding: 8px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  cursor: none; font-family: 'Inter', sans-serif; transition: all .2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.lang-trigger:hover, .lang-trigger.open { border-color: var(--orange); color: var(--orange); }
.lang-chevron { transition: transform .2s ease; flex-shrink: 0; }
.lang-trigger.open .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.15); min-width: 148px; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 16px; background: transparent; border: none;
  font-size: 13px; font-weight: 500; color: var(--text);
  font-family: 'Inter', sans-serif; cursor: none; transition: background .15s;
  text-align: left; white-space: nowrap;
}
.lang-opt:hover { background: var(--bg); }
.lang-opt.active { color: var(--orange); font-weight: 700; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: none; font-family: 'Inter', sans-serif;
  font-weight: 600; text-decoration: none; transition: all .2s;
}
.btn-orange {
  padding: 15px 30px; background: var(--orange); color: #fff;
  border-radius: var(--r); font-size: 15px;
}
.btn-orange:hover { background: var(--orange-h); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,68,5,.3); }
.btn-ghost {
  padding: 15px 30px; background: transparent; color: #fff;
  border-radius: var(--r); font-size: 15px; border: 1px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.8); }

/* ─── HERO ─── */
#hero {
  min-height: 100vh; padding: 100px 44px 0;
  display: flex; justify-content: center;
  background: #0d4b34;
  border-radius: 0 0 44px 44px;
  position: relative; z-index: 2;
  transform-origin: center top;
}
.hero-inner {
  max-width: 860px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; color: rgba(255,255,255,.65); margin-bottom: 28px;
  justify-content: center;
}
.hero-tag-line { width: 24px; height: 1.5px; background: rgba(255,255,255,.45); }
h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(50px, 5.5vw, 80px);
  line-height: 1.05; letter-spacing: -.025em;
  font-weight: 700; margin-bottom: 24px; color: #fff;
}
h1 em { font-style: italic; font-weight: 300; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.72); line-height: 1.8; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 44px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgba(255,255,255,.5); justify-content: center; }
.avs { display: flex; }
.av {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #0d4b34; margin-right: -7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ─── HERO VISUAL (phone in hand card) ─── */
.hero-visual { position: relative; width: 560px; margin: 40px auto 0; }
.visual-card {
  background: var(--bg2);
  border-radius: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 580px;
  overflow: hidden;
  position: relative;
}
.visual-card::before {
  /* subtle top gradient for depth */
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, transparent 100%);
  pointer-events: none;
}

/* ─── HAND SCENE ─── */
.hand-scene {
  position: relative;
  width: 360px;
  height: 640px;
  flex-shrink: 0;
}

/* When using a photo for the hand, position the raster image and
   make the CSS phone act as a transparent overlay so the animated
   screens appear inside the photographed device. */
.hand-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 640px;
  object-fit: cover;
  z-index: 4;
  pointer-events: none;
}

/* Gentle floating animation so the photographed hand feels alive */
.hand-photo {
  transform-origin: 50% 50%;
  animation: handFloat 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes handFloat {
  0%   { transform: translateY(0px) rotate(0.0deg); }
  25%  { transform: translateY(-6px) rotate(-0.3deg); }
  50%  { transform: translateY(0px) rotate(0.0deg); }
  75%  { transform: translateY(4px) rotate(0.3deg); }
  100% { transform: translateY(0px) rotate(0.0deg); }
}

.hand-scene.use-photo .hero-phone {
  /* make the drawn phone invisible so the photo's phone shows */
  background: transparent;
  box-shadow: none;
  border-radius: 0; /* let photo's rounding show */
  z-index: 12; /* keep screen content above the photo */
}
.hand-scene.use-photo .hero-phone-notch { display: none; }

/* When using a photographed hand/device, don't paint large solid screen panels
   — let the photographed device screen show through. Keep interactive UI
   elements (text, buttons) visible above the photo. */
.hand-scene.use-photo .hero-phone-screen { background: transparent; }
.hand-scene.use-photo .wa-bg,
.hand-scene.use-photo .flow-scr,
.hand-scene.use-photo .dash-scr { background: transparent; }

/* Slightly translucent input bar so it remains readable over the photo */
.hand-scene.use-photo .wa-inp-bar { background: rgba(240,240,240,0.6); }


/* Phone */
.hero-phone {
  position: absolute;
  top: 20px;
  left: 40px; /* (360-280)/2 = 40 */
  width: 280px;
  height: 580px;
  background: #1C1C1E;
  border-radius: 50px;
  z-index: 10;
  box-shadow:
    0 0 0 2px #2C2C2E,
    0 0 0 3px #3A3A3C,
    inset 0 1px 0 rgba(255,255,255,.1),
    0 40px 80px rgba(0,0,0,.5);
}
.hero-phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 34px;
  background: #1C1C1E; border-radius: 0 0 22px 22px; z-index: 20;
}
.hero-phone-screen {
  position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: 42px; overflow: hidden;
  background: #ECE5DD; /* WhatsApp bg fallback */
}

/* Screen dots */
.phone-dots {
  position: absolute;
  bottom: -28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 20;
}
.pdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: background .3s, transform .3s;
}
.pdot.active { background: #fff; transform: scale(1.2); }

/* ─ HAND PARTS ─ */

/* Palm - large shape below the phone */
.h-palm {
  position: absolute;
  bottom: -8px;
  left: 50%; transform: translateX(-50%);
  width: 252px; height: 200px;
  background: linear-gradient(160deg, #1c1c1c 0%, #0c0c0c 100%);
  border-radius: 56px 56px 100px 100px;
  z-index: 5;
}

/* Right side knuckle bridge — connects fingers to palm, sits behind phone */
.h-bridge {
  position: absolute;
  right: 10px; /* leaves 10px from scene edge */
  top: 290px;
  width: 72px;
  height: 360px;
  background: linear-gradient(90deg, rgba(14,14,14,0) 0%, #141414 40%, #0d0d0d 100%);
  border-radius: 0 28px 28px 0;
  z-index: 4;
}

/* Four fingers — behind phone, peek out on right */
.h-fingers {
  position: absolute;
  right: 0;
  top: 286px;
  z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
}
.h-finger {
  background: linear-gradient(90deg, #181818, #111);
  border-radius: 12px;
  height: 24px;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,.4), inset 0 1px 1px rgba(255,255,255,.03);
}
.hf-1 { width: 62px; transform: rotate(-16deg) translateX(8px) translateY(-3px); }
.hf-2 { width: 67px; transform: rotate(-9deg) translateX(5px) translateY(-1px); }
.hf-3 { width: 62px; transform: rotate(-3deg) translateX(2px); }
.hf-4 { width: 50px; transform: rotate(2deg); }

/* Thumb — left side of phone, in FRONT (z-index > phone) */
.h-thumb {
  position: absolute;
  left: 4px;
  top: 358px;
  width: 33px;
  height: 120px;
  background: linear-gradient(155deg, #202020 0%, #0e0e0e 100%);
  border-radius: 17px;
  transform: rotate(22deg);
  transform-origin: bottom center;
  z-index: 15;
  box-shadow: 3px 2px 16px rgba(0,0,0,.5);
}

/* ─── PHONE STATUS BAR ─── */
.phone-sb {
  height: 42px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 16px 7px; position: relative;
}
.phone-sb-dark  { background: #075E54; color: #fff; }
.phone-sb-light { background: #fff;    color: #111; }
.psb-di {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 22px; background: #000; border-radius: 100px;
}
.psb-time { font-size: 11px; font-weight: 700; letter-spacing: -.01em; }
.psb-icons { display: flex; align-items: center; gap: 4px; }

/* ─── PHONE SCREENS (hero) ─── */
.pscreen {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  display: flex; flex-direction: column;
}
.pscreen.active  { opacity: 1; pointer-events: auto; animation: psIn .5s ease forwards; }
.pscreen.exiting { animation: psOut .4s ease forwards; }

@keyframes psIn  { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
@keyframes psOut { from { opacity:1; } to { opacity:0; } }

/* ─── WA CHAT SCREEN ─── */
.wa-bg { background: #ECE5DD; flex: 1; display: flex; flex-direction: column; }
.wa-bar {
  background: #075E54; padding: 10px 12px 10px;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.wa-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: #000; flex-shrink: 0;
}
.wa-nm { font-size: 13px; font-weight: 600; color: #fff; }
.wa-st { font-size: 10px; color: rgba(255,255,255,.7); }
.wa-msgs {
  flex: 1; padding: 6px 8px; display: flex;
  flex-direction: column; gap: 5px; overflow: hidden;
  justify-content: flex-end;
}
.msg { max-width: 82%; padding: 8px 10px; border-radius: 10px; font-size: 10.5px; line-height: 1.45; }
.msg-i { background: #fff; border-radius: 0 10px 10px 10px; align-self: flex-start; color: #111; }
.msg-o { background: #DCF8C6; border-radius: 10px 0 10px 10px; align-self: flex-end; color: #111; }
.msg-t { font-size: 8.5px; color: #888; text-align: right; margin-top: 2px; }
.msg-btns { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.msg-btn {
  background: rgba(0,130,190,.08); border: 1px solid rgba(0,130,190,.28);
  border-radius: 6px; padding: 6px 8px;
  font-size: 10px; font-weight: 600; color: #0084B4; text-align: center;
}
.wa-inp-bar { background: #F0F0F0; padding: 8px 10px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wa-inp { flex: 1; background: #fff; border-radius: 20px; padding: 8px 12px; font-size: 10.5px; color: #aaa; }
.wa-mic { width: 34px; height: 34px; border-radius: 50%; background: #075E54; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }

/* Typing indicator */
.typing-bubble { background: #fff; border-radius: 0 10px 10px 10px; align-self: flex-start; padding: 10px 14px; display: flex; gap: 4px; }
.t-dot {
  width: 6px; height: 6px; background: #999; border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}
.t-dot:nth-child(2) { animation-delay: .15s; }
.t-dot:nth-child(3) { animation-delay: .30s; }
@keyframes typingDot {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30%          { transform: translateY(-4px); opacity: 1; }
}

/* Pulse animation on button */
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,132,180,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(0,132,180,0); }
}
.pulse { animation: btnPulse .8s ease infinite; }

/* ─── WA FLOW SCREEN ─── */
.flow-scr { background: #fff; flex: 1; display: flex; flex-direction: column; }
.flow-bar {
  background: #075E54; padding: 10px 12px 12px;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.flow-back { color: #fff; font-size: 18px; line-height: 1; }
.flow-bar-t { color: #fff; font-size: 13px; font-weight: 600; }
.flow-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.flow-h1  { font-size: 15px; font-weight: 700; color: #111; }
.flow-sub { font-size: 10px; color: #777; }
.flow-field { display: flex; flex-direction: column; gap: 3px; }
.flow-lbl { font-size: 9px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .06em; }
.flow-val {
  background: #F5F5F5; border-radius: 8px; padding: 8px 10px;
  font-size: 11px; color: #111;
  display: flex; justify-content: space-between; align-items: center;
}
.flow-val.hl { background: #E8F5E9; border: 1px solid #25D366; }
.date-row { display: flex; gap: 5px; }
.date-chip { flex: 1; background: #F5F5F5; border-radius: 8px; padding: 7px 4px; font-size: 9px; text-align: center; color: #666; line-height: 1.4; transition: background .3s, color .3s; }
.date-chip.sel { background: #075E54; color: #fff; }
.flow-btn-gr { background: #25D366; color: #fff; border-radius: 10px; padding: 11px; font-size: 12px; font-weight: 700; text-align: center; margin-top: auto; }
.flow-btn-gr.glow { box-shadow: 0 0 0 4px rgba(37,211,102,.3); }

/* ─── DASHBOARD SCREEN ─── */
.dash-scr { background: #F2F2F7; flex: 1; display: flex; flex-direction: column; }
.dash-bar { background: #fff; padding: 10px 14px 12px; border-bottom: 1px solid #E5E5EA; flex-shrink: 0; }
.dash-t  { font-size: 14px; font-weight: 700; color: #111; }
.dash-d  { font-size: 9px; color: #999; margin-top: 2px; }
.dash-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; overflow: hidden; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dash-card { background: #fff; border-radius: 12px; padding: 11px; }
.dash-val  { font-size: 22px; font-weight: 800; color: #111; line-height: 1; }
.dash-lbl  { font-size: 8px; color: #999; margin-top: 3px; }
.dash-trend { font-size: 8px; color: #22C55E; font-weight: 600; margin-top: 1px; }
.dash-sec  { font-size: 10px; font-weight: 700; color: #111; }
.dash-list { background: #fff; border-radius: 12px; overflow: hidden; }
.dash-row  { padding: 9px 11px; border-bottom: 1px solid #F5F5F5; display: flex; align-items: center; gap: 8px; opacity: 0; }
.dash-row:last-child { border-bottom: none; }
.dash-row.show { animation: rowIn .4s ease forwards; }
@keyframes rowIn { from { opacity:0; transform:translateX(-8px); } to { opacity:1; transform:translateX(0); } }
.dash-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-g { background: #22C55E; } .dot-y { background: #F59E0B; }
.dash-ri { flex: 1; }
.dash-rn { font-size: 10px; font-weight: 600; color: #111; }
.dash-rt { font-size: 8.5px; color: #999; }
.dash-badge { font-size: 8.5px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.bg-g { background: #DCFCE7; color: #16A34A; }
.bg-y { background: #FEF9C3; color: #92400E; }

/* ─── CHAT SCREEN ITEM ANIMATIONS ─── */
[data-anim] { opacity: 0; }
[data-anim].show { animation: fadeSlideUp .4s ease forwards; }
.typing-bubble[data-anim].show { animation: typingBubble 1.4s ease forwards; }
.msg-btn[data-anim].show { animation: fadeSlideUp .3s ease forwards; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBubble {
  0%   { opacity: 0; transform: translateY(6px); }
  15%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* ─── AI WHATSAPP HIGHLIGHT ─── */
.ai-section { background: var(--dark2); }
.ai-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.tag-green {
  background: rgba(37,211,102,.12); color: #25D366;
  border: 1px solid rgba(37,211,102,.25);
}
.ai-desc {
  font-size: 16px; color: rgba(255,255,255,.6);
  line-height: 1.8; margin: 24px 0 0;
}
.ai-desc strong { color: rgba(255,255,255,.9); font-weight: 600; }
.ai-points { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.ai-point { display: flex; gap: 16px; align-items: flex-start; }
.ai-point-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.ai-point-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ai-point-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.65; }

/* Chat card */
.ai-chat-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
}
.ai-chat-bar {
  background: #075E54; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.ai-chat-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700; color: #000;
  flex-shrink: 0;
}
.ai-chat-name { font-size: 14px; font-weight: 700; color: #fff; }
.ai-chat-status { font-size: 11px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.ai-online-dot { width: 6px; height: 6px; border-radius: 50%; background: #25D366; display: inline-block; }
.ai-chat-msgs {
  background: #ECE5DD; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg { max-width: 88%; padding: 10px 14px; font-size: 13px; line-height: 1.55; }
.ai-msg-u {
  background: #DCF8C6; color: #111;
  border-radius: 12px 2px 12px 12px; align-self: flex-end;
}
.ai-msg-b {
  background: #fff; color: #111;
  border-radius: 2px 12px 12px 12px; align-self: flex-start;
}
.ai-msg-label { font-size: 10px; font-weight: 700; color: #25D366; margin-bottom: 5px; }
.ai-msg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-chip {
  background: rgba(7,94,84,.08); border: 1px solid rgba(7,94,84,.2);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 600; color: #075E54;
}
.ai-msg-typing {
  display: flex; gap: 4px; align-items: center; align-self: flex-start;
  background: #fff; padding: 12px 16px;
  border-radius: 2px 12px 12px 12px;
}
.ai-msg-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #aaa;
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-msg-typing span:nth-child(2) { animation-delay: .15s; }
.ai-msg-typing span:nth-child(3) { animation-delay: .30s; }
.ai-card-footer {
  padding: 12px 18px; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #25D366; font-weight: 500;
  background: rgba(37,211,102,.06);
  border-top: 1px solid rgba(37,211,102,.15);
}
.ai-card-footer strong { font-weight: 700; }
.ai-chip-sel { background: rgba(7,94,84,.2) !important; border-color: #075E54 !important; color: #075E54; font-weight: 700; }
.ai-msg-confirm { border-left: 3px solid #25D366; }

/* Animated chat — all items start hidden, JS sequences them */
#ai-demo-msgs > * { opacity: 0; transform: translateY(10px); }

/* Typing indicator inside chat demo */
.ai-typing-pre {
  display: flex; gap: 4px; align-items: center; align-self: flex-start;
  background: #fff; padding: 10px 14px;
  border-radius: 2px 12px 12px 12px;
  opacity: 0; transform: translateY(10px);
}
.ai-typing-pre span {
  width: 6px; height: 6px; border-radius: 50%; background: #bbb;
  animation: typingDot 1.2s ease-in-out infinite;
}
.ai-typing-pre span:nth-child(2) { animation-delay: .15s; }
.ai-typing-pre span:nth-child(3) { animation-delay: .30s; }

/* ─── MARQUEE ─── */
#marquee {
  background: var(--white); overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
  position: relative; z-index: 1;
}
.marquee-track { display: flex; width: max-content; animation: marqueeTick 30s linear infinite; }
.marquee-item  {
  display: flex; align-items: center; gap: 28px; padding: 0 28px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text3); white-space: nowrap;
}
.ms { color: var(--orange); font-size: 13px; }
@keyframes marqueeTick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── STATS ─── */
#stats { background: var(--white); padding: 80px 44px; }
.stats-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 32px 40px; border-right: 1px solid var(--border-l); }
.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 68px; font-weight: 700; line-height: 1; color: var(--text); margin-bottom: 8px; letter-spacing: -.03em; }
.stat-l { font-size: 13px; color: var(--text3); }

/* ─── SECTIONS ─── */
.section { padding: 120px 44px; }
.section.bg2   { background: var(--bg2); }
.section.white { background: var(--white); }
.section.dark  { background: var(--dark); }
.inner { max-width: 1280px; margin: 0 auto; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--orange); margin-bottom: 16px; }
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.022em; margin-bottom: 18px;
}
h2 em { font-style: italic; font-weight: 300; }
.sec-desc { font-size: 16px; color: var(--text2); line-height: 1.75; max-width: 540px; margin-bottom: 64px; }
.center { text-align: center; }
.center .sec-desc { margin-left: auto; margin-right: auto; }

/* ─── SCROLL DEMO ─── */
#demo { padding: 80px 44px 140px; background: var(--bg2); }
.demo-head { text-align: center; margin-bottom: 100px; }
.demo-layout { max-width: 1280px; margin: 0 auto; display: flex; gap: 100px; align-items: flex-start; }
.steps-col { flex: 1; }
.step {
  min-height: 85vh; display: flex; align-items: center;
  padding: 60px 0; opacity: .2; transition: opacity .5s;
  border-top: 1px solid var(--border-l);
}
.step:first-child { border-top: none; }
.step.active { opacity: 1; }
.step-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 96px; font-weight: 300; line-height: 1;
  color: var(--border); margin-bottom: -20px; letter-spacing: -.04em;
}
.step h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px;
}
.step h3 em { font-style: italic; font-weight: 300; }
.step p { font-size: 15px; color: var(--text2); line-height: 1.8; max-width: 420px; }
.step-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 100px;
  background: rgba(255,68,5,.06); border: 1px solid rgba(255,68,5,.15);
  font-size: 12px; font-weight: 500; color: var(--orange);
}
.demo-phone-col {
  flex: 0 0 290px; position: sticky; top: calc(50vh - 310px);
  height: 620px; display: flex; align-items: center; justify-content: center;
}

/* Scroll demo phone (reuse .iphone styles) */
.iphone {
  width: 280px; height: 580px; background: #1C1C1E; border-radius: 50px; position: relative;
  box-shadow: 0 0 0 2px #2C2C2E, 0 0 0 3px #3A3A3C, var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,.1);
  flex-shrink: 0;
}
.iphone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 34px; background: #1C1C1E; border-radius: 0 0 22px 22px; z-index: 20; }
.iphone-screen { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; border-radius: 42px; overflow: hidden; }
.phone-slide { position: absolute; inset: 0; padding-top: 24px; opacity: 0; transition: opacity .45s ease; display: flex; flex-direction: column; pointer-events: none; }
.phone-slide.active { opacity: 1; pointer-events: auto; }

/* ─── FEATURES ─── */
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-l); border: 1px solid var(--border-l); border-radius: var(--r-lg); overflow: hidden; }
.feat-card { background: var(--white); padding: 40px; transition: background .2s; }
.feat-card:hover { background: var(--bg2); }
.feat-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--orange-lt); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 22px; }
.feat-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feat-card p  { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ─── HOW IT WORKS ─── */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.how-n { font-family: 'Cormorant Garamond', serif; font-size: 96px; font-weight: 300; line-height: 1; color: var(--border); margin-bottom: -10px; letter-spacing: -.04em; }
.how-step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.how-step p  { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ─── SECTORS ─── */
.sec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border-l); border: 1px solid var(--border-l); border-radius: var(--r-lg); overflow: hidden; }
.sec-card { background: var(--white); padding: 30px 26px; transition: background .2s; }
.sec-card:hover { background: var(--bg2); }
.sec-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-lt); border-radius: 12px; margin-bottom: 16px;
  transition: background .25s ease; flex-shrink: 0;
}
.sec-card:hover .sec-icon { background: var(--orange); }
.sec-icon svg {
  width: 24px; height: 24px;
  stroke: var(--orange); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .25s ease;
}
.sec-card:hover .sec-icon svg { stroke: #fff; }

@keyframes si-pulse  { 0%,100%{transform:scale(1)}    50%{transform:scale(1.12)} }
@keyframes si-spin   { to{transform:rotate(360deg)} }
@keyframes si-float  { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-4px)} }
@keyframes si-drive  { 0%,100%{transform:translateX(0)}  50%{transform:translateX(4px)} }
@keyframes si-rise   { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-3px)} }
@keyframes si-bal    { 0%,100%{transform:rotate(-6deg)}  50%{transform:rotate(6deg)} }
@keyframes si-bounce { 0%,100%{transform:translateY(0)}  40%{transform:translateY(-6px)} 65%{transform:translateY(-2px)} }
@keyframes si-swing  { 0%,100%{transform:rotate(-5deg)}  50%{transform:rotate(5deg)} }

.si-klinik svg { animation: si-pulse  3s   ease-in-out infinite; }
.si-beauty svg { animation: si-spin   9s   linear    infinite; }
.si-resto  svg { animation: si-float  3.5s ease-in-out infinite; }
.si-auto   svg { animation: si-drive  2.5s ease-in-out infinite; }
.si-realty svg { animation: si-rise   3s   ease-in-out infinite; }
.si-legal  svg { animation: si-bal    4s   ease-in-out infinite; }
.si-edu    svg { animation: si-bounce 2.8s ease-in-out infinite; }
.si-ecom   svg { animation: si-swing  3s   ease-in-out infinite; }
.sec-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.sec-card p  { font-size: 12px; color: var(--text3); line-height: 1.55; }

/* ─── PRICING ─── */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.price-card {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--r-lg); padding: 40px 36px;
  position: relative; transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.pop { border-color: var(--orange); background: linear-gradient(160deg, rgba(255,68,5,.03) 0%, var(--white) 50%); }
.pop-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 16px; border-radius: 100px; white-space: nowrap; letter-spacing: .04em; }
.plan-name  { font-size: 12px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.plan-amt   { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 700; letter-spacing: -.03em; }
.plan-per   { font-size: 14px; color: var(--text3); }
.plan-setup { font-size: 13px; color: var(--text3); margin-bottom: 28px; }
.plan-div   { height: 1px; background: var(--border-l); margin-bottom: 22px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan-feat  { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text2); }
.pf-chk     { color: var(--orange); flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.plan-cta   { display: block; width: 100%; padding: 14px; border-radius: var(--r); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: none; transition: all .2s; border: none; font-family: 'Inter', sans-serif; }
.cta-ol     { background: transparent; color: var(--text); border: 1px solid var(--border); }
.cta-ol:hover { border-color: var(--text); }
.cta-fi     { background: var(--orange); color: #fff; }
.cta-fi:hover { background: var(--orange-h); box-shadow: 0 8px 24px rgba(255,68,5,.3); }
.cta-dk     { background: var(--dark); color: #fff; }
.cta-dk:hover { background: var(--orange); }

/* ─── CONTACT ─── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; align-items: start; }
.contact-left   { position: sticky; top: 100px; }
.contact-left h2 { color: #fff; }
.contact-left p  { font-size: 16px; color: rgba(255,255,255,.6); line-height: 1.75; margin-top: 16px; }
.channels { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.channel  { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r); text-decoration: none; color: #fff; transition: border-color .2s, background .2s; }
.channel:hover { border-color: rgba(255,68,5,.5); background: rgba(255,68,5,.06); }
.ch-icon  { width: 40px; height: 40px; border-radius: 9px; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ch-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.ch-val { font-size: 14px; font-weight: 600; }
.reply-box { margin-top: 24px; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--r); }
.reply-lbl { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 6px; }
.reply-val { font-size: 15px; font-weight: 600; color: #fff; }
.reply-sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ─── FORM ─── */
.cform { background: var(--white); border-radius: var(--r-lg); padding: 48px; box-shadow: var(--shadow-lg); }
.fg    { margin-bottom: 18px; }
.flbl  { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 7px; }
.finp, .fsel, .ftxt {
  width: 100%; padding: 13px 16px;
  background: var(--bg2); border: 1px solid var(--border-l);
  border-radius: var(--r); color: var(--text);
  font-size: 15px; font-family: 'Inter', sans-serif;
  transition: border-color .2s, background .2s; outline: none;
  appearance: none; -webkit-appearance: none;
}
.finp:focus, .fsel:focus, .ftxt:focus { border-color: var(--orange); background: #fff; }
.ftxt { resize: vertical; min-height: 110px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-success { display: none; text-align: center; padding: 48px 20px; }
.f-success-icon { font-size: 56px; margin-bottom: 16px; }
.f-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.f-success p  { color: var(--text2); }

/* ─── FOOTER ─── */
footer { background: var(--dark2); padding: 72px 44px 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.38); max-width: 280px; margin-top: 12px; line-height: 1.65; }
.footer-cols  { display: flex; gap: 64px; }
.fc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.fc a { display: block; font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.fc a:hover { color: #fff; }
.footer-bot { padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.28); }

/* ─── FADE UP ─── */
.fu { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.fu.vis { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .ai-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .how-grid  { grid-template-columns: 1fr; gap: 32px; }
  .sec-grid  { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .demo-layout { flex-direction: column; }
  .demo-phone-col { position: relative; top: auto; height: auto; width: 100%; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section { padding: 80px 24px; }
  #hero { padding: 96px 24px 80px; }
  #demo { padding: 80px 24px 120px; }
  .feat-grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .cform { padding: 28px 20px; }
  .stat { padding: 24px 20px; }
  .nav-inner, #stats, footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 480px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
}
