/* ============================================
   AI INDUSTRY HUB — Shared Stylesheet
   Light Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --bg: #f8f9fc;
  --bg2: #ffffff;
  --bg3: #f0f2f7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent2: #7c3aed;
  --accent3: #059669;
  --accent-light: #eff6ff;
  --text: #374151;
  --muted: #6b7280;
  --heading: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--heading); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo-mark {
  width: 30px; height: 30px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 0.85rem; font-weight: 800;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 600 !important;
  font-size: 0.85rem !important; transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.3) !important; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600;
  font-size: 0.95rem; padding: 13px 26px; border-radius: 9px;
  text-decoration: none; transition: all 0.2s;
  font-family: 'Inter', sans-serif; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border2); color: var(--text); font-weight: 500;
  font-size: 0.95rem; padding: 13px 26px; border-radius: 9px;
  text-decoration: none; transition: all 0.2s; background: #fff;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600;
  font-size: 0.85rem; padding: 9px 18px; border-radius: 8px;
  text-decoration: none; transition: all 0.2s; background: transparent;
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---- SECTION HEADERS ---- */
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: 'Inter', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--heading); line-height: 1.15; margin-bottom: 14px;
}
.section-sub {
  color: var(--muted); font-size: 1.05rem; max-width: 540px; font-weight: 400;
}
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border2); }

/* ---- TOOL CARDS ---- */
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: all 0.25s;
}
.tool-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #bfdbfe; }

.tool-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.tool-logo {
  width: 52px; height: 52px; background: var(--bg3); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border: 1px solid var(--border); flex-shrink: 0;
}
.tool-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
.badge-top { background: #d1fae5; color: #065f46; }
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-value { background: #ede9fe; color: #5b21b6; }
.badge-hot { background: #fee2e2; color: #991b1b; }

.tool-card h3 {
  font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--heading); margin-bottom: 3px;
}
.tool-tagline { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.tool-desc { font-size: 0.875rem; color: var(--text); line-height: 1.65; margin-bottom: 18px; }

.tool-features { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; }
.tool-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.82rem; color: var(--muted);
}
.tool-feature::before { content: '✓'; color: var(--accent3); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.tool-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.tool-commission { font-size: 0.78rem; color: var(--muted); }
.tool-commission strong { color: var(--accent3); font-weight: 700; }
.tool-stars { display: flex; gap: 2px; font-size: 0.75rem; color: #f59e0b; margin-bottom: 3px; }

.tool-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent);
  border: 1.5px solid #bfdbfe; padding: 8px 16px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.tool-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- COMPARISON TABLE ---- */
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.comparison-table th {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 14px 18px; text-align: left;
  border-bottom: 2px solid var(--border); background: var(--bg3);
}
.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }
.comparison-table td {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  color: var(--text); vertical-align: middle;
}
.comparison-table tr:hover td { background: #f8faff; }
.comparison-table tr:last-child td { border-bottom: none; }
.td-tool { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
.td-icon {
  width: 32px; height: 32px; background: var(--bg3); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: 1px solid var(--border); flex-shrink: 0;
}
.check-yes { color: var(--accent3); font-weight: 700; }
.check-no { color: #d1d5db; }
.commission-pill {
  display: inline-block; background: #d1fae5; color: #065f46;
  border: 1px solid #a7f3d0; padding: 3px 10px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
}
.rating-bar { display: flex; align-items: center; gap: 8px; }
.bar-bg { width: 70px; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 3px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border2); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border); padding: 64px 0 32px;
  background: var(--heading);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 0.875rem; color: #94a3b8; margin-top: 14px; max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid #1e293b; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: #64748b; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.78rem; color: #64748b; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.affiliate-disclaimer {
  background: #1e293b; border-radius: 8px; padding: 14px 20px;
  font-size: 0.78rem; color: #64748b; margin-bottom: 40px; line-height: 1.6;
}
.affiliate-disclaimer strong { color: #94a3b8; }

/* ---- GRIDS ---- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.industries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }

/* ---- HERO INDUSTRY PAGE ---- */
.page-hero {
  padding: 120px 0 64px;
  background: linear-gradient(135deg, #f0f7ff 0%, #faf5ff 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}

/* ---- TAGS ---- */
.tag {
  display: inline-block; background: var(--bg3); color: var(--muted);
  border: 1px solid var(--border); padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
}
.tag-blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.tag-green { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.tag-purple { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }

/* ---- ANIMATIONS ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links li:not(:last-child) { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .tools-grid { grid-template-columns: 1fr; }
}
