:root {
  --bg: #f5f7fc;
  --bg-2: #eef2fb;
  --card: #ffffff;
  --card-2: #f8faff;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(47, 107, 255, 0.18);
  --text: #0b1220;
  --muted: #5b6478;
  --faint: #8891a4;
  --accent: #2f6bff;
  --accent-2: #7b3cff;
  --accent-ink: #ffffff;
  --grad: linear-gradient(120deg, #00c6ff 0%, #2f6bff 52%, #7b3cff 100%);
  --blue: #2f6bff;
  --pink: #7b3cff;
  --orange: #f59e0b;
  --shadow: 0 16px 40px rgba(47, 107, 255, 0.08);
  --radius: 18px;
  --max: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Instrument Serif", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(0, 198, 255, 0.16), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(123, 60, 255, 0.12), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.15; }

.aitr-wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.aitr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.aitr-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.45);
}

/* Header */
.aitr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 252, 0.86);
  border-bottom: 1px solid transparent;
}
.aitr-header.is-scrolled { border-bottom-color: var(--line); }
.aitr-header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.aitr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.aitr-logo-img {
  height: 34px;
  width: auto;
  max-width: 220px;
}
.aitr-logo-icon {
  height: 36px;
  width: 36px;
}
.aitr-nav { display: flex; align-items: center; gap: 6px; }
.aitr-nav-item { position: relative; }
.aitr-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
}
.aitr-nav-link:hover,
.aitr-nav-item.is-current .aitr-nav-link { color: var(--text); background: rgba(47,107,255,0.08); }
.aitr-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}
.aitr-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.16s ease;
}
.aitr-nav-item:hover .aitr-dropdown,
.aitr-nav-item:focus-within .aitr-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.aitr-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
}
.aitr-dropdown a:hover { background: rgba(47,107,255,0.08); color: var(--text); }
.aitr-header-actions { display: flex; align-items: center; gap: 10px; }
.aitr-icon-btn,
.aitr-nav-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.aitr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
}
.aitr-btn-accent { background: var(--grad); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(47, 107, 255, 0.22); }
.aitr-btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.aitr-btn-ghost:hover { background: rgba(47,107,255,0.06); }
.aitr-nav-toggle { display: none; }
.aitr-nav-toggle span,
.aitr-nav-toggle::before,
.aitr-nav-toggle::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}
.aitr-nav-toggle::before { margin-bottom: 5px; }
.aitr-nav-toggle::after { margin-top: 5px; }

/* Search overlay */
.aitr-search {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.62);
  display: grid;
  place-items: start center;
  padding: 14vh 20px 20px;
  opacity: 0;
  visibility: hidden;
}
.aitr-search.is-open { opacity: 1; visibility: visible; }
.aitr-search-box {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.aitr-search-box form { display: flex; gap: 10px; }
.aitr-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 20px;
}
.aitr-search-hint { margin-top: 10px; color: var(--faint); font-size: 13px; }

/* Hero */
.aitr-hero { padding: 72px 0 28px; }
.aitr-hero h1 {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  line-height: 0.92;
}
.aitr-hero h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.aitr-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.aitr-hero-search {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  max-width: 640px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.aitr-hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 12px;
}
.aitr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.aitr-stats strong { display: block; color: var(--text); font-size: 22px; letter-spacing: -0.04em; }

/* Sections */
.aitr-section { padding: 56px 0; }
.aitr-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.aitr-section-head h2 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
}
.aitr-link { color: var(--accent); font-size: 14px; font-weight: 600; }

/* News */
.aitr-news { display: grid; gap: 0; }
.aitr-news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.aitr-news-item:last-child { border-bottom: 1px solid var(--line); }
.aitr-news-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.aitr-chip {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aitr-chip.is-blue { background: rgba(142,197,255,0.1); color: var(--blue); }
.aitr-chip.is-pink { background: rgba(249,168,212,0.1); color: var(--pink); }
.aitr-chip.is-orange { background: rgba(253,186,116,0.1); color: var(--orange); }
.aitr-time { color: var(--faint); font-size: 13px; }
.aitr-news-item h3 { font-size: 26px; font-weight: 600; }
.aitr-news-item h3:hover { color: var(--accent); }
.aitr-news-item p { margin: 10px 0 0; color: var(--muted); }

/* Tools */
.aitr-rank { display: grid; gap: 0; }
.aitr-rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.aitr-rank-item:last-child { border-bottom: 1px solid var(--line); }
.aitr-rank-num { color: var(--faint); font-size: 18px; font-weight: 600; }
.aitr-rank-item h3 { font-size: 18px; font-weight: 600; }
.aitr-rank-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.aitr-rank-cats { color: var(--faint); font-size: 13px; }

.aitr-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aitr-tool-card,
.aitr-post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.18s ease;
}
.aitr-tool-card:hover,
.aitr-post-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.aitr-thumb {
  aspect-ratio: 16 / 9;
  background: #e8eefc center/cover no-repeat;
}
.aitr-card-body { padding: 16px 18px 18px; }
.aitr-card-body h3 { font-size: 18px; }
.aitr-card-body p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.aitr-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Categories */
.aitr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.aitr-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  background: var(--card);
}
.aitr-pill:hover,
.aitr-pill.is-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Editorial */
.aitr-editorial {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}
.aitr-post-card.featured .aitr-thumb { aspect-ratio: 16 / 8; }
.aitr-post-card.featured .aitr-card-body h3 { font-family: var(--display); font-size: 36px; font-weight: 400; }
.aitr-stack { display: grid; gap: 16px; }

/* CTA */
.aitr-cta {
  margin: 20px 0 70px;
  padding: 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 198, 255, 0.18), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(123, 60, 255, 0.12), transparent 28%),
    #ffffff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.aitr-cta h2 { font-family: var(--display); font-size: 44px; font-weight: 400; }
.aitr-cta p { margin: 10px 0 0; color: var(--muted); }

/* Page / article */
.aitr-page { padding: 36px 0 80px; }
.aitr-page-hero { max-width: 760px; margin-bottom: 32px; }
.aitr-page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 400;
}
.aitr-page-hero p { color: var(--muted); font-size: 18px; }
.aitr-crumbs { margin-bottom: 18px; }
.aitr-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--faint); font-size: 13px; }
.aitr-crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #3f3f46; }
.aitr-crumbs a:hover { color: var(--text); }

.aitr-prose {
  max-width: 760px;
}
.aitr-prose > * + * { margin-top: 1.1em; }
.aitr-prose h2, .aitr-prose h3 { font-family: var(--display); font-weight: 400; }
.aitr-prose h2 { font-size: 34px; }
.aitr-prose h3 { font-size: 26px; }
.aitr-prose p, .aitr-prose li { color: #3d4658; }
.aitr-prose a { color: var(--accent); }
.aitr-prose ul, .aitr-prose ol { padding-left: 1.2em; }
.aitr-article-hero { margin-bottom: 28px; }
.aitr-article-hero .aitr-thumb { border-radius: 22px; margin: 22px 0; }

/* Listing */
.aitr-listing {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.aitr-side {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.aitr-side h3 { font-size: 16px; margin-bottom: 12px; }
.aitr-side .aitr-btn { width: 100%; margin-top: 8px; }

/* Forms */
.aitr-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.aitr-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.aitr-field { display: grid; gap: 6px; }
.aitr-field span { color: var(--muted); font-size: 13px; font-weight: 600; }
.aitr-field input,
.aitr-field textarea,
.aitr-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.aitr-field textarea { min-height: 140px; resize: vertical; }
.aitr-field input:focus,
.aitr-field textarea:focus,
.aitr-field select:focus { border-color: var(--accent); }
.aitr-hp { position: absolute; left: -9999px; }
.aitr-notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.aitr-notice.is-ok { background: rgba(47,107,255,0.08); color: var(--accent); }
.aitr-notice.is-err { background: rgba(251,113,133,0.12); color: #fda4af; }

.aitr-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}
.aitr-panel {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.aitr-panel h3 { margin-bottom: 10px; }
.aitr-panel p, .aitr-panel li { color: var(--muted); }
.aitr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 8px; }
.aitr-fact {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.aitr-fact strong { display: block; font-size: 22px; }

.aitr-pager { margin-top: 32px; }
.aitr-pager ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.aitr-pager a,
.aitr-pager span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.aitr-pager .current,
.aitr-pager a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* Footer */
.aitr-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.aitr-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
}
.aitr-footer h4 { margin-bottom: 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.aitr-footer a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.aitr-footer a:hover { color: var(--text); }
.aitr-copy { margin-top: 36px; color: var(--faint); font-size: 13px; }

.empty { padding: 40px 0; color: var(--muted); }

.aitr-hubs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.aitr-hub {
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  min-height: 108px;
}
.aitr-hub strong { font-size: 15px; }
.aitr-hub span { color: var(--muted); font-size: 13px; }
.aitr-hub:hover { border-color: var(--line-2); transform: translateY(-2px); }

.aitr-trend-lead {
  display: block;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(0, 198, 255, 0.16), transparent 36%),
    radial-gradient(circle at 100% 0, rgba(123, 60, 255, 0.1), transparent 32%),
    var(--card);
}
.aitr-trend-lead h3 { margin: 10px 0 8px; font-size: 28px; }
.aitr-trend-lead p { margin: 0; color: var(--muted); }
.aitr-new-week { margin: 16px 0 0; color: var(--faint); font-size: 14px; }

.aitr-score {
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.aitr-score-num { font-size: 48px; letter-spacing: -0.06em; line-height: 1; margin: 12px 0 8px; }
.aitr-score-num span { font-size: 16px; color: var(--faint); }
.aitr-score-head p { color: var(--muted); font-size: 14px; }
.aitr-score-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.aitr-score-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.aitr-score-row span { color: var(--accent); font-weight: 600; }
.aitr-evidence { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aitr-evidence li { color: var(--muted); font-size: 13px; }
.aitr-evi-label {
  display: inline-flex;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aitr-evi-label.is-vendor_claim { background: rgba(253,186,116,0.12); color: var(--orange); }
.aitr-evi-label.is-independent { background: rgba(142,197,255,0.12); color: var(--blue); }
.aitr-evi-label.is-measured { background: rgba(47,107,255,0.1); color: var(--accent); }
.aitr-evi-label.is-unverified { background: rgba(15,23,42,0.06); color: var(--faint); }

.aitr-matrix-wrap { overflow: auto; margin: 20px 0 28px; }
.aitr-matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.aitr-matrix th, .aitr-matrix td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.aitr-matrix th { background: var(--card); font-weight: 600; }
.aitr-prose table { width: 100%; border-collapse: collapse; font-size: 14px; overflow-x: auto; display: block; }
.aitr-prose th, .aitr-prose td { border: 1px solid var(--line); padding: 10px 12px; }
.aitr-related { margin-top: 36px; }
.aitr-related h2 { margin-bottom: 12px; }

@media (max-width: 960px) {
  .aitr-nav { display: none; }
  .aitr-nav.is-open {
    display: grid;
    position: fixed;
    inset: 72px 0 0;
    background: #f5f7fc;
    padding: 18px;
    align-content: start;
    overflow: auto;
  }
  .aitr-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 0 12px; }
  .aitr-nav-toggle { display: grid; }
  .aitr-tool-grid,
  .aitr-editorial,
  .aitr-listing,
  .aitr-split,
  .aitr-cta,
  .aitr-footer-grid,
  .aitr-form-row,
  .aitr-facts,
  .aitr-hubs { grid-template-columns: 1fr 1fr; }
  .aitr-news-item { grid-template-columns: 1fr; gap: 10px; }
  .aitr-rank-item { grid-template-columns: 36px 1fr; }
  .aitr-rank-cats { display: none; }
  .aitr-hero { padding-top: 40px; }
  .aitr-logo-img { height: 28px; max-width: 168px; }
  .aitr-hubs { grid-template-columns: 1fr; }
  .aitr-cta { padding: 28px; }
}
