:root {
  --primary: #ff3131;
  --primary-600: #e02828;
  --primary-700: #b91c1c;
  --primary-800: #7f1d1d;
  --primary-soft: #ff6b6b;
  --primary-glow: rgba(255, 49, 49, 0.25);
  --bg-dark: #0b1220;
  --bg-darker: #050a14;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #111827;
  --text-light: #6b7280;
  --text-white: #f9fafb;
  --glass: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(255, 255, 255, 0.1);
  --success: #22c55e;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 100px 0;
}
.text-center {
  text-align: center;
}

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: var(--primary-800);
  border-bottom: 1px solid var(--border-glass);
}

.logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap-reverse;
  align-items: center;
  column-gap: 1rem;
}

.logo-tm {
  color: white;
  font-size: 1.6rem;
  text-shadow: 2px 2px 10px rgb(23, 23, 23);
}

.logo img {
  height: 50px;
  transition: var(--transition);
}
.logo img:hover {
  transform: scale(1.1);
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

nav ul li {
  display: flex;
  align-items: center;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

nav ul li a:not(.get-started-pill)::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary-soft);
  left: 0;
  bottom: -4px;
  transition: var(--transition);
}

nav ul li a:not(.get-started-pill):hover::after {
  width: 100%;
}

#nav-list .get-started-pill {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: Montserrat;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
}

#nav-list .get-started-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.nav-login {
  opacity: 0.8;
}
.nav-login:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 2px 0;
  transition: var(--transition);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: left;
}

.hero-headline {
  font-weight: 800;
  color: var(--text-white);
  font-size: 4.5rem;
  text-shadow: 2px 2px 10px rgb(52, 51, 51);
}

.hero-headline strong {
  color: var(--primary);
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 20, 0.9),
    rgba(127, 29, 29, 0.35),
    rgba(5, 10, 20, 0.95)
  );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin-top: 60px;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 40px;
}

.subscription-bar {
  background: white;
  padding: 6px;
  border-radius: 50px;
  display: flex;
  max-width: 450px;
  margin: 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.subscription-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 25px;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
}

.subscription-bar button {
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.subscription-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.hero-content .form-subtext {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--text-white);
}

#platform {
  background: #f8fafc;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--bg-dark);
}

.lead-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--primary-800);
}

.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.img-responsive {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bg-dark {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-white);
}

.bg-dark .section-title {
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.stat-card {
  padding: 40px 20px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-number {
  font-size: 3rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 10px;
}

.video-wrapper {
  max-width: 800px;
  margin: 40px auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.testimonial-quote {
  margin-top: 30px;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.msg-pill {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  align-items: center;
  padding: 12px 40px 12px 25px;
  border-radius: 50px;
  background: var(--success);
  color: white;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  animation: slideDownFade 0.4s ease forwards;
}

.close-btn {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.8;
}

.video-attribution {
  font-family: Montserrat;
}

.footer {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-template-rows: auto;
  grid-template-areas:
    "footer-logo footer-about footer-product footer-cta"
  ;
  column-gap: 1rem;
  margin: auto;
}

.subfoot-head {
  font-family: Montserrat;
  color: var(--text-white);
  font-weight: 450;
  text-align: left;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .footer {
    text-align: center;
    grid-template-columns: auto;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-areas: 
      "footer-logo"
      "footer-about"
      "footer-product"
      "footer-cta"
    ;
  }
  .subfoot-head {
    text-align: center;
  }
  .footer-logo .logo {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav ul {
    position: absolute;
    top: 80px;
    right: 5%;
    background: var(--bg-dark);
    flex-direction: column;
    width: 220px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    margin: 15px 0;
  }
  .subscription-bar {
    flex-direction: column;
    border-radius: 20px;
    padding: 15px;
  }
  .subscription-bar input {
    border-radius: 10px;
    text-align: center;
  }
  .subscription-bar button {
    border-radius: 10px;
  }
  .logo-tm {
    display: none;
  }
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  opacity: 0;
  transform: translate(-50%, -10px) !important;
  transition: 0.4s;
}


/* --- BLOG LIST & GRID STYLES --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.blog-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 15px 0;
  color: #0b1220; /* var(--bg-dark) */
}

.tag-badge {
  background: rgba(255, 49, 49, 0.25); /* var(--primary-glow) */
  color: #7f1d1d; /* var(--primary-800) */
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  align-self: flex-start;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 20px;
}

.meta-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.meta-details {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.meta-name { font-weight: 600; color: #0b1220; }
.meta-date { color: #6b7280; }

.read-more-btn {
  color: #ff3131; /* var(--primary) */
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover { color: #b91c1c; }

/* --- ARTICLE DETAIL PAGE --- */
.article-header {
  text-align: left;
  margin-bottom: 30px;
}

.article-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 50px;
  margin-top: 40px;
}

.toc-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 20px;
}

.toc-box h4 {
  margin-bottom: 15px;
  font-weight: 700;
}

.toc-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-box ul li { margin-bottom: 10px; }
.toc-box ul li a {
  text-decoration: none;
  color: #6b7280;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.toc-box ul li a:hover { color: #ff3131; }

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #111827;
}

.article-content img, .article-content iframe {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* Editor.js parsed block spacing */
.article-content p, .article-content h1, .article-content h2, .article-content h3, .article-content ul {
  margin-bottom: 20px;
}

/* Author Bio Footer */
.author-bio-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 16px;
  margin-top: 50px;
  border: 1px solid rgba(0,0,0,0.05);
}
.author-bio-box .author-pic {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
}
.author-info h4 { margin: 0 0 5px 0; font-weight: 700; }
.author-role { margin: 0; color: #6b7280; font-size: 0.9rem; }

/* Share Buttons */
.social-share { margin-top: 30px; }
.social-share h4 { font-size: 1rem; font-weight: 700; margin-bottom: 15px; }
.share-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  padding: 8px 12px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 700; color: white; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000000; }
.share-btn.in { background: #0A66C2; }
.share-btn.copy { background: #6b7280; }

.btn-edit, .btn-delete {
  padding: 8px 16px; border-radius: 50px; color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-block; margin-bottom: 20px;
}
.btn-edit { background: #22c55e; margin-right: 10px;}
.btn-edit:hover { background: #16a34a; color: white; text-decoration: none; }
.btn-delete { background: #ff3131; }
.btn-delete:hover { background: #e02828; color: white; text-decoration: none; }

/* Responsive Detail */
@media (max-width: 992px) {
  .article-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc-box { position: static; margin-bottom: 30px; }
}

/* --- CUSTOM DELETE MODAL --- */
.custom-modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(11, 18, 32, 0.7); /* var(--bg-dark) with opacity */
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.custom-modal-box {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-box {
  transform: translateY(0);
}

.modal-btn-cancel {
  background: #e5e7eb;
  color: #374151;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-btn-cancel:hover { background: #d1d5db; }

.modal-btn-delete {
  background: #ff3131; /* var(--primary) */
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-btn-delete:hover { background: #e02828; }

.get-started-pill {
  background: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.tag-badge {
  background: rgba(34, 211, 238, 0.15);
  color: #0891b2;
}

.toc-box ul li a:hover {
  color: var(--accent);
}

.article-content a {
  color: var(--accent);
}
.article-content a:hover {
  text-decoration: underline;
}

.modal-btn-delete {
  background: var(--primary);
}

#nav-list .get-started-pill {
  background: #ffffff;
  color: #ff3131;
  border: 2px solid rgba(255,255,255,0.2);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.25s ease;
}

#nav-list .get-started-pill:hover {
  background: #ffe5e5;
  transform: translateY(-1px);
}

.logo-tm {
  color: rgb(255, 255, 255);
  font-size: 1.6rem;
  text-shadow: 2px 2px 10px rgb(23, 23, 23);
}

.logo-wrap {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  filter: drop-shadow(0 2px 6px rgba(255,255,255,0.25));
}
/* 
.logo-wrap img {
  height: 32px;
} */

/* === NAVBAR CLEAN === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;

  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap {
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 8px;
}

.logo img {
  height: 36px;
}

.logo-tm {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}



/* === NAVBAR CONSOLIDATED & FIXED === */
.navbar {
  position: fixed; /* Fixed so it stays at the top while scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 2000;
  background: rgb(215, 0, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo Area */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.logo-wrap:hover {
  background: rgba(255, 255, 255, 0.1);
}

.logo img {
  height: 36px;
  display: block;
}

.logo-tm {
  color: #ffffff;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Navigation List */
.navbar ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.25s ease;
  position: relative;
}

.navbar ul li a:hover {
  color: #ffffff;
}

/* Subtle Underline Animation */
.navbar ul li a:not(.cta-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* CTA Button */
.cta-btn {
  background: #ffffff;
  color: var(--primary) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
  background: #ffe5e5;
  transform: translateY(-2px);
}

/* Forcefully hide the underline pseudo-element for the CTA button */
.navbar ul li a.cta-btn::after {
  display: none !important;
  content: none !important;
}

/* Ensure no default text-decoration ever shows up */
.navbar ul li a.cta-btn {
  text-decoration: none !important;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .logo-tm {
    display: none; /* Keep it clean on small screens */
  }

  .navbar ul {
    position: absolute;
    top: 72px;
    right: -100%; /* Hidden by default */
    flex-direction: column;
    background: #0b1220;
    width: 250px;
    height: calc(100vh - 72px);
    padding: 40px 20px;
    transition: 0.4s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    align-items: flex-start;
  }

  .navbar ul.active {
    right: 0; /* Slide in when active */
  }

  .navbar ul li {
    width: 100%;
  }

  .navbar ul li a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
    padding: 10px 0;
  }
}