:root{
    /* --gold, --gold-deep, --text, --muted, --glass, --glass-border
       now live in css/root.css (shared by all pages) */
    --cream:#faf8f2;
    --cream-2:#f2ede0;
    --panel-dark:#1c1712;
    --panel-dark-2:#241d15;
    --gold-soft:#f0cf82;
    --text-on-dark:#f4efe2;
    --muted-on-dark:#b8ab8f;
    --danger:#c0392b;
  }
  *{ margin:0; padding:0; box-sizing:border-box; }
  body{
    font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;
    background:#fff !important;
    color:var(--text);
    overflow-x:hidden;
  
  }
  .serif{ font-family:'Fraunces', Georgia, serif; }
  /* ============ TOP BANNER ============ */
  .banner{
    position:relative;
    background:radial-gradient(120% 160% at 50% -20%, #2c2318 0%, var(--panel-dark) 55%, #130f0a 100%);
    padding:64px 64px 64px;
    text-align:center;
    overflow:hidden;
    width: 100%;
  }
  .banner::before{
    content:"";
    position:absolute; inset:0;
    background-image:
      radial-gradient(circle at 15% 30%, rgba(225,181,76,0.10), transparent 40%),
      radial-gradient(circle at 85% 70%, rgba(225,181,76,0.08), transparent 40%);
    pointer-events:none;
  }
  .banner-title{
    position:relative;
    font-size:clamp(26px,4vw,36px);
    font-weight:700;
    color:#fff;
    letter-spacing:.01em;
    margin-bottom:14px;
    animation:fadeDown .6s ease both;
  }
  .breadcrumb{
    position:relative;
    display:inline-flex; align-items:center; gap:10px;
    font-size:12.5px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
    color:var(--muted-on-dark);
    animation:fadeDown .6s ease .08s both;
  }
  .breadcrumb a{ color:var(--muted-on-dark); text-decoration:none; transition:color .2s ease; }
  .breadcrumb a:hover{ color:var(--gold); }
  .breadcrumb .dot{ width:4px; height:4px; border-radius:50%; background:var(--gold); }
  .breadcrumb .current{ color:var(--gold); }
  @keyframes fadeDown{
    from{ opacity:0; transform:translateY(-10px); }
    to{ opacity:1; transform:translateY(0); }
  }

  /* ============ AI TOOLS HERO ============ */
  .ait-hero{
    background:var(--cream);
    padding:70px 64px 40px;
    text-align:center;
  }
  .ait-hero-wrap{
    max-width:720px;
    margin:0 auto;
  }
  .ait-eyebrow{
    display:inline-block;
    font-size:13px;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
    margin-bottom:14px;
    align-items:center;
    gap:8px;
    padding:6px 14px;
    border-radius:999px;
    background:rgba(225,181,76,0.1);
    border:1px solid rgba(225,181,76,0.25);
    color:var(--cyan);
  }
  .ait-title{
    font-size:clamp(28px,4vw,42px);
    font-weight:700;
    color:var(--text);
    letter-spacing:-0.01em;
    line-height:1.25;
    margin-bottom:16px;
  }
  .ait-subtitle{
    font-size:15.5px;
    line-height:1.7;
    color:var(--muted);
  }

  /* ============ CATEGORIES ============ */
  .ait-categories{
    background:var(--cream);
    padding:20px 64px 90px;
  }
  .ait-cat-wrap{
    max-width:1200px;
    margin:0 auto;
  }

  .ait-filter-bar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    margin-bottom:44px;
  }
  .ait-pill{
    font-family:inherit;
    font-size:13.5px;
    font-weight:600;
    color:var(--text);
    background:#fff;
    border:1px solid rgba(28,23,18,0.10);
    padding:10px 18px;
    border-radius:999px;
    cursor:pointer;
    transition:all .25s ease;
  }
  .ait-pill:hover{
    border-color:var(--gold);
    color:var(--gold-deep);
  }
  .ait-pill.active{
    background:var(--panel-dark);
    border-color:var(--panel-dark);
    color:var(--gold-soft);
  }

  .ait-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
  }
  .ait-card{
    background:#fff;
    border-radius:20px;
    padding:28px 24px;
    text-decoration:none;
    display:flex;
    flex-direction:column;
    gap:12px;
    border:1px solid rgba(28,23,18,0.06);
    box-shadow:0 2px 8px rgba(28,23,18,0.04);
    transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  }
  .ait-card:hover{
    transform:translateY(-6px);
    box-shadow:0 16px 32px rgba(28,23,18,0.10);
    border-color:rgba(225,181,76,0.35);
  }
  .ait-icon{
    width:46px;
    height:46px;
    border-radius:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:4px;
  }
  .ait-icon svg{ width:21px; height:21px; }
  .ait-icon-1{ background:#fbe7d0; color:#b3701a; }
  .ait-icon-2{ background:#d9ede3; color:#2f7d5c; }
  .ait-icon-3{ background:#f4e2e9; color:#a5406d; }
  .ait-icon-4{ background:#dbe6f5; color:#3560ac; }
  .ait-icon-5{ background:#eadcf5; color:#7440ab; }
  .ait-icon-6{ background:#fde3e3; color:#c0392b; }
  .ait-icon-7{ background:#dff2ef; color:#1c8a7a; }

  .ait-cat-name{
    font-size:16.5px;
    font-weight:700;
    color:var(--text);
  }
  .ait-cat-desc{
    font-size:13px;
    line-height:1.55;
    color:var(--muted);
    flex-grow:1;
  }
  .ait-count{
    font-size:12.5px;
    font-weight:600;
    color:#b3402c;
    padding-top:10px;
    border-top:1px solid rgba(28,23,18,0.07);
    transition:gap .25s ease;
  }
  .ait-card:hover .ait-count{
    color:var(--panel-dark);
  }

   /* ======================================================
     RESPONSIVE — TABLET (≤960px)
     ====================================================== */
  @media (max-width:960px){
    .banner{ padding:48px 28px; }
    .ait-hero{ padding:50px 28px 32px; }
    .ait-categories{ padding:16px 28px 60px; }
    .ait-grid{ grid-template-columns:repeat(2,1fr); }
  }
  /* ======================================================
     RESPONSIVE — MOBILE (≤640px)
     ====================================================== */
  @media (max-width:640px){
    .banner{ padding:38px 20px; }
    .banner-title{ font-size:24px; margin-bottom:10px; }
    .breadcrumb{ font-size:11px; gap:8px; }
    .ait-hero{ padding:40px 20px 28px; }
    .ait-title{ font-size:25px; }
    .ait-subtitle{ font-size:13.5px; }
    .ait-categories{ padding:14px 20px 44px; }
    .ait-filter-bar{ gap:8px; margin-bottom:30px; }
    .ait-pill{ font-size:12.5px; padding:8px 14px; }
    .ait-grid{ grid-template-columns:1fr; gap:16px; }
    .ait-card{ padding:22px 20px; }
  }
  /* ======================================================
     RESPONSIVE — SMALL MOBILE (≤420px)
     ====================================================== */
  @media (max-width:420px){
    .banner{ padding:32px 16px; }
    .banner-title{ font-size:21px; }
    .ait-hero{ padding:32px 16px 22px; }
    .ait-title{ font-size:21px; }
    .ait-categories{ padding:12px 16px 34px; }
    .ait-icon{ width:40px; height:40px; }
    .ait-icon svg{ width:18px; height:18px; }
    .ait-cat-name{ font-size:15px; }
    .ait-cat-desc{ font-size:12.5px; }
  }