/* ==========================================================================
   AEO · GEO · SEO — /aeo-geo-seo   (design: assets/html/aeo-geo-seo (4).html)
   Namespace: everything is scoped under .tgs. Loaded via $pageStyles in
   aeo-geo-seo.php, paired with assets/js/teamian-aeo-geo-seo.js.

   Rebuilt from the (4) mock, which replaced the (1) mock this page was first
   built from. It is a dark design now, with one light section. What changed:

   1. :root and `body` collapse onto .tgs. On :root the mock's tokens would
      redefine --line, --text and --accent site-wide; the body rules (a #0a0a0a
      background, #f5f5f4 text) would black out the shared header and footer.
   2. .reveal became .tgs-rv on all 45 elements. main.js runs its own
      IntersectionObserver over every .reveal and toggles .is-visible, while
      this page's observer toggles .in — two observers, two state classes, same
      elements. `.in` itself is kept; main.js never touches it.
   3. Elements that start hidden do so only under .tgs-js, set inline at the top
      of the page. Both the hidden and the revealed state carry the prefix so
      neither can outrank the other.
   4. The reduced-motion block is scoped to `.tgs *` rather than dropped. It
      looked like the usual `*` box-sizing reset to the scoping pass, but it is
      the motion guard — losing it would have handed those visitors every
      animation on the page.
   5. Every `Nfr` grid track became `minmax(0,Nfr)` (16 grids). An fr track's
      automatic minimum is min-content; that is what pushed a hero column
      off-screen on /ai-calling.
   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 five AI-engine logos the script draws are real files in assets/img/
   (engine-*.png) rather than ~40 KB of base64 inlined in the page.
   ========================================================================== */

.tgs{
    --bg: #0a0a0a;
    --bg-2: #0f0f0f;
    --bg-3: #151515;
    --bg-4: #1c1c1c;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.13);
    --line-3: rgba(255, 255, 255, 0.22);
    --text: #f5f5f4;
    --text-2: #d4d4d4;
    --text-dim: #a3a3a3;
    --text-mute: #737373;
    --text-fade: #525252;
    --accent: #14b8a6;
    --accent-2: #0d9488;
    --accent-glow: rgba(20, 184, 166, 0.35);
    --success: #22c55e;
    --warn: #f59e0b;
    --danger: #ef4444;
    --light-bg: #f5f5f4;
    --light-bg-2: #ebebe8;
    --light-text: #0a0a0a;
    --light-text-dim: #525252;
    --light-line: rgba(0, 0, 0, 0.08);
    --light-line-2: rgba(0, 0, 0, 0.14);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Monaco, monospace;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  }

  
  .tgs{
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
    line-height: 1.5;
    overflow-x: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    .tgs *, .tgs *::before, .tgs *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  .tgs ::selection{ background: var(--accent); color: #000; }

  .tgs .wrap{
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
  }
  @media (max-width: 720px) {
    .tgs .wrap{ padding: 0 20px; }
  }

  /* === Section framing ================================================= */
  .tgs section{
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--line);
  }
  .tgs section.dark{ background: var(--bg); color: var(--text); }
  .tgs section.light{
    background: var(--light-bg);
    color: var(--light-text);
    border-top: 1px solid var(--light-line);
  }
  .tgs section.light .eyebrow{ color: var(--light-text-dim); }
  @media (max-width: 720px) {
    .tgs section{ padding: 80px 0; }
  }

  .tgs .eyebrow{
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .tgs .eyebrow::before{
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
  }

  .tgs h1,.tgs h2,.tgs h3,.tgs h4{
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
  }
  .tgs h2{
    font-size: clamp(38px, 5.5vw, 68px);
    max-width: 18ch;
    margin-bottom: 24px;
    font-weight: 500;
  }
  .tgs h2 .accent{ color: var(--accent); }
  .tgs section p.lede{
    font-size: 18px;
    color: var(--text-dim);
    max-width: 58ch;
    line-height: 1.55;
    margin: 0 0 56px;
  }
  .tgs section.light p.lede{ color: var(--light-text-dim); }

  /* === Reveal on scroll ================================================ */
  /* Gated on .tgs-js (set inline at the top of aeo-geo-seo.php): these start
     invisible and are revealed by the observer in teamian-aeo-geo-seo.js, so
     without the gate a stylesheet that loads while the script fails would
     leave most of the page permanently blank. Prefix on BOTH states. */
  .tgs-js .tgs .tgs-rv{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    will-change: opacity, transform;
  }
  .tgs-js .tgs .tgs-rv.in{ opacity: 1; transform: translateY(0); }
  .tgs-js .tgs .tgs-rv.d1{ transition-delay: 0.08s; }
  .tgs-js .tgs .tgs-rv.d2{ transition-delay: 0.16s; }
  .tgs-js .tgs .tgs-rv.d3{ transition-delay: 0.24s; }
  .tgs-js .tgs .tgs-rv.d4{ transition-delay: 0.32s; }
  .tgs-js .tgs .tgs-rv.d5{ transition-delay: 0.4s; }
  .tgs-js .tgs .tgs-rv.d6{ transition-delay: 0.48s; }

  /* ==================================================================== */
  /* HERO                                                                  */
  /* ==================================================================== */
  .tgs .hero{
    padding: calc(76px + 140px) 0 110px;
    border-top: none;
    position: relative;
    overflow: hidden;
  }
  .tgs .hero::before{
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(60% 50% at 50% 0%, rgba(20,184,166,0.10), transparent 70%),
      radial-gradient(80% 60% at 50% 100%, rgba(20,184,166,0.04), transparent 70%);
    pointer-events: none;
  }
  .tgs .hero-inner{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
  }
  .tgs .hero .eyebrow{ margin-bottom: 36px; }
  .tgs .hero h1{
    font-size: clamp(48px, 7.4vw, 108px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 500;
    max-width: 16ch;
  }
  .tgs .hero h1 .line-1{
    display: block;
    color: var(--text);
  }
  .tgs .hero h1 .line-2{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32em;
    margin-top: 0.18em;
    color: var(--text-dim);
    font-weight: 400;
    line-height: 1.1;
  }
  .tgs .hero h1 .line-2 .in-word{
    display: inline-block;
    color: var(--text-dim);
  }

  /* Rotator: width is set in JS from the active item's measured width,
     so items always sit flush-left inside — no overflow, mark never
     collides with "in". The whole line-2 group stays centered because
     line-2 is inline-flex with justify-content: center. */
  .tgs .rotator{
    position: relative;
    display: inline-block;
    height: 1em;
    min-width: 1em;
    vertical-align: middle;
    transition: width 0.55s var(--ease-out);
    overflow: visible;
  }
  .tgs .rotator-item{
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(1.04);
    display: inline-flex;
    align-items: center;
    gap: 0.32em;
    white-space: nowrap;
    font-weight: 500;
    color: var(--text);
    filter: blur(24px);
    opacity: 0;
    transition:
      opacity 0.55s var(--ease-out),
      filter 0.55s var(--ease-out),
      transform 0.9s var(--ease-out);
  }
  .tgs .rotator-item.active{
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) scale(1);
  }
  .tgs .rotator-item.leaving{
    opacity: 0;
    filter: blur(20px);
    transform: translateY(-50%) scale(0.94);
  }
  /* ------------------------------------------------------------------
     BRAND CHIP — official engine logos, unmodified, on a white plate.
     The artwork ships with a white background, so the plate lets each
     mark sit on its own ground instead of fighting the dark UI.
     ------------------------------------------------------------------ */
  .tgs .brand-chip{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.14),
      0 2px 10px rgba(0,0,0,0.32);
  }
  .tgs .brand-chip img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
  }
  /* Inside the white browser mock-ups a soft grey ring reads better
     than a white glow. */
  .tgs .brand-chip.on-light{
    box-shadow:
      0 0 0 1px rgba(0,0,0,0.10),
      0 1px 4px rgba(0,0,0,0.10);
  }

  .tgs .rotator-mark{
    width: 1.02em;
    height: 1.02em;
    position: relative;
    top: -0.03em;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.18),
      0 4px 20px rgba(0,0,0,0.38);
  }

  /* Tab, ticker and answer-header sizes */
  .tgs .engine-tab .brand-chip{ width: 21px; height: 21px; }
  .tgs .ticker-engine .brand-chip{ width: 16px; height: 16px; }
  .tgs .chat-reply-head .brand-chip{ width: 22px; height: 22px; }
  .tgs .ai-overview-head .brand-chip{ width: 18px; height: 18px; }

  @media (max-width: 720px) {
    .tgs .engine-tab .brand-chip{ width: 18px; height: 18px; }
  }

  .tgs .hero-sub{
    margin: 40px auto 0;
    max-width: 44ch;
    font-size: 19px;
    color: var(--text-dim);
    line-height: 1.55;
  }
  .tgs .cta-row{
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tgs .btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease-out);
    outline: none;
  }
  .tgs .btn:focus-visible{ box-shadow: 0 0 0 3px var(--accent-glow); }
  .tgs .btn-primary{ background: var(--text); color: var(--bg); }
  .tgs .btn-primary:hover{ transform: translateY(-1px); background: #fff; }
  .tgs .btn-ghost{
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
  }
  .tgs .btn-ghost:hover{ background: rgba(255,255,255,0.04); border-color: var(--line-3); }
  .tgs .btn .arrow{
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
  }
  .tgs .btn:hover .arrow{ transform: translateX(3px); }

  /* Live ticker card under hero ---------------------------------------- */
  .tgs .hero-ticker{
    margin: 96px auto 0;
    max-width: 900px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  }
  .tgs .ticker-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .tgs .ticker-head .live{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
  }
  .tgs .live-dot{
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--accent-glow);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
  }
  .tgs .ticker-scroll{
    position: relative;
    padding: 18px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .tgs .ticker-track{
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-x 34s linear infinite;
  }
  .tgs .ticker-track:hover{ animation-play-state: paused; }
  @keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .tgs .ticker-item{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-2);
    white-space: nowrap;
  }
  .tgs .ticker-engine{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 8px;
    border: 1px solid rgba(20,184,166,0.3);
    border-radius: 999px;
    background: rgba(20,184,166,0.05);
  }
  .tgs .ticker-arrow{ color: var(--text-mute); }

  /* ==================================================================== */
  /* AUDIT                                                                 */
  /* ==================================================================== */
  .tgs .audit-grid{
    display: grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap: 60px;
    align-items: start;
  }
  @media (max-width: 900px) {
    .tgs .audit-grid{ grid-template-columns:minmax(0,1fr); gap: 40px; }
  }
  .tgs .audit-steps{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .tgs .audit-step{
    display: flex;
    gap: 20px;
    padding: 20px 4px;
    border-top: 1px solid var(--line);
    align-items: flex-start;
  }
  .tgs .audit-step:last-child{ border-bottom: 1px solid var(--line); }
  .tgs .step-num{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.05em;
    padding-top: 2px;
    min-width: 3ch;
  }
  .tgs .step-body{ flex: 1; }
  .tgs .step-title{
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
  }
  .tgs .step-desc{
    font-size: 14px;
    color: var(--text-mute);
    margin: 0;
  }

  /* Scanner mock ------------------------------------------------------- */
  .tgs .scanner{
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
  }
  .tgs .scanner-topbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-3);
  }
  .tgs .scanner-title{
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .tgs .scanner-rec{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--danger);
    letter-spacing: 0.12em;
    font-weight: 600;
  }
  .tgs .scanner-rec::before{
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse-red 1.4s infinite;
  }
  @keyframes pulse-red {
    50% { opacity: 0.3; }
  }
  .tgs .scanner-url{
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
  }
  .tgs .url-input{
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-2);
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
  }
  .tgs .url-scan{
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .tgs .scan-tasks{
    list-style: none;
    margin: 0;
    padding: 12px 0;
  }
  .tgs .scan-task{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-mute);
    transition: color 0.4s;
  }
  .tgs .scan-task.done{ color: var(--text); }
  .tgs .scan-task.active{ color: var(--text); }
  .tgs .task-icon{
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--line-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
    transition: all 0.3s;
  }
  .tgs .scan-task.done .task-icon{
    background: var(--success);
    border-color: var(--success);
  }
  .tgs .scan-task.done .task-icon::after{
    content: '';
    width: 5px;
    height: 9px;
    border: solid #000;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
  }
  .tgs .scan-task.active .task-icon{
    border-color: var(--accent);
    animation: spin 1s linear infinite;
    border-top-color: transparent;
  }
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  .tgs .task-time{
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
  }

  .tgs .score-grid{
    display: grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
  }
  .tgs .score-card{
    background: var(--bg-2);
    padding: 22px 16px;
    text-align: left;
  }
  .tgs .score-label{
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
    font-weight: 600;
    margin-bottom: 10px;
  }
  .tgs .score-value{
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .tgs .score-value .out{ color: var(--text-fade); font-size: 18px; }
  .tgs .score-bar{
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
  }
  .tgs .score-fill{
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 1.4s var(--ease-out);
  }
  .tgs .score-fill.warn{ background: var(--warn); }
  .tgs .score-fill.danger{ background: var(--danger); }
  .tgs .score-note{
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 8px;
    letter-spacing: 0.02em;
  }

  /* ==================================================================== */
  /* ENGINE SWITCHER                                                       */
  /* ==================================================================== */
  .tgs .engine-tabs{
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tgs .engine-tabs::-webkit-scrollbar{ display: none; }
  .tgs .engine-tab{
    background: none;
    border: none;
    padding: 14px 18px;
    color: var(--text-mute);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .tgs .engine-tab:hover{ color: var(--text-2); }
  .tgs .engine-tab.active{ color: var(--text); }
  .tgs .engine-tab.active::after{
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  .tgs .engine-tab .rank{
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
  }
  .tgs .engine-tab.active .rank{
    background: rgba(20,184,166,0.1);
    border-color: rgba(20,184,166,0.3);
    color: var(--accent);
  }

  .tgs .engine-panel-wrap{
    position: relative;
    min-height: 460px;
  }
  .tgs .engine-panel{
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }
  .tgs .engine-panel.active{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
  }

  .tgs .browser-mock{
    background: #fff;
    color: #0a0a0a;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9);
  }
  .tgs .browser-topbar{
    display: flex;
    gap: 6px;
    padding: 12px 14px;
    background: #ececec;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: center;
  }
  .tgs .traffic{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
  }
  .tgs .traffic.a{ background: #febc2e; }
  .tgs .traffic.b{ background: #28c840; }
  .tgs .browser-url{
    flex: 1;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #525252;
    margin-left: 12px;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
  }
  .tgs .browser-body{ padding: 28px 32px 36px; }
  .tgs .search-box{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 24px;
    margin-bottom: 20px;
  }
  .tgs .search-box .icon{
    color: #737373;
    flex-shrink: 0;
  }
  .tgs .search-box .q{
    flex: 1;
    font-size: 14px;
    color: #0a0a0a;
  }
  .tgs .search-tabs{
    display: flex;
    gap: 22px;
    font-size: 12px;
    color: #737373;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 24px;
  }
  .tgs .search-tabs span:first-child{
    color: #0a0a0a;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    margin-bottom: -13px;
  }

  /* Google-style AI Overview */
  .tgs .ai-overview{
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3f8 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
  }
  .tgs .ai-overview-head{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .tgs .ai-overview-body{
    font-size: 14px;
    line-height: 1.55;
    color: #171717;
    margin-bottom: 12px;
  }
  .tgs .ai-overview-body b{ color: var(--light-text); font-weight: 600; }
  .tgs .ai-sources{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .tgs .ai-source{
    font-size: 11px;
    color: #525252;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    font-family: var(--font-mono);
  }
  .tgs .ai-source.you{
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
  }

  .tgs .result-block{
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .tgs .result-block:last-child{ border-bottom: none; }
  .tgs .result-position{
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #737373;
    margin-bottom: 4px;
  }
  .tgs .result-position.you{ color: var(--accent-2); }
  .tgs .result-url{
    font-size: 12px;
    color: #525252;
    margin-bottom: 4px;
    font-family: var(--font-mono);
  }
  .tgs .result-title{
    font-size: 16px;
    color: #1a56db;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.35;
  }
  .tgs .result-title.you{ color: var(--accent-2); }
  .tgs .result-snippet{
    font-size: 13px;
    color: #525252;
    line-height: 1.5;
  }

  /* Chat-style answer (ChatGPT/Perplexity/Gemini) */
  .tgs .chat-answer{
    padding: 4px 0;
  }
  .tgs .chat-query{
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #f7f7f6;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #171717;
  }
  .tgs .chat-avatar{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
  }
  .tgs .chat-reply{
    padding: 4px 4px;
  }
  .tgs .chat-reply-head{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #737373;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .tgs .chat-reply-body{
    font-size: 14px;
    color: #171717;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .tgs .chat-reply-body b{
    background: linear-gradient(180deg, transparent 60%, rgba(20,184,166,0.25) 60%);
    padding: 0 2px;
    font-weight: 600;
  }
  .tgs .chat-cites{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.05);
  }
  .tgs .chat-cite{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #525252;
  }
  .tgs .cite-num{
    font-family: var(--font-mono);
    font-size: 10px;
    color: #737373;
    min-width: 20px;
  }
  .tgs .cite-source{
    flex: 1;
    color: #171717;
  }
  .tgs .cite-source.you{
    color: var(--accent-2);
    font-weight: 500;
  }
  .tgs .cite-tag{
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    color: #525252;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .tgs .cite-tag.primary{
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
  }

  /* ==================================================================== */
  /* PIPELINE                                                              */
  /* ==================================================================== */
  .tgs .pipeline{
    position: relative;
    display: grid;
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap: 0;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .tgs .pipeline{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 480px) {
    .tgs .pipeline{ grid-template-columns:minmax(0,1fr); }
  }
  .tgs .pipe-stage{
    padding: 28px 24px 32px;
    border-right: 1px solid var(--line);
    position: relative;
    transition: background 0.5s;
  }
  .tgs .pipe-stage:last-child{ border-right: none; }
  @media (max-width: 900px) {
    .tgs .pipe-stage:nth-child(2n){ border-right: none; }
    .tgs .pipe-stage{ border-bottom: 1px solid var(--line); }
    .tgs .pipe-stage:nth-last-child(-n+2){ border-bottom: none; }
  }
  .tgs .pipe-stage.lit{
    background: linear-gradient(180deg, rgba(20,184,166,0.06), transparent);
  }
  .tgs .pipe-stage.lit::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
  }
  .tgs .pipe-num{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
    margin-bottom: 24px;
  }
  .tgs .pipe-label{
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .tgs .pipe-name{
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
  }
  .tgs .pipe-desc{
    font-size: 12px;
    color: var(--text-mute);
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .tgs .pipe-metric{
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .tgs .pipe-metric .unit{
    font-size: 11px;
    color: var(--text-mute);
    font-family: var(--font-sans);
    letter-spacing: 0.04em;
    margin-left: 4px;
  }

  /* ==================================================================== */
  /* SCHEMA BEFORE/AFTER                                                   */
  /* ==================================================================== */
  .tgs .schema-grid{
    display: grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap: 24px;
  }
  @media (max-width: 900px) {
    .tgs .schema-grid{ grid-template-columns:minmax(0,1fr); }
  }
  .tgs .schema-card{
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .tgs .schema-head{
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .tgs .schema-title{
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
  }
  .tgs .schema-badge{
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
  }
  .tgs .schema-badge.before{
    color: var(--text-mute);
    background: var(--bg-4);
    border: 1px solid var(--line);
  }
  .tgs .schema-badge.after{
    color: var(--accent);
    background: rgba(20,184,166,0.08);
    border: 1px solid rgba(20,184,166,0.3);
  }
  .tgs .schema-code{
    flex: 1;
    padding: 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--text-dim);
    white-space: pre;
    overflow-x: auto;
    background: var(--bg);
  }
  .tgs .schema-code .k{ color: #a3a3a3; }
  .tgs .schema-code .v{ color: var(--accent); }
  .tgs .schema-code .c{ color: var(--text-fade); font-style: italic; }
  .tgs .schema-code .p{ color: #d4d4d4; }
  .tgs .schema-foot{
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    background: var(--bg-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tgs .schema-metric{
    font-size: 13px;
    color: var(--text-mute);
  }
  .tgs .schema-metric strong{
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 22px;
    letter-spacing: -0.02em;
    display: block;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
  }
  .tgs .schema-card.after .schema-metric strong{ color: var(--accent); }
  .tgs .schema-delta{
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* ==================================================================== */
  /* THREE SURFACES (light section)                                        */
  /* ==================================================================== */
  .tgs section.light h2{ color: var(--light-text); }
  .tgs section.light h2 .accent{ color: var(--accent-2); }
  .tgs .surface-grid{
    display: grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap: 1px;
    background: var(--light-line);
    border: 1px solid var(--light-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .tgs .surface-grid{ grid-template-columns:minmax(0,1fr); }
  }
  .tgs .surface-card{
    background: var(--light-bg);
    padding: 40px 32px 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background 0.3s;
  }
  .tgs .surface-card:hover{
    background: var(--light-bg-2);
  }
  .tgs .surface-marker{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--light-text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .tgs .surface-marker::after{
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-line-2);
    max-width: 60px;
  }
  .tgs .surface-abbr{
    font-size: 12px;
    color: var(--light-text-dim);
    letter-spacing: 0.02em;
    margin-bottom: -8px;
  }
  .tgs .surface-title{
    font-size: 52px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--light-text);
    margin: 4px 0 12px;
  }
  .tgs .surface-body{
    font-size: 15px;
    color: var(--light-text-dim);
    line-height: 1.55;
    flex: 1;
    margin: 0;
  }
  .tgs .surface-stat{
    padding-top: 20px;
    border-top: 1px solid var(--light-line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--light-text-dim);
    letter-spacing: 0.01em;
  }
  .tgs .surface-stat b{
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--light-text);
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .tgs .surface-stat b .up{ color: var(--accent-2); }

  /* ==================================================================== */
  /* VERTICAL TOGGLE                                                       */
  /* ==================================================================== */
  .tgs .vert-toggle{
    display: inline-flex;
    padding: 4px;
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-bottom: 48px;
    position: relative;
  }
  .tgs .vert-btn{
    background: transparent;
    border: none;
    color: var(--text-mute);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
  }
  .tgs .vert-btn.active{ color: var(--bg); }
  .tgs .vert-slider{
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.4s var(--ease-out), width 0.4s var(--ease-out);
    z-index: 0;
  }

  .tgs .vert-content{
    display: grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
    gap: 60px;
    align-items: start;
  }
  @media (max-width: 900px) {
    .tgs .vert-content{ grid-template-columns:minmax(0,1fr); gap: 40px; }
  }
  .tgs .vert-panel{
    display: none;
  }
  .tgs .vert-panel.active{
    display: contents;
    animation: fadeIn 0.4s var(--ease-out);
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .tgs .vert-left h3{
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 28px;
  }
  .tgs .vert-list{
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .tgs .vert-list li{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.55;
  }
  .tgs .vert-list li::before{
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 9px;
    flex-shrink: 0;
  }
  .tgs .vert-metrics{
    display: grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .tgs .vert-metric{
    background: var(--bg-2);
    padding: 22px 18px;
    text-align: left;
  }
  .tgs .vert-metric .val{
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
  }
  .tgs .vert-metric .lbl{
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .tgs .vert-right{
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 32px;
  }
  .tgs .vert-right-head{
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 20px;
  }
  .tgs .query-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tgs .query-item{
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    transition: border-color 0.2s, background 0.2s;
  }
  .tgs .query-item:hover{
    border-color: var(--line-3);
    background: var(--bg-3);
  }
  .tgs .query-item::before{
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
    flex-shrink: 0;
  }

  /* ==================================================================== */
  /* CAPABILITIES                                                          */
  /* ==================================================================== */
  .tgs .cap-grid{
    display: grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  @media (max-width: 900px) {
    .tgs .cap-grid{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  }
  @media (max-width: 600px) {
    .tgs .cap-grid{ grid-template-columns:minmax(0,1fr); }
  }
  .tgs .cap-card{
    background: var(--bg-2);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }
  .tgs .cap-card:hover{ background: var(--bg-3); }
  .tgs .cap-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
  }
  .tgs .cap-card:hover::before{ transform: translateX(0); }
  .tgs .cap-num{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
  }
  .tgs .cap-title{
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.3;
  }
  .tgs .cap-body{
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.55;
    margin: 0 0 24px;
    flex: 1;
  }
  .tgs .cap-foot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .tgs .cap-score{
    display: flex;
    align-items: baseline;
    gap: 6px;
  }
  .tgs .cap-score .n{
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
  }
  .tgs .cap-score .d{
    font-size: 11px;
    color: var(--text-mute);
  }
  .tgs .cap-arrow{
    color: var(--text-mute);
    transition: color 0.2s, transform 0.2s;
  }
  .tgs .cap-card:hover .cap-arrow{
    color: var(--accent);
    transform: translateX(2px);
  }

  /* ==================================================================== */
  /* FINAL CTA                                                             */
  /* ==================================================================== */
  .tgs .cta-final{
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .tgs .cta-final::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 50%, rgba(20,184,166,0.08), transparent 70%);
  }
  .tgs .cta-final .inner{ position: relative; z-index: 2; }
  .tgs .cta-final h2{
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .tgs .cta-final p{
    max-width: 40ch;
    margin: 0 auto 40px;
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1.55;
  }
  .tgs .cta-fine{
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
    display: inline-flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tgs .cta-fine span::before{
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
  }
