/* ===== Blog Styles - Dark Space Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg-void: #0a0e1a;
  --bg-deep: #101828;
  --bg-surface: #1a2340;
  --bg-card: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.20);
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --blue: #60a5fa;
  --emerald: #34d399;
  --pink: #f472b6;
  --gradient-main: linear-gradient(135deg, var(--cyan), var(--indigo), var(--violet));
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --radius: 12px;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background: var(--bg-void);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Blog Header ===== */
.blog-header {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
}

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

.blog-header .logo {
  display: flex;
  align-items: center;
}

.blog-header .logo-img {
  height: 36px;
  width: auto;
}

.blog-header nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.blog-header nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.blog-header nav a:hover {
  color: var(--cyan);
}

.blog-header nav a.active {
  color: var(--cyan);
}

.blog-header nav a.active::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 3px 3px 0 0;
}

/* ===== Blog Hero - full width banner ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 60%, #1a2350 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.blog-hero .hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-stat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}

.hero-stat:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.1);
}

.hero-stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Alternating Content Sections ===== */
.blog-section {
  padding: 80px 0;
  background: var(--bg-void);
}

.blog-section:nth-child(even) {
  background: var(--bg-deep);
}

.blog-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.blog-split.reverse .blog-split-text {
  order: 2;
}

.blog-split.reverse .blog-split-visual {
  order: 1;
}

.blog-split-text .tag {
  display: inline-block;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.blog-split-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  color: var(--text-primary);
}

.blog-split-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.blog-split-text ul {
  list-style: none;
  margin: 16px 0;
}

.blog-split-text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.blog-split-text ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1.1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 8px;
  transition: var(--transition);
}

.read-more:hover {
  gap: 12px;
  color: var(--indigo);
}

.blog-split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  width: 100%;
  aspect-ratio: 1.15;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.visual-card:hover {
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.visual-card .icon {
  font-size: 4.5rem;
  position: relative;
  z-index: 1;
}

.visual-card .visual-label {
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: radial-gradient(circle at 30% 40%, currentColor, transparent 70%);
}

.vc-cloud {
  background: rgba(96, 165, 250, 0.08);
  color: var(--blue);
  border-color: rgba(96, 165, 250, 0.15);
}

.vc-security {
  background: rgba(244, 114, 182, 0.08);
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.15);
}

.vc-dev {
  background: rgba(129, 140, 248, 0.08);
  color: var(--indigo);
  border-color: rgba(129, 140, 248, 0.15);
}

.vc-consult {
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.15);
}

.vc-support {
  background: rgba(52, 211, 153, 0.08);
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.15);
}

.vc-analytics {
  background: rgba(167, 139, 250, 0.08);
  color: var(--violet);
  border-color: rgba(167, 139, 250, 0.15);
}

.vc-compliance {
  background: rgba(244, 114, 182, 0.08);
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.15);
}

/* ===== Objectives / Icon Cards Row ===== */
.blog-objectives {
  padding: 80px 0;
  background: var(--bg-void);
}

.blog-objectives .section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
  color: var(--text-primary);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.objective-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.objective-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(129, 140, 248, 0.3);
}

.objective-card .obj-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: var(--transition);
  border: 1px solid rgba(34, 211, 238, 0.15);
}

.objective-card:hover .obj-icon {
  background: var(--gradient-main);
  color: var(--text-white);
  transform: scale(1.1);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.objective-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ===== Blog CTA Banner ===== */
.blog-cta-banner {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 50%, #1a2350 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-cta-banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.blog-cta-banner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: var(--text-white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34, 211, 238, 0.3);
  filter: brightness(1.1);
}

/* ===== Article Page ===== */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.article-hero .tag {
  display: inline-block;
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.article-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
  color: var(--text-primary);
}

.article-hero .meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.blog-article {
  padding: 48px 0 100px;
  background: var(--bg-void);
}

.blog-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.blog-article h3 {
  color: var(--text-primary);
}

.blog-article p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.blog-article ul {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.blog-article ul li {
  margin-bottom: 8px;
}

.blog-article blockquote {
  border-left: 4px solid var(--cyan);
  padding: 20px 28px;
  margin: 28px 0;
  background: var(--bg-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.article-cta {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 50%, #1a2350 100%);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  margin-top: 48px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.article-cta h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.article-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.article-cta .btn-cta {
  display: inline-block;
}

/* ===== Blog Footer ===== */
.blog-footer {
  background: var(--bg-void);
  color: var(--text-muted);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

/* ===== Blog Footer Legal ===== */
.blog-footer-legal {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-void);
}

.blog-footer-legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.blog-footer-legal .legal-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.blog-footer-legal .legal-links a:hover {
  color: var(--cyan);
}

.blog-footer-legal .legal-text {
  max-width: 800px;
  margin: 0 auto;
}

.blog-footer-legal .legal-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  text-align: center;
}

.blog-footer-legal .legal-text p:last-child {
  margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .blog-hero p {
    max-width: 100%;
  }

  .blog-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-split.reverse .blog-split-text {
    order: 1;
  }

  .blog-split.reverse .blog-split-visual {
    order: 2;
  }

  .visual-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .objectives-grid {
    grid-template-columns: 1fr;
  }

  .blog-header nav {
    gap: 16px;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 70px 0 50px;
  }

  .blog-hero h1 {
    font-size: 1.8rem;
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .blog-cta-banner h2 {
    font-size: 1.6rem;
  }
}
