/* ==========================================================================
   TeleScan — design system
   Premium SaaS aesthetic: 8px spacing rhythm, restrained gradients,
   glass only where it earns its keep, real SVG icons throughout.
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Consolas, Monaco, monospace;

  /* Surfaces — dark is the permanent default identity now, not a media-query fallback */
  --bg: #08090d;
  --bg-alt: #0c0d13;
  --bg-raised: #101219;
  --surface: #12131b;
  --surface-2: #15171f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f3f4f8;
  --muted: #9a9eae;
  --muted-2: #6c7080;

  /* Brand */
  --primary: #8b83ff;
  --primary-2: #b09aff;
  --primary-strong: #a89bff;
  --primary-soft: #191a2e;
  --primary-ring: rgba(139, 131, 255, 0.22);
  --accent: #45d6e6;
  --accent-soft: #10262b;

  /* Semantic (status colors — kept literal, functional, not brand) */
  --green: #34d399;
  --green-soft: #10291f;
  --green-soft-text: #4ade80;
  --red: #f87171;
  --red-soft: #2a1616;
  --red-soft-text: #fca5a5;
  --orange: #fbbf24;
  --orange-soft: #2b2110;
  --orange-soft-text: #fcd34d;
  --gray-soft: #1b1d27;
  --gray-soft-text: #9a9eae;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 30px 90px rgba(139, 131, 255, 0.22), 0 8px 30px rgba(0, 0, 0, 0.5);

  /* Rhythm */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' 1, 'cv01' 1;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: -0.02em; }

p { color: var(--muted); }

code {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
}

::selection { background: var(--primary-ring); }

svg { display: block; }

.icon {
  width: 100%;
  height: 100%;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(100deg, var(--primary), var(--accent), var(--primary-2), var(--primary));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

/* ---------- Scroll reveal ---------- */
/* Content is visible by default — the fade-up effect is opt-in, only
   switched on by JS once it has actually confirmed it can reveal things
   again (IntersectionObserver present + a safety-net timer armed). This
   way a JS error, a slow/blocked script, or any edge case that stops the
   observer from firing can never leave a section permanently blank —
   the worst case is just no animation, never missing content. */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* Card grids inside sections (.reveal-stagger) no longer hide themselves at
   all — they showed a real bug (content that never got revealed, since
   nothing was watching them), and a missed pricing/features grid is worse
   than a missing stagger animation. Always visible; the stagger classes are
   kept only so old markup/JS references don't error, but they no longer do
   anything but harmless no-op transitions. */
.reveal-stagger > * {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: auto;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text em {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Plain icon, no background badge — the icon itself carries a looping
   scan-line sweep so the brand mark reads as an actual live scanner. */
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-mark-scanline {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 6px rgba(34, 211, 238, 0.9), 0 0 10px rgba(34, 211, 238, 0.55);
  animation: brand-scan-sweep 2.2s ease-in-out infinite;
}

@keyframes brand-scan-sweep {
  0% { top: 8%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 86%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark-scanline { animation: none; opacity: 0.75; top: 46%; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-desktop-cta { display: inline-flex; margin-left: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
  transition: border-color 0.15s;
}

.nav-toggle:hover { border-color: var(--border-strong); }

.nav-toggle .icon-menu-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu-close { display: block; }

.nav-mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.32) 48%, transparent 66%);
  background-size: 220% 100%;
  background-position: 120% 0;
  transition: background-position 0.6s var(--ease-out);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before { background-position: -20% 0; }

.btn-primary:active { transform: translateY(0); }

.hero-actions .btn-primary {
  animation: cta-glow 3.2s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 16%, transparent), var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
}

.hero-actions .btn-primary:hover { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-primary { animation: none; }
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-lg .icon { width: 18px; height: 18px; }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 132px 24px 96px;
}

.hero-mesh {
  position: absolute;
  inset: -15% -10% auto -10%;
  height: 760px;
  background:
    radial-gradient(560px circle at 18% 10%, rgba(91, 79, 233, 0.18), transparent 62%),
    radial-gradient(480px circle at 88% 0%, rgba(14, 165, 183, 0.14), transparent 60%),
    radial-gradient(420px circle at 55% 45%, rgba(139, 92, 246, 0.12), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
  animation: mesh-drift 14s ease-in-out infinite;
}

@keyframes mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 2%) scale(1.04); }
}

/* Hero entrance — pure CSS `animation`, not gated behind any JS class or
   observer, so unlike the old scroll-reveal system this can't get stuck:
   browsers that support the `animation` property (effectively all of them)
   run it unconditionally and immediately on paint. Content is never given a
   static opacity:0 outside of the keyframes themselves, so anything that
   somehow doesn't animate just renders at its normal, fully visible state. */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-stats, .hero-visual {
  animation: hero-fade-up 0.7s var(--ease-out) both;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.14s; }
.hero-sub { animation-delay: 0.22s; }
.hero-actions { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.38s; }
.hero-visual { animation-delay: 0.28s; animation-duration: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero .eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-stats, .hero-visual {
    animation: none;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px circle at 50% 0%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(720px circle at 50% 0%, black, transparent 72%);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-inner > * { min-width: 0; }

.hero-copy { max-width: 570px; min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.eyebrow .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 10%, transparent); }
}

.hero h1 {
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-sub {
  font-size: 1.16rem;
  color: var(--muted);
  margin: 0 0 38px;
  max-width: 52ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat { display: flex; flex-direction: column; gap: 3px; }

.hero-stat strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-stat span { font-size: 0.85rem; color: var(--muted-2); font-weight: 500; }

/* ---------- Hero visual mockup ---------- */
.hero-visual { position: relative; min-width: 0; }

.mock-window {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock-dot {
  --dot-color: var(--border-strong);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-color);
  flex-shrink: 0;
  animation: mock-dot-blink 2.4s ease-in-out infinite;
}

.mock-dot-red { --dot-color: #ff5f57; animation-delay: 0s; }
.mock-dot-yellow { --dot-color: #febc2e; animation-delay: 0.3s; }
.mock-dot-green { --dot-color: #28c840; animation-delay: 0.6s; }

@keyframes mock-dot-blink {
  0%, 100% { opacity: 0.4; box-shadow: none; }
  50% { opacity: 1; box-shadow: 0 0 6px var(--dot-color), 0 0 2px var(--dot-color); }
}

@media (prefers-reduced-motion: reduce) {
  .mock-dot { animation: none; opacity: 0.85; }
}

.mock-window-title {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.mock-window-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-soft);
  color: var(--green-soft-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.mock-window-tag .icon { width: 11px; height: 11px; }

.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.mock-row:hover { border-color: var(--border-strong); transform: translateX(2px); }

.mock-cc {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 5px;
}

.mock-number {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.mock-status .icon { width: 12px; height: 12px; }

.status-fresh { background: var(--green-soft); color: var(--green-soft-text); }
.status-banned { background: var(--red-soft); color: var(--red-soft-text); }
.status-locked { background: var(--orange-soft); color: var(--orange-soft-text); }
.status-registered { background: var(--gray-soft); color: var(--gray-soft-text); }

.mock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
  font-size: 0.75rem;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
}

.mock-badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 10px 15px 10px 11px;
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 700;
  animation: float-bob 5s ease-in-out infinite;
}

.mock-badge-float .icon-wrap { width: 26px; height: 26px; }
.mock-badge-float .icon { width: 15px; height: 15px; }

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--tilt, 0deg)); }
}

.mock-badge-float.float-1 { top: -20px; right: -18px; --tilt: -2deg; animation-delay: 0s; }
.mock-badge-float.float-2 { bottom: -18px; left: -20px; --tilt: 1.5deg; animation-delay: 1.6s; }
.mock-badge-float.float-3 { bottom: 40%; right: -26px; --tilt: -1.5deg; animation-delay: 3.1s; }

@media (prefers-reduced-motion: reduce) {
  .mock-badge-float { animation: none; }
}

/* ---------- Icon wrap (shared) ---------- */
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: var(--primary);
  background: var(--primary-soft);
}

.icon-primary { color: var(--primary); background: var(--primary-soft); }
.icon-accent { color: var(--accent); background: var(--accent-soft); }
.icon-green { color: var(--green-soft-text); background: var(--green-soft); }
.icon-orange { color: var(--orange-soft-text); background: var(--orange-soft); }
.icon-red { color: var(--red-soft-text); background: var(--red-soft); }
.icon-neutral { color: var(--muted); background: var(--gray-soft); }

/* ---------- Trust band ---------- */
.trust-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 24px;
}

.trust-band-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.trust-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.trust-pill .icon-wrap { width: 40px; height: 40px; padding: 9px; }
.trust-pill .icon { width: 100%; height: 100%; }

.trust-pill-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trust-pill-text strong { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.trust-pill-text span { font-size: 0.79rem; color: var(--muted-2); }

/* ---------- Sections ---------- */
.section { max-width: var(--container); margin: 0 auto; padding: 104px 24px; }

.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-head { text-align: center; margin-bottom: 60px; max-width: 640px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--primary);
  border-radius: 1px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-sub { text-align: center; color: var(--muted); font-size: 1.06rem; max-width: 640px; margin: 0 auto; line-height: 1.65; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  position: relative;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  transition: background 0.2s var(--ease);
}

.step:hover { background: var(--surface-2); }

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 46px;
  right: -2px;
  width: calc(100% - 64px);
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  transform: translateX(50%);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px -6px rgba(91, 79, 233, 0.45);
}

.step h3 { margin: 0 0 10px; font-size: 1.14rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.step p strong { color: var(--text); }

/* ---------- Compare (Why TeleScan) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.compare-col {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

.compare-old { background: var(--bg-alt); }

.compare-new {
  position: relative;
  background: var(--surface);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.compare-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 55%);
  pointer-events: none;
}

.compare-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.compare-head .icon-wrap { width: 38px; height: 38px; padding: 9px; }
.compare-head h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }

.compare-col ul {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-col li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.compare-new li { color: var(--text); }

.compare-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 1px;
}

.compare-mark .icon { width: 12px; height: 12px; }

.mark-x { background: var(--red-soft); color: var(--red-soft-text); }
.mark-check { background: var(--green-soft); color: var(--green-soft-text); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card .icon-wrap {
  width: 48px;
  height: 48px;
  padding: 11px;
  margin-bottom: 20px;
  transition: transform 0.25s var(--ease);
}

.card:hover .icon-wrap { transform: scale(1.08) rotate(-2deg); }

.card h3 { margin: 0 0 10px; font-size: 1.1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- Future projects ---------- */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-soft);
  color: var(--orange-soft-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.future-card .icon-wrap { margin-top: 4px; }

/* ---------- Pricing ---------- */
.pricing-grid { max-width: 1000px; margin: 0 auto; align-items: stretch; }

.pricing-card {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 36px;
}

.pricing-card-popular {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--primary-2)) border-box;
  border: 1px solid transparent;
}

.pricing-card-popular:hover { transform: translateY(-6px); }

.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(91, 79, 233, 0.5);
}

.popular-tag .icon { width: 12px; height: 12px; }

.pricing-card h3 { font-size: 1.15rem; margin: 0 0 4px; letter-spacing: -0.01em; }

.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 16px 0; }
.price-offer { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price-regular { font-size: 1.1rem; color: var(--muted-2); text-decoration: line-through; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-soft);
  color: var(--green-soft-text);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.79rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-muted { background: transparent; color: transparent; }
.badge-live { background: var(--green-soft); color: var(--green-soft-text); margin-left: 10px; vertical-align: middle; }

.plan-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.89rem; color: var(--muted); }

.plan-features .compare-mark { background: var(--green-soft); color: var(--green-soft-text); }

.pricing-card .btn { width: 100%; margin-top: auto; }

/* ---------- API ---------- */
.api-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.api-copy h2 { display: flex; align-items: center; flex-wrap: wrap; }

.api-feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

.api-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.api-feature:hover { border-color: var(--border-strong); transform: translateX(3px); }

.api-feature .icon-wrap { width: 40px; height: 40px; padding: 9px; }
.api-feature h3 { margin: 0 0 4px; font-size: 1rem; }
.api-feature p { margin: 0; font-size: 0.9rem; }

.api-cta { margin-top: 32px; }

.api-visual {
  position: relative;
  background: #0b0c12;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.api-visual-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #14151d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.api-visual-bar .mock-window-title { color: #7d8194; }

.api-visual pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.75;
  color: #e6e7ec;
}

.api-tok-key { color: #93c5fd; }
.api-tok-str { color: #86efac; }
.api-tok-comment { color: #6b7280; }
.api-tok-fn { color: #c4b5fd; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 26px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-sm); }

.faq-item summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease);
}

.faq-chevron .icon { width: 14px; height: 14px; }

.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--primary-soft); }

.faq-item p { margin: 0 0 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.faq-item p a { color: var(--primary); font-weight: 600; }
.faq-item p strong { color: var(--text); }

/* ---------- Final CTA ---------- */
.contact { text-align: center; }

.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-soft), var(--bg-alt) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 76px 32px;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -35% -10% auto -10%;
  height: 320px;
  background: radial-gradient(460px circle at 50% 0%, rgba(91, 79, 233, 0.2), transparent 65%);
  pointer-events: none;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(560px circle at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(560px circle at 50% 20%, black, transparent 75%);
  pointer-events: none;
}

.contact-card > * { position: relative; }

.contact-card h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.025em; }
.contact-card .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 24px 36px; }

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand { font-size: 1rem; }

.footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.footer-links a:hover { color: var(--text); background: var(--surface-2); }

.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer p { margin: 0; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 440px; margin: 40px auto 0; }
  .api-layout { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step::after { display: none; }
  .trust-band-inner { grid-template-columns: repeat(2, 1fr); }
  .mock-badge-float.float-3 { display: none; }
}

@media (max-width: 720px) {
  .nav-links, .nav-desktop-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-mobile {
    display: none;
    flex-direction: column;
    gap: 2px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 24px 20px;
  }

  .nav-mobile.is-open { display: flex; }

  .nav-mobile a {
    display: flex;
    align-items: center;
    padding: 13px 4px;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
  }

  .nav-mobile .btn { margin-top: 14px; justify-content: center; }

  .hero { padding: 92px 20px 56px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-stats { gap: 28px; }

  .section { padding: 72px 20px; }
  .section-head { margin-bottom: 44px; }

  .trust-band { padding: 32px 20px; }
  .trust-band-inner { grid-template-columns: 1fr; }

  .faq-item summary { font-size: 0.95rem; }

  .pricing-card-popular:hover { transform: translateY(-4px); }

  .contact-card { padding: 52px 24px; }

  .footer-links { gap: 2px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ---------- Background grid + TeleScan loader ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 131, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 131, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(900px circle at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(900px circle at 50% 0%, #000, transparent 72%);
}

.tele-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: radial-gradient(circle at 50% 38%, #1c1550 0%, #0a0714 55%, #030207 100%);
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.tele-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000, transparent 72%);
}

.tele-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tele-loader-orbit {
  width: 168px;
  height: 168px;
  position: relative;
  filter: drop-shadow(0 0 28px rgba(99, 102, 241, 0.55));
}

.tele-loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.tele-loader-ring--outer {
  inset: 0;
  border-top-color: #818cf8;
  border-right-color: #c4b5fd;
  border-bottom-color: rgba(129, 140, 248, 0.15);
  border-left-color: rgba(129, 140, 248, 0.15);
  animation: tele-spin 2.2s linear infinite;
}

.tele-loader-ring--inner {
  inset: 20px;
  border-top-color: #22d3ee;
  border-right-color: rgba(34, 211, 238, 0.15);
  border-bottom-color: rgba(34, 211, 238, 0.15);
  border-left-color: #22d3ee;
  animation: tele-spin-reverse 1.6s linear infinite;
}

.tele-loader-core {
  position: absolute;
  inset: 52px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.55), inset 0 0 16px rgba(255, 255, 255, 0.15);
  animation: tele-pulse 1.4s ease-in-out infinite;
}

.tele-loader-scanline {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 16px rgba(34, 211, 238, 0.7);
  animation: tele-scan-sweep 1.8s ease-in-out infinite;
}

@keyframes tele-scan-sweep {
  0% { top: 18%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}

.tele-loader-core svg {
  width: 42%;
  height: 42%;
  color: #fff;
}

.tele-loader-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #a78bfa;
  animation: tele-node-pulse 1.3s ease-in-out infinite;
}

.tele-loader-node--one { top: 8px; left: 16px; }
.tele-loader-node--two { top: 58px; right: -4px; animation-delay: 0.3s; }
.tele-loader-node--three { bottom: 4px; left: 38px; animation-delay: 0.6s; }

.tele-loader-label {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #e4e4ff;
  text-transform: uppercase;
  margin: 0;
}

.tele-loader-dots i {
  font-style: normal;
  opacity: 0.2;
  animation: tele-dot-step 1.2s infinite;
}

.tele-loader-dots i:nth-child(2) { animation-delay: 0.2s; }
.tele-loader-dots i:nth-child(3) { animation-delay: 0.4s; }

.tele-loader-track {
  width: min(220px, 60vw);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.tele-loader-track span {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #818cf8, #fff, #22d3ee, transparent);
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.8);
  animation: tele-progress 1.3s ease-in-out infinite;
}

@keyframes tele-spin { to { transform: rotate(360deg); } }
@keyframes tele-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes tele-pulse {
  50% { transform: scale(0.9); box-shadow: 0 0 18px rgba(124, 58, 237, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1); }
}
@keyframes tele-node-pulse { 50% { opacity: 0.35; transform: scale(0.6); } }
@keyframes tele-dot-step {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}
@keyframes tele-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

@media (prefers-reduced-motion: reduce) {
  .tele-loader-ring, .tele-loader-core, .tele-loader-node, .tele-loader-dots i, .tele-loader-track span, .tele-loader-scanline {
    animation: none;
  }
}

/* ---------- Floating contact widget ---------- */
/* The widget's own hit-box must never be bigger than the visible fab button —
   the popup is positioned absolutely (out of flow) so a closed, invisible
   popup can't reserve real screen space and silently swallow clicks meant
   for page content underneath it (this broke mobile CTA buttons that
   happened to scroll under the widget's bottom-right corner). */
.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.chat-fab {
  position: relative;
  width: 58px;
  height: 58px;
  pointer-events: auto;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.chat-fab:hover {
  transform: translateY(-2px) scale(1.04);
}

.chat-fab-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}

.chat-fab-icon-close {
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
}

.chat-widget.is-open .chat-fab-icon-open {
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
}

.chat-widget.is-open .chat-fab-icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chat-fab-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
  animation: chat-ping 2.4s ease-in-out infinite;
}

.chat-widget.is-open .chat-fab-ping {
  display: none;
}

@keyframes chat-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.chat-popup {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}

.chat-widget.is-open .chat-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
}

.chat-popup-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-popup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-popup-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-popup-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-popup-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  opacity: 0.9;
  margin-top: 2px;
}

.chat-popup-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: chat-status-pulse 2s ease-in-out infinite;
}

@keyframes chat-status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.chat-popup-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}

.chat-popup-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.chat-popup-close svg {
  width: 15px;
  height: 15px;
}

.chat-popup-body {
  padding: 18px 16px 20px;
}

.chat-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.chat-bubble p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
}

.chat-bubble p + p {
  margin-top: 8px;
  color: var(--muted);
}

.chat-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.chat-contact-btn:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  text-decoration: none;
}

.chat-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.chat-contact-icon svg {
  width: 18px;
  height: 18px;
}

.chat-contact-tg .chat-contact-icon {
  background: linear-gradient(135deg, #2fa9e0, #229ed9);
}

.chat-contact-wa .chat-contact-icon {
  background: linear-gradient(135deg, #29c26a, #25d366);
}

.chat-contact-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.chat-contact-text strong {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
}

.chat-contact-text span {
  font-size: 0.76rem;
  color: var(--muted);
}

.chat-contact-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.chat-contact-arrow svg {
  width: 15px;
  height: 15px;
}

.chat-contact-btn:hover .chat-contact-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-fab {
    width: 52px;
    height: 52px;
  }

  .chat-popup {
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab-ping, .chat-popup-status i {
    animation: none;
  }
}
