/* =============================================
   ORBIS SYSTEMS — Neural Autonomous Business OS
   ============================================= */

:root {
  --bg: #060912;
  --bg-alt: #0b1120;
  --surface: #101828;
  --border: #1a2744;
  --fg: #e8eaf0;
  --fg-muted: #7a8499;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.12);
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(6, 9, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo-accent { color: var(--cyan); }
.nav-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.06) 0%,
    rgba(139, 92, 246, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  color: var(--fg);
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-weight: 300;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--fg);
}
.section-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 0;
}

/* ---- ARCHITECTURE ---- */
.architecture {
  padding: 8rem 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.architecture .section-desc {
  margin-bottom: 4rem;
}
.agent-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.agent-node {
  width: 160px;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
}
.agent-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  color: var(--fg);
}
.agent-role {
  font-size: 0.7rem;
  color: var(--fg-muted);
  line-height: 1.5;
  font-weight: 300;
}
.agent-icon {
  display: flex;
  justify-content: center;
}
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.25rem;
}
.agent-cycle {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  background: var(--surface);
  max-width: 600px;
  margin: 0 auto;
}
.agent-cycle .mono {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
}
.agent-cycle .brace { color: var(--fg-muted); font-family: var(--font-mono); }
.cycle-label {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cycle-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ---- AUDIT ---- */
.audit {
  padding: 8rem 3rem;
}
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.audit-text .section-desc { margin-bottom: 3rem; }
.audit-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.audit-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  min-width: 36px;
  text-align: center;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.audit-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--fg);
}
.audit-step p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}
.gap-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gap-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.gap-header .mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.gap-lines {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.gap-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.6rem 1rem;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--cyan);
}
.key { color: var(--cyan); }
.val { color: var(--violet); }
.num { color: #f59e0b; }
.bool { color: #10b981; }
.gap-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- GROWTH ---- */
.growth {
  padding: 8rem 3rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.growth .section-desc {
  margin: 1rem auto 4rem;
}
.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}
.growth-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.growth-icon {
  margin-bottom: 1.25rem;
  display: flex;
}
.growth-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.growth-card p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}
.growth-cta {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner {
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 12px;
  padding: 2.5rem;
  background: var(--cyan-dim);
}
.cta-text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ---- CLOSING ---- */
.closing {
  padding: 10rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-glow {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(0, 212, 255, 0.04) 0%,
    rgba(139, 92, 246, 0.04) 50%,
    transparent 70%);
  pointer-events: none;
}
.closing-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.closing-headline {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--fg) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 4rem;
  font-weight: 300;
}
.closing-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.metric { text-align: center; }
.metric-val {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.03em;
}
.metric-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.metric-sep {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* ---- FOOTER ---- */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-weight: 300;
}
.footer-copy .mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { display: none; }
  .agent-flow { flex-direction: column; gap: 1rem; }
  .flow-arrow { transform: rotate(90deg); }
  .audit-grid { grid-template-columns: 1fr; gap: 3rem; }
  .growth-grid { grid-template-columns: 1fr 1fr; }
  .closing-metrics { flex-direction: column; gap: 2rem; }
  .metric-sep { display: none; }
  .architecture, .audit, .growth, .closing { padding: 5rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .growth-grid { grid-template-columns: 1fr; }
  .agent-node { width: 100%; }
}