/*
Theme Name: AI Insights
Theme URI: https://ai-studio.local/
Author: AI Insights Team
Description: Editorial AI magazine theme — hero, categories, tools directory, blog, article layout and an interactive ChatGPT vs Claude comparison page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-insights
*/

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('assets/fonts/ClashDisplay-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('assets/fonts/ClashDisplay-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --panel: #ffffff;
  --border: #e6eaf2;
  --border-strong: #d7dde9;
  --text: #0b1220;
  --muted: #5b6472;
  --accent: #2563eb;
  --accent-2: #38bdf8;
  --accent-soft: #eff4ff;
  --navy: #0b1526;
  --green: #16a34a;
  --amber: #d97706;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --grad-brand: linear-gradient(135deg, #2563eb, #38bdf8);
  --grad-dark: linear-gradient(135deg, #0b1526, #16305e);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Clash Display', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 340px at 12% -80px, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(560px 300px at 88% -40px, rgba(56, 189, 248, 0.07), transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; }

::selection { background: rgba(37, 99, 235, 0.18); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #c9d2e0; border-radius: 99px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { width: min(1400px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: var(--admin-bar-offset, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(230, 234, 242, 0.9);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}
body.admin-bar .site-header { top: var(--admin-bar-offset, 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: var(--admin-bar-offset, 46px); }
  body.admin-bar .reading-progress { top: var(--admin-bar-offset, 46px); }
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 26px; padding: 14px 0;
}
.nav .logo { justify-self: start; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18.5px; letter-spacing: -0.5px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--grad-brand);
  color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links {
  justify-self: center; display: flex; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 5px; border-radius: 999px;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; position: relative;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.nav-cta {
  justify-self: end;
  padding: 10px 20px; border-radius: 999px;
  background: var(--grad-dark); color: #fff !important;
  font-size: 14px; font-weight: 650;
  box-shadow: 0 8px 20px rgba(11, 21, 38, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 21, 38, 0.3); }
.nav-toggle {
  display: none; justify-self: end;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  cursor: pointer; align-items: center; justify-content: center; font-size: 18px;
  transition: transform 0.15s var(--ease), border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle[aria-expanded="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  background: var(--grad-dark); color: #fff;
  font-weight: 650; font-size: 15px; border: 1px solid #101d35;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(11, 21, 38, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11, 21, 38, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.8); color: var(--text);
  font-weight: 650; font-size: 15px; border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.btn-outline:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: var(--shadow); }
.btn-blue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 12px;
  background: var(--grad-brand); color: #fff;
  font-weight: 700; font-size: 15px; border: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero-band {
  position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-band::before, .hero-band::after {
  content: ''; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(72px); pointer-events: none;
}
.hero-band::before {
  width: 520px; height: 520px; top: -120px; left: -120px;
  background: rgba(37, 99, 235, 0.16);
  animation: heroDrift1 15s ease-in-out infinite alternate;
}
.hero-band::after {
  width: 520px; height: 520px; bottom: -140px; right: -100px;
  background: rgba(56, 189, 248, 0.17);
  animation: heroDrift2 17s ease-in-out infinite alternate;
}
@keyframes heroDrift1 {
  to { transform: translate(70px, 50px) scale(1.12); background: rgba(99, 102, 241, 0.16); }
}
@keyframes heroDrift2 {
  to { transform: translate(-60px, -45px) scale(1.1); background: rgba(37, 99, 235, 0.15); }
}
.hero {
  position: relative; z-index: 1; isolation: isolate;
  padding: 78px 0 66px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(#fff, #fff) padding-box, var(--grad-brand) border-box;
  background-color: #fff;
  color: var(--muted); font-size: 13px; font-weight: 650; margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08); }
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -1.1px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563eb, #38bdf8 60%, #6366f1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 18px; margin: 20px 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.trust-line {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; margin-top: 22px;
}
.trust-line .dot { color: var(--green); font-weight: 700; animation: pulse 2s infinite; font-size: 11px; }

.search-bar {
  display: flex; gap: 10px; background: #fff;
  border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 8px; max-width: 550px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), var(--shadow-md); }
.search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; padding: 11px 12px; color: var(--text);
  font-family: inherit;
}
.search-bar input::placeholder { color: #98a2b3; }

.hero-visual {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 360px;
  background:
    radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.55), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.5), transparent 50%),
    linear-gradient(140deg, #0b1526, #132443 60%, #1e3a8a);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: heroCard 7s ease-in-out infinite alternate;
}
@keyframes heroCard {
  to { transform: translateY(-10px); box-shadow: 0 34px 70px rgba(15, 23, 42, 0.2); }
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.35; pointer-events: none;
}
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.float-card {
  position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2;
  background: rgba(255, 255, 255, 0.94); border-radius: 999px;
  padding: 13px 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.float-card p {
  font-size: 15.5px; font-weight: 750; color: var(--text);
  text-align: center; letter-spacing: -0.3px;
}

/* ---------- Sections ---------- */
.band { padding: 72px 0; }
.band.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 9px;
}
.kicker::before {
  content: ''; width: 18px; height: 2.5px; border-radius: 2px;
  background: var(--grad-brand);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(25px, 3vw, 33px); letter-spacing: -0.4px; line-height: 1.18; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 14.5px; margin-top: 8px; max-width: 660px; }
.link-more {
  color: var(--accent); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.link-more:hover { transform: translateX(3px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 10px; }
.stat {
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 16px; text-align: center;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stat::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 3px;
  background: var(--grad-brand); border-radius: 0 0 4px 4px; opacity: 0.85;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat strong {
  display: block; font-size: 30px; letter-spacing: -0.5px; font-weight: 850;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--muted); font-size: 13.5px; font-weight: 550; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s var(--ease);
}
.cat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 100%; height: 3px;
  background: var(--grad-brand); transition: right 0.3s var(--ease);
}
.cat:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-lg); }
.cat:hover::before { right: 0; }
.cat .icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), #e0f2fe);
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: transform 0.25s var(--ease);
}
.cat:hover .icon { transform: scale(1.08) rotate(-4deg); }
.cat h3 { font-size: 15.5px; letter-spacing: 0.1px; }
.cat p { color: var(--muted); font-size: 13px; flex: 1; line-height: 1.5; }
.cat .link { color: var(--accent); font-size: 13px; font-weight: 700; transition: letter-spacing 0.2s; }
.cat:hover .link { letter-spacing: 0.3px; }

/* ---------- Tools ---------- */
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--muted); font-size: 13.5px; font-weight: 650;
  cursor: pointer; transition: all 0.2s var(--ease); font-family: inherit;
}
.pill:hover { border-color: var(--navy); color: var(--text); transform: translateY(-1px); }
.pill.active {
  background: var(--grad-dark); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(11, 21, 38, 0.22);
}
.sort-label { color: var(--muted); font-size: 13.5px; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool {
  position: relative;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s var(--ease);
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, 0.35); }
.tool[hidden] { display: none; }
.tool-head { display: flex; align-items: center; gap: 12px; }
.tool-avatar {
  width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.18), 0 6px 16px rgba(15, 23, 42, 0.16);
}
.tool-head h3 { font-size: 17px; flex: 1; letter-spacing: 0; }
.tool-ext {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
  transition: all 0.2s var(--ease);
}
.tool-ext:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translate(2px, -2px); }
.tool > p { color: var(--muted); font-size: 13.5px; flex: 1; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; font-weight: 750; letter-spacing: 0.2px;
}
.tag.gray { background: #f1f4f9; color: var(--muted); }
.tag.green { background: #ecfdf3; color: var(--green); }
.tag.amber { background: #fff7ed; color: var(--amber); }
a.tag:hover { background: var(--accent); color: #fff; }
.tool-actions { display: flex; gap: 9px; margin-top: 2px; }
.tool-actions .btn { flex: 1; justify-content: center; }
.tool-actions .btn-outline { flex: 1; justify-content: center; }

/* ---------- Post cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--shadow-lg); }
.thumb {
  height: 124px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.thumb::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 16px 16px; opacity: 0.5;
}
.thumb .thumb-emoji { position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.card:hover .thumb .thumb-emoji { transform: scale(1.15); }
.thumb .thumb-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: rgba(255, 255, 255, 0.85); color: var(--text);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 10.5px; font-weight: 750; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}
.card-body { padding: 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h2, .card-body h3 { font-size: 15.5px; line-height: 1.4; letter-spacing: 0.1px; transition: color 0.2s; }
.card:hover .card-body h2, .card:hover .card-body h3 { color: var(--accent); }
.card-body p {
  color: var(--muted); font-size: 13px; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--border);
  padding-top: 12px;
}
.read-more { color: var(--accent); font-size: 13px; font-weight: 700; transition: transform 0.2s var(--ease); display: inline-block; }
.read-more:hover { transform: translateX(3px); }

/* ---------- Newsletter ---------- */
#newsletter { padding: 72px 0 0; }
.newsletter {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
  background:
    radial-gradient(500px 260px at 92% 110%, rgba(56, 189, 248, 0.22), transparent 65%),
    radial-gradient(420px 240px at 6% -20%, rgba(99, 102, 241, 0.28), transparent 65%),
    linear-gradient(135deg, var(--navy), #14264a 70%, #1d3a8a);
  border-radius: 26px; padding: 54px 56px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(11, 21, 38, 0.18);
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter .kicker { color: #7dd3fc; }
.newsletter .kicker::before { background: linear-gradient(135deg, #7dd3fc, #a5b4fc); }
.news-copy h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.4px; line-height: 1.15; }
.news-copy > p { color: #b9c4d8; font-size: 15px; margin: 14px 0 0; max-width: 520px; }
.news-points { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.news-points li {
  position: relative; padding-left: 28px;
  color: #dbe4f3; font-size: 14px; font-weight: 550;
}
.news-points li::before {
  content: '✓'; position: absolute; left: 0; top: -1px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(56, 189, 248, 0.18); color: #7dd3fc;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.35);
}
.news-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px; padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.22);
}
.news-form { display: flex; flex-direction: column; gap: 10px; }
.news-form input[type='email'],
.news-form input[type='text'] {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid #2b3d5f; background: rgba(10, 18, 35, 0.75); color: #fff;
  font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.news-form input::placeholder { color: #7c8aa5; }
.news-form input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16); }
.news-form .btn-blue { justify-content: center; width: 100%; padding: 14px; }
.news-note {
  display: flex; gap: 9px; align-items: flex-start;
  color: #93a1bc; font-size: 12.5px; margin-top: 14px;
}
.news-note input { margin-top: 3px; accent-color: var(--accent-2); flex-shrink: 0; }
.news-note a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 2px; }
.news-fine {
  color: #64748b; font-size: 11.5px; margin-top: 10px; letter-spacing: 0.02em;
}
.news-success { color: #86efac; font-weight: 700; font-size: 16px; padding: 8px 0; }
.news-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #060b16;
  margin-top: 70px;
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  z-index: 2;
}
.site-footer::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 280px at 6% 0%, rgba(37, 99, 235, 0.24), transparent 70%),
    radial-gradient(560px 260px at 94% 14%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(420px 220px at 50% 110%, rgba(37, 99, 235, 0.12), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-top {
  display: grid; grid-template-columns: 1.25fr 2fr; gap: 64px;
  padding: 76px 0 50px;
}
.footer-brand .logo { font-size: 20px; color: #fff; }
.footer-brand .logo-mark {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
}
.footer-brand p {
  color: #93a1b5; font-size: 14px; line-height: 1.7;
  margin: 18px 0 20px; max-width: 340px;
}
.footer-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 650; color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 12px rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #93a1b5;
  transition: all 0.25s var(--ease);
}
.socials a:hover {
  border-color: transparent; background: var(--grad-brand); color: #fff;
  transform: translateY(-3px); box-shadow: 0 12px 26px rgba(37, 99, 235, 0.45);
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer-col h4 {
  font-size: 11.5px; margin-bottom: 18px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; font-weight: 700;
  font-family: var(--font-sans);
  display: flex; align-items: center; gap: 9px;
}
.footer-col h4::before {
  content: ''; width: 18px; height: 3px; border-radius: 2px;
  background: var(--grad-brand);
}
.footer-col a {
  position: relative;
  display: block; color: #93a1b5; font-size: 14px; padding: 6.5px 0;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.footer-col a::after {
  content: ''; position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1.5px; background: var(--grad-brand);
  transition: width 0.28s var(--ease);
}
.footer-col a:hover { color: #fff; transform: translateX(5px); }
.footer-col a:hover::after { width: 26px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0 28px;
  color: #8b96a8; font-size: 12.5px;
}
.footer-meta { color: #64748b; letter-spacing: 0.04em; }
.to-top {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 15px; border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.to-top:hover {
  color: #fff; border-color: transparent; background: var(--grad-brand);
  transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

/* ---------- Page / listing ---------- */
.page-title { padding: 60px 0 8px; }
.page-title .kicker { margin-bottom: 12px; }
.page-title h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.6px; font-weight: 700; }
.page-title p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- Article ---------- */
.reading-progress {
  position: fixed; top: var(--admin-bar-offset, 0px); left: 0; right: 0; height: 3px;
  background: var(--grad-brand);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 60; pointer-events: none;
}
body.admin-bar .reading-progress { top: var(--admin-bar-offset, 32px); }
.article { padding: 30px 0 84px; max-width: 880px; margin: 0 auto; }

.article-cover {
  position: relative; height: 210px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-md);
}
.article-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.6;
}
.cover-emoji {
  font-size: 74px; position: relative; z-index: 1;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.18));
}
.cover-tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.article-head { padding: 30px 0 6px; }
.article .back {
  color: var(--muted); font-size: 13.5px; font-weight: 650; display: inline-block;
  margin-bottom: 18px; transition: color 0.2s, transform 0.2s var(--ease);
}
.article .back:hover { color: var(--accent); transform: translateX(-3px); }
.article-head h1 {
  font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08;
  letter-spacing: -0.9px; margin: 10px 0 0; font-weight: 700;
  max-width: 800px;
}
.article-lead {
  color: var(--muted); font-size: 18.5px; line-height: 1.65;
  margin-top: 16px; max-width: 760px;
}
.article .sub {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 13.5px;
}
.author-chip { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; color: var(--text); }
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.dot-sep { color: var(--border-strong); }
.sub .tag-row { margin-left: auto; }

.article-body {
  max-width: 760px; margin-top: 34px;
  font-size: 17px; line-height: 1.8; color: #475569;
  counter-reset: sec;
}
.article-body > p:first-child,
.article-body > .wp-block-paragraph:first-child {
  font-size: 19px; color: #334155; font-weight: 500; line-height: 1.7;
}
.article-body h2 {
  counter-increment: sec;
  position: relative;
  font-size: 30px; line-height: 1.2;
  color: var(--text); margin: 52px 0 16px;
  letter-spacing: -0.3px; font-weight: 700;
}
.article-body h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.article-body h2::after {
  content: ''; display: block; width: 52px; height: 3px;
  background: var(--grad-brand); border-radius: 3px; margin-top: 14px;
}
.article-body h3 {
  font-size: 21px; color: var(--text); margin: 34px 0 10px;
  letter-spacing: 0.1px; font-weight: 600;
  display: table; border-bottom: 2px solid rgba(37, 99, 235, 0.18);
  padding-bottom: 6px;
}
.article-body p { margin: 17px 0; }
.article-body p strong { color: var(--text); font-weight: 750; }
.article-body ul, .article-body ol { margin: 17px 0 17px 6px; padding-left: 22px; }
.article-body li { margin: 8px 0; }
.article-body li::marker { color: var(--accent); font-weight: 800; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #2563eb, #38bdf8) 1;
  border-left-width: 3px; border-left-style: solid;
  padding: 12px 22px;
  background: var(--accent-soft); border-radius: 0 14px 14px 0;
  margin: 24px 0; color: #334155; font-style: italic; font-size: 16.5px;
}
.article-body pre {
  background: var(--navy); border: 1px solid #1e2d4a;
  padding: 18px; border-radius: 12px; overflow-x: auto; margin: 24px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.article-body pre code { color: #dbe7ff; }
.article-body :not(pre) > code {
  font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 14.5px;
  background: var(--accent-soft); border: 1px solid #dbe7ff;
  padding: 2px 7px; border-radius: 7px; color: #1d4ed8;
}
.article-body code { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 14.5px; }
.article-body img { max-width: 100%; border-radius: 14px; }
.article-body figure { margin: 24px 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  font-size: 15px;
}
.article-body th, .article-body td { border: none; padding: 12px 14px; text-align: left; }
.article-body td { border-top: 1px solid var(--border); }
.article-body th { background: var(--grad-dark); color: #fff; font-weight: 700; font-size: 14px; }
.article-body tr:nth-child(even) td { background: var(--bg-soft); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

.article-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-top: 52px; padding-top: 26px;
  border-top: 1px solid var(--border);
}

.empty { color: var(--muted); padding: 34px 0; }

/* ---------- WordPress bits ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: 13px; margin-top: 8px; }
.sticky .thumb-tag::after { content: ' · Pinned'; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 0 60px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 650;
  transition: all 0.2s var(--ease);
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current {
  background: var(--grad-dark); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(11, 21, 38, 0.22);
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px auto 0; max-width: 880px; }
.post-nav a {
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  background: #fff; transition: transform 0.2s var(--ease), box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 4px;
}
.post-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-nav .nav-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.post-nav .nav-title { font-size: 14.5px; font-weight: 650; color: var(--text); }
.post-nav .next { text-align: right; }

.page-body { max-width: 820px; margin: 0 auto; padding: 20px 0 80px; }
.page-body h2 { font-size: 28px; margin: 40px 0 14px; color: var(--text); }
.page-body h3 { font-size: 21px; margin: 28px 0 10px; color: var(--text); }
.page-body p { margin: 16px 0; color: #475569; font-size: 16.5px; line-height: 1.8; }
.page-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-body ul, .page-body ol { margin: 16px 0 16px 6px; padding-left: 22px; color: #475569; }
.page-body li { margin: 7px 0; }
.page-body img { border-radius: 14px; }
.page-body blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 20px; border-radius: 0 14px 14px 0; margin: 22px 0;
}

.error-404 { text-align: center; padding: 90px 0 70px; }
.error-404 .code {
  font-family: var(--font-display); font-size: clamp(80px, 16vw, 150px); line-height: 1;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-404 h1 { font-size: 28px; margin: 10px 0 12px; }
.error-404 p { color: var(--muted); margin-bottom: 26px; }
.error-404 .search-bar { margin: 0 auto; }

section[id] { scroll-margin-top: 92px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .hero-visual { min-height: 260px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: flex;
    position: absolute; top: calc(100% + 8px); left: 4%; right: 4%;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    flex-direction: column; gap: 2px; align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    z-index: 60;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    transform-origin: top center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.15s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.15s var(--ease), transform 0.18s var(--ease), visibility 0s;
  }
  .nav-links a { text-align: center; border-radius: 10px; padding: 11px 14px; }
  .nav-links a:hover,
  .nav-links a.is-active { background: var(--accent-soft); box-shadow: none; }
  .site-header { position: sticky; }
  .newsletter { grid-template-columns: 1fr; gap: 30px; padding: 44px 36px; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cats, .tools, .grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .newsletter { padding: 34px 22px; }
  .article-cover { height: 150px; border-radius: 16px; }
  .cover-emoji { font-size: 52px; }
  .sub .tag-row { margin-left: 0; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 19px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .post-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   Comparison page — all selectors scoped with .cx- prefix
   ========================================================= */

.cx-page { padding-bottom: 40px; }

.cx-hero-band {
  position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cx-hero-band::before, .cx-hero-band::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
}
.cx-hero-band::before {
  width: 480px; height: 480px; top: -130px; left: -110px;
  background: rgba(16, 163, 127, 0.14);
  animation: cxDraft1 15s ease-in-out infinite alternate;
}
.cx-hero-band::after {
  width: 480px; height: 480px; bottom: -150px; right: -90px;
  background: rgba(217, 119, 87, 0.15);
  animation: cxDraft2 17s ease-in-out infinite alternate;
}
@keyframes cxDraft1 {
  to { transform: translate(60px, 45px) scale(1.12); background: rgba(37, 99, 235, 0.14); }
}
@keyframes cxDraft2 {
  to { transform: translate(-55px, -40px) scale(1.1); background: rgba(217, 119, 87, 0.12); }
}
.cx-hero {
  position: relative; z-index: 1;
  padding: 66px 0 58px; text-align: center; max-width: 920px;
}
.cx-hero .kicker { justify-content: center; }
.cx-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07; letter-spacing: -1px; margin-top: 14px;
}
.cx-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #2563eb, #38bdf8 60%, #6366f1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cx-hero > p {
  color: var(--muted); font-size: 17.5px; max-width: 650px;
  margin: 18px auto 28px;
}
.cx-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.cx-vs {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 34px; margin-top: 48px;
}
.cx-vs::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 50%;
  border-top: 2px dashed rgba(37, 99, 235, 0.25);
  z-index: -1;
}
.cx-vs-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cx-vs-badge {
  width: 76px; height: 76px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 23px; letter-spacing: -0.5px;
  animation: cxFloat 4.5s ease-in-out infinite alternate;
}
.cx-vs-gpt .cx-vs-badge {
  background: linear-gradient(135deg, #10a37f, #0d8c6d);
  box-shadow: 0 16px 36px rgba(16, 163, 127, 0.35);
}
.cx-vs-claude .cx-vs-badge {
  background: linear-gradient(135deg, #d97757, #c05f3f);
  box-shadow: 0 16px 36px rgba(217, 119, 87, 0.35);
  animation-delay: 1.2s;
}
@keyframes cxFloat { to { transform: translateY(-9px); } }
.cx-vs-name {
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.cx-vs-core {
  width: 54px; height: 54px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.cx-vs-core span {
  font-size: 15px; font-weight: 800; color: var(--navy);
  letter-spacing: 0.06em;
}
.cx-vs-core::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.35);
  animation: cxPulse 2.2s ease-out infinite;
}
@keyframes cxPulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

.cx-section { padding: 66px 0; }
.cx-band-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cx-head { margin-bottom: 30px; }
.cx-head h2 { font-size: clamp(25px, 3vw, 33px); letter-spacing: -0.4px; margin-top: 8px; }
.cx-head p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.cx-head-center { text-align: center; }
.cx-head-center .kicker { justify-content: center; }

.cx-table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: 16px; background: #fff;
  box-shadow: var(--shadow);
}
.cx-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cx-table thead th {
  background: var(--grad-dark); color: #fff; text-align: left;
  font-size: 14px; font-weight: 700; padding: 15px 18px;
}
.cx-table thead th:first-child { border-radius: 15px 0 0 0; }
.cx-table thead th:last-child { border-radius: 0 15px 0 0; }
.cx-table td {
  padding: 14px 18px; font-size: 14.5px; color: #475569;
  border-top: 1px solid var(--border); vertical-align: top;
}
.cx-table tbody tr:nth-child(even) td { background: var(--bg-soft); }
.cx-table tbody tr:hover td { background: var(--accent-soft); }
.cx-table td.cx-feat { font-weight: 700; color: var(--text); width: 24%; }

.cx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cx-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.cx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, 0.35); }
.cx-card-top { display: flex; align-items: center; gap: 14px; }
.cx-card-top h3 { font-size: 21px; letter-spacing: 0; }
.cx-logo {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(15, 23, 42, 0.16);
}
.cx-logo-gpt { background: linear-gradient(135deg, #10a37f, #0d8c6d); }
.cx-logo-claude { background: linear-gradient(135deg, #d97757, #c05f3f); }
.cx-by { color: var(--muted); font-size: 13px; font-weight: 600; }
.cx-block h4 {
  font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px; font-family: var(--font-sans);
}
.cx-block ul, .cx-plan ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.cx-block li, .cx-plan li {
  position: relative; padding-left: 24px;
  font-size: 14.5px; color: #475569; line-height: 1.55;
}
.cx-block li::before, .cx-plan li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800; font-size: 13px;
}
.cx-good li::before { content: '✓'; color: var(--green); }
.cx-bad li::before { content: '✕'; color: #dc2626; }
.cx-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.cx-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cx-task {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cx-task:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cx-task-head { display: flex; align-items: center; gap: 11px; }
.cx-task-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-soft), #e0f2fe);
  border: 1px solid rgba(37, 99, 235, 0.12);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cx-task h3 { font-size: 15.5px; flex: 1; letter-spacing: 0.1px; }
.cx-winner {
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.cx-winner.gpt { background: #ecfdf3; color: #10a37f; border: 1px solid #a7f3d0; }
.cx-winner.claude { background: #fff7ed; color: #d97757; border: 1px solid #fed7aa; }
.cx-winner.both { background: var(--accent-soft); color: var(--accent); border: 1px solid #dbe7ff; }
.cx-task p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.cx-plan {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
}
.cx-plan h3 { font-size: 20px; letter-spacing: 0; }
.cx-plan p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.cx-plan-pro {
  background: linear-gradient(160deg, var(--navy), #14264a 70%, #1d3a8a);
  border-color: rgba(255, 255, 255, 0.1); color: #fff;
}
.cx-plan-pro p { color: #b9c4d8; }
.cx-plan-pro h3 { color: #fff; }
.cx-plan-pro li { color: #dbe4f3; }
.cx-plan-pro li::before { content: '✓'; color: #7dd3fc; }
.cx-note {
  color: var(--muted); font-size: 13px; margin-top: 18px;
  background: var(--bg-soft); border: 1px dashed var(--border-strong);
  border-radius: 12px; padding: 13px 16px;
}

.cx-quiz-wrap { max-width: 780px; }
.cx-quiz {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 30px; box-shadow: var(--shadow-md);
}
.cx-quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.cx-quiz-progress span { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.cx-bar { flex: 1; height: 7px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.cx-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: var(--grad-brand);
  transition: width 0.4s var(--ease);
}
.cx-quiz-q { font-size: 22px; letter-spacing: 0; margin-bottom: 18px; }
.cx-quiz-opts { display: grid; gap: 10px; }
.cx-opt {
  text-align: left; padding: 15px 18px; border-radius: 13px;
  border: 1px solid var(--border-strong); background: #fff;
  font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer;
  transition: all 0.18s var(--ease); font-family: inherit;
}
.cx-opt:hover {
  border-color: var(--accent); background: var(--accent-soft);
  transform: translateX(4px);
}
.cx-quiz-back {
  margin-top: 16px; background: none; border: none;
  color: var(--muted); font-size: 13.5px; font-weight: 650; cursor: pointer;
  padding: 4px 0; font-family: inherit;
}
.cx-quiz-back:hover { color: var(--accent); }
.cx-result { text-align: center; }
.cx-result-label {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.cx-result h3 { font-size: clamp(23px, 3vw, 30px); letter-spacing: -0.2px; }
.cx-result h3 em { font-style: normal; }
.cx-gpt-t { color: #10a37f; }
.cx-claude-t { color: #d97757; }
.cx-result p { color: var(--muted); font-size: 15px; margin: 14px auto 22px; max-width: 540px; }
.cx-quiz-restart {
  margin-top: 18px; background: none; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 8px 20px;
  font-size: 13.5px; font-weight: 650; color: var(--muted); cursor: pointer;
  transition: all 0.18s var(--ease); font-family: inherit;
}
.cx-quiz-restart:hover { border-color: var(--accent); color: var(--accent); }

.cx-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx-pc > div {
  border-radius: 14px; padding: 18px 18px 20px;
  border: 1px solid;
}
.cx-pc > div:first-child { background: #f6fef9; border-color: #d3f5e0; }
.cx-pc > div:last-child { background: #fff8f7; border-color: #fde2dd; }
.cx-good-h { color: var(--green); }
.cx-bad-h { color: #dc2626; }
.cx-pc h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px; font-family: var(--font-sans);
  display: flex; align-items: center; gap: 7px;
}
.cx-pc h4::before {
  content: ''; width: 8px; height: 8px; border-radius: 3px;
}
.cx-good-h::before { background: var(--green); }
.cx-bad-h::before { background: #dc2626; }
.cx-pc ul { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.cx-pc li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; color: #475569; line-height: 1.55;
}
.cx-pc li::before { position: absolute; left: 0; top: 0; font-weight: 800; font-size: 13px; }
.cx-pc .cx-good li::before { content: '✓'; color: var(--green); }
.cx-pc .cx-bad li::before { content: '✕'; color: #dc2626; }

.cx-faq-wrap { max-width: 780px; }
.cx-faq { display: flex; flex-direction: column; gap: 10px; }
.cx-faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.cx-faq-item.open { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
.cx-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: none; cursor: pointer;
  padding: 17px 20px; text-align: left;
  font-size: 15.5px; font-weight: 700; color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.1px;
}
.cx-faq-ico {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 17px; font-weight: 700;
  transition: all 0.2s var(--ease);
}
.cx-faq-item.open .cx-faq-ico { background: var(--accent); color: #fff; transform: rotate(180deg); }
.cx-faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.cx-faq-item.open .cx-faq-a { grid-template-rows: 1fr; }
.cx-faq-a > p {
  overflow: hidden; margin: 0;
  padding: 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65;
}
.cx-faq-item.open .cx-faq-a > p { padding-bottom: 18px; }

.cx-cta { padding: 26px 0 60px; }
.cx-cta-inner {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(460px 240px at 88% 110%, rgba(56, 189, 248, 0.22), transparent 65%),
    radial-gradient(400px 230px at 8% -20%, rgba(99, 102, 241, 0.28), transparent 65%),
    linear-gradient(135deg, var(--navy), #14264a 70%, #1d3a8a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px; padding: 58px 40px; color: #fff;
  box-shadow: 0 18px 44px rgba(11, 21, 38, 0.18);
}
.cx-cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.cx-cta-inner > * { position: relative; z-index: 1; }
.cx-cta .kicker { color: #7dd3fc; justify-content: center; }
.cx-cta .kicker::before { background: linear-gradient(135deg, #7dd3fc, #a5b4fc); }
.cx-cta h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.4px; margin-top: 10px; }
.cx-cta p { color: #b9c4d8; font-size: 15.5px; margin: 14px 0 26px; }

@media (max-width: 980px) {
  .cx-duo { grid-template-columns: 1fr; }
  .cx-tasks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cx-hero { padding-top: 44px; }
  .cx-vs { gap: 20px; margin-top: 36px; }
  .cx-vs-badge { width: 62px; height: 62px; font-size: 18px; border-radius: 18px; }
  .cx-vs-core { width: 46px; height: 46px; }
  .cx-section { padding: 48px 0; }
  .cx-tasks { grid-template-columns: 1fr; }
  .cx-pc { grid-template-columns: 1fr; }
  .cx-quiz { padding: 24px 18px; }
  .cx-cta-inner { padding: 42px 22px; }
  .cx-hero-actions .btn, .cx-hero-actions .btn-blue { width: 100%; justify-content: center; }
}
