/* The Downfall of TCS Has Already Started - Editorial Theme */
:root {
  --bg-dark: #05070d;
  --bg-surface: #0a0e1a;
  --bg-card: rgba(14, 20, 36, 0.7);
  --bg-card-hover: rgba(22, 32, 58, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(239, 68, 68, 0.3);
  --border-focus: #ef4444;

  --accent-red: #ef4444;
  --accent-crimson: #b91c1c;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-violet: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(239, 68, 68, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background Cyber Grid */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 13, 0.8);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-badge {
  background: linear-gradient(135deg, #ef4444 0%, #7f1d1d 100%);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.status-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-ring 1.5s infinite;
}

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

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 0 auto 24px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.3);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 40px auto 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.stat-number.trend-down {
  color: #f87171;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Quote Banner */
.quote-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 50px 0 70px;
  position: relative;
}

.quote-text {
  font-size: 19px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 12px;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fca5a5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Section Styling */
.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 8px;
}

/* 5 Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 16px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.pillar-stat {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Comparison Matrix */
.matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.matrix-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.matrix-table th.col-bad {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.matrix-table th.col-good {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
}

.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  vertical-align: top;
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table td.feature-cell {
  font-weight: 600;
  color: #ffffff;
}

.matrix-table td.bad-val {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.02);
}

.matrix-table td.good-val {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.02);
}

/* Interactive Calculator */
.calc-card {
  background: linear-gradient(135deg, rgba(14, 20, 36, 0.9) 0%, rgba(8, 12, 22, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-slider {
  width: 100%;
  accent-color: var(--accent-red);
  cursor: pointer;
}

.calc-val-display {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.calc-results {
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 24px;
}

.calc-res-item {
  margin-bottom: 18px;
}

.calc-res-item:last-child {
  margin-bottom: 0;
}

.calc-res-lbl {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.calc-res-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
}

.calc-res-num.alert {
  color: #f87171;
}

.calc-res-num.savings {
  color: #34d399;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 50%, #475569 100%);
}

.timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

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

/* Footer */
.footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.footer strong {
  color: var(--text-muted);
}

.footer-domain-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 34px;
  }
  .matrix-table {
    display: block;
    overflow-x: auto;
  }
}
