/* ============================================================
   BookMyShow SRE — Design System
   Primary: #C4242B (BMS Brand Red)
   Background: #F8F9FC (Light)
   Surface: #FFFFFF
   Border: #D5D9E8
   Font: Inter
   ============================================================ */

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

:root {
  --red: #C4242B;
  --red-dark: #9e1d23;
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --surface2: #EEF0F6;
  --border: #D5D9E8;
  --text: #1A1F2E;
  --text-muted: #5A6478;
  --green: #16a34a;
  --yellow: #b45309;
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1140px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-bms { color: var(--red); }
.brand-dot { color: var(--text-muted); margin: 0 4px; font-size: 10px; vertical-align: middle; }
.brand-sre { color: var(--text); }
.bms-logo-img { height: 22px; width: auto; vertical-align: middle; background: #1A1F2E; padding: 3px 8px; border-radius: 5px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 60px;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(196, 36, 43, 0.10);
  border: 1px solid rgba(196, 36, 43, 0.3);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 20px;
}

.accent { color: var(--red); }

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}

.stat-pct {
  font-size: 18px;
  color: var(--red);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.monitor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196, 36, 43, 0.2);
  animation: pulse-ring 3s ease-in-out infinite;
}

.ring-1 { width: 100%; height: 100%; animation-delay: 0s; }
.ring-2 { width: 72%; height: 72%; animation-delay: 0.5s; border-color: rgba(196, 36, 43, 0.35); }
.ring-3 { width: 44%; height: 44%; animation-delay: 1s; border-color: rgba(196, 36, 43, 0.5); }

.monitor-core {
  width: 80px;
  height: 80px;
  background: rgba(196, 36, 43, 0.1);
  border: 1px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(196, 36, 43, 0.3); }
  to { box-shadow: 0 0 30px rgba(196, 36, 43, 0.6); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 96px 24px;
}

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 40px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.highlight-card:hover { border-color: var(--red); }

.highlight-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }

.highlight-card strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.pillar-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  background: rgba(196, 36, 43, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.6;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.stack-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stack-category { }

.category-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  transition: border-color var(--transition), color var(--transition);
  cursor: default;
}

.tag:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   SLO METRICS
   ============================================================ */
.slo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.slo-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.slo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.slo-service {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.slo-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.slo-green { background: rgba(22, 163, 74, 0.1); color: var(--green); border: 1px solid rgba(22, 163, 74, 0.3); }
.slo-yellow { background: rgba(180, 83, 9, 0.1); color: var(--yellow); border: 1px solid rgba(180, 83, 9, 0.3); }

.slo-bar-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.slo-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #16a34a);
  border-radius: 100px;
  transition: width 1s ease;
}

.slo-bar-yellow {
  background: linear-gradient(90deg, var(--yellow), #d97706);
}

.slo-details {
  display: flex;
  justify-content: space-between;
}

.slo-actual { font-size: 13px; color: var(--text); font-weight: 600; }
.slo-target { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.team-card:hover { border-color: var(--red); }

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.team-info { display: flex; flex-direction: column; }

.team-info strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.team-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
}

.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-source {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
}

.video-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 10px 0 14px;
  line-height: 1.3;
}

.video-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .video-wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; min-height: auto; padding-top: 60px; gap: 40px; }
  .hero-visual { width: 200px; height: 200px; }
  .hero-stats { flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stack-categories { grid-template-columns: 1fr; }
  .slo-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
