/* --- CARD DETAILS LINK STYLING (per user instructions) --- */
.card-details a, .card-details a:hover {
  text-decoration: none !important;
}
.card-details a {
  display: block !important;
  margin-top: 0.5rem !important;
}
:root {
  --color-bg: #ffffff;
  --color-text: #111827;
  --color-muted: #64748b;
  --color-dark-grey: #334155;
  --color-accent: #4f46e5;
  --border-color: #e2e8f0;
  --radius-md: 10px;
}

body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--color-text); line-height: 1.6; }

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color); padding: 0.8rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--color-text); margin-right: 1.5rem; }
.brand-mark { height: 32px; width: 32px; margin-right: 0.75rem; }
.brand-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-separator { margin: 0 0.75rem; color: var(--color-border); font-weight: 300; font-size: 1.25rem; }
.brand-tagline { font-size: 0.85rem; color: var(--color-muted); font-weight: 400; white-space: nowrap; }

/* NAV */
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--color-muted); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; white-space: nowrap; }
.nav-link:hover { color: #4338ca; }
.nav-link--active { color: var(--color-text); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav-social-link { display: flex; align-items: center; justify-content: center; color: #000000 !important; padding: 0.25rem; transition: color 0.2s, transform 0.2s; }
.nav-social-link:hover { color: #4338ca !important; transform: scale(1.1); }
.nav-social-link svg { display: block; width: 24px; height: 24px; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--color-text); padding: 0.5rem; z-index: 102; }

/* --- HERO & CARDS --- */
.hero-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); overflow: hidden; text-align: left; max-width: 650px; margin: 0 auto; }
.hero-card-header { background: #f8fafc; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 0.75rem; }
.badge { background: #e0e7ff; color: #4338ca; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 6px; }
.hero-card-title { font-size: 0.85rem; font-weight: 600; }
.hero-card pre { display: block; width: 100%; background-color: #1e293b; color: #f8fafc; padding: 1.5rem; margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.5; overflow-x: auto; box-sizing: border-box; }
.hero-card pre code { background: transparent; color: inherit; padding: 0; }
.hero-card-footnote { padding: 0.75rem 1.25rem; background: #fff; border-top: 1px solid var(--border-color); color: var(--color-muted); font-size: 0.8rem; margin: 0; }
.card-icon { display: block; width: 40px; height: 40px; color: var(--color-accent); margin-bottom: 1rem; stroke-width: 1.5; }
.card-image { display: block; width: 100%; height: auto; border-radius: var(--radius-md); margin-bottom: 1.5rem; border: 1px solid var(--border-color); }

/* --- GENERAL LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.section { padding: 5rem 0; }
.section--alt { background-color: #f8fafc; }
.grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.section-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-lede { font-size: 1.15rem; color: var(--color-muted); margin-bottom: 2rem; }
.card { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; }
.card--outline { border: 1px solid var(--border-color); }
.card h3 { margin-top: 0; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--color-muted); margin-bottom: 1rem; }
.list { padding-left: 1.2rem; margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.list li + li { margin-top: 0.4rem; }
.divider { margin: 4rem 0; border: none; border-top: 1px solid var(--border-color); }
.hero { text-align: center; padding: 6rem 0 4rem; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-lede { font-size: 1.25rem; color: var(--color-muted); max-width: 650px; margin: 0 auto 2.5rem; }
.accent { color: var(--color-accent); }
.btn { display: inline-flex; padding: 0.6rem 1.2rem; border-radius: 99px; font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: background-color 0.2s; }
.btn--primary { background: var(--color-accent); color: white; }
.btn--primary:hover { background: #4338ca; }
.btn--ghost { color: var(--color-text); border: 1px solid var(--border-color); }
.cta-graphic { margin: 0 0 2.5rem 0 !important; max-width: 600px !important; width: 100%; display: block; }

/* --- FOOTER --- */
.site-footer { margin-top: 6rem; border-top: 1px solid var(--border-color); padding: 4rem 0; background: #f8fafc; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo { height: 100px; width: auto; margin-bottom: 1.5rem; }
.footer-brand-text { display: flex; align-items: center; gap: 0.5rem; color: var(--color-text); margin-bottom: 0.5rem; }
.footer-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.1rem; }
.footer-separator { font-weight: 400; color: var(--color-muted); }
.footer-tagline { font-family: 'Inter', sans-serif; font-weight: 400; color: var(--color-muted); }
.footer-copy { color: var(--color-dark-grey); margin-top: 0.5rem; font-size: 0.85rem; }
.footer-links { display: flex; gap: 4rem; }
.footer-column a { display: block; text-decoration: none; color: var(--color-muted); margin-bottom: 0.6rem; font-size: 0.9rem; }

/* Ensure all anchor elements used as buttons are not underlined */
a[role="button"],
a[class*="button"],
a[class*="btn"],
a.button, a.button--primary, a[class*="button"]:link, a[class*="button"]:visited, a[class*="btn"]:link, a[class*="btn"]:visited {
  text-decoration: none !important;
}

/* --- MOBILE MEDIA QUERIES (PLACED AT BOTTOM FOR PRECEDENCE) --- */
@media (max-width: 900px) {
  .brand-separator, .brand-tagline { display: none; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 0.75rem 1rem; gap: 1rem; }
  
  /* Mobile Nav: Scrolling Row */
  .nav {
    order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.25rem;
    gap: 1.25rem; border-top: 1px solid var(--border-color); padding-top: 0.75rem; margin-top: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  
  /* Hide active link in top menu */
  .nav-link--active { display: none; }

  /* HIDE FOOTER LINKS ON MOBILE */
  .footer-links { display: none; }
}

/* --- RESTORED BUTTON LAYOUT --- */
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allows wrapping on mobile */
  gap: 1rem;       /* Adds space between buttons */
  margin-top: 2rem;
}

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
  background-color: #1e293b; /* Dark Slate */
  color: #f8fafc;           /* White text */
  font-size: 0.85rem;
  padding: 0.6rem 0;
  text-align: center;
  position: relative;
  z-index: 200; /* Ensure it sits on top */
}
.announcement-bar strong {
  color: var(--color-accent); /* Purple text for "Under Construction" */
  font-weight: 700;
}


/* --- SCHEMATIC FEATURES --- */
.card--schematic {
  background-color: #F8FAFC; /* Light Grey */
  border: 1px solid #E2E8F0;
  color: #0F172A; /* Dark Text */
  text-align: left; /* Default for body text */
  padding: 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card--schematic:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.15);
  border-color: #4338ca;
}
.card--schematic::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #4f46e5, transparent);
  opacity: 0.5;
}
.card--schematic h2, .card--schematic h3 {
  text-align: center;
  color: #0F172A;
  font-family: 'JetBrains Mono', monospace; /* Technical font */
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.card--schematic p {
  color: #64748b; /* Slate 500 */
  font-size: 0.9rem;
  min-height: 6rem;
}
.card--schematic .list {
  color: #334155; /* Slate 700 */
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 1rem;
}
.card--schematic .card-icon {
  display: block;
  margin: 0 auto 1.5rem auto; /* Center horizontally */
  width: 100px;
  height: 100px;
  color: #4f46e5; /* Stack Blue */
}

/* --- ZIG-ZAG FEATURE ROWS --- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}
.feature-row:last-child {
  margin-bottom: 0;
}
.feature-row--reversed {
  flex-direction: row-reverse;
}
.feature-row-content {
  flex: 1;
}
.feature-row-image {
  flex: 1;
}
.feature-row-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

/* --- FEATURE FRAMES (Slideshow & Static) --- */
.feature-frame {
  width: 100%;
  height: 400px;
  border-radius: 12px; /* rounded-xl */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Ensure images inside the frame fill it completely */
.feature-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Slideshow specific styles */
.feature-frame .slideshow-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.feature-frame .slideshow-slide.active {
  opacity: 1;
  z-index: 1;
}

.feature-row h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.feature-row p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.feature-row ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-row li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark-grey);
}
.feature-row li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}
.feature-row strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 768px) {
  .feature-row, .feature-row--reversed {
    flex-direction: column;
    gap: 2rem;
    text-align: left;
  }
}

/* --- TAILWIND POLYFILLS FOR FOOTER --- */
.font-bold { font-weight: 700; }
.text-slate-900 { color: #0f172a; }
.mb-4 { margin-bottom: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-slate-600 { color: #475569; }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.mt-12 { margin-top: 3rem; }
.pt-8 { padding-top: 2rem; }
.block { display: block; }

/* --- MORE TAILWIND POLYFILLS --- */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.mb-24 { margin-bottom: 6rem; }
.space-y-24 > * + * { margin-top: 6rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.items-center { align-items: center; }
.gap-10 { gap: 2.5rem; }
.w-full { width: 100%; }
.relative { position: relative; }
.h-\[300px\] { height: 300px; }
.h-\[250px\] { height: 250px; }
.rounded-xl { border-radius: 0.75rem; }
.overflow-hidden { overflow: hidden; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.bg-white { background-color: #ffffff; }
.bg-\[\#E6E9F2\] { background-color: #E6E9F2; }
.isolate { isolation: isolate; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-\[\#0F172A\] { background-color: #0F172A; }
.transform-gpu { transform: translateZ(0); }
.border { border-width: 1px; }
.border-slate-200 { border-color: #e2e8f0; }
.w-\[calc\(100\%\+2px\)\] { width: calc(100% + 2px); }
.h-\[calc\(100\%\+2px\)\] { height: calc(100% + 2px); }
.-m-px { margin: -1px; }
.max-w-none { max-width: none; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-1000 { transition-duration: 1000ms; }
.scale-\[1\.02\] { transform: scale(1.02); }
.min-h-screen { min-height: 100vh; }
.text-slate-900 { color: #0f172a; }
.max-w-8xl { max-width: 90rem; }
.border-t { border-top-width: 1px; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.flex-1 { flex: 1 1 0%; }
.min-w-0 { min-width: 0; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:w-1\/2 { width: 50%; }
  .md\:h-\[450px\] { height: 450px; }
  .md\:h-\[350px\] { height: 350px; }
  .md\:w-64 { width: 16rem; }
  .md\:border-t-0 { border-top-width: 0; }
  .md\:border-r { border-right-width: 1px; }
  .md\:h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem); }
  .md\:sticky { position: sticky; }
  .md\:top-16 { top: 4rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:pl-6 { padding-left: 1.5rem; }
  .md\:pr-4 { padding-right: 1rem; }
  .md\:overflow-y-auto { overflow-y: auto; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* --- DOCS PAGINATION --- */
.docs-pager {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.docs-pager-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  width: calc(50% - 0.5rem);
}

.docs-pager-link--next {
  flex-direction: row-reverse;
}

.docs-pager-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: none;
  background-color: hsl(222deg 100% 98.04%);
  transition: all 0.2s;
}

.docs-pager-link:hover .docs-pager-icon-box {
  background-color: #4f46e5;
}

.docs-pager-icon {
  width: 1rem;
  height: 1rem;
  color: #4f46e5;
  transition: color 0.2s;
}

.docs-pager-link:hover .docs-pager-icon {
  color: #ffffff;
}

.docs-pager-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.docs-pager-link--next .docs-pager-content {
  align-items: flex-end;
  text-align: right;
}

.docs-pager-label {
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.docs-pager-title {
  font-size: 0.75rem;
  font-weight: 400;
  color: #4f46e5;
  transition: color 0.2s;
  line-height: 1.2;
}

.docs-pager-link:hover .docs-pager-title {
  color: #4338ca;
  text-decoration: underline;
}

.docs-pager-spacer {
  display: none;
}

@media (min-width: 640px) {
  .docs-pager {
    gap: 1.5rem;
  }
  
  .docs-pager-link {
    width: calc(50% - 0.75rem);
    gap: 1rem;
  }
  
  .docs-pager-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
  }
  
  .docs-pager-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .docs-pager-content {
    gap: 0.25rem;
  }
  
  .docs-pager-label {
    font-size: 0.875rem;
  }
  
  .docs-pager-title {
    font-size: 0.875rem;
  }
  
  .docs-pager-spacer {
    display: block;
    width: calc(50% - 0.75rem);
  }
}


.use-cases-container {
  /* 1. Restore the Container Width (Fixes full-width issue) */
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  
  /* 2. Top Spacing (Matches Features page) */
  padding-top: 80px; 
  
  /* 3. Mobile Spacing */
  padding-left: 20px;
  padding-right: 20px;
  
  /* 4. Box Sizing */
  box-sizing: border-box;
}

/* --- FOOTER COPYRIGHT --- */
.footer-copyright a {
  text-decoration: none;
  color: inherit;
}

.footer-copyright a:hover {
  text-decoration: underline;
}

/* --- FOOTER LISTS --- */
.footer-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.nav-search-trigger {
  background: none;
  border: none;
  padding: 0;
  margin-right: 1rem;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
}

.nav-search-trigger:hover {
  opacity: 0.8;
}
