/* UnifyOps Master Stylesheet 
  Theme: Enterprise Engineering / Professional Dark Mode
*/

:root {
  /* Colors */
  --bg-dark: #020617;
  --bg-card: #0f172a;
  --bg-grey: #111827;
  --primary: #6366f1; /* Electric Indigo */
  --primary-glow: rgba(99, 102, 241, 0.3);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  
  /* Layout */
  --container-width: 1100px;
  --section-padding: 100px 20px;
}

/* Base Resets */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-top: 0; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
code { font-family: 'JetBrains Mono', monospace; color: var(--primary); }

/* Utility Classes */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 800px; }
.section { padding: var(--section-padding); }
.grey-bg { background-color: rgba(15, 23, 42, 0.5); }
.text-center { text-align: center; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* Header & Navigation */
.header { 
  border-bottom: 1px solid var(--border); 
  padding: 1.5rem 0; 
  position: sticky; 
  top: 0; 
  background: rgba(2, 6, 23, 0.85); 
  backdrop-filter: blur(12px); 
  z-index: 1000; 
}
.nav { display: flex; justify-content: space-between; align-items: center; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.brand a { font-weight: 900; font-size: 1.4rem; letter-spacing: -1px; }
.menu { display: flex; gap: 2rem; align-items: center; font-size: 0.9rem; font-weight: 500; }
.menu a:hover { color: var(--primary); }
.nav-cta { 
  background: var(--primary); 
  padding: 10px 20px; 
  border-radius: 6px; 
  font-weight: 700; 
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Hero Components */
.hero, .hero-subpage { padding: 140px 20px; text-align: center; background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12) 0%, transparent 60%); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 24px; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subpage { padding: 100px 20px 60px; }
.hero-subpage h1 { font-size: 3rem; }
.lead { font-size: 1.35rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; font-weight: 400; }

/* Cards & Buttons */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px; transition: transform 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.5); }
.btn-primary { 
  background: var(--primary); 
  color: white; 
  padding: 16px 36px; 
  border-radius: 8px; 
  font-weight: 700; 
  display: inline-block; 
  box-shadow: 0 10px 20px -5px var(--primary-glow); 
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px var(--primary-glow); }

/* Principles & Lists */
.principle-item { display: flex; gap: 50px; margin-bottom: 80px; }
.principle-num { font-size: 3.5rem; font-weight: 900; color: var(--primary); opacity: 0.2; font-family: 'JetBrains Mono'; line-height: 1; }
.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 1.5rem; padding-left: 35px; position: relative; color: var(--text-muted); }
.check-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.check-list li strong { color: var(--text-main); }

/* Architecture Diagram */
.diagram-container { 
  margin-top: 40px; 
  padding: 30px; 
  background: #000; 
  border-radius: 20px; 
  text-align: center;
  border: 1px solid var(--border);
}
.arch-diagram { max-width: 100%; height: auto; border-radius: 12px; }
.diagram-caption { margin-top: 20px; font-size: 0.75rem; font-family: 'JetBrains Mono'; color: #4b5563; text-transform: uppercase; letter-spacing: 2px; }

/* Status Page Elements */
.status-indicator { display: inline-flex; align-items: center; background: rgba(34, 197, 94, 0.1); color: #4ade80; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.status-card { display: flex; gap: 20px; background: rgba(255,255,255,0.02); padding: 25px; border-radius: 12px; margin-bottom: 20px; border-left: 4px solid #334155; }
.status-card.active { border-left-color: #22c55e; background: rgba(34, 197, 94, 0.03); }
.pulse-dot { height: 8px; width: 8px; background-color: #22c55e; border-radius: 50%; margin-right: 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 80px 0; margin-top: 60px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 30px; }

/* Responsive Adjustments */
@media (max-width: 992px) {
  .architecture-layout { grid-template-columns: 1fr; }
  .principle-item { flex-direction: column; gap: 15px; }
}
@media (max-width: 768px) {
  .nav { flex-direction: column; gap: 25px; }
  .menu { gap: 1.2rem; font-size: 0.85rem; }
  .section { padding: 60px 20px; }
}