/* === CRITICAL FIX: Logo Size & Position === */
.landing-nav .brand {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  font-weight: normal !important;
  display: inline-flex !important;
  align-items: center !important;
}

.landing-nav .brand a {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.landing-nav .brand img,
#brand-logo,
.landing-nav img[src*="logo"] {
  height: 28px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

.landing-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 24px !important;
  gap: 20px !important;
}
.landing-container .landing-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 4%;
  min-height: 48px;
  position: relative;
  z-index: 100;
}

.landing-container .landing-nav .brand a img,
.landing-nav img#brand-logo,
.landing-nav img[src*="logo"] {
  height: 24px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain;
  display: block;
  filter: none;
}

/* Reset h2.brand default styles that cause spacing issues */
.landing-nav .brand {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
  font-weight: normal !important;
  display: flex;
  align-items: center;
}

.landing-nav .brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

/* Prevent nav items from overlapping logo */
.landing-nav > * {
  flex-shrink: 0;
}

/* --- HERO SECTION (Blog Header) --- */
.landing-container .hero {
  min-height: 40vh !important;
  padding-top: 1rem;
}

.landing-container .hero-content {
  padding: 1.5rem 4%;
  max-width: 900px;
  margin: 0 auto;
}

.landing-container .hero h1,
.landing-container .hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3;
}

.landing-container .hero-subtitle {
  margin-bottom: 1rem !important;
  max-width: 600px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- SECTIONS --- */
.premium-section {
  padding: 2.5rem 4%;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 0.95rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* --- BLOG CARDS GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card,
.premium-card {
  padding: 1.25rem;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card:hover,
.premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: rgba(0,212,255,0.3);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.feature-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.feature-card h3 a:hover {
  color: #00d4ff;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.85;
  margin: 0;
  flex-grow: 1;
}

.premium-link {
  color: #00d4ff;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.premium-link:hover {
  gap: 8px;
}

/* --- BLOG ARTICLE CONTENT --- */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #e0e0e0;
  line-height: 1.8;
}

.blog-content h2 {
  color: #00d4ff;
  margin: 40px 0 20px 0;
  font-size: 1.8rem;
  line-height: 1.3;
}

.blog-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #b0b0b0;
}

.blog-content ul {
  margin: 0 0 20px 20px;
  padding: 0;
}

.blog-content li {
  margin-bottom: 10px;
  color: #b0b0b0;
  font-size: 1.05rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.callout-box {
  background: rgba(0, 212, 255, 0.05);
  border-left: 4px solid #00d4ff;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
}

/* --- CTA & FOOTER --- */
.contact .section-header {
  margin-bottom: 1.5rem;
}

.submit-btn.premium-submit {
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, opacity 0.2s;
}

.submit-btn.premium-submit:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.footer {
  padding: 2rem 4%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

.footer-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  margin-bottom: 12px;
  opacity: 0.9;
}

/* --- RELATED ARTICLES --- */
.related-articles {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.related-articles h3 {
  color: #00d4ff;
  margin-bottom: 12px;
}

.related-articles p {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.related-articles a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.2s;
}

.related-articles a:hover {
  color: #4da3ff;
  text-decoration: underline;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-articles li a {
  font-size: 0.95rem;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
  .landing-container .landing-nav {
    padding: 0.5rem 3%;
  }
  
  .landing-nav img {
    height: 22px !important;
    max-width: 100px !important;
  }
  
  .landing-container .hero {
    min-height: auto !important;
    padding: 2rem 0;
  }
  
  .landing-container .hero-content {
    padding: 1rem 3%;
    text-align: center;
  }
  
  .premium-section {
    padding: 2rem 3%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-content {
    padding: 30px 15px;
  }
  
  .blog-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-content p,
  .blog-content li {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .landing-nav img {
    height: 20px !important;
    max-width: 90px !important;
  }
  
  .hero h1,
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .feature-card,
  .premium-card {
    padding: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1rem;
  }
}

/* --- DEMO CARD BADGE --- */
.demo-card {
  background: linear-gradient(135deg, #111, #1a1a1a);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.demo-card .premium-link {
  color: #4da3ff;
  font-weight: 500;
}

.demo-card::before {
  content: "LIVE";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #4da3ff;
  color: #000;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}