/* DEMASSES Main stylesheet */

:root {
  --bg-dark: #07070a;
  --bg-card: rgba(13, 13, 20, 0.45);
  --bg-card-hover: rgba(20, 20, 30, 0.65);
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-glow: rgba(99, 102, 241, 0.3);
  
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Add generated background image behind a dark overlay */
  background-image: 
    linear-gradient(to bottom, rgba(7, 7, 10, 0.88), #07070a),
    url('assets/demasses-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Background Gradients */
.bg-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
  top: -10vw;
  right: -10vw;
}

.bg-glow-2 {
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  bottom: 10vw;
  left: -10vw;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Header & Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(7, 7, 10, 0.7);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-indigo);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-indigo);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--accent-indigo);
  color: #fff;
}

.btn-primary:hover {
  background-color: #5558e6;
  transform: translateY(-2px);
}

.btn-glow {
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.btn-danger {
  background-color: var(--accent-red);
  color: #fff;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

.btn-danger-glow {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger-glow:hover {
  box-shadow: 0 6px 30px rgba(239, 68, 68, 0.6);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

/* Hero Section */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, var(--accent-indigo) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Visual Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-glow {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: var(--accent-red); }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: var(--accent-green); }

.title-spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.status-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-item .label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.status-item .value {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.glow-text-blue {
  color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.text-success {
  color: var(--accent-green);
}

.visual-graph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.graph-bar {
  width: 10%;
  height: var(--h);
  background: linear-gradient(to top, rgba(99, 102, 241, 0.2), var(--accent-indigo));
  border-radius: 4px;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; filter: drop-shadow(0 0 4px var(--accent-indigo)); }
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

.blink {
  animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

/* Pillars Section */
.pillars-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-glow);
  background-color: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.06);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
  background-color: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Operations Section */
.operations-section {
  padding: 80px 0;
}

.ops-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(13, 13, 20, 0.7) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ops-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.ops-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.ops-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ops-content p {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.ops-meta {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-red);
}

/* Connect Section */
.connect-section {
  padding: 100px 0 140px;
  border-top: 1px solid var(--border-color);
}

.connect-container {
  display: flex;
  justify-content: center;
}

.connect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4rem;
  text-align: center;
  max-width: 700px;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.connect-card h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.connect-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.connect-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.connect-form input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.connect-form input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--border-color);
  background-color: rgba(7, 7, 10, 0.9);
  padding: 3rem 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.15em;
}

.footer-links {
  text-align: right;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .ops-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .ops-cta {
    display: flex;
    justify-content: center;
  }
  
  .ops-meta {
    justify-content: center;
  }
  
  .connect-form {
    flex-direction: column;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .main-nav {
    display: none; /* simple responsive handling */
  }
}
