  :root{
    --primary:#7C3AED;
    --primary-hover:#6D28D9;
    --primary-active:#5B21B6;
    --secondary:#9333EA;
    --light:#C084FC;
    --bg:#F8FAFC;
    --surface:#FFFFFF;
    --border:#E2E8F0;
    --text:#0B1120;
    --muted:#64748B;
    --success:#16A34A;
    --warning:#D97706;
    --danger:#DC2626;
    --header-bg:rgba(248,250,252,0.85);
    --card-shadow:0 30px 80px rgba(15,23,42,0.08);
    --icon-tile-bg:rgba(124,58,237,0.10);
    color-scheme:light;
  }
  body{transition:background-color .25s ease, color .25s ease;}
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',sans-serif;
    line-height:1.6;
    overflow-x:hidden;
  }
  h1,h2,h3,.display{font-family:'Space Grotesk',sans-serif;}
  .mono{font-family:'JetBrains Mono',monospace;}
  a{color:inherit;text-decoration:none;}
  .container{max-width:1180px;margin:0 auto;padding:0 32px;}
  ::selection{background:var(--primary);color:#fff;}

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

  /* ---------- Nav ---------- */
  header{
    position:sticky;top:0;z-index:100;
    background:var(--header-bg);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border);
  }
  nav{display:flex;align-items:center;justify-content:space-between;padding:18px 32px;max-width:1180px;margin:0 auto;}
  .logo{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:20px;letter-spacing:-0.02em;text-decoration:none;cursor:pointer;}
  .logo-mark{width:40px;height:40px;border-radius:9px;background:linear-gradient(135deg,var(--secondary),var(--primary));position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:18px;letter-spacing:-0.02em;}
  .nav-left{display:flex;align-items:center;gap:18px;}

  /* Mega nav */
  .mega-nav{display:flex;align-items:center;gap:8px;list-style:none;}
  @media (max-width:980px){.mega-nav{display:none;}}

  /* Hamburger toggle (mobile only) */
  .hamburger{
    display:none;align-items:center;justify-content:center;
    width:38px;height:38px;border-radius:10px;
    background:var(--surface);border:1px solid var(--border);
    color:var(--text);cursor:pointer;flex-shrink:0;
  }
  .hamburger svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;}
  .hamburger .icon-close{display:none;}
  .hamburger[aria-expanded="true"] .icon-open{display:none;}
  .hamburger[aria-expanded="true"] .icon-close{display:block;}
  @media (max-width:980px){.hamburger{display:flex;}}

  /* Mobile menu panel */
  .mobile-menu{
    display:none;
    position:fixed;top:var(--header-h, 73px);left:0;right:0;bottom:0;
    background:var(--bg);overflow-y:auto;z-index:150;
    padding:8px 20px 40px;border-top:1px solid var(--border);
    margin:10px 20px 0 20px;border-radius: 10px;
  }
  .mobile-menu.open{display:block;}
  @media (min-width:981px){.mobile-menu{display:none !important;}}
  .mobile-link{
    display:block;padding:16px 4px;
    font-size:16px;font-weight:600;color:var(--text);
    border-bottom:1px solid var(--border);
  }
  .mobile-acc{border-bottom:1px solid var(--border);}
  .mobile-acc-trigger{
    width:100%;display:flex;align-items:center;justify-content:space-between;
    background:transparent;border:none;cursor:pointer;
    padding:16px 4px;font-family:inherit;font-size:16px;font-weight:600;color:var(--text);
  }
  .mobile-acc-trigger svg{width:16px;height:16px;stroke:var(--secondary);stroke-width:2;fill:none;transition:transform .2s;flex-shrink:0;}
  .mobile-acc-trigger[aria-expanded="true"] svg{transform:rotate(180deg);}
  .mobile-acc-panel{max-height:0;overflow:hidden;transition:max-height .25s ease;}
  .mobile-acc-panel.open{max-height:1400px;}
  .mobile-acc-inner{padding:2px 0 18px;display:flex;flex-direction:column;gap:2px;}
  .mobile-tools-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;margin-bottom:6px;}
  .mobile-tools-grid a{padding:10px 8px;}
  .mobile-tools-grid .li-text{font-size:13.5px;}
  .mobile-menu-footer{padding-top:18px;}
  .mega-nav>li{position:relative;}
  .mega-link{
    display:flex;align-items:center;
    padding:10px 14px;border-radius:8px;
    font-size:14.5px;font-weight:500;color:var(--text);
    transition:color .2s, background .2s;
  }
  .mega-trigger{
    display:flex;align-items:center;gap:8px;
    background:transparent;border:none;cursor:pointer;
    padding:9px 16px;border-radius:10px;
    font-size:14.5px;font-weight:500;color:var(--text);
    transition:background .2s;
  }
  .mega-trigger:focus-visible{outline:1px solid var(--primary);outline-offset:2px;}
  .mega-trigger svg{width:14px;height:14px;stroke:var(--secondary);stroke-width:2;fill:none;transition:transform .2s;}
  .mega-trigger[aria-expanded="true"] svg{transform:rotate(180deg);}

  .mega-panel{
    position:absolute;top:calc(100% + 10px);left:0;
    background:var(--surface);border:1px solid var(--border);
    border-radius:14px;box-shadow:var(--card-shadow);
    opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
    z-index:200;
  }
  .mega-panel.open{opacity:1;visibility:visible;transform:translateY(0);}
  .mega-panel-right{left:auto;right:0;}

  /* Tools panel: 4-column icon-card grid */
  .tools-panel{width:600px;padding:22px;}
  .tools-panel-label{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:0.05em;font-weight:600;margin-bottom:14px;}
  .tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
  .tool-pill{
    display:flex;flex-direction:column;align-items:flex-start;gap:10px;
    padding:14px 12px;border-radius:12px;border:1px solid var(--border);
    color:var(--text);font-size:12.5px;font-weight:500;line-height:1.3;
    transition:border-color .2s, background .2s, color .2s;
  }
  .tool-pill .tp-icon{
    width:28px;height:28px;border-radius:8px;flex-shrink:0;
    background:var(--icon-tile-bg);color:var(--secondary);
    display:flex;align-items:center;justify-content:center;
  }
  .tool-pill .tp-icon svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;}
  @media (max-width:900px){.tools-panel{width:440px;}.tools-grid{grid-template-columns:repeat(2,1fr);}}

  /* Resources / Categories / About panels: minimal text-list style */
  .list-panel{width:260px;padding:10px 8px;}
  .list-panel a, .mobile-acc-inner a{
    display:flex;align-items:center;gap:12px;
    padding:10px 10px;border-radius:10px;
    font-size:14.5px;color:var(--text);font-weight:500;
    transition:background .15s, color .15s;
  }
  .list-panel .li-icon, .mobile-acc-inner .li-icon{
    width:30px;height:30px;border-radius:8px;flex-shrink:0;
    background:var(--icon-tile-bg);color:var(--secondary);
    display:flex;align-items:center;justify-content:center;
  }
  .list-panel .li-icon svg, .mobile-acc-inner .li-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}
  .list-panel .li-text, .mobile-acc-inner .li-text{display:flex;flex-direction:column;}
  .list-panel .li-text .li-sub, .mobile-acc-inner .li-text .li-sub{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:1px;}
  .list-panel a.soon, .mobile-acc-inner a.soon{color:var(--muted);}
  .list-panel .tag-soon, .mobile-acc-inner .tag-soon{font-size:10.5px;font-weight:600;color:var(--secondary);background:var(--icon-tile-bg);padding:2px 8px;border-radius:100px;margin-left:auto;}
  .list-divider{height:1px;background:var(--border);margin:6px 10px;}

  /* Panel CTA (Book a demo) — shared across all dropdown panels */
  .panel-divider{height:1px;background:var(--border);margin:10px 2px 8px;}
  .panel-cta{
    display:flex;align-items:center;gap:12px;
    padding:10px 10px;border-radius:10px;
    background:rgba(124,58,237,0.08);
    transition:background .15s, color .15s;
    color:var(--text);
  }
  .panel-cta .li-icon{
    width:30px;height:30px;border-radius:8px;flex-shrink:0;
    background:var(--primary);color:#fff;
    display:flex;align-items:center;justify-content:center;
  }
  .panel-cta .li-icon svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}
  .panel-cta .li-text{display:flex;flex-direction:column;font-weight:600;font-size:14.5px;}
  .panel-cta .li-text .li-sub{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:1px;}

  .nav-cta{display:flex;align-items:center;gap:14px;}
  .nav-signin{color:var(--muted);font-size:14.5px;font-weight:500;}
  .nav-signin:hover{color:var(--text);}
  @media (max-width:600px){.nav-signin{display:none;}}

  /* ---------- Buttons ---------- */
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    font-weight:700;font-size:15px;
    border-radius:12px;
    padding:13px 26px;
    cursor:pointer;border:none;
    transition:all .3s ease;
    white-space:nowrap;
  }
  .btn-primary{
    background:var(--primary);color:#fff;
    box-shadow:0 0 0 rgba(124,58,237,0);
  }
  .btn-primary:hover{background:var(--primary-hover);box-shadow:0 0 28px rgba(124,58,237,0.45);transform:translateY(-1px);}
  .btn-primary:active{background:var(--primary-active);transform:translateY(0);}
  .btn-secondary{
    background:transparent;color:var(--secondary);
    border:2px solid var(--primary);
    padding:11px 24px;
  }
  .btn-secondary:hover{background:var(--primary);color:#fff;}
  .btn-lg{padding:16px 32px;font-size:16px;}

  /* ---------- Hero ---------- */
  .hero{padding:100px 0 70px;position:relative;overflow:hidden;}
  .hero::before{
    content:'';position:absolute;top:-200px;left:50%;transform:translateX(-50%);
    width:900px;height:500px;
    background:radial-gradient(ellipse at center, rgba(124,58,237,0.22), transparent 70%);
    pointer-events:none;
  }
  .eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    color:var(--secondary);font-size:13px;font-weight:600;
    background:rgba(124,58,237,0.12);border:1px solid rgba(124,58,237,0.35);
    padding:6px 14px;border-radius:100px;margin-bottom:24px;
  }
  .eyebrow-dot{width:6px;height:6px;border-radius:50%;background:var(--success);box-shadow:0 0 8px var(--success);}
  .hero-grid{display:grid;grid-template-columns:1.1fr 0.9fr;gap:60px;align-items:center;position:relative;}
  @media (max-width:900px){.hero-grid{grid-template-columns:1fr;}}
  .hero h1{font-size:56px;font-weight:700;line-height:1.08;letter-spacing:-0.03em;margin-bottom:22px;}
  .hero h1 span{background:linear-gradient(135deg,var(--light),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent;}
  @media (max-width:600px){.hero h1{font-size:38px;}}
  .hero p{color:var(--muted);font-size:18px;max-width:480px;margin-bottom:34px;}
  .hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:36px;}
  .hero-trust{display:flex;gap:28px;color:var(--muted);font-size:13px;flex-wrap:wrap;}
  .hero-trust b{color:var(--text);font-family:'JetBrains Mono',monospace;font-weight:500;}

  /* Signature visual: live latency pulse */
  .pulse-card{
    background:var(--surface);border:1px solid var(--border);border-radius:16px;
    padding:24px;position:relative;
  }
  .pulse-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;}
  .pulse-title{font-size:13px;color:var(--muted);font-weight:500;}
  .pulse-status{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--success);font-family:'JetBrains Mono',monospace;}
  .pulse-status .dot{width:6px;height:6px;border-radius:50%;background:var(--success);animation:blink 2s infinite;}
  @keyframes blink{0%,100%{opacity:1;}50%{opacity:0.3;}}
  svg#wave{display:block;width:100%;height:120px;}
  .wave-line{fill:none;stroke:url(#waveGrad);stroke-width:2;}
  .wave-glow-dot{fill:var(--light);filter:drop-shadow(0 0 6px var(--secondary));}
  .log-feed{margin-top:16px;border-top:1px solid var(--border);padding-top:14px;font-size:12.5px;font-family:'JetBrains Mono',monospace;}
  .log-line{display:flex;justify-content:space-between;color:var(--muted);padding:4px 0;opacity:0;animation:fadeIn .5s forwards;}
  .log-line:nth-child(1){animation-delay:.1s;}
  .log-line:nth-child(2){animation-delay:.3s;}
  .log-line:nth-child(3){animation-delay:.5s;}
  @keyframes fadeIn{to{opacity:1;}}
  .log-ok{color:var(--success);}
  .log-warn{color:var(--warning);}
  @media (prefers-reduced-motion: reduce){
    .eyebrow-dot,.pulse-status .dot,.log-line,#travelDot{animation:none !important;}
  }

  /* ---------- Sections generic ---------- */
  section{padding:90px 0;}
  .section-head{max-width:600px;margin-bottom:56px;}
  .section-tag{color:var(--secondary);font-size:13px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;margin-bottom:14px;display:block;}
  .section-head h2{font-size:36px;font-weight:600;letter-spacing:-0.02em;margin-bottom:16px;}
  .section-head p{color:var(--muted);font-size:16.5px;}

  /* ---------- Features ---------- */
  .feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
  @media (max-width:960px){.feature-grid{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:600px){.feature-grid{grid-template-columns:1fr;}}
  .feature-card{
    background:var(--surface);border:1px solid var(--primary);border-radius:16px;
    padding:28px 24px;transition:transform .25s;
  }
  .feature-card:hover{transform:translateY(-4px);}
  .feature-icon{
    width:44px;height:44px;border-radius:11px;
    background:var(--icon-tile-bg);
    display:flex;align-items:center;justify-content:center;
    margin-bottom:18px;color:var(--secondary);
  }
  .feature-icon svg{width:22px;height:22px;stroke:var(--secondary);}
  .feature-card h3{font-size:17px;font-weight:600;margin-bottom:8px;}
  .feature-card p{color:var(--muted);font-size:14.5px;}

  /* ---------- Stats band ---------- */
  .stats-band{
    background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  }
  .stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;text-align:center;}
  @media (max-width:700px){.stats-grid{grid-template-columns:1fr;}}
  .stat-num{font-family:'Space Grotesk',sans-serif;font-size:44px;font-weight:700;background:linear-gradient(135deg,var(--light),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent;}
  .stat-label{color:var(--muted);font-size:14px;margin-top:6px;}

  /* ---------- Product preview ---------- */
  .preview-shell{
    background:var(--surface);border:1px solid var(--border);border-radius:20px;
    padding:8px;box-shadow:var(--card-shadow);
  }
  .preview-toolbar{display:flex;gap:6px;padding:12px 14px;}
  .preview-toolbar span{width:10px;height:10px;border-radius:50%;background:var(--border);}
  .preview-inner{background:var(--bg);border-radius:14px;padding:28px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;}
  @media (max-width:700px){.preview-inner{grid-template-columns:1fr;}}
  .metric-tile{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;}
  .metric-tile .label{color:var(--muted);font-size:12.5px;margin-bottom:6px;}
  .metric-tile .value{font-family:'JetBrains Mono',monospace;font-size:22px;font-weight:500;}
  .metric-tile .value.up{color:var(--success);}
  .metric-tile .value.accent{color:var(--secondary);}
  .metric-tile .delta{font-size:12px;color:var(--muted);margin-top:4px;}

  /* ---------- Testimonial ---------- */
  .testimonial{
    max-width:760px;margin:0 auto;text-align:center;
  }
  .testimonial blockquote{font-size:24px;font-weight:500;letter-spacing:-0.01em;line-height:1.5;font-family:'Space Grotesk',sans-serif;margin-bottom:26px;}
  .testimonial blockquote span{color:var(--secondary);}
  .t-person{color:var(--muted);font-size:14.5px;}
  .t-person b{color:var(--text);}

  /* ---------- Pricing ---------- */
  .pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  @media (max-width:900px){.pricing-grid{grid-template-columns:1fr;}}
  .price-card{
    background:var(--surface);border:1px solid var(--primary);border-radius:18px;padding:32px 28px;
    display:flex;flex-direction:column;
    transition:transform .2s ease;
  }
  .price-card:hover{transform:translateY(-3px);}
  .price-card.featured{
    position:relative;
    box-shadow:0 0 40px rgba(124,58,237,0.2);
  }
  .price-badge{position:absolute;top:-13px;left:28px;background:var(--primary);color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:100px;}
  .price-card h3{font-size:15px;color:var(--muted);font-weight:600;margin-bottom:12px;}
  .price-amt{font-family:'Space Grotesk',sans-serif;font-size:40px;font-weight:700;margin-bottom:4px;}
  .price-amt span{font-size:15px;color:var(--muted);font-weight:400;}
  .price-desc{color:var(--muted);font-size:14px;margin-bottom:24px;}
  .price-features{list-style:none;margin-bottom:28px;flex:1;}
  .price-features li{display:flex;gap:10px;padding:8px 0;font-size:14.5px;color:var(--text);border-bottom:1px solid var(--border);}
  .price-features li:last-child{border-bottom:none;}
  .price-features li::before{content:'';flex-shrink:0;width:16px;height:16px;margin-top:2px;background:var(--success);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat;}
  .price-card .btn{width:100%;}
  .price-card .btn-primary{
    background:transparent;color:var(--secondary);
    border:2px solid var(--primary);
    padding:11px 24px;
    box-shadow:none;
  }
  .price-card .btn-primary:hover{background:var(--primary);color:#fff;box-shadow:none;transform:none;}
  .price-card .btn-primary:active{background:var(--primary-active);transform:none;}

  /* ---------- Tools directory ---------- */
  .tool-category{margin-bottom:44px;}
  .tool-category:last-child{margin-bottom:0;}
  .tool-category h3{font-size:19px;font-weight:600;letter-spacing:-0.01em;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--border);}
  .tool-cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
  @media (max-width:960px){.tool-cards-grid{grid-template-columns:repeat(2,1fr);}}
  @media (max-width:560px){.tool-cards-grid{grid-template-columns:1fr;}}
  .tool-card{
    background:var(--surface);border:1px solid var(--primary);border-radius:14px;
    padding:20px;transition:transform .2s ease;
  }
  .tool-card:hover{transform:translateY(-3px);}
  .tool-card-icon{
    width:36px;height:36px;border-radius:9px;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:14px;
  }
  .tool-card-icon svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  .tool-card h4{font-size:15px;font-weight:600;margin-bottom:6px;letter-spacing:-0.01em;}
  .tool-card p{color:var(--muted);font-size:13px;line-height:1.5;}
  .tool-connect{display:inline-block;margin-top:12px;font-size:12.5px;font-weight:600;color:var(--secondary);}
  .tool-connect:hover{color:var(--primary);}
  .tools-loading{color:var(--muted);font-size:14.5px;}
  .tool-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:36px;}
  .tool-tab{
    background:var(--surface);border:2px solid var(--border);border-radius:100px;
    padding:9px 18px;font-family:inherit;font-size:14px;font-weight:600;color:var(--muted);
    cursor:pointer;transition:border-color .2s, color .2s, background .2s;
  }
  .tool-tab:hover{border-color:var(--primary);color:var(--text);}
  .tool-tab[aria-selected="true"]{background:transparent;border-color:var(--primary);color:var(--primary);}
  .tool-category-panel{display:none;}
  .tool-category-panel.active{display:block;}

  /* ---------- Final CTA ---------- */
  .final-cta{
    background:linear-gradient(135deg,rgba(124,58,237,0.16),rgba(168,85,247,0.08));
    border-top:1px solid var(--border);border-bottom:1px solid var(--border);
    text-align:center;
  }
  .final-cta h2{font-size:38px;font-weight:700;letter-spacing:-0.02em;margin-bottom:14px;}
  .final-cta p{color:var(--muted);font-size:17px;margin-bottom:32px;}
  .final-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}

  /* ---------- Footer ---------- */
  footer{padding:72px 0 36px;background:var(--surface);border-top:1px solid var(--border);}
  .footer-grid{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:40px;margin-bottom:52px;}
  @media (max-width:960px){.footer-grid{grid-template-columns:1fr 1fr 1fr;}}
  @media (max-width:680px){.footer-grid{grid-template-columns:1fr 1fr;}}
  @media (max-width:460px){.footer-grid{grid-template-columns:1fr;}}
  .footer-brand p{color:var(--muted);font-size:14px;margin-top:14px;max-width:280px;}
  .footer-social{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap;}
  .footer-social a{
    width:38px;height:38px;border-radius:10px;
    background:var(--bg);border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;color:var(--muted);
    transition:transform .2s ease, color .2s ease, border-color .2s ease;
  }
  .footer-social a svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  .footer-social a:hover{transform:translateY(-5px);color:var(--primary);border-color:var(--primary);background:rgba(124,58,237,0.25);}
  .footer-col h4{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:0.04em;margin-bottom:16px;}
  .footer-col a{display:block;color:var(--text);font-size:14.5px;padding:6px 0;}
  .footer-col a:hover{color:var(--secondary);}
  .footer-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);padding-top:24px;color:var(--muted);font-size:13px;flex-wrap:wrap;gap:12px;}

  /* ---------- Blog: page head ---------- */
  .blog-page-head{max-width:700px;margin-bottom:56px;}
  .blog-page-head h1{font-size:44px;font-weight:700;letter-spacing:-0.02em;margin-bottom:16px;}
  @media (max-width:600px){.blog-page-head h1{font-size:32px;}}
  .blog-page-head p{color:var(--muted);font-size:17px;}

  /* ---------- Blog: layout (sidebar variants) ---------- */
  .blog-layout{display:grid;grid-template-columns:280px 1fr;gap:40px;align-items:start;}
  .blog-layout.sidebar-right{grid-template-columns:1fr 280px;}
  .blog-layout.sidebar-right .blog-sidebar{order:2;}
  @media (max-width:900px){
    .blog-layout{grid-template-columns:1fr;}
    .blog-sidebar{order:2 !important;}
  }

  /* ---------- Blog: post grid + cards ---------- */
  .blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
  .blog-grid.cols-2{grid-template-columns:repeat(2,1fr);}
  @media (max-width:900px){.blog-grid{grid-template-columns:1fr;}}
  @media (max-width:700px){.blog-grid.cols-2{grid-template-columns:1fr;}}
  .post-card{
    background:var(--surface);border:1px solid var(--border);border-radius:16px;
    overflow:hidden;display:flex;flex-direction:column;
    transition:transform .2s ease, border-color .2s ease;
  }
  .post-card:hover{transform:translateY(-4px);border-color:var(--primary);}
  .post-thumb{
    aspect-ratio:16/10;position:relative;
    background:linear-gradient(135deg,var(--secondary),var(--primary));
    display:flex;align-items:flex-end;padding:16px;
  }
  .post-badge{
    position:absolute;top:14px;left:14px;background:var(--surface);color:var(--primary);
    font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:100px;
  }
  .post-category{
    display:inline-block;background:rgba(255,255,255,0.2);color:#fff;
    font-size:12px;font-weight:600;padding:4px 12px;border-radius:100px;backdrop-filter:blur(6px);
  }
  .post-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1;}
  .post-title{font-size:19px;font-weight:600;letter-spacing:-0.01em;margin-bottom:10px;line-height:1.3;}
  .post-title a:hover{color:var(--secondary);}
  .post-excerpt{color:var(--muted);font-size:14.5px;line-height:1.6;margin-bottom:18px;flex:1;}
  .post-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12.5px;margin-bottom:16px;flex-wrap:wrap;}
  .post-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--muted);flex-shrink:0;}
  .post-link{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--secondary);}
  .post-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;transition:transform .2s;}
  .post-link:hover{color:var(--primary);}
  .post-link:hover svg{transform:translateX(3px);}

  /* ---------- Blog: pagination ---------- */
  .pagination{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:48px;}
  .page-btn{
    display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 8px;
    border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);
    font-size:14px;font-weight:600;cursor:pointer;transition:border-color .2s,color .2s,background .2s;
  }
  .page-btn:hover{border-color:var(--primary);color:var(--primary);}
  .page-btn.active{background:var(--primary);border-color:var(--primary);color:#fff;}
  .page-btn.disabled{color:var(--muted);opacity:.5;pointer-events:none;}

  /* ---------- Blog: sidebar widgets ---------- */
  .blog-sidebar{display:flex;flex-direction:column;gap:28px;}
  .widget{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;}
  .widget-title{font-size:15px;font-weight:600;margin-bottom:16px;letter-spacing:-0.01em;}
  .widget-search{display:flex;gap:8px;}
  .widget-search input{
    flex:1;background:var(--bg);border:1px solid var(--border);border-radius:10px;
    padding:10px 14px;font-family:inherit;font-size:14px;color:var(--text);
  }
  .widget-search input:focus-visible{outline:2px solid var(--secondary);outline-offset:2px;}
  .widget-search button{
    width:42px;height:42px;flex-shrink:0;border-radius:10px;background:var(--primary);
    border:none;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;
  }
  .widget-search button:hover{background:var(--primary-hover);}
  .widget-search button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2;}
  .widget-list{list-style:none;display:flex;flex-direction:column;}
  .widget-list li{border-bottom:1px solid var(--border);}
  .widget-list li:last-child{border-bottom:none;}
  .widget-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;font-size:14.5px;color:var(--text);}
  .widget-list a:hover{color:var(--secondary);}
  .widget-count{font-size:12px;color:var(--muted);background:var(--bg);border:1px solid var(--border);padding:2px 9px;border-radius:100px;flex-shrink:0;}
  .widget-post{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);}
  .widget-post:last-child{border-bottom:none;padding-bottom:0;}
  .widget-post-thumb{width:56px;height:56px;border-radius:10px;flex-shrink:0;background:linear-gradient(135deg,var(--light),var(--primary));}
  .widget-post-info h4{font-size:13.5px;font-weight:600;line-height:1.4;margin-bottom:4px;}
  .widget-post-info h4 a:hover{color:var(--secondary);}
  .widget-post-info span{font-size:12px;color:var(--muted);}
  .widget-tags{display:flex;flex-wrap:wrap;gap:8px;}
  .tag-pill{
    display:inline-flex;align-items:center;padding:7px 14px;border-radius:100px;
    border:1px solid var(--border);background:var(--surface);color:var(--muted);
    font-size:12.5px;font-weight:600;transition:border-color .2s,color .2s;
  }
  .tag-pill:hover{border-color:var(--primary);color:var(--primary);}
  .widget-newsletter p{color:var(--muted);font-size:13.5px;margin-bottom:16px;}
  .widget-newsletter .btn{width:100%;}

  /* ---------- Blog: single article (no sidebar) ---------- */
  /* Centers the 760px reading column inside the wider 1180px
     .container used by pages with no sidebar. Without this,
     .article-header/.article-body (max-width:760px, no auto
     margin) just hug the left edge of .container. */
  .article-page{max-width:760px;margin:0 auto;}

  /* ---------- Blog: single article ---------- */
  .article-back{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--secondary);margin-bottom:28px;}
  .article-back svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;}
  .article-back:hover{color:var(--primary);}
  .article-header{max-width:760px;margin-bottom:32px;}
  .article-header h1{font-size:38px;font-weight:700;letter-spacing:-0.02em;margin:14px 0 18px;line-height:1.15;}
  @media (max-width:600px){.article-header h1{font-size:28px;}}
  .article-hero-img{
    aspect-ratio:21/9;border-radius:16px;margin-bottom:36px;
    background:linear-gradient(135deg,var(--secondary),var(--primary));
  }
  .article-body{max-width:760px;color:var(--text);font-size:16.5px;line-height:1.8;}
  .article-body p{margin-bottom:22px;}
  .article-body h2{font-size:26px;font-weight:600;letter-spacing:-0.01em;margin:40px 0 18px;}
  .article-body h3{font-size:20px;font-weight:600;letter-spacing:-0.01em;margin:32px 0 14px;}
  .article-body ul,.article-body ol{margin:0 0 22px 22px;}
  .article-body li{margin-bottom:10px;}
  .article-body blockquote{
    border-left:3px solid var(--primary);padding:4px 0 4px 22px;margin:32px 0;
    font-size:19px;font-weight:500;color:var(--text);font-family:'Space Grotesk',sans-serif;letter-spacing:-0.01em;
  }
  .article-body a{color:var(--secondary);text-decoration:underline;text-underline-offset:3px;}
  .article-body a:hover{color:var(--primary);}
  .article-tags{display:flex;flex-wrap:wrap;gap:8px;max-width:760px;margin:36px 0;padding-top:28px;border-top:1px solid var(--border);}
  .article-share{display:flex;align-items:center;gap:10px;max-width:760px;margin-bottom:36px;}
  .article-share span{font-size:13px;color:var(--muted);font-weight:600;margin-right:4px;}
  .article-share a{
    width:36px;height:36px;border-radius:10px;background:var(--surface);border:1px solid var(--border);
    display:flex;align-items:center;justify-content:center;color:var(--muted);transition:border-color .2s,color .2s;
  }
  .article-share a:hover{border-color:var(--primary);color:var(--primary);}
  .article-share a svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
  .author-box{
    max-width:760px;display:flex;gap:18px;align-items:flex-start;
    background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px;
  }
  .author-avatar{
    width:56px;height:56px;border-radius:50%;flex-shrink:0;
    background:linear-gradient(135deg,var(--light),var(--primary));
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:19px;letter-spacing:-0.01em;
  }
  .author-info h4{font-size:15px;font-weight:600;margin-bottom:6px;}
  .author-info p{color:var(--muted);font-size:13.5px;line-height:1.6;}

  /* ==========================================================
     Content pages (Research Lab, sandbox, etc.)
     Mirrors the centering pattern used on blog/article pages
     (.container / .article-body above) so long-form content
     lines up consistently across the site.
     ========================================================== */

  /* Sidebar ads + main content sit side-by-side and shrink
     gracefully instead of stacking oddly or pushing content
     off-center when one side is empty/unrendered. */
  .layout-wrap{
    display:flex;
    justify-content:center;
    gap:24px;
    align-items:flex-start;
    width:100%;
  }
  .layout-wrap > main{
    flex:1 1 auto;
    min-width:0; /* prevents flex children (and their images) from overflowing */
  }

  /* Reading column: centered, matches the ~760px measure used
     for article bodies elsewhere on the site. */
  .sub-content{
    max-width:760px;
    width:100%;
    margin:0 auto;
    padding:0 20px;
    box-sizing:border-box;
  }

  /* Section wrapper inside .sub-content */
  .section-page{
    max-width:100%;
  }

  /* Eyebrow-style section labels (same idea as .section-tag / .eyebrow) */
  .section-label-page,
  .section-label-page-2,
  .section-label-page-3{
    display:inline-block;
    color:var(--secondary);
    font-size:13px;
    font-weight:600;
    letter-spacing:0.04em;
    text-transform:uppercase;
    margin-bottom:12px;
  }
  .section-label-page-3{
    color:var(--secondary);
    background:var(--icon-tile-bg);
    padding:6px 14px;
    border-radius:100px;
    margin-bottom:20px;
  }

  .sub-content h1{
    font-family:'Space Grotesk','Syne',sans-serif;
    font-size:38px;
    font-weight:700;
    letter-spacing:-0.02em;
    line-height:1.15;
    margin:0 0 20px;
    color:var(--text);
  }
  .sub-content h2{
    font-family:'Space Grotesk','Syne',sans-serif;
    font-size:26px;
    font-weight:600;
    letter-spacing:-0.01em;
    margin:40px 0 16px;
    color:var(--text);
  }
  .sub-content p{
    color:var(--text);
    font-size:16.5px;
    line-height:1.8;
    margin-bottom:20px;
  }
  .sub-content ul{
    margin:0 0 22px 22px;
    color:var(--text);
  }
  .sub-content li{margin-bottom:10px;}
  .sub-content a{color:var(--secondary);}
  .sub-content a:hover{color:var(--primary);}

  @media (max-width:600px){
    .sub-content h1{font-size:28px;}
    .sub-content h2{font-size:22px;}
  }

  /* Hero image + copy directly under the H1 */
  .responsive-image{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
    border-radius:16px;
    margin:20px 0 24px;
  }
  .hero-description{
    color:var(--muted);
    font-size:17px;
    line-height:1.7;
    margin-bottom:28px;
  }
  .hero-buttons{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:40px;
  }

  /* Learning-path / step cards */
  .card-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:24px 0 8px;
  }
  @media (max-width:600px){
    .card-grid{grid-template-columns:1fr;}
  }
  .card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px;
    transition:transform .2s ease, border-color .2s ease;
  }
  .card:hover{transform:translateY(-3px);border-color:var(--primary);}
  .card h3{
    font-size:16px;
    font-weight:600;
    letter-spacing:-0.01em;
    margin-bottom:8px;
    color:var(--text);
  }
  .card p{
    color:var(--muted);
    font-size:14px;
    line-height:1.5;
    margin-bottom:12px;
  }
  .card a{
    font-size:13.5px;
    font-weight:600;
    color:var(--secondary);
  }
  .card a:hover{color:var(--primary);}

  /* Any other <img> dropped into the reading column should also
     never exceed its container. */
  .sub-content img{
    max-width:100%;
    height:auto;
  }

  @media (max-width:980px){
    .layout-wrap{flex-direction:column;}
  }
