/* ===== Autonomik — brand palette pulled from logo ===== */
:root {
  --red: #ff3131;
  --orange: #ff914d;
  --grad: linear-gradient(120deg, #ff3131 0%, #ff6a3d 50%, #ff914d 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,49,49,.18), rgba(255,145,77,.18));
  --black: #060606;
  --bg: #0a0908;
  --bg-2: #110f0e;
  --panel: rgba(255,255,255,.035);
  --panel-border: rgba(255,145,77,.16);
  --text: #f5efe9;
  --muted: #a89f97;
  --radius: 18px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Animated background ===== */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255,49,49,.14), transparent 60%),
    radial-gradient(1000px 800px at 0% 100%, rgba(255,145,77,.12), transparent 55%),
    var(--bg);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,145,77,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,145,77,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* ===== Layout helpers ===== */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px;
}

.section-head { max-width: 760px; margin-bottom: 56px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,9,8,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 101; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(255,80,49,.4)); }
.brand-text { font-size: 1.28rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.94rem; color: var(--muted); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 24px rgba(255,80,49,.28);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,80,49,.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px 24px 60px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero-title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(255,80,49,.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,80,49,.5); }
.btn-ghost { background: transparent; border-color: var(--panel-border); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); background: var(--panel); transform: translateY(-3px); }
.btn-full { width: 100%; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: block; }
.stat-num, .stat-plus { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--orange); }
.stat-label { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--muted); }

/* ===== Hero visual / flow card ===== */
.hero-visual { display: grid; place-items: center; }
.flow-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: float 6s ease-in-out infinite;
}
.flow-node {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,145,77,.18);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.flow-node small { display: block; font-family: 'Inter'; font-weight: 400; color: var(--muted); font-size: 0.78rem; margin-left: auto; }
.node-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--orange); }
.node-engine { border-color: rgba(255,49,49,.4); background: var(--grad-soft); }
.flow-line { width: 2px; height: 26px; background: rgba(255,145,77,.25); position: relative; overflow: hidden; }
.flow-line.short { height: 22px; }
.pulse { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 6px; height: 10px; border-radius: 4px; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: travel 1.8s linear infinite; }
.pulse.delay-1 { animation-delay: .3s; }
.pulse.delay-2 { animation-delay: .9s; }
.flow-branch { display: flex; gap: 120px; }
.flow-outputs { display: flex; gap: 14px; width: 100%; }
.node-out { flex-direction: column; align-items: flex-start; gap: 4px; }
.node-out small { margin-left: 0; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--panel-border); padding: 18px 0; margin: 30px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 28px; white-space: nowrap; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee-track span { font-family: 'Space Grotesk'; font-size: 1.15rem; font-weight: 600; color: var(--muted); }
.marquee-track span:nth-child(2n) { color: var(--orange); }

/* ===== Problem cards ===== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.problem-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.problem-card:hover { transform: translateY(-6px); border-color: rgba(255,145,77,.4); background: rgba(255,255,255,.05); }
.problem-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--panel-border);
  margin-bottom: 16px;
}
.problem-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.problem-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.problem-card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(255,145,77,.45); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: rgba(255,49,49,.45); }
.service-card.featured::before { opacity: .6; }
.service-num { font-family: 'Space Grotesk'; font-size: 2.2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.service-list li { position: relative; padding-left: 24px; font-size: 0.92rem; }
.service-list li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* ===== Process timeline ===== */
.process { position: relative; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--orange), transparent);
}
.t-step { display: flex; gap: 26px; padding: 18px 0; position: relative; }
.t-marker {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Space Grotesk'; font-weight: 700;
  background: var(--bg-2);
  border: 2px solid var(--orange);
  color: var(--orange);
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
  transition: background .35s, color .35s, transform .35s;
}
.t-step:hover .t-marker { background: var(--grad); color: #fff; transform: scale(1.1); border-color: transparent; }
.t-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.t-body p { color: var(--muted); }

/* ===== Work grid ===== */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.work-card:hover { transform: translateY(-8px); border-color: rgba(255,145,77,.45); box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 5px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  margin-bottom: 16px;
}
.work-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.work-card p { color: var(--muted); font-size: 0.96rem; }
.work-card.accent { background: var(--grad-soft); border-color: rgba(255,49,49,.4); }
.work-link { display: inline-block; margin-top: 16px; color: var(--orange); font-weight: 600; transition: gap .25s; }
.work-link:hover { letter-spacing: 0.02em; }

/* ===== Tech grid ===== */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tech-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  position: relative;
  transition: transform .35s var(--ease), border-color .35s;
}
.tech-card::after {
  content: '';
  position: absolute;
  left: 28px; top: 0;
  width: 36px; height: 3px;
  background: var(--grad);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.tech-card:hover { transform: translateY(-6px); border-color: rgba(255,145,77,.4); }
.tech-card:hover::after { transform: scaleX(1); }
.tech-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.tech-card p { color: var(--muted); font-size: 0.93rem; }

/* ===== CTA ===== */
.cta { display: grid; place-items: center; }
.cta-inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  padding: 56px 40px;
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, rgba(255,80,49,.18), transparent 60%);
  z-index: -1;
}
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.cta-inner .lead { margin: 0 auto 32px; }
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.field-wide { grid-column: 1 / -1; }
.cta-form input, .cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  transition: border-color .25s, box-shadow .25s;
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,145,77,.18);
}
.cta-form .btn-full { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; text-align: center; color: var(--orange); font-size: 0.92rem; min-height: 1.2em; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--panel-border); padding: 60px 24px 30px; background: rgba(0,0,0,.3); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-brand .brand-text { font-size: 1.5rem; font-weight: 700; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 360px; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 14px; }
.footer-col a, .footer-meta { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 9px; transition: color .25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Keyframes ===== */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes travel { 0% { top: -10px; } 100% { top: 100%; } }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { order: 0; }
  .problem-grid, .services-grid, .work-grid, .tech-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(1000px 600px at 50% 0%, rgba(255,49,49,.14), transparent 60%),
                linear-gradient(180deg, rgba(10,9,8,.72), rgba(10,9,8,.82));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 24px;
    gap: 30px;
    border: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .4s var(--ease), transform .45s var(--ease), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: scale(1); }
  .nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), color .25s;
  }
  .nav-links.open a {
    opacity: 1;
    transform: none;
    transition-delay: calc(0.06s * var(--i, 0) + 0.12s);
  }
  .nav-links a:hover { color: var(--orange); }
  .nav-cta {
    margin-top: 8px;
    font-size: 1.15rem;
    padding: 15px 38px;
  }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .problem-grid, .services-grid, .work-grid, .tech-grid { grid-template-columns: 1fr; }
  .cta-form { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; flex-wrap: nowrap; }
  .hero-stats .stat-num, .hero-stats .stat-plus { font-size: 1.4rem; }
  .hero-stats .stat-label { font-size: 0.72rem; }
  .section { padding: 80px 20px; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Live demo ===== */
.demo-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease);
}
.demo-tab .ico { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.demo-tab.active .ico { stroke: #fff; }
.demo-tab:hover { transform: translateY(-2px); color: var(--text); }
.demo-tab.active { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 8px 26px rgba(255,80,49,.32); }

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

/* Phone */
.phone {
  justify-self: center;
  width: 320px;
  max-width: 100%;
  background: #1a1715;
  border: 10px solid #1a1715;
  border-radius: 42px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,145,77,.18);
  position: relative;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 130px; height: 22px; background: #1a1715; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { background: #0c0b0a; border-radius: 32px; height: 560px; display: flex; flex-direction: column; overflow: hidden; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 26px 16px 12px;
  background: linear-gradient(180deg, rgba(255,145,77,.12), transparent);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.2; }
.chat-meta strong { font-size: 0.95rem; }
.chat-meta small { color: #6fcf72; font-size: 0.78rem; }
.chat-call { margin-left: auto; display: inline-grid; place-items: center; }
.chat-call .ico { width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chat-body {
  flex: 1;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 0; }

.bubble {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  position: relative;
  animation: bubble-in .35s var(--ease) both;
  word-wrap: break-word;
}
.bubble small { display: block; margin-top: 4px; font-size: 0.68rem; opacity: .55; }
.bubble.in { align-self: flex-start; background: #201c19; border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, #b3331f, #d9542e); color: #fff; border-bottom-right-radius: 4px; }
.bubble.system {
  align-self: center;
  background: rgba(255,145,77,.1);
  border: 1px solid var(--panel-border);
  color: var(--orange);
  font-size: 0.74rem;
  text-align: center;
  max-width: 90%;
}

.typing { align-self: flex-start; background: #201c19; padding: 12px 14px; border-radius: 14px; border-bottom-left-radius: 4px; display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

.chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.chat-input-box { flex: 1; padding: 9px 13px; background: #201c19; border-radius: 999px; font-size: 0.8rem; color: var(--muted); }
.chat-send { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 0.85rem; }

/* Pipeline */
.pipeline { max-width: 440px; }
.pipeline-title { font-size: 1.1rem; color: var(--muted); margin-bottom: 22px; font-weight: 600; }
.pipeline-steps { list-style: none; position: relative; padding-left: 6px; }
.pipeline-steps::before {
  content: '';
  position: absolute;
  left: 15px; top: 6px; bottom: 30px;
  width: 2px;
  background: rgba(255,145,77,.18);
}
.p-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 22px 0;
  opacity: .35;
  transition: opacity .4s var(--ease);
}
.p-step:last-child { padding-bottom: 0; }
.p-step .p-dot {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid rgba(255,145,77,.3);
  display: grid; place-items: center;
  font-size: 0.8rem;
  z-index: 1;
  transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.p-step .p-text { font-size: 0.92rem; padding-top: 3px; }
.p-step .p-text strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.96rem; }
.p-step .p-text span { color: var(--muted); font-size: 0.84rem; }
.p-step.active { opacity: 1; }
.p-step.active .p-dot {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.12);
  box-shadow: 0 0 0 5px rgba(255,80,49,.14), 0 0 18px rgba(255,80,49,.5);
}
.p-step.done { opacity: 1; }
.p-step.done .p-dot { background: rgba(255,145,77,.22); border-color: var(--orange); }

.demo-replay { margin-top: 26px; }

@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

@media (max-width: 860px) {
  .demo-stage { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { max-width: 100%; margin: 0 auto; }
}

/* ===== Floating WhatsApp CTA ===== */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 14px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  box-shadow: 0 10px 34px rgba(255,80,49,.45);
  overflow: hidden;
  max-width: 56px;
  transition: max-width .45s var(--ease), box-shadow .3s, transform .3s var(--ease);
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255,80,49,.5);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.wa-fab-icon { width: 28px; height: 28px; fill: #fff; flex: none; }
.wa-fab-text { white-space: nowrap; padding-left: 10px; padding-right: 6px; opacity: 0; transition: opacity .3s ease .1s; }
.wa-fab:hover, .wa-fab:focus-visible {
  max-width: 220px;
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(255,80,49,.6);
  outline: none;
}
.wa-fab:hover .wa-fab-text, .wa-fab:focus-visible .wa-fab-text { opacity: 1; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,80,49,.5); }
  70% { box-shadow: 0 0 0 16px rgba(255,80,49,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,80,49,0); }
}

@media (max-width: 680px) {
  .wa-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab::before { animation: none; }
}
