/* ========================================================
   MaintScope Landing Page · Executive Dark Theme
   ======================================================== */

:root {
  --bg-dark: #070a13;
  --bg-card: rgba(13, 21, 39, 0.75);
  --bg-card-hover: rgba(18, 30, 56, 0.85);
  --bg-surface: #0a0f1d;
  --border: rgba(56, 189, 248, 0.15);
  --border-bright: rgba(56, 189, 248, 0.4);
  
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-grad: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --accent-cyan: #00f0ff;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Glows */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.18;
}

.glow-1 {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, #0284c7, transparent 70%);
}

.glow-2 {
  top: 600px;
  right: 10%;
  background: radial-gradient(circle, #0369a1, transparent 70%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ========================================================
   Navigation Bar
   ======================================================== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.version-tag {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

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

.nav-link:hover {
  color: #fff;
}

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

.lang-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  gap: 0.35rem;
  transition: border-color 0.2s;
}

.lang-pill:hover {
  border-color: var(--accent);
}

.lang-opt.active {
  color: var(--accent);
  font-weight: 700;
}

.lang-sep {
  opacity: 0.4;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}

/* ========================================================
   Buttons
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-outline {
  background: rgba(13, 21, 39, 0.7);
  color: #e2e8f0;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(18, 30, 56, 0.9);
  border-color: var(--accent);
  color: #fff;
}

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

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.8rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1.4rem;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

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

.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem 2rem;
  width: 100%;
  max-width: 1000px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
}

/* ========================================================
   Common Sections
   ======================================================== */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.bg-alt {
  background: #080d19;
}

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

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   Features Grid
   ======================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.7rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   Interactive Modules Tabs
   ======================================================== */
.module-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background: rgba(13, 21, 39, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: #fff;
}

.tab-btn.active {
  background: var(--accent-grad);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.panel-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}

.panel-info h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.panel-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.panel-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.panel-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Visual Box Mockups */
.visual-box {
  background: #060911;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.visual-header {
  background: #0b1120;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.visual-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.6rem;
  font-family: var(--font-mono);
}

.visual-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.6rem;
}

.cyan { color: var(--accent); }
.mono-sub { font-family: var(--font-mono); font-size: 0.72rem; color: #94a3b8; }

.tag-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ========================================================
   Security & Sovereignty Grid
   ======================================================== */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.security-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s;
}

.security-card:hover {
  border-color: var(--border-bright);
}

.sec-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.security-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.security-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================
   Download Card Section
   ======================================================== */
.download-card {
  background: linear-gradient(135deg, rgba(14, 22, 41, 0.95), rgba(7, 10, 19, 0.98));
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.download-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}

.download-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  background: rgba(6, 9, 17, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-sub);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.download-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.download-note {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* ========================================================
   Footer
   ======================================================== */
.footer {
  background: #04070d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 2.5rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-auth {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.footer-right {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-tech {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 0.3rem;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media (max-width: 900px) {
  .hero-title { font-size: 2.2rem; }
  .panel-card { grid-template-columns: 1fr; padding: 2rem; }
  .hero-stats-bar { flex-direction: column; gap: 1rem; }
  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #070a13;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .nav-menu.open { display: flex; }
  .mobile-toggle { display: flex; }
  .footer-container { flex-direction: column; text-align: left; }
  .footer-right { text-align: left; }
}

