:root {
  --bg: #0a0a0b;
  --bg-raised: #161314;
  --ink: #f2f0ec;
  --muted: #9ea1a1;
  --muted-2: #757a7b;
  --border: #2a2222;
  --gold-1: #f0c07a;
  --gold-2: #c9903c;
  --red-1: #e0847a;
  --red-2: #c9584f;
  --teal: #7fd9c9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
  width: 100%;
}

/* Soft ambient red glow blob behind the footer only — kept well clear of
   the hero photo, whose own dark background reads cleanest against plain
   black (a glow behind it just outlines the image's edges). */
.glow {
  position: absolute;
  width: 700px;
  height: 700px;
  max-width: 100vw;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--red-2) 0%, var(--red-1) 28%, rgba(201, 88, 79, 0.15) 55%, transparent 72%);
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.glow-footer {
  bottom: -320px;
  left: -200px;
}

.site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Header --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-enigma {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

.brand-muradov {
  height: 11px;
  width: auto;
  opacity: 0.85;
  flex-shrink: 1;
  min-width: 0;
}

@media (min-width: 480px) {
  .brand-muradov {
    height: 14px;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding: 20px 24px;
  }

  .brand-enigma {
    height: 26px;
  }

  .brand-muradov {
    height: 18px;
  }
}

.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--ink);
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
  }
}

/* --- Mobile menu --- */

.menu-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  gap: 5px;
  width: 32px;
  height: 32px;
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mobile-nav.open {
  max-height: 260px;
  padding-bottom: 12px;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-nav-staff {
  color: var(--gold-1) !important;
  font-weight: 600;
}

@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 719px) {
  .mobile-nav {
    display: flex;
  }
}

/* --- Hero --- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    padding: 40px 24px 96px;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-text {
    text-align: left;
  }
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 18px;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 3.4rem;
  }
}

.hero-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 auto 28px;
}

@media (min-width: 900px) {
  .hero-subtitle {
    margin: 0 0 28px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.hero-photo-wrap {
  flex: 1;
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-photo-wrap img {
  width: 100%;
}

/* --- Buttons --- */

.btn-gold, .btn-outline {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  color: #1c2223;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--ink);
}

/* --- Sections --- */

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 12px;
  text-align: center;
}

.section-lede {
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 40px;
}

/* --- About --- */

#about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .about-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credential-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.credential-card .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.credential-card p {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

/* --- Operations --- */

#operations {
  border-top: 1px solid var(--border);
}

.operations-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .operations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .operations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.operation-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

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

.operation-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.operation-card p {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.operation-card .link {
  color: var(--gold-1);
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-note {
  text-align: center;
  color: var(--muted-2);
  font-style: italic;
}

/* --- Footer --- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 56px 24px 64px;
  border-top: 1px solid var(--border);
}

.footer-badge {
  width: 88px;
  height: 88px;
}

.footer-info p {
  margin: 0 0 6px;
  font-weight: 700;
}

.footer-info .muted {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.staff-link {
  color: var(--muted-2);
  font-size: 0.85rem;
  text-decoration: none;
}

.staff-link:hover {
  color: var(--muted);
}
