/* Shared Stylesheet for ASQS Website */

:root {
  --bg-color: #0a0a0a;
  --text-color: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --border-color: #222222;
  --card-bg: #111111;
  --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-stack);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* Navigation Bar */
header.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

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

.logo-link {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-github {
  background-color: var(--accent-color);
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background-color 0.2s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-github:hover {
  background-color: var(--accent-hover);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background-color: #111111;
  border-color: #444444;
}

.trust-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Section Common */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 3.5rem;
}

/* How It Works Pipeline */
.pipeline-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.pipeline-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1;
  min-width: 170px;
  position: relative;
}

.pipeline-card .step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: inline-block;
  text-transform: uppercase;
}

.pipeline-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pipeline-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pipeline-arrow {
  color: #444444;
  font-size: 1.5rem;
  align-self: center;
  user-select: none;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: #333333;
}

.feature-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Pricing Page */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.pricing-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent-color);
  box-shadow: 0 4px 30px rgba(59, 130, 246, 0.1);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.pricing-card .price-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.pricing-card .pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-card .pricing-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card .pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.btn-pricing-cta {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: block;
}

.pricing-card.popular .btn-pricing-cta {
  background-color: var(--accent-color);
  color: #ffffff;
}

.pricing-card.popular .btn-pricing-cta:hover {
  background-color: var(--accent-hover);
}

.pricing-card:not(.popular) .btn-pricing-cta {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.pricing-card:not(.popular) .btn-pricing-cta:hover {
  background-color: #111111;
  border-color: #444444;
}

.pricing-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Docs and Blog cards */
.docs-grid, .blog-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.article-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  border-color: #333333;
}

.article-card .tag-pill {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.article-card:hover h3 {
  color: var(--accent-color);
}

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

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666666;
}

.read-more-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.muted-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Blog Detail Page */
.blog-detail-container {
  max-width: 800px;
  width: 90%;
  margin: 3rem auto 6rem;
}

.back-to-blog {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}

.back-to-blog:hover {
  color: var(--accent-hover);
}

.blog-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.blog-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  font-size: 1.05rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  font-size: 1.05rem;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.blog-content blockquote {
  border-left: 4px solid var(--accent-color);
  background-color: #111111;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
  color: #9ca3af;
}

.blog-content pre {
  background-color: #111111;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  background-color: #111111;
  color: var(--text-color);
}

.blog-content p code {
  background-color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.blog-content a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-content a:hover {
  border-color: var(--accent-color);
}

.blog-content .img {
  text-align: center;
  margin: 2.5rem 0;
}

.blog-content .img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.blog-content hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* Mermaid Wrapper */
.blog-content .mermaid {
  background-color: #111111;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Footer */
footer.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: #050505;
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-one-liner {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 0.85rem;
  color: #555555;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive Breakpoint (<=768px) */
@media (max-width: 768px) {
  /* Navigation mobile menu */
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: right 0.3s ease, visibility 0.3s ease;
    border-top: 1px solid var(--border-color);
    visibility: hidden;
  }
  
  .nav-links.nav-active {
    right: 0;
    visibility: visible;
  }
  
  .hamburger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .hamburger.toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Hero responsive */
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .hero-ctas a {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }

  /* Pipeline responsive */
  .pipeline-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .pipeline-arrow {
    display: none; /* Hide arrows on mobile */
  }

  /* Features Grid responsive */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Pricing responsive */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* FAQ responsive */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer responsive */
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Documentation Layout Styles */
.docs-main-wrapper {
  margin-top: 4rem;
  margin-bottom: 6rem;
}

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

.docs-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.docs-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.docs-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  border-right: 1px solid var(--border-color);
  padding-right: 1.5rem;
}

.docs-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.docs-sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.docs-sidebar-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.docs-sidebar-links a:hover,
.docs-sidebar-links a.active {
  color: #ffffff;
}

.docs-body {
  max-width: 800px;
}

.docs-body section {
  margin-bottom: 4rem;
  scroll-margin-top: 100px;
}

.docs-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.docs-body h2:first-of-type {
  margin-top: 0;
}

.docs-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.docs-body p {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.docs-body ul, .docs-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.docs-body li {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.docs-body pre {
  background-color: #111111;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.docs-body p code, .docs-body li code {
  background-color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.docs-body th, .docs-body td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.docs-body th {
  background-color: #111111;
  color: #ffffff;
  font-weight: 600;
}

.docs-body td {
  color: #d1d5db;
  font-size: 0.95rem;
}

.docs-alert {
  background-color: rgba(59, 130, 246, 0.05);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.docs-alert-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.docs-alert p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Viewport Blue Frame Pulse Animation */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid var(--accent-color);
  pointer-events: none;
  z-index: 99999;
  animation: blueFramePulse 3s infinite ease-in-out;
}

@keyframes blueFramePulse {
  0%, 100% {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.15);
  }
  50% {
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: inset 0 0 24px rgba(59, 130, 246, 0.35);
  }
}

/* Documentation Mobile Responsiveness (<=768px) */
@media (max-width: 768px) {
  .docs-main-wrapper {
    margin-top: 2rem;
    margin-bottom: 4rem;
  }

  .docs-title {
    font-size: 2.25rem;
  }

  .docs-subtitle {
    font-size: 1.05rem;
  }

  .docs-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
  }
  
  .docs-sidebar {
    position: sticky;
    top: 70px;
    z-index: 50;
    background-color: var(--bg-color);
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .docs-sidebar-title {
    display: none;
  }
  
  .docs-sidebar-links {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0 1rem;
    scrollbar-width: none; /* Firefox */
    max-width: 100%;
    width: 100%;
  }

  .docs-sidebar-links::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .docs-sidebar-links li {
    margin-bottom: 0;
  }

  .docs-sidebar-links a {
    white-space: nowrap;
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    display: inline-block;
    border-bottom: 2px solid transparent;
  }

  .docs-sidebar-links a.active {
    border-bottom-color: var(--accent-color);
    color: #ffffff;
  }

  .docs-body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 0 1rem;
  }

  .docs-body section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px; /* adjusted for sticky horizontal menu (70px header + ~60px menu) */
  }

  .docs-body pre {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
  }
  
  .docs-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-spacing: 0;
  }
}


