/* ==========================================================================
   CHATBOT — /chatbot   (design: assets/html/teamian-chatbot.html)
   Namespace: everything is scoped under .tcb, which is the <main> wrapper in
   chatbot.php. Paired with assets/js/teamian-chatbot.js.

   The mock is a standalone dark/light page using bare, generic class names
   (.hero, .btn, .dot, .line, .msg, .stat, .step, .marquee, .cursor, .logo…)
   and styling `body`, `main` and bare `section`. It is scoped rather than
   renamed, same approach as teamian-ai-calling.css. What changed, and why:

   1. :root, `body` and `main` all collapse onto .tcb — that is why the wrapper
      is <main class="tcb">. On :root the mock's tokens would have redefined
      --line, --muted and --text site-wide; the body rules (background:#000,
      color:#fff) would have blacked out the shared header and footer.
   2. `cursor: none` is scoped to .tcb, so the native cursor comes back over
      the shared nav and footer. The mock hid it document-wide, which it could
      afford because it had no site chrome.
   3. The custom cursor dot drops from z-index 9999 to 40, passing under the
      fixed nav and the lead-form modal rather than over them.
   4. .noise becomes position:absolute inside .tcb instead of position:fixed.
      Fixed, it tinted the header and footer as well — they are not part of
      this design. It is a tiled texture, so it renders identically.
   5. Every `Nfr` grid track became `minmax(0,Nfr)`. An fr track's automatic
      minimum is min-content; on /ai-calling that let a hero column measure
      1893px inside a 1457px grid and pushed the next column to width 0,
      off-screen. Cheap to prevent for every grid here rather than wait for it.
   6. The `*` box-sizing reset and `html{scroll-behavior}` are gone — Tailwind
      preflight and style.css already own both.
   7. .hero clears the 76px fixed nav.

   The mock's own reveal class is .reveal-on-scroll, not .reveal, so main.js's
   observer does not touch it and no rename was needed here.
   ========================================================================== */

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

  

  .tcb{
    background: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'ss01', 'cv11', 'tnum';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* ============ Cursor + Spotlight ============ */
  /* Hiding the native cursor is gated on a fine, hovering pointer. The mock set
     `cursor:none` on body unconditionally; on a touch or hybrid device that
     leaves a hybrid laptop user with no pointer at all, since the replacement
     dot is driven by mousemove. */
  @media (hover: hover) and (pointer: fine){
    .tcb{ cursor: none; }
  }
  .tcb .cursor{
    position: fixed;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 40;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.25s var(--ease), height 0.25s var(--ease);
  }
  .tcb .cursor.large{ width: 44px; height: 44px; }

  .tcb .noise{
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }

  .tcb{ position: relative; z-index: 3; }

  /* ============ Section themes ============ */
  .tcb section{
    padding: 0 32px;
    position: relative;
  }
  .tcb .section-inner{
    max-width: 1280px;
    margin: 0 auto;
  }

  .tcb section.dark{
    background: #000;
    color: #fff;
    --text: #fff;
    --muted: #8a8a8a;
    --dim: #545454;
    --line: rgba(255,255,255,0.08);
    --line-2: rgba(255,255,255,0.14);
    --card-bg: linear-gradient(180deg, #0c0c0c, #050505);
    --btn-fg: #000;
    --btn-bg: #fff;
    --btn-ghost-fg: #fff;
    --btn-ghost-border: rgba(255,255,255,0.14);
  }
  .tcb section.light{
    background: #f4f4f2;
    color: #000;
    --text: #000;
    --muted: #6a6a6a;
    --dim: #a8a8a8;
    --line: rgba(0,0,0,0.08);
    --line-2: rgba(0,0,0,0.16);
    --card-bg: #fff;
    --btn-fg: #fff;
    --btn-bg: #000;
    --btn-ghost-fg: #000;
    --btn-ghost-border: rgba(0,0,0,0.2);
  }

  /* Hard-cut divider between sections */
  .tcb section + section::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.06;
  }

  /* ============ HERO ============ */
  .tcb .hero{
    min-height: 100vh;
    padding-top: calc(76px + 80px);
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
    gap: 60px;
    align-items: center;
  }
  .tcb .hero-visual-wrap{ position: relative; }

  .tcb .eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    margin-bottom: 36px;
  }
  .tcb .eyebrow .dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    animation: pulse 2s ease-in-out infinite;
    color: var(--text);
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
  }

  .tcb .hero-title{
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    margin: 0 0 32px 0;
    font-weight: 200;
  }
  .tcb .hero-title .heavy{ font-weight: 900; display: block; }
  .tcb .hero-title .italic-thin{ font-style: italic; font-weight: 100; color: var(--muted); }

  .tcb .reveal-mask{ display: inline-block; overflow: hidden; vertical-align: top; }
  .tcb .reveal-inner{
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: rise 1.1s var(--ease) forwards;
  }
  .tcb .reveal-mask.d1 .reveal-inner{ animation-delay: 0.1s; }
  .tcb .reveal-mask.d2 .reveal-inner{ animation-delay: 0.25s; }
  .tcb .reveal-mask.d3 .reveal-inner{ animation-delay: 0.4s; }
  .tcb .reveal-mask.d4 .reveal-inner{ animation-delay: 0.55s; }
  .tcb .reveal-mask.d5 .reveal-inner{ animation-delay: 0.7s; }
  @keyframes rise { to { transform: translateY(0); opacity: 1; } }

  .tcb .hero-sub{
    font-size: 17px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 480px;
    font-weight: 400;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.9s forwards;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .tcb .cta-row{
    display: flex; gap: 16px; align-items: center;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 1.1s forwards;
  }

  .tcb .btn{
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 16px 26px;
    border-radius: 100px;
    cursor: none;
    border: none;
    transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .tcb .btn-primary{ background: var(--btn-bg); color: var(--btn-fg); }
  .tcb .btn-primary:hover{ transform: translateY(-2px); }
  .tcb .btn-primary .arrow{ transition: transform 0.35s var(--ease); }
  .tcb .btn-primary:hover .arrow{ transform: translateX(4px); }

  .tcb .btn-ghost{
    background: transparent;
    color: var(--btn-ghost-fg);
    border: 1px solid var(--btn-ghost-border);
  }
  .tcb .btn-ghost:hover{
    background: rgba(127,127,127,0.06);
    border-color: currentColor;
  }

  /* ============ Orbital hero visual ============ */
  .tcb .hero-visual{
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    justify-self: end;
    width: 100%;
    opacity: 0;
    animation: fadeUp 1.4s var(--ease) 0.6s forwards;
  }
  .tcb .orbit-svg{ width: 100%; height: 100%; overflow: visible; }
  .tcb .orbit-ring{ fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1; }
  .tcb .orbit-node{ fill: #fff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.9)); }
  .tcb .rotate-slow{ transform-origin: 50% 50%; animation: rotate 40s linear infinite; }
  .tcb .rotate-med{ transform-origin: 50% 50%; animation: rotate 24s linear infinite reverse; }
  .tcb .rotate-fast{ transform-origin: 50% 50%; animation: rotate 14s linear infinite; }
  @keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  .tcb .core{
    position: absolute;
    top: 50%; left: 50%;
    width: 44%; height: 44%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #050505 65%);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 60px rgba(255,255,255,0.12), inset 0 0 40px rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 18px;
  }
  .tcb .core::before{
    content: ''; position: absolute; inset: -6px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.08);
  }
  .tcb .eye-row{ display: flex; gap: 28px; }
  .tcb .eye{
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.4);
    animation: blink 5s infinite;
  }
  .tcb .eye.b{ animation-delay: 0.1s; }
  @keyframes blink {
    0%, 45%, 50%, 100% { transform: scaleY(1); }
    47.5% { transform: scaleY(0.1); }
  }
  .tcb .core-label{
    font-size: 9px; letter-spacing: 0.3em; color: #8a8a8a; text-transform: uppercase;
  }
  .tcb .msg-pill{
    position: absolute;
    background: rgba(15,15,15,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 11px;
    color: #fff;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 30px rgba(0,0,0,0.8);
  }
  .tcb .msg-1{ top: 8%; left: -8%; animation-delay: 0s; }
  .tcb .msg-2{ top: 68%; right: -6%; animation-delay: 1.5s; }
  .tcb .msg-3{ bottom: 8%; left: 8%; animation-delay: 3s; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  /* ============ MARQUEE ============ */
  .tcb .marquee-wrap{
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
  }
  .tcb .marquee{
    display: flex; gap: 60px;
    animation: scroll 40s linear infinite;
    white-space: nowrap; align-items: center;
  }
  .tcb .marquee-item{
    font-size: 34px; font-weight: 200;
    letter-spacing: -0.02em; color: var(--dim);
    display: flex; align-items: center; gap: 60px;
  }
  .tcb .marquee-item .heavy{
    font-weight: 800; color: var(--text); font-style: italic;
  }
  .tcb .marquee-item .star{ font-size: 18px; color: var(--dim); }
  @keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* ============ Section headers ============ */
  .tcb .section-label{
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tcb .section-label .line{
    width: 40px; height: 1px; background: var(--line-2);
  }
  .tcb .section-title{
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 28px 0;
    font-weight: 200;
  }
  .tcb .section-title .heavy{ font-weight: 900; }
  .tcb .section-title .italic{ font-style: italic; font-weight: 300; color: var(--muted); }
  .tcb .section-body{
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 36px;
  }

  /* ============ WEBSITE-IN-CONTEXT DEMO (LIGHT) ============ */
  .tcb .in-context{
    padding-top: 140px;
    padding-bottom: 140px;
  }
  .tcb .in-context-header{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 60px;
    margin-bottom: 80px;
    align-items: end;
  }
  .tcb .in-context-header p{
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 460px;
    margin: 0;
    justify-self: end;
  }

  .tcb .browser-frame{
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 40px 80px rgba(0,0,0,0.18),
      0 8px 20px rgba(0,0,0,0.08),
      0 0 0 1px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
  }

  .tcb .browser-chrome{
    background: #ececea;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .tcb .browser-dots{ display: flex; gap: 7px; }
  .tcb .browser-dots span{
    width: 12px; height: 12px; border-radius: 50%;
    background: #cfcfcd;
  }
  .tcb .browser-dots span:nth-child(1){ background: #e08a80; }
  .tcb .browser-dots span:nth-child(2){ background: #e0c580; }
  .tcb .browser-dots span:nth-child(3){ background: #96c896; }
  .tcb .url-bar{
    flex: 1;
    background: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #666;
    display: flex; align-items: center; gap: 8px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  }
  .tcb .url-bar::before{
    content: '';
    width: 10px; height: 10px;
    border: 1.5px solid #666;
    border-radius: 50%;
    position: relative;
  }

  .tcb .browser-body{
    background: #fafaf8;
    height: calc(100% - 46px);
    position: relative;
    overflow: hidden;
  }

  .tcb .fake-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fff;
  }
  .tcb .fake-nav .logo{
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: #000;
  }
  .tcb .fake-nav .links{
    display: flex; gap: 24px;
    font-size: 12px;
    color: #666;
  }

  .tcb .fake-hero{
    padding: 60px 48px 40px;
    text-align: center;
  }
  .tcb .fake-hero h3{
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 200;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 16px;
    color: #000;
  }
  .tcb .fake-hero h3 .b{ font-weight: 900; font-style: italic; }
  .tcb .fake-hero p{
    font-size: 13px;
    color: #666;
    max-width: 360px;
    margin: 0 auto 20px;
    line-height: 1.6;
  }
  .tcb .fake-btn{
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
  }

  .tcb .fake-products{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
    padding: 20px 32px 40px;
  }
  .tcb .product-card{
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .tcb .product-thumb{
    background: linear-gradient(135deg, #e8e8e6, #f4f4f2);
    border-radius: 6px;
    flex: 1;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
  }
  .tcb .product-thumb::after{
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40%; height: 40%;
    background: rgba(0,0,0,0.06);
    border-radius: 50%;
  }
  .tcb .product-card .p-name{
    font-size: 11px;
    color: #333;
    font-weight: 500;
  }
  .tcb .product-card .p-price{
    font-size: 11px;
    color: #666;
    margin-top: 2px;
  }

  /* Chatbot widget overlay on browser */
  .tcb .chat-widget{
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
  }
  .tcb .chat-bubble{
    width: 56px;
    height: 56px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 0 0 rgba(0,0,0,0.4);
    animation: bubblePulse 2.5s ease-in-out infinite;
    position: relative;
    transition: transform 0.4s var(--ease), opacity 0.3s ease;
  }
  .tcb .chat-bubble svg{ width: 26px; height: 26px; stroke: #fff; }
  .tcb .chat-bubble .notif{
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fafaf8;
  }
  @keyframes bubblePulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 0 0 rgba(0,0,0,0.3); }
    50% { box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 0 12px rgba(0,0,0,0); }
  }

  .tcb .widget-expanded{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 320px;
    height: 420px;
    background: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: scale(0) translateY(20px);
    transform-origin: bottom right;
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s ease;
    pointer-events: none;
  }
  .tcb .chat-widget.open .widget-expanded{
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .tcb .chat-widget.open .chat-bubble{
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
  }

  .tcb .widget-header{
    padding: 16px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .tcb .widget-avatar{
    width: 32px; height: 32px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .tcb .widget-avatar::after{
    content: ''; position: absolute; bottom: -1px; right: -1px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #fff; border: 2px solid #000;
  }
  .tcb .widget-avatar svg{ width: 16px; height: 16px; stroke: #fff; }
  .tcb .widget-name{ font-size: 13px; font-weight: 600; color: #fff; }
  .tcb .widget-close{
    margin-left: auto;
    background: none; border: none; color: rgba(255,255,255,0.6);
    cursor: none; font-size: 20px; line-height: 1;
    padding: 0; width: 24px; height: 24px;
  }
  .tcb .widget-close:hover{ color: #fff; }

  .tcb .widget-body{
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
  }
  .tcb .widget-msg{
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    animation: msgIn 0.4s var(--ease) forwards;
    color: #fff;
  }
  .tcb .widget-msg.bot{
    background: rgba(255,255,255,0.08);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
  }
  .tcb .widget-msg.user{
    background: #fff;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
  }

  .tcb .widget-input{
    padding: 12px 14px;
    display: flex; align-items: center; gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .tcb .widget-input .placeholder{
    flex: 1; font-size: 12px; color: rgba(255,255,255,0.4);
  }
  .tcb .widget-input .send-icon{
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .tcb .widget-input .send-icon svg{ width: 12px; height: 12px; }
  .tcb .widget-branding{
    text-align: center;
    padding: 8px;
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.05);
  }

  /* Feature callouts around browser */
  .tcb .callouts{
    max-width: 1100px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 32px;
  }
  .tcb .callout{
    padding-top: 20px;
    border-top: 1px solid var(--line-2);
  }
  .tcb .callout .num{
    font-size: 11px;
    color: var(--dim);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  .tcb .callout h5{
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
  }
  .tcb .callout p{
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
  }

  /* ============ CHATBOT DEMO (DARK) ============ */
  .tcb .demo{
    padding-top: 140px;
    padding-bottom: 140px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
    gap: 80px;
    align-items: center;
  }

  .tcb .demo-features{
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 14px;
  }
  .tcb .demo-features li{
    display: flex; align-items: center; gap: 14px;
    font-size: 15px; color: var(--text);
  }
  .tcb .demo-features .check{
    width: 22px; height: 22px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .tcb .demo-features .check svg{
    width: 10px; height: 10px;
    stroke: var(--text);
    fill: none;
  }

  .tcb .chat-window{
    background: linear-gradient(180deg, #0f0f0f, #050505);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px;
    height: 560px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    position: relative;
  }
  .tcb .chat-window::before{
    content: '';
    position: absolute; inset: 0;
    border-radius: 24px;
    background: radial-gradient(400px circle at 50% 0%, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
  }
  .tcb .chat-header{
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 14px;
  }
  .tcb .avatar{
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #050505);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center; justify-content: center;
    position: relative;
  }
  .tcb .avatar::after{
    content: '';
    position: absolute; bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: #fff; border-radius: 50%;
    border: 2px solid #0a0a0a;
    box-shadow: 0 0 10px rgba(255,255,255,0.6);
  }
  .tcb .avatar svg{ width: 20px; height: 20px; }
  .tcb .chat-header-text .name{
    font-size: 14px; font-weight: 600;
    letter-spacing: -0.01em; color: #fff;
  }
  .tcb .chat-header-text .status{
    font-size: 11px; color: #8a8a8a;
    display: flex; align-items: center; gap: 6px;
    margin-top: 2px;
  }
  .tcb .chat-header-text .status::before{
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,0.9);
  }
  .tcb .chat-body{
    flex: 1; padding: 24px;
    overflow: hidden;
    display: flex; flex-direction: column;
    gap: 14px;
  }
  .tcb .msg{
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(12px);
    animation: msgIn 0.5s var(--ease) forwards;
  }
  .tcb .msg.bot{
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    color: #fff;
  }
  .tcb .msg.user{
    background: #fff; color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    font-weight: 500;
  }
  @keyframes msgIn { to { opacity: 1; transform: translateY(0); } }

  .tcb .typing{
    display: inline-flex; gap: 4px;
    padding: 14px 18px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
  }
  .tcb .typing span{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #888;
    animation: bounce 1.2s ease-in-out infinite;
  }
  .tcb .typing span:nth-child(2){ animation-delay: 0.15s; }
  .tcb .typing span:nth-child(3){ animation-delay: 0.3s; }
  @keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
  }

  .tcb .quick-replies{
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 0 24px 16px;
    opacity: 0;
    animation: msgIn 0.5s var(--ease) forwards;
  }
  .tcb .qr{
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 100px;
    font-size: 12px;
    background: transparent;
    color: #fff;
    cursor: none;
    transition: all 0.2s ease;
    font-family: inherit;
  }
  .tcb .qr:hover{ background: #fff; color: #000; border-color: #fff; }

  .tcb .chat-input{
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    background: #050505;
  }
  .tcb .chat-input input{
    flex: 1; background: transparent;
    border: none; outline: none;
    color: #fff;
    font-family: inherit; font-size: 14px;
    padding: 8px 0;
  }
  .tcb .chat-input input::placeholder{ color: #545454; }
  .tcb .send-btn{
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fff; border: none;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: none;
    transition: transform 0.2s ease;
  }
  .tcb .send-btn:hover{ transform: scale(1.05); }
  .tcb .send-btn svg{ width: 16px; height: 16px; }

  /* ============ CAPABILITIES (LIGHT) ============ */
  .tcb .capabilities{
    padding-top: 140px;
    padding-bottom: 140px;
  }
  .tcb .cap-header{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 60px;
    margin-bottom: 80px;
    align-items: end;
  }
  .tcb .cap-header p{
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 460px;
    margin: 0;
    justify-self: end;
  }

  .tcb .cap-grid{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
  }
  .tcb .cap-card{
    padding: 40px 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    transition: border-color 0.4s ease, transform 0.4s var(--ease);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .tcb .cap-card:hover{
    border-color: var(--line-2);
    transform: translateY(-6px);
  }
  .tcb .cap-card::before{
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease);
  }
  .tcb section.dark .cap-card::before{
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  }
  .tcb .cap-card:hover::before{ transform: translateX(100%); }

  .tcb .cap-num{
    font-size: 12px;
    color: var(--dim);
    letter-spacing: 0.2em;
    margin-bottom: 60px;
  }
  .tcb .cap-icon{
    width: 56px; height: 56px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: transparent;
    transition: transform 0.5s var(--ease), background 0.3s ease;
  }
  .tcb .cap-card:hover .cap-icon{
    background: var(--text);
    transform: rotate(-6deg) scale(1.05);
  }
  .tcb .cap-icon svg{ width: 26px; height: 26px; stroke: var(--text); transition: stroke 0.3s ease; }
  .tcb section.light .cap-card:hover .cap-icon svg{ stroke: #fff; }
  .tcb section.dark .cap-card:hover .cap-icon svg{ stroke: #000; }

  .tcb .cap-card h3{
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.15;
  }
  .tcb .cap-card p{
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }
  .tcb .cap-footer{
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* ============ STATS (DARK) ============ */
  .tcb .stats{
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .tcb .stats-inner{
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    max-width: 1280px;
    margin: 0 auto;
  }
  .tcb .stat{ padding: 0 32px; position: relative; }
  .tcb .stat + .stat{ border-left: 1px solid var(--line); }
  .tcb .stat-num{
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 200;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
  }
  .tcb .stat-num .unit{
    font-weight: 900; font-size: 0.6em;
    vertical-align: super; margin-left: 2px;
  }
  .tcb .stat-label{
    font-size: 12px; color: var(--muted);
    letter-spacing: 0.14em; text-transform: uppercase;
    line-height: 1.5; max-width: 180px;
  }

  /* ============ HOW IT WORKS (LIGHT) ============ */
  .tcb .how{ padding-top: 140px; padding-bottom: 140px; }
  .tcb .steps{
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    gap: 32px;
    margin-top: 80px;
    position: relative;
  }
  .tcb .steps::before{
    content: '';
    position: absolute;
    top: 32px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-2), var(--line-2), transparent);
  }
  .tcb .step{ text-align: left; position: relative; }
  .tcb .step-badge{
    width: 64px; height: 64px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--line-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    color: var(--text);
  }
  .tcb section.light .step-badge{ background: #f4f4f2; }
  .tcb section.dark .step-badge{ background: #000; }
  .tcb .step-badge::after{
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 1px dashed var(--line-2);
  }
  .tcb .step h4{
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
  }
  .tcb .step p{
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 320px;
  }

  /* ============ CTA (DARK) ============ */
  .tcb .cta-section{
    padding-top: 120px;
    padding-bottom: 160px;
    text-align: center;
    position: relative;
  }
  .tcb .cta-section::before{
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 300px;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none;
  }
  .tcb .cta-title{
    font-size: clamp(48px, 8vw, 112px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    font-weight: 200;
    margin: 0 0 40px;
    position: relative;
  }
  .tcb .cta-title .heavy{ font-weight: 900; }
  .tcb .cta-title .italic{ font-style: italic; font-weight: 100; color: var(--muted); }
  .tcb .cta-sub{
    font-size: 17px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 48px;
    line-height: 1.6;
  }
  .tcb .cta-btns{ display: flex; gap: 16px; justify-content: center; }

  /* Scroll reveal.
     Gated on .tcb-js (set inline at the top of chatbot.php, before any .tcb
     element is parsed): these start invisible and are revealed by the observer
     in teamian-chatbot.js, so without the gate a stylesheet that loads while
     the script 404s would leave most of the page permanently blank.
     The gate goes on BOTH states — `.tcb-js .tcb .reveal-on-scroll` (0,3,0)
     would outrank a bare `.tcb .reveal-on-scroll.in` (0,2,0)... in fact .in
     wins there, but the reduced-motion override below is (0,2,0) and would
     lose, so everything in this group carries the prefix for consistency. */
  .tcb-js .tcb .reveal-on-scroll{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
  }
  .tcb-js .tcb .reveal-on-scroll.in{ opacity: 1; transform: translateY(0); }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 900px) {
    .tcb{ cursor: auto; }
    .tcb .cursor{ display: none; }
    .tcb .hero{ grid-template-columns: minmax(0,1fr); padding-top: calc(76px + 40px); padding-bottom: 60px; gap: 40px; }
    .tcb .hero-visual{ justify-self: center; max-width: 380px; }
    .tcb .demo{ grid-template-columns: minmax(0,1fr); gap: 40px; }
    .tcb .cap-grid{ grid-template-columns: minmax(0,1fr); }
    .tcb .stats-inner{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .tcb .stat + .stat{ border-left: none; }
    .tcb .stat:nth-child(2){ border-left: 1px solid var(--line); }
    .tcb .stat:nth-child(3),.tcb .stat:nth-child(4){ border-top: 1px solid var(--line); padding-top: 32px; margin-top: 32px; }
    .tcb .stat:nth-child(4){ border-left: 1px solid var(--line); }
    .tcb .steps{ grid-template-columns: minmax(0,1fr); gap: 48px; }
    .tcb .steps::before{ display: none; }
    .tcb .cap-header,.tcb .in-context-header{ grid-template-columns: minmax(0,1fr); gap: 20px; }
    .tcb .cap-header p,.tcb .in-context-header p{ justify-self: start; }
    .tcb .marquee-item{ font-size: 24px; }
    .tcb section{ padding: 0 20px; }
    .tcb .chat-window{ height: 480px; }
    .tcb .callouts{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
    .tcb .fake-products{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .tcb .fake-products .product-card:nth-child(3){ display: none; }
    .tcb .widget-expanded{ width: 260px; height: 360px; }
    .tcb .btn,.tcb .qr,.tcb .send-btn{ cursor: pointer; }
  }

  @media (prefers-reduced-motion: reduce) {
    /* Prefixed to match the gated hidden state above — at (0,2,0) this lost to
       `.tcb-js .tcb .reveal-on-scroll` (0,3,0) and reduced-motion visitors got
       a blank page. Equal specificity now, and it wins on source order. */
    .tcb-js .tcb .reveal-on-scroll{ opacity: 1; transform: none; }
  }
