:root {
  /* Colors - Premium Dark Theme */
  --bg: #09090b;
  --surface: #17171a;
  --surface-raised: #1e1e21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --primary: #4f46e5; /* Indigo */
  --primary-glow: rgba(79, 70, 229, 0.3);
  --accent: #10b981; /* Mint */
  --accent-glow: rgba(16, 185, 129, 0.3);
  
  /* Typography */
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  
  /* Spacing */
  --container: 1000px;
  --section-padding: clamp(4rem, 10vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: min(var(--container), 90vw);
  margin-inline: auto;
}

/* Header */
header {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.7);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

nav a:hover {
  color: var(--text);
}

/* Blog Hero */
.blog-hero {
  padding: 6rem 0 4rem;
  text-align: left;
}

.blog-hero h1 {
  font-size: clamp(3rem, 8vw, 4.5rem);
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Featured Post */
.featured-post {
  padding: 4rem 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.featured-card::after {
  content: 'FEATURED';
  position: absolute;
  top: 2rem; right: -2.5rem;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.5rem 3rem;
  transform: rotate(45deg);
  letter-spacing: 0.1em;
}

.featured-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.featured-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.featured-card h2 a:hover { color: var(--primary); }

.featured-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Blog Grid */
.blog-grid {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.post-card {
  background: transparent;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.post-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
  transform: translateY(-5px);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.post-tag {
  background: var(--surface-raised);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-card h3 a:hover { color: var(--primary); }

.post-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.read-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.read-link:hover { gap: 0.75rem; color: var(--primary); }

/* Guide CTA Banner */
.banner-cta {
  padding: 6rem 0;
}

.banner-content {
  background: linear-gradient(135deg, var(--primary), #1e1b4b);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  color: white;
}

.banner-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.banner-content p { font-size: 1.25rem; margin-bottom: 2.5rem; opacity: 0.9; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-white { background: white; color: black; }
.btn-white:hover { background: #f4f4f5; transform: translateY(-2px); }

/* Footer */
footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: #050507;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

/* Responsive */
@media (max-width: 992px) {
  .featured-card { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* Full Footer (consistent with homepage) */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-info p { color: var(--text-dim); margin-top: 1rem; font-size: 0.9rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 1rem; color: var(--text); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
