/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --bg-nav: rgba(10, 10, 15, 0.85);
  --text: #e4e4e8;
  --text-muted: #8888a0;
  --accent: #ff6b4a;
  --accent-hover: #ff8266;
  --accent-dim: rgba(255, 107, 74, 0.12);
  --border: #1e1e2e;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.4rem; }
.logo-it { color: var(--accent); }

.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,107,74,0.08) 0%, transparent 60%);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px; border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-pills {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px; margin-bottom: 40px;
}

.pill {
  padding: 8px 18px; border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 500;
}

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  border: none; cursor: pointer;
}

.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-card); }

.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}

.section-header h2 { font-size: 1.8rem; font-weight: 700; }

.link-arrow { color: var(--accent); font-weight: 500; }
.link-arrow:hover { color: var(--accent-hover); }

h2.center { margin-bottom: 48px; }

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}

.article-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,107,74,0.2);
  transform: translateY(-2px);
}

.article-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; font-size: 0.85rem; color: var(--text-muted);
}

.article-tag {
  padding: 3px 10px; border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent); font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.25rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1.3;
  color: var(--text);
}

.article-title a { color: var(--text); }
.article-title a:hover { color: var(--accent); }

.article-excerpt {
  color: var(--text-muted); font-size: 0.95rem;
  flex: 1; margin-bottom: 16px;
}

.article-read {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(255,107,74,0.2);
  transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== CTA ===== */
.cta-section {
  background: radial-gradient(ellipse at 50% 100%, rgba(255,107,74,0.06) 0%, transparent 60%);
}

.cta-text { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem; }

/* ===== ARTICLE PAGE ===== */
.article-header {
  padding: 120px 0 48px;
  text-align: center;
}

.article-header .article-tag { margin-bottom: 20px; display: inline-block; }

.article-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.2;
  max-width: 800px; margin: 0 auto 20px;
}

.article-header .article-meta { justify-content: center; }

.article-body {
  max-width: 760px; margin: 0 auto;
  padding: 0 24px 80px;
}

.article-body h2 {
  font-size: 1.5rem; font-weight: 700;
  margin: 40px 0 16px;
}

.article-body h3 {
  font-size: 1.2rem; font-weight: 600;
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px; font-size: 1.05rem;
  color: var(--text); line-height: 1.8;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}

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

.article-body code {
  background: var(--bg-card);
  padding: 2px 8px; border-radius: 4px;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; overflow-x: auto;
  margin-bottom: 24px;
}

.article-body pre code {
  background: none; padding: 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px; margin: 24px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-muted);
}

.article-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

/* ===== BLOG LIST ===== */
.blog-header {
  padding: 120px 0 48px;
  text-align: center;
}

.blog-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.blog-header p { color: var(--text-muted); font-size: 1.1rem; }

.blog-list { padding-bottom: 80px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-left { display: flex; align-items: center; gap: 10px; font-weight: 600; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 0 60px; }
  .articles-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section-header { flex-direction: column; gap: 12px; }
}
