/* ============================================================
   AI SaaS Directory — main.css
   A modern, conversion-focused stylesheet.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
	--brand: #6d28d9;
	--brand-dark: #5b21b6;
	--brand-light: #ede9fe;
	--brand-soft: rgba(109, 40, 217, 0.10);
	--brand-softer: rgba(109, 40, 217, 0.06);

	--ink: #0f172a;
	--ink-2: #1e293b;
	--muted: #64748b;
	--muted-2: #94a3b8;
	--line: #e2e8f0;
	--line-2: #eef2f7;
	--bg: #ffffff;
	--bg-soft: #f8fafc;
	--bg-soft-2: #f1f5f9;

	--green: #16a34a;
	--green-soft: #dcfce7;
	--amber: #d97706;
	--amber-soft: #fef3c7;
	--blue: #2563eb;
	--blue-soft: #dbeafe;
	--pink: #db2777;
	--pink-soft: #fce7f3;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;

	--shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.05);
	--shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06);
	--shadow-brand: 0 12px 30px rgba(109, 40, 217, 0.28);

	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-display: 'Sora', 'Inter', -apple-system, sans-serif;

	--container: 1200px;
	--header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--brand); color: #fff;
	padding: 10px 16px; z-index: 9999;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.site { overflow: hidden; }
.section { padding: 72px 0; }
.section-featured { background: var(--bg-soft); }
.section-how { background: var(--bg-soft); }

/* ---------- Buttons ---------- */
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--brand);
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	border: none;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
	box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
	background: var(--brand-dark);
	color: #fff !important;
	transform: translateY(-1px);
}
.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-header-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.site-header-left { display: flex; align-items: center; gap: 14px; }
.site-branding { display: flex; align-items: center; }
.site-logo-text, .footer-logo-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 19px;
	color: var(--ink) !important;
	letter-spacing: -0.02em;
}
.site-logo-text:hover, .footer-logo-text:hover { color: var(--brand) !important; }
.logo-mark { color: var(--brand); display: inline-flex; }

/* Primary menu */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0; padding: 0;
}
.primary-menu li a {
	display: block;
	padding: 8px 14px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-2);
	border-radius: var(--radius-sm);
}
.primary-menu li a:hover { color: var(--brand); background: var(--brand-soft); }

.site-header-right { display: flex; align-items: center; gap: 10px; }
.header-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--muted);
	transition: all .15s ease;
}
.header-search-toggle:hover { color: var(--brand); border-color: var(--brand); }
.header-search-form {
	display: flex;
	align-items: center;
}
.header-search-field {
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 14px;
	width: 220px;
	outline: none;
	transition: border-color .15s ease;
}
.header-search-field:focus { border-color: var(--brand); }
.header-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--brand);
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	padding: 9px 18px;
	border-radius: var(--radius-sm);
	transition: background .15s ease, transform .15s ease;
}
.header-submit-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 38px; height: 38px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: 0;
}
.menu-toggle-bar {
	width: 18px; height: 2px;
	background: var(--ink);
	margin: 0 auto;
	border-radius: 2px;
	transition: all .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
	display: none;
	position: fixed;
	top: var(--header-h); left: 0; right: 0;
	background: #fff;
	border-bottom: 1px solid var(--line);
	padding: 16px 24px 24px;
	z-index: 99;
	box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-menu-list li a {
	display: block;
	padding: 12px 4px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ink);
	border-bottom: 1px solid var(--line-2);
}
.mobile-submit-btn {
	display: block;
	text-align: center;
	background: var(--brand);
	color: #fff !important;
	font-weight: 600;
	padding: 12px;
	border-radius: var(--radius-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
	position: relative;
	padding: 88px 0 72px;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(109,40,217,0.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(109,40,217,0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.5;
}
.hero-blob-1 {
	width: 420px; height: 420px;
	background: #c4b5fd;
	top: -120px; left: -80px;
}
.hero-blob-2 {
	width: 380px; height: 380px;
	background: #a5b4fc;
	top: -60px; right: -60px;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-soft);
	color: var(--brand);
	font-weight: 600;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 22px;
	border: 1px solid rgba(109,40,217,0.12);
}
.hero-eyebrow-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 0 0 4px rgba(109,40,217,0.18);
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(109,40,217,0.18); }
	50% { box-shadow: 0 0 0 7px rgba(109,40,217,0.06); }
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(36px, 5.5vw, 60px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 18px;
	background: linear-gradient(180deg, var(--ink) 0%, #334155 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero-subtitle {
	font-size: clamp(16px, 2vw, 19px);
	color: var(--muted);
	max-width: 620px;
	margin: 0 auto 36px;
	line-height: 1.6;
}

/* Hero search */
.hero-search {
	display: flex;
	align-items: center;
	max-width: 680px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 8px 8px 8px 22px;
	box-shadow: var(--shadow-md);
	transition: border-color .15s ease, box-shadow .15s ease;
	position: relative;
}
.hero-search:focus-within {
	border-color: var(--brand);
	box-shadow: var(--shadow-md), 0 0 0 4px var(--brand-soft);
}
.hero-search-icon { color: var(--muted); flex-shrink: 0; }
.hero-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	padding: 12px 14px;
	font-family: inherit;
	color: var(--ink);
}
.hero-search-input::placeholder { color: var(--muted-2); }
.hero-search-submit {
	background: var(--brand);
	color: #fff;
	border: none;
	font-weight: 600;
	font-size: 15px;
	padding: 12px 26px;
	border-radius: 999px;
	transition: background .15s ease;
}
.hero-search-submit:hover { background: var(--brand-dark); }

.hero-popular {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
	font-size: 14px;
}
.hero-popular-label { color: var(--muted); margin-right: 4px; }
.hero-popular-tag {
	padding: 6px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	transition: all .15s ease;
}
.hero-popular-tag:hover {
	border-color: var(--brand);
	color: var(--brand);
	background: var(--brand-soft);
}

.hero-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 52px;
	padding-top: 36px;
	border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat-num {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--line); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}
.section-title {
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}
.section-subtitle { font-size: 16px; color: var(--muted); margin: 0; max-width: 560px; }
.section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 14.5px;
	color: var(--brand);
	white-space: nowrap;
	flex-shrink: 0;
	padding: 8px 0;
}
.section-link:hover { gap: 10px; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.category-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px 20px;
	transition: all .18s ease;
	overflow: hidden;
}
.category-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--brand-soft) 0%, transparent 60%);
	opacity: 0;
	transition: opacity .18s ease;
}
.category-card:hover {
	border-color: var(--brand);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	color: var(--ink);
}
.category-card:hover::before { opacity: 1; }
.category-icon {
	width: 44px; height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-soft);
	color: var(--brand);
	border-radius: 12px;
	font-size: 22px;
	position: relative;
	z-index: 1;
}
.category-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15.5px;
	color: var(--ink);
	position: relative;
	z-index: 1;
}
.category-count {
	font-size: 13px;
	color: var(--muted);
	position: relative;
	z-index: 1;
}
.category-arrow {
	position: absolute;
	top: 22px; right: 20px;
	color: var(--muted-2);
	font-size: 18px;
	opacity: 0;
	transform: translateX(-6px);
	transition: all .18s ease;
	z-index: 1;
}
.category-card:hover .category-arrow { opacity: 1; transform: translateX(0); color: var(--brand); }

/* ============================================================
   TOOLS GRID & CARDS
   ============================================================ */
.tools-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.tools-grid-latest { grid-template-columns: repeat(3, 1fr); }

.tool-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all .18s ease;
	position: relative;
}
.tool-card:hover {
	border-color: var(--brand);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.tool-card-link { display: block; color: inherit; padding: 22px; }
.tool-card-link:hover { color: inherit; }

.tool-card-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}
.tool-logo {
	width: 52px; height: 52px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bg-soft-2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tool-logo img { width: 100%; height: 100%; object-fit: cover; }
.tool-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%; height: 100%;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 22px;
}
.tool-headline { flex: 1; min-width: 0; }
.tool-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16.5px;
	margin: 0 0 3px;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.tool-cat {
	display: inline-block;
	font-size: 12.5px;
	color: var(--muted);
	font-weight: 500;
}
.tool-featured-flag {
	color: var(--amber);
	font-size: 18px;
	line-height: 1;
}
.tool-desc {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tool-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--line-2);
}
.tool-meta-left { display: flex; gap: 6px; flex-wrap: wrap; }

.pricing-tag {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	text-transform: capitalize;
}
.pricing-tag-free { background: var(--green-soft); color: var(--green); }
.pricing-tag-freemium { background: var(--blue-soft); color: var(--blue); }
.pricing-tag-paid, .pricing-tag-premium { background: var(--pink-soft); color: var(--pink); }

.tool-rating { display: flex; align-items: center; gap: 5px; }
.star-rating { display: inline-flex; font-size: 13px; line-height: 1; }
.star { color: var(--amber); }
.star-empty { color: var(--line); }
.tool-rating-num { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.how-step {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	position: relative;
	overflow: hidden;
}
.how-step-num {
	font-family: var(--font-display);
	font-size: 44px;
	font-weight: 800;
	color: var(--brand-soft);
	color: rgba(109,40,217,0.22);
	line-height: 1;
	display: block;
	margin-bottom: 14px;
}
.how-step-title { font-size: 19px; margin: 0 0 8px; }
.how-step-text { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ============================================================
   SUBMIT CTA
   ============================================================ */
.section-submit-cta { padding-top: 24px; }
.submit-cta-card {
	position: relative;
	background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
	border-radius: var(--radius-xl);
	padding: 64px 48px;
	overflow: hidden;
	color: #fff;
}
.submit-cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(50px);
	opacity: 0.55;
}
.cta-blob-1 { width: 320px; height: 320px; background: #a78bfa; top: -100px; right: 10%; }
.cta-blob-2 { width: 260px; height: 260px; background: #f0abfc; bottom: -120px; left: 15%; opacity: 0.4; }

.submit-cta-content { position: relative; z-index: 1; max-width: 720px; }
.submit-cta-eyebrow {
	display: inline-block;
	background: rgba(255,255,255,0.15);
	color: #fff;
	font-weight: 600;
	font-size: 12.5px;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
	border: 1px solid rgba(255,255,255,0.2);
}
.submit-cta-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	color: #fff;
}
.submit-cta-subtitle {
	font-size: 17px;
	color: rgba(255,255,255,0.85);
	margin: 0 0 30px;
	line-height: 1.6;
}
.submit-cta-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.submit-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--brand) !important;
	font-weight: 700;
	font-size: 15.5px;
	padding: 14px 28px;
	border-radius: 999px;
	transition: all .15s ease;
	box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.submit-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.24); }
.submit-cta-link { color: #fff !important; font-weight: 600; font-size: 14.5px; opacity: 0.9; }
.submit-cta-link:hover { opacity: 1; }

.submit-cta-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0; padding: 0;
}
.submit-cta-perks li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	color: rgba(255,255,255,0.9);
}
.submit-cta-perks li::before {
	content: "";
	position: absolute;
	left: 0; top: 4px;
	width: 16px; height: 16px;
	background: #fff;
	border-radius: 50%;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 0; }
.footer-cta-banner {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
	padding: 56px 0;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-cta-inner { max-width: 560px; margin: 0 auto; }
.footer-cta-title {
	color: #fff;
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 22px;
}
.footer-newsletter {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 0 auto;
}
.newsletter-input {
	flex: 1;
	padding: 13px 18px;
	border: 1px solid rgba(255,255,255,0.18);
	background: rgba(255,255,255,0.06);
	border-radius: var(--radius-sm);
	color: #fff;
	font-size: 14.5px;
	outline: none;
	transition: border-color .15s ease;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: var(--brand); }
.newsletter-submit {
	background: var(--brand);
	color: #fff;
	border: none;
	font-weight: 600;
	font-size: 14.5px;
	padding: 13px 24px;
	border-radius: var(--radius-sm);
	transition: background .15s ease;
}
.newsletter-submit:hover { background: var(--brand-dark); }
.newsletter-note { font-size: 12.5px; color: rgba(255,255,255,0.5); margin: 12px 0 0; }

.footer-main { padding: 64px 0 40px; }
.footer-columns {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
}
.footer-logo-text { color: #fff !important; }
.footer-logo-text .logo-mark { color: #fff; }
.footer-about {
	color: #94a3b8;
	font-size: 14px;
	line-height: 1.65;
	margin: 16px 0 20px;
	max-width: 320px;
}
.footer-social { display: flex; gap: 10px; }
.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 10px;
	color: #cbd5e1;
	transition: all .15s ease;
}
.social-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-widget-title { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 11px; }
.footer-links a { color: #94a3b8; font-size: 14.5px; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	padding: 24px 0;
}
.footer-copyright {
	text-align: center;
	font-size: 13.5px;
	color: #64748b;
	margin: 0;
}
.footer-credit { color: #475569; }

/* ============================================================
   ARCHIVE / SEARCH PAGES
   ============================================================ */
.archive-header {
	background: var(--bg-soft);
	padding: 48px 0;
	border-bottom: 1px solid var(--line);
}
.archive-title { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.archive-title span { color: var(--brand); }
.archive-description { color: var(--muted); font-size: 15px; margin: 0; }
.archive-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding: 48px 0;
}
.archive-content { min-width: 0; }
.archive-content .tools-grid { grid-template-columns: repeat(2, 1fr); }
.archive-sidebar {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	align-self: start;
}

/* Sidebar widgets */
.archive-sidebar .widget,
.widget_search {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 20px;
}
.widget-title { font-size: 16px; margin: 0 0 14px; }
.search-form { display: flex; gap: 8px; padding: 0; border: none; background: none; }
.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 14px;
	outline: none;
}
.search-field:focus { border-color: var(--brand); }
.search-submit {
	background: var(--brand);
	color: #fff;
	border: none;
	font-weight: 600;
	font-size: 14px;
	padding: 0 16px;
	border-radius: var(--radius-sm);
}
.widget-cat-list { list-style: none; margin: 0; padding: 0; }
.widget-cat-list li { margin: 0 0 8px; }
.widget-cat-list li a { color: var(--ink-2); font-size: 14.5px; display: flex; justify-content: space-between; }
.widget-cat-list li a:hover { color: var(--brand); }
.cat-count { color: var(--muted-2); font-size: 13px; }
.widget-cta p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

/* Pagination */
.pagination, .navigation {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
	transition: all .15s ease;
}
.page-numbers:hover, .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* ============================================================
   SINGLE TOOL
   ============================================================ */
.single-tool-header {
	background: var(--bg-soft);
	padding: 40px 0;
	border-bottom: 1px solid var(--line);
}
.single-tool-top {
	display: flex;
	align-items: center;
	gap: 22px;
}
.single-tool-logo {
	width: 80px; height: 80px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bg-soft-2);
	border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.single-tool-logo img { width: 100%; height: 100%; object-fit: cover; }
.single-tool-title-wrap { flex: 1; min-width: 0; }
.entry-categories { margin-bottom: 6px; }
.entry-category {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brand);
	background: var(--brand-soft);
	padding: 3px 10px;
	border-radius: 999px;
	margin-right: 6px;
}
.single-tool-title { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.single-tool-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.single-tool-cta { flex-shrink: 0; }

.single-tool-body {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 48px;
	padding: 48px 0;
}
.single-tool-content { font-size: 16px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.single-tool-content h2 { font-size: 26px; margin: 36px 0 14px; }
.single-tool-content h3 { font-size: 20px; margin: 28px 0 12px; }
.single-tool-content p { margin: 0 0 18px; }
.single-tool-content ul, .single-tool-content ol { margin: 0 0 18px; padding-left: 22px; }
.single-tool-content li { margin: 0 0 8px; }

.single-tool-sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.widget-tool-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tool-info-list { margin: 0; }
.tool-info-list dt { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 14px 0 4px; }
.tool-info-list dt:first-child { margin-top: 0; }
.tool-info-list dd { margin: 0; font-size: 14.5px; color: var(--ink); font-weight: 500; }

/* ============================================================
   POST CARD (blog)
   ============================================================ */
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: all .18s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card-link { display: block; color: inherit; }
.post-card-link:hover { color: inherit; }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-soft-2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 20px; }
.post-card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.post-card-title { font-size: 17px; margin: 0 0 8px; }
.post-card-excerpt { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-header { background: var(--bg-soft); padding: 48px 0; border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(26px, 3.6vw, 38px); margin: 0; letter-spacing: -0.02em; }
.page-content { padding: 48px 0; max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--ink-2); }
.page-content h2 { font-size: 26px; margin: 36px 0 14px; }
.page-content h3 { font-size: 20px; margin: 28px 0 12px; }

/* ============================================================
   NO RESULTS / 404
   ============================================================ */
.no-results {
	text-align: center;
	padding: 60px 24px;
	max-width: 520px;
	margin: 0 auto;
}
.no-results-title { font-size: 24px; margin: 0 0 10px; }
.no-results-text { color: var(--muted); margin: 0 0 24px; }
.no-results .search-form { justify-content: center; margin-bottom: 20px; }

.error404-main { padding: 80px 0; }
.error-404 { text-align: center; max-width: 560px; margin: 0 auto; }
.error-404-code {
	font-family: var(--font-display);
	font-size: clamp(80px, 14vw, 140px);
	font-weight: 900;
	line-height: 1;
	color: var(--brand-soft);
	background: linear-gradient(135deg, var(--brand), #a78bfa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	display: block;
	margin-bottom: 8px;
	letter-spacing: -0.04em;
}
.error-404-title { font-size: 28px; margin: 0 0 12px; }
.error-404-text { color: var(--muted); margin: 0 0 28px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto 24px; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { max-width: 760px; margin: 48px auto 0; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title { font-size: 22px; margin: 0 0 24px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 32px; margin: 24px 0 0; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.comment-author { font-weight: 600; color: var(--ink); }
.comment-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 14.5px;
	outline: none;
	transition: border-color .15s ease;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); }
.comment-form .comment-form-comment textarea { min-height: 120px; }
.comment-form .form-submit { margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.tools-grid { grid-template-columns: repeat(3, 1fr); }
	.tools-grid-latest { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.menu-toggle { display: flex; }
	.main-navigation { display: none; }
	.site-header-right .header-search-toggle,
	.site-header-right .header-search-form { display: none; }
	.hero-stats { gap: 18px; }
	.section { padding: 56px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.category-grid { grid-template-columns: repeat(3, 1fr); }
	.tools-grid, .tools-grid-latest { grid-template-columns: repeat(2, 1fr); }
	.how-grid { grid-template-columns: 1fr; }
	.archive-layout { grid-template-columns: 1fr; }
	.archive-sidebar { position: static; }
	.single-tool-body { grid-template-columns: 1fr; }
	.single-tool-sidebar { position: static; }
	.footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-col-brand { grid-column: 1 / -1; }
	.submit-cta-card { padding: 44px 28px; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.site-header-inner { padding: 0 16px; }
	.hero { padding: 56px 0 48px; }
	.hero-search { padding: 6px 6px 6px 16px; border-radius: var(--radius-lg); }
	.hero-search-input { padding: 10px 8px; font-size: 15px; }
	.hero-search-submit { padding: 10px 18px; font-size: 14px; }
	.hero-stats { flex-wrap: wrap; gap: 20px 24px; }
	.hero-stat-divider { display: none; }
	.section { padding: 44px 0; }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.tools-grid, .tools-grid-latest { grid-template-columns: 1fr; }
	.footer-columns { grid-template-columns: 1fr; }
	.footer-newsletter { flex-direction: column; }
	.submit-cta-actions { flex-direction: column; align-items: flex-start; }
	.single-tool-top { flex-direction: column; align-items: flex-start; text-align: left; }
	.single-tool-cta { width: 100%; }
	.single-tool-cta .btn-primary { width: 100%; }
}
