/* Brand AI Visibility — Clean Tech Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --bg-subtle: #f0f4f8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --primary: #2563eb;
  --primary-glow: rgba(37,99,235,0.08);
  --primary-light: #dbeafe;
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --green: #16a34a;
  --green-light: #dcfce7;
  --text: #0f172a;
  --text-dim: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* ========== Header ========== */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}

.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  height: 60px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; }

.header-nav { display: flex; gap: 2px; align-items: center; }
.header-nav a {
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.header-nav a:hover { color: var(--text); background: var(--bg-subtle); }
.header-nav a.active { color: var(--primary); background: var(--primary-glow); }

/* ========== Hero ========== */
.hero { padding: 48px 0 0; position: relative; overflow: hidden; }

.hero::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  display: flex; align-items: center; gap: 48px;
}

.hero-text { flex: 1; text-align: left; }

.hero-text h1 {
  font-size: 38px; font-weight: 800;
  line-height: 1.15; margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-text h1 .gradient {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 15px; color: var(--text-dim);
  max-width: 460px; line-height: 1.7; margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 10px; }

.hero-visual { flex: 0 0 360px; }

.hero-img {
  width: 100%; height: auto;
  display: block;
}

@media (max-width: 768px) {
  .hero-layout { flex-direction: column-reverse; gap: 24px; }
  .hero-text { text-align: center; }
  .hero-text p { margin: 0 auto 20px; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: 0 0 auto; max-width: 280px; }
  .hero-text h1 { font-size: 28px; text-align: center; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #94a3b8; color: var(--text); }

/* ========== Stats ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 36px 24px;
  margin-top: 56px;
}
.stats-bar .wrap {
  display: flex;
  justify-content: center;
  gap: 64px;
  width: 100%;
}
.stat-item { text-align: center; flex: 0 0 auto; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.5px; }

/* ========== Features Section ========== */
.features-section {
  background: var(--bg-subtle);
  padding: 48px 0;
  margin: 48px 0 0;
  position: relative;
}

.features-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-section::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid { margin: 0; }

.feature-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-item:last-child { border-bottom: none; }

.feature-item .icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.feature-item .content { flex: 1; }
.feature-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ========== Sections ========== */
.section-title { font-size: 20px; font-weight: 700; margin: 44px 0 4px; }
.section-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; }

/* ========== Article Cards ========== */
.article-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
  margin-bottom: 48px;
}
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: inherit; transition: all 0.2s; display: block;
}
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card .tag {
  display: inline-block;
  background: var(--primary-glow); color: var(--primary);
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600; margin-bottom: 8px;
}
.article-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.article-card p { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ========== Tool Page ========== */
.tool-hero { text-align: center; padding: 48px 0 28px; }
.tool-hero h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.tool-hero p { font-size: 14px; color: var(--text-dim); max-width: 460px; margin: 0 auto; }

.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  max-width: 480px; margin: 0 auto 28px;
  box-shadow: var(--shadow-sm);
}
.tool-card input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 12px; font-family: inherit;
  outline: none; transition: border-color 0.15s;
}
.tool-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.tool-card button {
  width: 100%; padding: 12px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.tool-card button:hover { opacity: 0.9; }

.results-area { display: none; margin-top: 20px; }
.results-area.active { display: block; }
.platform-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
}
.platform-result h3 { font-size: 14px; margin-bottom: 2px; }
.platform-result .status-found { color: var(--green); font-weight: 600; font-size: 12px; }
.platform-result .status-none { color: var(--text-dim); font-size: 12px; }
.platform-result p { font-size: 13px; color: var(--text-dim); }

.loading-spinner { display: none; text-align: center; padding: 20px; color: var(--text-dim); }
.loading-spinner.active { display: block; }

.score-display {
  text-align: center; padding: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px;
}
.score-number {
  font-family: var(--font-mono);
  font-size: 40px; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.score-label { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

/* ========== Blog List ========== */
.blog-header { padding: 48px 0 8px; }
.blog-header h1 { font-size: 28px; font-weight: 800; }
.blog-header p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.blog-list { margin: 24px 0 60px; }
.blog-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  margin-bottom: 12px; display: block; text-decoration: none; color: inherit;
  transition: all 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.blog-card p { font-size: 13px; color: var(--text-dim); }
.blog-card .label {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.blog-card .label.guide { background: var(--primary-glow); color: var(--primary); }
.blog-card .label.new { background: var(--green-light); color: var(--green); }

/* ========== Footer ========== */
footer {
  border-top: 1px solid var(--border); padding: 32px 0;
  margin-top: 60px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: 12px; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 11px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .stats-bar { gap: 24px; }
}
