/* =============================================================================
   ACUTUS CLOUD — B2B SaaS & AI Workflow Operations Platform (Flagship Edition)
   Architecture: Midnight Linear Slate + Electric Indigo + Cyan
                 Space Grotesk + Inter + JetBrains Mono
                 Zero-Stock-Photo Interactive Dashboard Hero · 6-Module Bento Architecture
                 Seat Slider + ROI Hours Saved · Case Studies · Security Matrix · SDK Tabs · FAQ
   Crafted by Acutus Digital Dynamics (https://acutusdigitaldynamics.com)
   ============================================================================= */

:root {
  --bg: #080a10;
  --panel: #101421;
  --panel-2: #161c2e;
  --indigo: #6366f1;
  --indigo-bright: #818cf8;
  --cyan: #22d3ee;
  --text: #eef2ff;
  --muted: #8f9bb3;
  --line: rgba(148, 163, 184, 0.16);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.62; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; color: inherit; }

.wrap { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* Floating SaaS Bar */
.saas-header { position: sticky; top: 0; z-index: 950; background: rgba(8, 10, 16, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.saas-header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 1rem; flex-wrap: wrap; }
.saas-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.saas-brand i { color: var(--cyan); }
.saas-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.86rem; color: var(--muted); }
.saas-nav a:hover { color: #ffffff; }
.status-chip { font-family: var(--font-mono); font-size: 0.72rem; color: #86efac; display: inline-flex; align-items: center; gap: 0.4rem; }
.status-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.74rem 1.45rem; min-height: 44px; border-radius: 10px; font-size: 0.84rem; font-weight: 600; border: 1px solid transparent; transition: all 0.2s ease; white-space: nowrap; }
.btn-indigo { background: var(--indigo); color: #ffffff; }
.btn-indigo:hover { background: var(--indigo-bright); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }

/* Centered Product-Led Hero + Interactive Browser UI */
.saas-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem); text-align: center; background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22), transparent 55%); border-bottom: 1px solid var(--line); }
.saas-eyebrow { font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.85rem; display: block; }
.saas-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.6vw, 4.5rem); line-height: 1.04; max-width: 880px; margin: 0 auto; letter-spacing: -0.03em; }
.saas-hero > .wrap > p { max-width: 620px; margin: 1.1rem auto 1.85rem; color: var(--muted); font-size: 1.02rem; }
.hero-ctas { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.75rem; }

.app-frame { max-width: 1040px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-align: left; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.app-topbar { background: var(--panel-2); border-bottom: 1px solid var(--line); padding: 0.75rem 1.15rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.win-dots { display: flex; gap: 0.4rem; }
.win-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.app-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.app-tab { padding: 0.45rem 0.95rem; min-height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.app-tab.active { background: rgba(99, 102, 241, 0.22); border-color: rgba(99, 102, 241, 0.5); color: #ffffff; }

.app-screen { padding: clamp(1.25rem, 3vw, 2rem); display: none; }
.app-screen.active { display: block; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 1.25rem; }
.kpi-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.kpi-card span { display: block; font-size: 0.72rem; color: var(--muted); }
.kpi-card strong { font-family: var(--font-display); font-size: 1.45rem; color: #ffffff; }
.kpi-card small { font-family: var(--font-mono); font-size: 0.7rem; color: #4ade80; }

.bar-chart { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.65rem; align-items: end; height: 150px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.bar-col { background: linear-gradient(180deg, var(--cyan), var(--indigo)); border-radius: 6px 6px 0 0; min-height: 24px; }
.log-pre { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.15rem; font-family: var(--font-mono); font-size: 0.78rem; color: #cbd5e1; overflow-x: auto; line-height: 1.75; }

/* Trusted Logo Strip */
.logo-band { border-bottom: 1px solid var(--line); padding: 1.75rem 0; background: rgba(16, 20, 33, 0.5); }
.logo-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Sections */
.sec { padding: clamp(3.5rem, 6.5vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.sec-panel { background: rgba(16, 20, 33, 0.55); }
.sec-title { font-family: var(--font-display); font-size: clamp(1.95rem, 3.8vw, 2.95rem); letter-spacing: -0.02em; line-height: 1.1; }
.sec-sub { color: var(--muted); max-width: 580px; margin-top: 0.5rem; }

/* 6-Module Bento Architecture Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.bento-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.65rem; }
.bento-card.wide { grid-column: span 2; }
.bento-icon { font-family: var(--font-mono); font-size: 0.74rem; color: var(--cyan); margin-bottom: 0.65rem; display: block; }
.bento-card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.45rem; }
.bento-card p { font-size: 0.88rem; color: var(--muted); }

/* Seat Pricing & ROI Calculator */
.pricing-shell { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.5rem); margin-top: 2rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; min-width: 0; overflow: hidden; }
.pricing-shell > * { min-width: 0; }
.curr-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.curr-btn { padding: 0.5rem 1rem; min-height: 40px; border: none; background: transparent; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.curr-btn.active { background: var(--indigo); color: #ffffff; }
input[type="range"] { width: 100%; accent-color: var(--cyan); margin: 0.75rem 0 1.25rem; }
.price-readout { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; }
.price-big { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--cyan); line-height: 1.1; }
.roi-line { font-family: var(--font-mono); font-size: 0.8rem; color: #86efac; border-top: 1px solid var(--line); padding-top: 0.85rem; margin-top: 0.85rem; }

/* Architecture Case Studies & Security Strip */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; margin-top: 2rem; }
.case-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; display: flex; flex-direction: column; }
.case-metric { font-family: var(--font-display); font-size: 2.1rem; color: var(--cyan); line-height: 1; margin-bottom: 0.5rem; }
.case-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.45rem; }
.case-card p { font-size: 0.87rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.case-stack { font-family: var(--font-mono); font-size: 0.72rem; color: #a5b4fc; border-top: 1px solid var(--line); padding-top: 0.75rem; }

.sec-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.sec-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; }
.sec-tile strong { font-family: var(--font-mono); font-size: 0.9rem; color: #ffffff; display: block; margin-bottom: 0.3rem; }
.sec-tile span { font-size: 0.82rem; color: var(--muted); }

/* Code Switcher */
.code-box { margin-top: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.code-tabs { display: flex; gap: 0.35rem; background: var(--panel-2); padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); }
.code-btn { padding: 0.45rem 0.9rem; min-height: 36px; border-radius: 6px; border: none; background: transparent; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.code-btn.active { background: var(--bg); color: var(--cyan); }
.code-pane { display: none; padding: 1.35rem; font-family: var(--font-mono); font-size: 0.8rem; color: #cbd5e1; overflow-x: auto; line-height: 1.7; }
.code-pane.active { display: block; }

/* FAQ Accordion */
.faq-list { margin-top: 1.75rem; border-top: 1px solid var(--line); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: transparent; border: none; padding: 1.15rem 0; min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; font-weight: 600; font-size: 0.95rem; color: #ffffff; }
.faq-q i { color: var(--cyan); transition: transform 0.2s ease; }
.faq-a { display: none; padding: 0 0 1.2rem; font-size: 0.88rem; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q i { transform: rotate(45deg); }

/* Defensive Demo Form */
.demo-form-box { max-width: 780px; margin: 2rem auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.35rem, 4vw, 2.5rem); width: 100%; min-width: 0; overflow: hidden; }
.form-group { margin-bottom: 1rem; min-width: 0; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.35rem; }
.form-control { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: #ffffff; padding: 0.6rem 0.9rem; font-family: inherit; font-size: 0.92rem; }
.form-control:focus { outline: none; border-color: var(--cyan); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; min-width: 0; }
.form-row-2 > div { min-width: 0; }

.saas-footer { padding: 3rem 0 2rem; font-size: 0.83rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.footer-grid h4 { font-family: var(--font-display); color: #ffffff; margin-bottom: 0.65rem; }
.footer-grid li { margin-bottom: 0.4rem; }
.saas-footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font-size: 0.78rem; }
.saas-footer a { color: var(--cyan); text-decoration: underline; }

.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; background: var(--indigo); color: #ffffff; border-radius: 10px; padding: 1rem 1.35rem; opacity: 0; transform: translateY(14px); pointer-events: none; transition: all 0.25s ease; max-width: 360px; }
.toast.show { opacity: 1; transform: translateY(0); pointer-events: all; }

@media (max-width: 960px) {
  .saas-nav, .status-chip { display: none; }
  .kpi-strip, .sec-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-grid, .pricing-shell, .case-grid, .footer-grid { grid-template-columns: 1fr; }
  .bento-card.wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .form-row-2, .kpi-strip, .sec-strip { grid-template-columns: 1fr; }
  .toast { left: 1rem; right: 1rem; max-width: none; }
}
