/* ===========================================================
   SHIFTERA DIGITAL — design system
   =========================================================== */
:root {
  /* color — Shift Era: chrome gray background + electric blue accent */
  --bg:        oklch(0.22 0.008 250);
  --bg-soft:   oklch(0.26 0.01 250);
  --bg-panel:  oklch(0.3 0.012 250);
  --line:      oklch(0.45 0.02 250 / 0.55);
  --line-soft: oklch(0.42 0.015 250 / 0.3);
  --text:      oklch(0.97 0.005 250);
  --muted:     oklch(0.74 0.018 250);
  --faint:     oklch(0.58 0.02 250);
  --accent:    oklch(0.55 0.24 258);
  --accent-2:  oklch(0.78 0.16 232);
  --accent-3:  oklch(0.88 0.01 245);
  --accent-ink: oklch(0.15 0.04 258);
  --teal:      oklch(0.78 0.18 188);   /* second accent: cyan-teal for labels & decorative */
  --teal-glow: oklch(0.78 0.18 188 / 0.5);
  --danger:    oklch(0.66 0.2 25);
  --glow:      oklch(0.55 0.26 258 / 0.6);

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1280px;
  --gut: clamp(20px, 5vw, 72px);
  --r:   18px;
  --r-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  cursor: none;
}
@media (hover: none), (max-width: 820px) { body { cursor: auto; } }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
@media (hover: none) { button { cursor: pointer; } }
img { max-width: 100%; display: block; }

/* ---------- background canvas + blobs ---------- */
#fx-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.9;
}
.bg-blobs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-blobs span {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; mix-blend-mode: screen;
}
.bg-blobs .b1 { width: 46vw; height: 46vw; left: -10vw; top: -8vw;
  background: radial-gradient(circle, oklch(0.65 0.08 250) 0%, transparent 70%);
  animation: float1 22s var(--ease) infinite alternate; }
.bg-blobs .b2 { width: 40vw; height: 40vw; right: -8vw; top: 18vh;
  background: radial-gradient(circle, oklch(0.58 0.06 250) 0%, transparent 70%);
  animation: float2 26s var(--ease) infinite alternate; }
.bg-blobs .b3 { width: 38vw; height: 38vw; left: 30vw; bottom: -16vw;
  background: radial-gradient(circle, oklch(0.55 0.24 258) 0%, transparent 70%);
  animation: float3 30s var(--ease) infinite alternate; opacity: 0.28; }
@keyframes float1 { to { transform: translate(12vw, 14vh) scale(1.15); } }
@keyframes float2 { to { transform: translate(-10vw, 10vh) scale(0.9); } }
@keyframes float3 { to { transform: translate(8vw, -12vh) scale(1.2); } }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent-2); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid var(--glow);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s;
}
.cursor-ring.hot {
  width: 64px; height: 64px; border-color: var(--accent);
  background: oklch(0.62 0.24 258 / 0.14);
}
@media (hover: none), (max-width: 820px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- shell / layout ---------- */
main { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

.section { padding-block: clamp(72px, 11vh, 150px); position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s, padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.15 0.015 290 / 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 13px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark-img {
  width: 78px; height: 78px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px var(--line-soft), 0 4px 24px -6px var(--glow);
}
.brand .txt { display: flex; flex-direction: column; line-height: 1; }
.brand .txt b { font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.brand .txt span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: var(--teal); text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  padding: 9px 16px; border-radius: 999px; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: oklch(0.62 0.24 258 / 0.14); border: 1px solid var(--line);
  z-index: -1;
}
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .brand .mark-img {
    width: 44px;
    height: 44px;
  }
  .nav {
    padding: 12px var(--gut);
    background: oklch(0.15 0.015 290 / 0.88);
    backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.scrolled {
    padding-block: 10px;
    background: oklch(0.12 0.015 290 / 0.95);
  }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 8px;
    background: oklch(0.26 0.01 250 / 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    padding: 40px 28px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line); z-index: 105;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 20px; padding: 14px 18px; }
  .nav-cta { margin-left: 0; }
  .nav-toggle {
    display: grid; gap: 5px; padding: 10px; z-index: 110; position: relative;
  }
  .nav-toggle i { width: 24px; height: 2px; background: var(--text); display: block; transition: transform .35s var(--ease), opacity .25s; }
  .nav-toggle.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open i:nth-child(2) { opacity: 0; }
  .nav-toggle.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .field input, .field textarea, .field select,
  #contact-form input, #contact-form textarea {
    font-size: 16px !important;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, color .3s;
  will-change: transform;
}
.btn .lbl { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px var(--glow); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, var(--accent-3), var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .35s;
}
.btn-primary:hover { box-shadow: 0 16px 50px -10px var(--glow); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: oklch(0.62 0.24 258 / 0.1); border-color: var(--accent); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--teal); display: inline-block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 56ch; text-wrap: pretty; }
.grad-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- pages / routing ---------- */
.page { display: none; }
.page.active { display: block; }
.page.active.entering { opacity: 0; transform: translateY(16px); }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; }
.hero-wrap {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; width: 100%;
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: clamp(36px, 5.5vw, 86px); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
.hero-lead { margin: 28px 0 0; text-align: left; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; margin-top: 36px; }
@keyframes fadeUp { to { opacity: 1; } }

/* ---------- HERO VISUAL ---------- */
.hero-visual {
  position: relative;
  width: 100%; aspect-ratio: 1;
  max-width: 480px; justify-self: center;
  animation: fadeUp .9s var(--ease) .5s both;
}

/* dot-grid background */
.hv-bg-grid {
  position: absolute; inset: 0; border-radius: var(--r-lg);
  background-image: radial-gradient(circle, oklch(0.55 0.02 250 / 0.5) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}

/* ambient glow behind orb */
.hv-ambient {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, oklch(0.55 0.26 258 / 0.35) 0%, transparent 70%);
  filter: blur(30px);
}

/* central orb */
.hv-orb {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36%; aspect-ratio: 1;
}
.hv-core {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(0.80 0.18 232), oklch(0.45 0.24 258) 60%, oklch(0.22 0.1 258));
  box-shadow: 0 0 40px oklch(0.55 0.26 258 / 0.6), 0 0 80px oklch(0.55 0.26 258 / 0.25);
}

/* orbiting rings */
.hv-ring {
  position: absolute; border-radius: 50%; border: 1px solid oklch(0.65 0.14 250 / 0.35);
}
.hv-ring em {
  display: block; position: absolute; top: 0; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hv-r1 { inset: -30%; animation: spin-cw  9s linear infinite; }
.hv-r1 em { background: var(--teal); box-shadow: 0 0 8px var(--teal-glow); }
.hv-r2 { inset: -55%; animation: spin-ccw 14s linear infinite; border-style: dashed; }
.hv-r2 em { background: var(--accent-2); box-shadow: 0 0 8px oklch(0.78 0.16 232 / 0.6); width: 6px; height: 6px; }
.hv-r3 { inset: -82%; animation: spin-cw  20s linear infinite; }
.hv-r3 em { background: oklch(0.65 0.2 250); box-shadow: 0 0 10px oklch(0.65 0.2 250 / 0.5); width: 5px; height: 5px; }
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* floating metric cards */
.hv-card {
  position: absolute;
  background: oklch(0.26 0.012 250 / 0.85);
  border: 1px solid oklch(0.55 0.04 250 / 0.5);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 130px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.4);
}
.hvc-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.hvc-val { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; }

/* card positions & individual float animations */
.hv-c1 { top: 8%; right: 2%; animation: float-a 5s ease-in-out infinite; }
.hv-c2 { bottom: 20%; right: 0%; animation: float-b 6s ease-in-out infinite; }
.hv-c3 { bottom: 4%; left: 4%; animation: float-c 7s ease-in-out infinite; }
@keyframes float-a { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float-b { 0%,100%{transform:translateY(0)} 50%{transform:translateY( 10px)} }
@keyframes float-c { 0%,100%{transform:translateY(0)} 50%{transform:translateY( -7px)} }

/* bar inside card 1 */
.hvc-bar { height: 4px; background: oklch(0.40 0.02 250); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.hvc-bar div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--accent)); border-radius: 2px; }

/* sparkline inside card 2 */
.hvc-spark { width: 100%; height: 28px; margin-top: 4px; color: var(--teal); overflow: visible; }

/* pip dots inside card 3 */
.hvc-pips { display: flex; gap: 5px; margin-top: 6px; }
.hvc-pips i { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.40 0.02 250); }
.hvc-pips i.on { background: var(--teal); box-shadow: 0 0 6px var(--teal-glow); }

@media (max-width: 900px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding-top: 160px; }
  .hero-lead { max-width: 100%; }
}

/* ---------- STATS STRIP ---------- */
.stats-strip { padding-block: clamp(48px, 7vh, 80px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat-item { text-align: center; padding: 28px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-soft); transition: border-color .4s; }
.stat-item:hover { border-color: var(--teal); }
.stat-item b {
  font-family: var(--display); font-size: clamp(36px, 5vw, 60px);
  line-height: 1; display: block; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--teal), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-item b i { font-style: normal; font-size: 0.5em; vertical-align: super; color: var(--teal); -webkit-text-fill-color: var(--teal); }
.stat-item b i.slash-seven { font-size: 0.65em; vertical-align: baseline; margin-left: 5px; letter-spacing: 0.08em; }
.stat-item span { color: var(--muted); font-size: 13px; margin-top: 10px; display: block; font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line-soft); padding: 26px 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 56px; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--display); font-size: clamp(22px, 3vw, 40px); font-weight: 600; color: var(--faint); display: inline-flex; align-items: center; gap: 56px; letter-spacing: -0.02em; }
.marquee-track span::after { content: "✦"; color: var(--teal); font-size: 0.6em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- section heading ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(32px, 5vw, 64px); }
.sec-head p { color: var(--muted); max-width: 40ch; }

/* ---------- services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-grid .svc:nth-child(4) { grid-column: 1 / 2; }
.svc-grid .svc:nth-child(5) { grid-column: 2 / 3; }
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc:nth-child(4),
  .svc-grid .svc:nth-child(5) { grid-column: auto; }
}
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; padding: 32px 30px 36px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden;
  transition: transform .45s var(--ease), border-color .4s, background .4s;
}
.svc::before {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  top: var(--my, 50%); left: var(--mx, 50%); transform: translate(-50%, -50%) scale(0);
  transition: transform .5s var(--ease); pointer-events: none; opacity: .5;
}
.svc:hover { transform: translateY(-6px); border-color: var(--accent); background: var(--bg-panel); }
.svc:hover::before { transform: translate(-50%, -50%) scale(1); }
.svc .ico { width: 52px; height: 52px; margin: 0 0 24px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-panel); position: relative; z-index: 2; }
.svc .ico svg { width: 26px; height: 26px; stroke: var(--accent); }
.svc h3 { font-size: 22px; margin-bottom: 12px; position: relative; z-index: 2; }
.svc p { color: var(--muted); font-size: 15px; position: relative; z-index: 2; }

/* ---------- live automation card ---------- */
.svc-anim {
  display: flex; flex-direction: column; gap: 0;
  padding: 24px 22px;
  cursor: default;
  height: 100%;
  contain: layout style;
}
.svc-anim-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.svc-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex: none;
  box-shadow: 0 0 0 0 var(--teal-glow);
  animation: live-ping 2s ease-out infinite;
}
@keyframes live-ping {
  0%   { box-shadow: 0 0 0 0   oklch(0.78 0.18 188 / 0.7); }
  70%  { box-shadow: 0 0 0 8px oklch(0.78 0.18 188 / 0); }
  100% { box-shadow: 0 0 0 0   oklch(0.78 0.18 188 / 0); }
}
.svc-anim-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); flex: 1;
}
.svc-anim-counter {
  font-family: var(--mono); font-size: 10px; color: var(--faint);
  letter-spacing: 0.06em;
  min-width: 88px; text-align: right;
}

.svc-feed {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden;
  height: 148px; flex: none;
  contain: strict;
}
.svc-feed-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  opacity: 0; transform: translateY(-8px);
  animation: feed-in .4s var(--ease) forwards;
  transition: opacity .35s;
}
.svc-feed-item:last-child { border-bottom: none; }
.svc-feed-item.exiting { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes feed-in { to { opacity: 1; transform: none; } }
.feed-icon { font-size: 14px; flex: none; width: 22px; text-align: center; }
.feed-text { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-result {
  font-family: var(--mono); font-size: 10px; color: var(--teal);
  background: oklch(0.78 0.18 188 / 0.1);
  border: 1px solid oklch(0.78 0.18 188 / 0.25);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex: none;
}

.svc-anim-bar {
  height: 3px; background: var(--line-soft); border-radius: 2px;
  margin-top: 14px; overflow: hidden;
}
.svc-anim-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transition: width .8s var(--ease);
}

/* ---------- testimonials carousel ---------- */
.tst-carousel { width: 100%; overflow: hidden; }
.tst-track { display: flex; gap: 16px; animation: scroll 20s linear infinite; will-change: transform; }
.tst { flex: 0 0 clamp(280px, 30vw, 360px); padding: 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-direction: column; gap: 20px; transition: border-color .4s; }
.tst:hover { border-color: var(--accent); }
.tst-carousel:hover .tst-track { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-360px * 6 - 96px)); } }
.tst .quote { font-size: 18px; line-height: 1.5; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.tst .who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.tst .ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--accent-ink); flex: none; }
.tst .who b { display: block; font-size: 15px; }
.tst .who span { font-size: 13px; color: var(--faint); }
.stars { color: var(--teal); letter-spacing: 3px; font-size: 13px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; max-width: 860px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 8px; text-align: left; font-family: var(--display); font-size: clamp(18px, 2.3vw, 24px); font-weight: 600; letter-spacing: -0.01em; transition: color .25s; }
.faq-q:hover { color: var(--accent); }
.faq-q .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: background .3s, border-color .3s; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: currentColor; transition: transform .3s var(--ease); }
.faq-q .ic::before { width: 12px; height: 2px; }
.faq-q .ic::after { width: 2px; height: 12px; }
.faq-item.open .faq-q .ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 8px 28px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(48px, 7vw, 90px); text-align: center; border: 1px solid var(--line); background: var(--bg-soft); }
.cta-band h2 { font-size: clamp(34px, 6vw, 76px); margin-bottom: 24px; }
.cta-band .lead { margin: 0 auto 36px; }
.cta-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 120% at 50% 120%, var(--glow), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 60px 40px; position: relative; z-index: 2; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--muted); padding: 6px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--muted); margin-top: 16px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; font-family: var(--mono); }
.big-word { font-family: var(--display); font-weight: 700; font-size: clamp(60px, 18vw, 280px); letter-spacing: -0.04em; line-height: 0.8; text-align: center; margin-top: 30px; color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none; }


/* ---------- ABOUT ---------- */
.abt-wrap { padding-top: 160px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 80px; }

.abt-hero { max-width: 820px; }
.abt-hero h1 { font-size: clamp(40px, 7vw, 96px); line-height: 0.98; margin-top: 18px; }
.abt-hero .lead { margin-top: 24px; }

/* mission */
.abt-mission {
  border-left: 3px solid var(--teal);
  padding: 36px 40px;
  background: var(--bg-soft); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.abt-mission::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, oklch(0.78 0.18 188 / 0.06), transparent 60%);
}
.abt-mission-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 14px;
}
.abt-mission-text {
  font-family: var(--display); font-size: clamp(20px, 3vw, 32px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--text); margin: 0;
}

/* story & what we do sections */
.abt-section { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .abt-section { grid-template-columns: 1fr; gap: 20px; } }
.abt-section-body { display: flex; flex-direction: column; gap: 18px; }
.abt-section-body p { color: var(--muted); font-size: 16px; line-height: 1.8; }

/* services list */
.abt-services { display: flex; flex-direction: column; gap: 0; }
.abt-svc-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
  transition: background .25s;
}
.abt-svc-item:last-child { border-bottom: none; }
.abt-svc-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  flex: none; margin-top: 6px;
  box-shadow: 0 0 8px var(--teal-glow);
}
.abt-svc-item strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.abt-svc-item p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }

/* why choose grid */
.abt-why-wrap { }
.abt-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.abt-why-grid .abt-why-card:nth-child(4) { grid-column: 1 / 2; }
.abt-why-grid .abt-why-card:nth-child(5) { grid-column: 2 / 3; }
@media (max-width: 860px) { .abt-why-grid { grid-template-columns: 1fr 1fr; } .abt-why-grid .abt-why-card:nth-child(4), .abt-why-grid .abt-why-card:nth-child(5) { grid-column: auto; } }
@media (max-width: 560px) { .abt-why-grid { grid-template-columns: 1fr; } }

.abt-why-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .4s var(--ease), border-color .3s;
}
.abt-why-card:hover { transform: translateY(-5px); border-color: oklch(0.78 0.18 188 / 0.5); }
.abt-why-ico { font-size: 26px; margin-bottom: 14px; }
.abt-why-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.abt-why-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ---------- INDUSTRIES ---------- */

/* impact strip */
.ind-strip {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-soft); overflow: hidden;
  margin: 52px 0 60px;
}
.ind-strip-item {
  flex: 1; padding: 28px 24px; text-align: center;
  transition: background .3s;
}
.ind-strip-item:hover { background: oklch(0.62 0.24 258 / 0.06); }
.ind-strip-item b {
  display: block; font-family: var(--display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--teal), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.ind-strip-item span { display: block; font-size: 12px; color: var(--faint); font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
.ind-strip-sep { width: 1px; align-self: stretch; background: var(--line-soft); flex: none; }
@media (max-width: 700px) {
  .ind-strip { flex-wrap: wrap; }
  .ind-strip-item { flex: 1 1 45%; }
  .ind-strip-sep { display: none; }
}

/* workflow animation */
.ind-flow {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 64px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px 32px;
  overflow: hidden;
}
.ind-flow-step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: none;
}
.ind-flow-ico {
  width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-panel);
  display: grid; place-items: center; font-size: 22px;
  box-shadow: 0 0 0 0 var(--teal-glow);
  animation: ind-glow 3s ease-in-out infinite;
}
.ind-flow-step:nth-child(3) .ind-flow-ico { animation-delay: .8s; }
.ind-flow-step:nth-child(5) .ind-flow-ico { animation-delay: 1.6s; }
.ind-flow-step:nth-child(7) .ind-flow-ico { animation-delay: 2.4s; }
@keyframes ind-glow {
  0%,100% { box-shadow: 0 0 0 0 oklch(0.78 0.18 188 / 0); border-color: var(--line); }
  50%      { box-shadow: 0 0 0 6px oklch(0.78 0.18 188 / 0.18); border-color: var(--teal); }
}
.ind-flow-step span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

.ind-flow-track {
  flex: 1; height: 2px; background: var(--line-soft);
  position: relative; overflow: hidden; border-radius: 1px;
}
.ind-flow-dot {
  position: absolute; top: 50%; left: -10%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--teal-glow);
  animation: travel 2.4s ease-in-out infinite;
}
@keyframes travel {
  0%   { left: -5%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
@media (max-width: 700px) { .ind-flow { display: none; } }

/* industry grid */
.ind-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 60px;
}
@media (max-width: 860px) { .ind-grid { grid-template-columns: 1fr; } }

/* industry card */
.ind-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .35s, background .35s;
}
.ind-card::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .5s var(--ease); pointer-events: none; opacity: .35;
}
.ind-card:hover { transform: translateY(-5px); border-color: oklch(0.55 0.24 258 / 0.5); background: var(--bg-panel); }
.ind-card:hover::before { transform: translate(-50%, -50%) scale(1); }

.ind-card-top { display: flex; align-items: flex-start; gap: 16px; }
.ind-ico {
  width: 56px; height: 56px; border-radius: 16px; flex: none;
  border: 1px solid var(--line); background: var(--bg-panel);
  display: grid; place-items: center; font-size: 26px;
  position: relative; z-index: 2;
}
.ind-label {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.ind-card h3 { font-size: clamp(17px, 2vw, 21px); line-height: 1.2; position: relative; z-index: 2; }
.ind-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.7; position: relative; z-index: 2; }

.ind-list {
  list-style: none; display: flex; flex-direction: column; gap: 9px;
  position: relative; z-index: 2;
}
.ind-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.ind-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex: none;
  box-shadow: 0 0 6px var(--teal-glow);
}

.ind-tags-wrap { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; margin-top: auto; }
.ind-tag-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ind-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ind-tags span {
  font-family: var(--mono); font-size: 11px; padding: 4px 12px;
  border-radius: 999px; border: 1px solid var(--line-soft);
  color: var(--faint); background: var(--bg-panel);
  transition: border-color .25s, color .25s;
}
.ind-card:hover .ind-tags span { border-color: oklch(0.55 0.24 258 / 0.3); color: var(--muted); }

/* industries final CTA */
.ind-cta { margin-top: 0; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info h2 { font-size: clamp(32px, 5vw, 60px); margin: 18px 0 22px; }
.contact-info .lead { margin-bottom: 36px; }

.form-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-soft); }
.field { margin-bottom: 22px; position: relative; }
.field label { display: block; font-size: 13px; font-family: var(--mono); color: var(--muted); margin-bottom: 9px; letter-spacing: 0.04em; }
.field label .req { color: var(--accent); }
.req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 15px 16px; border-radius: 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); font-family: var(--body); font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.62 0.24 258 / 0.18); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12px; margin-top: 7px; font-family: var(--mono); display: none; }
.field.invalid .err { display: block; }

/* Contact form direct styles override */
#contact-form input, #contact-form textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); font-family: var(--body); font-size: 14px;
  transition: border-color .25s, box-shadow .25s;
}
#contact-form input:focus, #contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.62 0.24 258 / 0.18);
}
#contact-form textarea { resize: vertical; min-height: 120px; }
.form-success { text-align: center; padding: 40px 10px; display: none; }
.form-success.show { display: block; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ════════════════════════════════════
   HOME CONTACT SECTION
════════════════════════════════════ */
.home-contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
@media (max-width: 860px) { .home-contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.home-contact-text { display: flex; flex-direction: column; gap: 0; }

.home-contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.home-contact-link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg-soft);
  transition: all .3s; color: var(--text);
}
.home-contact-link:hover { border-color: var(--teal); background: var(--bg-panel); transform: translateX(4px); }
.hcl-ico {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 16px var(--glow);
}
.hcl-ico.hcl-wa { background: #25D366; box-shadow: 0 0 16px rgba(37,211,102,0.4); }
.hcl-ico svg { width: 20px; height: 20px; color: #fff; }
.home-contact-link strong { display: block; font-size: 14px; font-weight: 600; }
.home-contact-link span { font-size: 12.5px; color: var(--muted); }

.home-contact-form {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
}
.home-contact-form .field { margin-bottom: 0; }
.home-contact-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--muted); }
.home-contact-form input,
.home-contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: var(--bg-panel); border: 1px solid var(--line);
  color: var(--text); font-family: var(--body); font-size: 15px;
  transition: border-color .25s, box-shadow .25s; outline: none;
}
.home-contact-form input:focus,
.home-contact-form textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px oklch(0.78 0.18 188 / 0.15);
}
.home-contact-form input::placeholder,
.home-contact-form textarea::placeholder { color: var(--faint); }
.home-contact-form textarea { resize: vertical; min-height: 110px; }
.home-contact-form .err { color: var(--danger); font-size: 12px; margin-top: 5px; display: none; font-family: var(--mono); }
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════
   FLOATING CTA BUTTONS
════════════════════════════════════ */
.float-cta-stack {
  position: fixed; bottom: 106px; right: 28px;
  z-index: 7999; display: flex; flex-direction: column; gap: 10px;
}
.float-cta-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative; cursor: pointer;
}
.float-cta-btn svg { width: 22px; height: 22px; }
.float-cta-btn:hover { transform: scale(1.12); }

.float-cta-phone { background: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--glow); }
.float-cta-phone:hover { box-shadow: 0 6px 24px var(--glow); }
.float-cta-wa { background: #25D366; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
.float-cta-wa:hover { box-shadow: 0 6px 24px rgba(37,211,102,0.6); }
.float-cta-sms { background: #1A73E8; color: #fff; box-shadow: 0 4px 16px rgba(26,115,232,0.4); }
.float-cta-sms:hover { box-shadow: 0 6px 24px rgba(26,115,232,0.6); }

.float-cta-tooltip {
  position: absolute; right: 58px; top: 50%;
  transform: translateY(-50%); white-space: nowrap;
  background: var(--bg-panel); color: var(--text);
  font-size: 12px; font-family: var(--mono); font-weight: 600;
  padding: 5px 10px; border-radius: 6px;
  border: 1px solid var(--line);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.float-cta-btn:hover .float-cta-tooltip { opacity: 1; }

/* ════════════════════════════════════
   CHATBOT WIDGET
════════════════════════════════════ */
.cw { position: fixed; bottom: 28px; right: 28px; z-index: 8000; font-family: var(--body); }

/* toggle button */
.cw-toggle {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px oklch(0.55 0.26 258 / 0.55), 0 0 0 0 oklch(0.78 0.18 188 / 0.4);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative;
  animation: cw-pulse 3s ease-in-out infinite;
}
@keyframes cw-pulse {
  0%,100% { box-shadow: 0 8px 28px oklch(0.55 0.26 258 / 0.55), 0 0 0 0 oklch(0.78 0.18 188 / 0.4); }
  50%      { box-shadow: 0 8px 28px oklch(0.55 0.26 258 / 0.55), 0 0 0 10px oklch(0.78 0.18 188 / 0); }
}
.cw-toggle:hover { transform: scale(1.1); animation: none; box-shadow: 0 12px 36px oklch(0.55 0.26 258 / 0.7); }
.cw-toggle.active { animation: none; }

.cw-ico-open, .cw-ico-close { position: absolute; transition: opacity .25s, transform .25s; }
.cw-ico-open  { width: 38px; height: 38px; }
.cw-ico-close { width: 22px; height: 22px; color: #fff; opacity: 0; transform: rotate(-90deg); }
.cw-toggle.active .cw-ico-open  { opacity: 0; transform: rotate(90deg) scale(0.8); }
.cw-toggle.active .cw-ico-close { opacity: 1; transform: rotate(0); }

/* robot animations */
.robot-antenna {
  transform-origin: 22px 3px;
  animation: antenna-ping 2.5s ease-in-out infinite;
}
@keyframes antenna-ping {
  0%,100% { r: 2.5; opacity: 1; }
  50%      { r: 4;   opacity: 0.5; }
}
.robot-eye-l {
  animation: blink 4s ease-in-out infinite;
  transform-origin: 16.5px 20px;
}
.robot-eye-r {
  animation: blink 4s ease-in-out infinite .1s;
  transform-origin: 27.5px 20px;
}
@keyframes blink {
  0%,90%,100% { transform: scaleY(1); }
  94%         { transform: scaleY(0.1); }
}
.cw-toggle:not(.active) .cw-robot {
  animation: robot-float 3s ease-in-out infinite;
}
@keyframes robot-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}

.cw-badge {
  position: absolute; top: 0; right: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: oklch(0.66 0.2 25); border: 2px solid var(--bg);
  display: none;
}

/* helper bubble */
.cw-bubble {
  position: absolute; bottom: 76px; right: 0;
  width: 240px;
  background: oklch(0.18 0.012 250 / 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px 18px 4px 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.5), 0 0 0 1px oklch(0.78 0.18 188 / 0.15);
  opacity: 0; pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cw-bubble.visible { opacity: 1; transform: none; pointer-events: all; }

/* arrow tip pointing to robot */
.cw-bubble::after {
  content: '';
  position: absolute; bottom: -8px; right: 18px;
  width: 14px; height: 8px;
  background: oklch(0.18 0.012 250 / 0.95);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid var(--line);
}

.cw-bubble p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 6px; }
.cw-bubble p strong { color: var(--text); }
.cw-bubble p:last-of-type { margin-bottom: 10px; }

.cw-bubble-cta {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--teal); font-weight: 700;
  animation: bubble-cta-pulse 2s ease-in-out infinite;
}
@keyframes bubble-cta-pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.5; }
}

.cw-bubble-close {
  position: absolute; top: 8px; right: 10px;
  font-size: 11px; color: var(--faint); background: none; border: none;
  cursor: pointer; padding: 2px 4px; line-height: 1;
  transition: color .2s;
}
.cw-bubble-close:hover { color: var(--text); }

/* panel */
.cw-panel {
  position: absolute; bottom: 76px; right: 0;
  width: 370px;
  background: oklch(0.18 0.012 250 / 0.92);
  backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px oklch(0 0 0 / 0.6), 0 0 0 1px oklch(0.78 0.18 188 / 0.12);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  transform-origin: bottom right;
  max-height: 560px;
}
.cw-panel.open { opacity: 1; transform: none; pointer-events: all; }
@media (max-width: 480px) { .cw-panel { width: calc(100vw - 40px); right: -4px; } }

/* header */
.cw-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, oklch(0.30 0.06 188 / 0.6), oklch(0.25 0.08 258 / 0.6));
  border-bottom: 1px solid var(--line-soft);
  flex: none;
}
.cw-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--accent-ink);
  position: relative;
}
.cw-online {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: oklch(0.75 0.2 142); border: 2px solid oklch(0.18 0.012 250);
  animation: cw-blink 2s ease-in-out infinite;
}
@keyframes cw-blink { 50% { opacity: 0.5; } }
.cw-header-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.cw-header-info span { font-size: 11.5px; color: var(--teal); font-family: var(--mono); letter-spacing: 0.04em; }
.cw-lang-toggle {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--teal);
  border: 1px solid oklch(0.78 0.18 188 / 0.4); border-radius: 999px;
  padding: 4px 10px; background: oklch(0.78 0.18 188 / 0.08);
  cursor: pointer; transition: all .2s;
}
.cw-lang-toggle:hover { background: oklch(0.78 0.18 188 / 0.2); border-color: var(--teal); }

/* messages body */
.cw-body {
  flex: 1; overflow-y: auto; padding: 16px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.cw-body::-webkit-scrollbar { width: 4px; }
.cw-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.cw-msg {
  max-width: 86%; font-size: 13.5px; line-height: 1.55;
  animation: cw-msg-in .3s var(--ease) both;
}
@keyframes cw-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cw-msg-bot {
  align-self: flex-start;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 10px 14px;
  color: var(--text);
}
.cw-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  border-radius: 16px 4px 16px 16px; padding: 10px 14px;
  color: var(--accent-ink); font-weight: 500;
}

/* typing indicator */
.cw-typing {
  align-self: flex-start;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; padding: 12px 16px;
  display: flex; gap: 5px; align-items: center;
}
.cw-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  animation: cw-bounce .9s ease-in-out infinite;
  display: block;
}
.cw-typing span:nth-child(2) { animation-delay: .15s; }
.cw-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cw-bounce { 0%,80%,100%{ transform: scale(1); opacity:.5; } 40%{ transform: scale(1.3); opacity:1; } }

/* plan card */
.cw-plan { display: flex; flex-direction: column; gap: 12px; }
.cw-plan-score {
  display: flex; align-items: center; gap: 14px;
  background: oklch(0.22 0.01 250 / 0.8);
  border: 1px solid oklch(0.78 0.18 188 / 0.3);
  border-radius: 12px; padding: 14px;
}
.cw-plan-ring { position: relative; width: 54px; height: 54px; flex: none; }
.cw-plan-ring svg { width: 54px; height: 54px; }
.cw-plan-ring > span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--teal);
}
.cw-plan-meta { display: flex; flex-direction: column; gap: 3px; }
.cw-plan-meta strong { font-size: 13px; color: var(--text); }
.cw-plan-meta span { font-size: 11.5px; color: var(--muted); }
.cw-plan-items { display: flex; flex-direction: column; gap: 8px; }
.cw-plan-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: oklch(0.22 0.01 250 / 0.6); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 10px 12px;
}
.cw-plan-ico { font-size: 16px; flex: none; }
.cw-plan-item strong { display: block; font-size: 12.5px; margin-bottom: 2px; }
.cw-plan-item p { font-size: 11.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.cw-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); color: var(--accent-ink);
  font-size: 10px; font-weight: 700; margin-right: 4px; flex: none;
}

/* quick-reply chips */
.cw-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px 10px; flex: none;
}
.cw-chip {
  font-family: var(--body); font-size: 12px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid oklch(0.78 0.18 188 / 0.4); color: var(--teal);
  background: oklch(0.78 0.18 188 / 0.08);
  transition: all .2s; white-space: nowrap;
}
.cw-chip:hover { background: oklch(0.78 0.18 188 / 0.18); border-color: var(--teal); transform: translateY(-1px); }

/* input area */
.cw-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 14px; border-top: 1px solid var(--line-soft); flex: none;
}
.cw-input {
  flex: 1; background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px;
  color: var(--text); font-family: var(--body); font-size: 13px;
  outline: none; transition: border-color .25s;
  cursor: text;
}
.cw-input:focus { border-color: var(--teal); }
.cw-input::placeholder { color: var(--faint); }
.cw-send {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--accent));
  border: none; cursor: pointer; display: grid; place-items: center;
  transition: transform .2s, opacity .2s;
}
.cw-send:hover { transform: scale(1.1); }
.cw-send svg { width: 16px; height: 16px; color: #fff; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

@media (max-width: 820px) {
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 24px; }
}

/* Paddings de sección responsivos */
.section-responsive-padding {
  padding-top: 160px;
  padding-bottom: 120px;
}
.section-responsive-padding-contact {
  padding-top: 160px;
  padding-bottom: 100px;
}
.industries-title {
  font-size: clamp(44px, 8vw, 100px);
  line-height: 0.96;
  margin-top: 18px;
}

@media (max-width: 820px) {
  .section-responsive-padding {
    padding-top: 100px;
    padding-bottom: 70px;
  }
  .section-responsive-padding-contact {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .industries-title {
    font-size: clamp(28px, 8vw, 44px);
  }
  .hero h1 {
    font-size: clamp(28px, 8vw, 46px);
  }
}

/* Optimizaciones específicas para celulares de menos de 480px */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat-item {
    padding: 20px 16px;
  }
  .cw-panel {
    width: calc(100vw - 40px);
    right: -4px;
    max-height: calc(100vh - 120px);
    bottom: 72px;
  }
  .ind-strip-item {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--line-soft);
    padding: 20px 16px;
  }
  .ind-strip-item:last-child {
    border-bottom: none;
  }
}
