/* ═══════════════════════════════════════════════
   Biashara Day — Dark Professional Theme
   ═══════════════════════════════════════════════ */

:root {
  --bg-deep: #080F1A;
  --bg-primary: #0B1121;
  --bg-surface: #111B2E;
  --bg-elevated: #162036;
  --border-subtle: #1E2D45;
  --border-accent: #10B981;
  --accent-emerald: #10B981;
  --accent-cyan: #06B6D4;
  --accent-emerald-dim: rgba(16, 185, 129, 0.15);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --gradient-brand: linear-gradient(135deg, #10B981, #06B6D4);
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Gradient text utility */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card base */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
}

/* Stat card */
.stat-card {
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 0 auto;
  max-width: 80%;
}

/* Glow button */
.btn-primary {
  background: var(--accent-emerald);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: #0D9668;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Nav */
.nav-glass {
  background: rgba(11, 17, 33, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Modal transitions */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Active navigation item */
.menu-item {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.menu-item:hover {
  color: var(--text-primary);
}

.menu-item {
  position: relative;
}

.menu-item.active {
  color: var(--accent-emerald);
}

.menu-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent-emerald);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .menu-item.active::after {
    bottom: auto;
    top: 0;
    left: 0;
    transform: none;
    width: 2px;
    height: 100%;
  }
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent-emerald);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

/* Form feedback */
.form-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.form-alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.form-alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

/* Form inputs dark theme */
.form-input {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-emerald);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

/* Hero background pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
}

/* Subtle grid overlay */
.grid-overlay {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* Process step number */
.step-number {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Icon container */
.icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: var(--accent-emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer */
.footer-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-emerald);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
