:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --gray-light: #111111;
  --gray-border: #333333;
  --gray-text: #aaaaaa;
  --black-hover: #cccccc;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid #333333;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  z-index: 100;
}

header a {
  color: #ffffff;
}

header a:hover {
  color: #cccccc;
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 70px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  border: 1px solid #333333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border-radius: 8px;
  min-width: 150px;
  padding: 10px 0;
}

.nav-item:hover .dropdown {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: #333333;
  color: #ffffff;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-content {
  text-align: center;
  flex: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: var(--gray-text);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--text-color);
  color: var(--bg-color);
  padding: 15px 40px;
  border: 2px solid var(--text-color);
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--black-hover);
  color: var(--bg-color);
  border-color: var(--black-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--gray-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-color: var(--text-color);
}

/* Hero Visual Premium */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 400px;
  perspective: 1000px;
}

.glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.4;
  animation: pulse-glow 8s infinite alternate;
}

.glow-1 {
  background: #ffffff;
  top: 10%;
  left: 10%;
}

.glow-2 {
  background: #555555;
  bottom: 5%;
  right: 15%;
  animation-delay: -4s;
}

.glass-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 24px;
  width: 240px;
  position: absolute;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 1;
  color: #fff;
  transition: border-color 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.card-1 {
  transform: translate(var(--tx), var(--ty)) translateZ(var(--tz));
  animation: float-premium 7s ease-in-out infinite;
}

.card-2 {
  transform: translate(var(--tx), var(--ty)) translateZ(var(--tz));
  z-index: 2;
  animation: float-premium 6s ease-in-out infinite 1.5s;
}

.card-3 {
  transform: translate(var(--tx), var(--ty)) translateZ(var(--tz));
  z-index: 3;
  width: 220px;
  animation: float-premium 8s ease-in-out infinite 3s;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.glass-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.glass-card p {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  background: #fff;
  color: #000;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-sm:hover {
  background: #ccc;
  color: #000;
}

/* Page Content (General) */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.content-section {
  padding: 40px 0 80px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.item-card {
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.item-card h2 {
  margin-bottom: 10px;
}

.item-card p {
  color: var(--gray-text);
  margin-bottom: 20px;
  flex-grow: 1;
}

.item-card .price {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
}

.faq h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #333333;
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.faq-item p {
  color: #cccccc;
}

/* Text pages (About, Terms, etc) */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content h2 {
  margin: 30px 0 15px;
}

.text-content p {
  margin-bottom: 15px;
  color: var(--gray-text);
}

.text-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--gray-text);
}

/* Footer */
footer {
  border-top: 1px solid var(--gray-border);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--gray-text);
}

.footer-bottom {
  text-align: center;
  color: var(--gray-text);
  font-size: 14px;
  border-top: 1px solid var(--gray-light);
  padding-top: 20px;
}

/* Animations */
@keyframes float-premium {
  0% { transform: translate(var(--tx), var(--ty)) translateZ(var(--tz)) translateY(0px); }
  50% { transform: translate(var(--tx), var(--ty)) translateZ(var(--tz)) translateY(-15px); }
  100% { transform: translate(var(--tx), var(--ty)) translateZ(var(--tz)) translateY(0px); }
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.2; }
  100% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

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

.card-1 { --tx: -30px; --ty: -60px; --tz: 0px; }
.card-2 { --tx: 30px; --ty: -10px; --tz: 40px; }
.card-3 { --tx: 0px; --ty: 80px; --tz: 80px; }

/* Responsive */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 120px 0;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero h1 {
    font-size: 64px;
  }
  
  .hero-visual {
    min-height: 450px;
  }

  .card-1 { --tx: -90px; --ty: -60px; --tz: 0px; }
  .card-2 { --tx: 60px; --ty: -10px; --tz: 40px; }
  .card-3 { --tx: -20px; --ty: 100px; --tz: 80px; }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .nav-links {
    gap: 40px;
  }
  
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Article Layout (Documentation Style) */
.article-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1300px;
  padding-top: 40px;
}

@media (min-width: 992px) {
  .article-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.sidebar {
  width: 100%;
  border-right: 1px solid var(--gray-border);
  padding-right: 20px;
}

@media (min-width: 992px) {
  .sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.sidebar h3 {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-weight: 700;
}

.sidebar ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar ul li a {
  font-size: 14px;
  color: var(--gray-text);
  transition: color 0.2s;
}

.sidebar ul li a:hover {
  color: var(--text-color);
}

.sidebar ul li.active a {
  color: #ffd700; /* Yellow highlight for active item */
  font-weight: 600;
}

.badge {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-outline {
  border: 1px solid #2ecc71;
  color: #2ecc71;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: transparent;
}

/* Article Content Components */
.article-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 80px;
}

.article-content h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 24px;
  margin-top: 50px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray-border);
}

.article-content h3 {
  font-size: 18px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content p {
  color: var(--gray-text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.article-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 25px;
  color: var(--gray-text);
}

.article-content ul li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.article-content a {
  color: #ccc;
  text-decoration: underline;
}

.article-content a:hover {
  color: #fff;
}

/* Tip Box */
.tip-box {
  background: rgba(46, 204, 113, 0.05);
  border-left: 4px solid #2ecc71;
  border-radius: 4px 8px 8px 4px;
  padding: 20px;
  margin: 30px 0;
}

.tip-box .tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2ecc71;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 14px;
}

.tip-box ul {
  margin-bottom: 0;
  color: #a0a0a0;
}

.tip-box ul li {
  margin-bottom: 12px;
}
.tip-box ul li:last-child {
  margin-bottom: 0;
}

/* Promo Block */
.promo-block {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 15px 20px;
  color: #888;
  font-size: 14px;
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Pricing Table */
.pricing-table-container {
  overflow-x: auto;
  margin-bottom: 40px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 14px;
}

.pricing-table th, .pricing-table td {
  padding: 16px;
  text-align: center;
  border: 1px solid var(--gray-border);
}

.pricing-table th {
  background: #111;
  color: #ccc;
  font-weight: 500;
}

.pricing-table td {
  color: #aaa;
}

.pricing-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-table .price-col {
  color: #fff;
}

.pricing-table .btn-sm {
  background: transparent;
  border: 1px solid #555;
  color: #ccc;
  text-decoration: none;
}

.pricing-table .btn-sm:hover {
  background: #333;
  color: #fff;
  border-color: #777;
}

/* Disclaimer Box */
.disclaimer-box {
  background: #151515;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
  margin: 40px 0;
}

.disclaimer-box .desc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  margin-bottom: 15px;
  font-size: 14px;
}

.disclaimer-box p {
  margin-bottom: 0;
  font-size: 13px;
}

/* Meta & Nav */
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-border);
  padding-top: 20px;
  margin-top: 50px;
  font-size: 13px;
  color: #666;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.nav-card {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none !important;
}

.nav-card:hover {
  border-color: #555;
  background: #111;
}

.nav-card .nav-label {
  font-size: 12px;
  color: #666;
}

.nav-card .nav-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.nav-card.next {
  text-align: right;
}



/* Mobile Responsive Enhancements */
@media (max-width: 767px) {
  /* Hide the desktop dropdowns on mobile to prevent overlap issues */
  .dropdown {
    display: none !important;
  }

  /* Header & Nav */
  header {
    padding: 10px 0;
  }
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 0;
    align-items: flex-start;
  }
  
  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    display: block;
  }
  
  .nav-links {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 0 5px 15px 5px;
    margin: 0;
    justify-content: flex-start;
  }
  
  /* Hide scrollbar */
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-item {
    flex-shrink: 0;
    height: auto;
  }
  
  .nav-item a {
    display: block;
    white-space: nowrap !important;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #fff;
  }
  
  /* Remove the dropdown arrow from text on mobile since dropdowns are hidden */
  .nav-item a {
    text-decoration: none;
  }

  /* Hero Section */
  .hero {
    padding: 30px 0 40px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  
  .promo-banner {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
  .promo-banner h3 {
    flex-wrap: wrap;
    line-height: 1.4;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .seo-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  /* Fix Pricing Tables on Mobile */
  .pricing-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px; /* Bleed to edge */
    padding: 0 20px;
  }
  .pricing-table {
    min-width: 500px; /* Ensure table doesn't squish */
  }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}
.back-to-top svg {
    width: 24px;
    height: 24px;
}
