/* GENERATED by scripts/build_site.py — do not edit; use scenario-library-extras.css for layout */
/* AINNA NeuralOps Scenario Library — Apple-inspired premium UI */
:root {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-height: 64px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --hero-gradient: linear-gradient(135deg, #f5f5f7 0%, #e8f4fd 50%, #f5f5f7 100%);
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --bg-glass: rgba(28, 28, 30, 0.78);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #40a9ff;
  --accent-soft: rgba(41, 151, 255, 0.18);
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --hero-gradient: linear-gradient(135deg, #000 0%, #0a1628 50%, #000 100%);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Navigation */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1rem;
}

.nav-logo {
  font-weight: 600; font-size: 1.05rem; color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition);
}

.theme-toggle:hover { background: var(--accent-soft); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 1.5rem; padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 980px; font-size: 0.9375rem;
  font-weight: 500; border: none; cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: scale(1.02); }

.btn-secondary {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent); }

.btn-ghost {
  background: var(--bg-secondary); color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--accent-soft); }

.btn-demo {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}
.btn-demo:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
  transform: scale(1.02);
}

/* Animated page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(0,113,227,0.06) 0%, rgba(175,82,222,0.04) 35%, rgba(52,199,89,0.04) 70%, rgba(255,149,0,0.03) 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
  pointer-events: none;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero */
.hero {
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  background: var(--hero-gradient);
  text-align: center; position: relative; overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,113,227,0.12), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 980px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.8125rem; font-weight: 600; margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary);
  max-width: 680px; margin: 0 auto 2rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; gap: 3rem; margin-top: 3.5rem; flex-wrap: wrap;
}

.hero-stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat span { font-size: 0.875rem; color: var(--text-muted); }

.globe-placeholder {
  width: min(400px, 80vw); height: 200px; margin: 2rem auto 0;
  border-radius: var(--radius); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.875rem;
  background: var(--bg-glass);
}

/* Sections */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--bg-secondary); }

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

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary); max-width: 600px; margin: 0 auto;
  font-size: 1.0625rem;
}

.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem;
}

/* Glass cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

/* Why Detached grid */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}

.why-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

.why-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.why-card p { color: var(--text-secondary); font-size: 0.9375rem; }

/* Featured scroller */
.featured-section { overflow: hidden; }

.scroller-wrap { position: relative; }

.scroller {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 0.5rem 0 1rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.scroller-card {
  flex: 0 0 min(320px, 85vw); scroll-snap-align: start;
  cursor: pointer;
}

.scroller-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border);
  box-shadow: var(--shadow); cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--text-primary);
  transition: all var(--transition);
}
.scroller-arrow:hover { background: var(--accent); color: #fff; }
.scroller-arrow.prev { left: -12px; }
.scroller-arrow.next { right: -12px; }

/* Search & filter */
.search-bar {
  display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}

.search-input-wrap { flex: 1; min-width: 240px; position: relative; }

.search-input-wrap input {
  width: 100%; padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary);
  font-size: 1rem; transition: border-color var(--transition);
}
.search-input-wrap input:focus { outline: none; border-color: var(--accent); }
.search-input-wrap::before {
  content: "⌕"; position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
}

.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  padding: 0.5rem 1rem; border-radius: 980px; font-size: 0.8125rem;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.chip:hover, .chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Scenario grid */
.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

.scenario-card {
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition); position: relative;
  display: flex; flex-direction: column;
}

.scenario-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(0, 113, 227, 0.3);
}

.scenario-card .card-roles {
  font-size: 0.8125rem; color: var(--text-muted); margin: 0.75rem 0;
  line-height: 1.45;
}

.scenario-card .card-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem;
}

.scenario-card .card-actions .btn { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.scenario-card .card-badges {
  display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}

.badge {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 6px;
}

.badge-category { background: var(--accent-soft); color: var(--accent); }
.badge-new { background: #34c759; color: #fff; }
.badge-featured { background: #ff9500; color: #fff; }

.scenario-card h3 {
  font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35;
}

.scenario-card p { color: var(--text-secondary); font-size: 0.875rem; }

.scenario-card .card-num {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.75rem; color: var(--text-muted); font-weight: 600;
}

.no-results {
  text-align: center; padding: 3rem; color: var(--text-muted);
  grid-column: 1 / -1; display: none;
}
.no-results.visible { display: block; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 720px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); transform: scale(0.95);
  transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: scale(1); }

.modal-section { margin-bottom: 1.25rem; }
.modal-section h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin-bottom: 0.35rem;
}
.modal-section p, .modal-section li { color: var(--text-secondary); font-size: 0.9375rem; }
.modal-section ul, .modal-section ol { margin-left: 1.25rem; }

.modal-header {
  padding: 1.5rem 1.5rem 0; display: flex; justify-content: space-between; align-items: flex-start;
}

.modal-header h3 { font-size: 1.25rem; padding-right: 2rem; }

.modal-close {
  background: var(--bg-primary); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1.25rem;
  color: var(--text-secondary); flex-shrink: 0;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }

.modal-body { padding: 1.5rem; }
.modal-body p { color: var(--text-secondary); margin-bottom: 1rem; }
.modal-body .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.modal-body .tag {
  font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 6px;
  background: var(--bg-primary); color: var(--text-muted);
}

.modal-footer { padding: 0 1.5rem 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
}

.step-card { text-align: center; padding: 2rem 1.5rem; }

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 1.25rem;
}

/* Industries */
.industries-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
}

.industry-pill {
  display: block; text-align: center; padding: 1.25rem 0.75rem;
  color: var(--text-primary); text-decoration: none;
  border-radius: var(--radius-sm); background: var(--bg-glass);
  border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
}
.industry-pill:hover { border-color: var(--accent); background: var(--accent-soft); }

/* FAQ Accordion */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 0;
  background: none; border: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600; color: var(--text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}

.faq-question::after {
  content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 0 1.25rem; color: var(--text-secondary); font-size: 0.9375rem;
}

/* CTA */
.cta-section {
  text-align: center; padding: 5rem 0;
  background: var(--hero-gradient);
}

.cta-section h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem; border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 { font-size: 0.875rem; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--text-secondary); font-size: 0.875rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center; padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8125rem;
}

/* Article / scenario page */
.article-page { padding-top: calc(var(--nav-height) + 2rem); padding-bottom: 4rem; }

.breadcrumb {
  font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb span { margin: 0 0.5rem; }

.article-header { margin-bottom: 2.5rem; }
.article-header h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.875rem; }

.article-content { max-width: 760px; }
.article-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
.article-content h3 { font-size: 1.125rem; margin: 1.5rem 0 0.75rem; }
.article-content p { color: var(--text-secondary); margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-secondary); }
.article-content li { margin-bottom: 0.5rem; }

.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem;
}

.related-card {
  padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-glass); transition: all var(--transition);
}
.related-card:hover { border-color: var(--accent); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Category page */
.category-hero { padding: calc(var(--nav-height) + 3rem) 0 2rem; text-align: center; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-glass); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; transition: all var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .mobile-menu-btn { display: block; }
  .scroller-arrow { display: none; }
  .hero-stats { gap: 1.5rem; }
}
