/* StigStack — Your AI Toolkit, Curated
   Design: Clean, minimalist, modern. Linear/Vercel-inspired. */

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-hover: #333333;
  --text-primary: #f5f5f5;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #ffffff;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --header-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--text-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
  background: var(--text-primary) !important;
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85 !important; }

/* ─── Hero ─── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 32px;
  background: var(--bg-secondary);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(to bottom, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  opacity: 1;
}

/* ─── Sections ─── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ─── Tool Grid ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  opacity: 1;
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.tool-card-header h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tool-card-header .tool-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tool-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── Comparison Table ─── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.comparison-table tr:hover td { background: var(--bg-secondary); }

.sticky-table-container { overflow-x: auto; }

/* ─── Article / Content ─── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px;
}

.article-header { margin-bottom: 48px; }

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-meta a {
  color: var(--accent-blue);
  font-weight: 500;
}

.article h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.article h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}

.article h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.article ul, .article ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.article li { margin-bottom: 8px; line-height: 1.7; }

.article blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article blockquote p { margin-bottom: 0; }

/* ─── Verdict Box ─── */
.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
}

.verdict-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-box ul { margin-bottom: 0; }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-links a:hover { color: var(--text-secondary); opacity: 1; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Rating Stars ─── */
.rating { display: flex; gap: 2px; }
.rating .star { color: var(--accent-orange); font-size: 14px; }
.rating .star.empty { color: var(--text-muted); }

/* ─── Tags ─── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-free { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.tag-paid { background: rgba(239,68,68,0.12); color: var(--accent-red); }
.tag-freemium { background: rgba(59,130,246,0.12); color: var(--accent-blue); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .hero { padding: 80px 24px 60px; }
  .tools-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Page: About ─── */
.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
}
