/* ==========================================================================
   ECM Enterprise - Red, White & Black Master Design System
   High-Contrast Executive Corporate Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Red, White & Black Core Color System */
  --bg-dark-root: #000000;
  --bg-dark-surface: #0a0a0c;
  --bg-dark-card: #121216;
  --bg-dark-card-hover: #181820;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-heavy: rgba(10, 10, 14, 0.95);

  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-bright: rgba(255, 255, 255, 0.22);
  --border-glow: rgba(227, 58, 50, 0.4);

  /* Red Palette */
  --red-primary: #E33A32;
  --red-bright: #ff4136;
  --red-dark: #b91c1c;
  --red-glow: rgba(227, 58, 50, 0.25);
  
  /* White & Grays */
  --white-pure: #ffffff;
  --white-off: #f8fafc;
  --gray-light: #e2e8f0;
  --gray-muted: #94a3b8;
  --gray-dim: #475569;

  --accent-cyan: #ff4136;
  --accent-blue: #E33A32;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #E33A32;

  --grad-primary: linear-gradient(135deg, #E33A32 0%, #ff5247 100%);
  --grad-red: linear-gradient(135deg, #E33A32 0%, #ff4136 100%);
  --grad-dark: linear-gradient(180deg, #121216 0%, #050507 100%);
  --grad-white: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 30px rgba(227, 58, 50, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-root);
  color: var(--white-pure);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Red Radial Background Ambient Glow */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 650px;
  background: radial-gradient(ellipse at top, rgba(227, 58, 50, 0.18) 0%, rgba(227, 58, 50, 0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white-pure);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

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

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  background: rgba(227, 58, 50, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--red-bright);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  background: var(--grad-white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--gray-muted);
  line-height: 1.7;
}

/* --- Text Gradient Helpers --- */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--red-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-red {
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons & Action Controls --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-red);
  color: var(--white-pure);
  box-shadow: 0 4px 20px rgba(227, 58, 50, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff4136 0%, #E33A32 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(227, 58, 50, 0.65);
  color: var(--white-pure);
}

.btn-secondary {
  background: var(--white-pure);
  color: #000000;
  border: 1px solid var(--white-pure);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-accent {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-bright);
  color: var(--white-pure);
}

.btn-accent:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--white-pure);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

/* --- Navigation Header --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-right: 2rem;
  flex-shrink: 0;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red-primary);
  color: var(--white-pure);
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: var(--shadow-neon);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--red-bright);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--red-bright);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 58, 50, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(227, 58, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 58, 50, 0); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-muted);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white-pure);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white-pure);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==================== HERO SECTION (Centered Headline + Horizontal Image Banner) ==================== */
.hero-section {
  padding-top: 10.5rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-header-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
}

.hero-header-centered h1 {
  font-size: clamp(3rem, 5.5vw, 4.6rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero-subtitle-centered {
  font-size: 1.25rem;
  color: var(--gray-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

/* Horizontal Corporate Image Banner */
.hero-horizontal-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(227, 58, 50, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: var(--shadow-neon);
  overflow: visible;
  transition: var(--transition-normal);
}

.hero-horizontal-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 50px rgba(227, 58, 50, 0.55);
}

.banner-img-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 520px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark Vignette Overlay for Crisp Readability */
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

/* Floating Badges on Horizontal Image */
.floating-badge {
  position: absolute;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 14, 0.92);
  border: 1px solid var(--border-glass-bright);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 10;
  animation: float-slow 4s ease-in-out infinite alternate;
}

.floating-badge-left {
  top: 25px;
  left: 25px;
}

.floating-badge-right {
  bottom: 25px;
  right: 25px;
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.icon-red { background: rgba(227, 58, 50, 0.2); color: var(--red-bright); }
.icon-white { background: rgba(255, 255, 255, 0.18); color: var(--white-pure); }

.badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white-pure);
}

.badge-text span {
  font-size: 0.78rem;
  color: var(--gray-muted);
}

/* Horizontal Executive Stats Grid */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat-card-corporate {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card-corporate:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.stat-card-corporate h4 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.stat-card-corporate p {
  font-size: 0.88rem;
  color: var(--gray-muted);
}

/* Ticker Bar */
.hero-ticker {
  background: #000000;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 0;
  margin-top: 4.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: scroll-ticker 35s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--gray-muted);
}

.ticker-symbol {
  font-weight: 700;
  color: var(--white-pure);
}

.ticker-val {
  font-family: var(--font-heading);
}

.val-up {
  color: var(--accent-emerald);
}

.val-down {
  color: var(--red-bright);
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Glass Card Components --- */
.glass-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

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

/* --- Section 1: Live Market Research & Intelligence Tool --- */
.tool-card-main {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.search-box-wrap {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-input-group {
  flex: 1;
  position: relative;
}

.search-input-group i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-bright);
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.2rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass-bright);
  color: var(--white-pure);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-normal);
}

.search-input:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 15px rgba(227, 58, 50, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.preset-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.tag-btn {
  padding: 0.38rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--gray-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tag-btn:hover,
.tag-btn.active {
  background: rgba(227, 58, 50, 0.15);
  border-color: var(--red-primary);
  color: var(--red-bright);
}

.research-results-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.results-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.panel-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.panel-title-bar h4 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.swot-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid transparent;
}

.swot-strengths { border-left-color: var(--accent-emerald); }
.swot-weaknesses { border-left-color: var(--red-bright); }
.swot-opportunities { border-left-color: var(--white-pure); }
.swot-threats { border-left-color: var(--accent-amber); }

.swot-box h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--gray-muted);
}

.swot-box ul {
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--gray-light);
}

.swot-box li {
  margin-bottom: 0.3rem;
  list-style-type: disc;
}

.sentiment-gauge-wrap {
  text-align: center;
  padding: 1.5rem 0;
}

.gauge-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--red-primary) 0% 88%, rgba(255, 255, 255, 0.1) 88% 100%);
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.6s ease;
}

.gauge-circle::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-dark-surface);
}

.gauge-value {
  position: relative;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--red-bright);
}

.key-metric-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-glass);
  font-size: 0.9rem;
}

.metric-row span { color: var(--gray-muted); }
.metric-row strong { color: var(--white-pure); }

/* --- Section 2: Live Employee Management System (EMS) Demo --- */
.ems-dashboard {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ems-toolbar {
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dept-filters {
  display: flex;
  gap: 0.5rem;
}

.dept-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--gray-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dept-btn:hover,
.dept-btn.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-bright);
  color: var(--white-pure);
}

.ems-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-glass);
}

.ems-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
}

.ems-stat-box h6 {
  font-size: 0.75rem;
  color: var(--gray-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.ems-stat-box .number {
  font-size: 1.5rem;
  font-weight: 700;
}

.ems-table-wrap {
  overflow-x: auto;
}

.ems-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.ems-table th {
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gray-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
}

.ems-table td {
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--gray-light);
}

.ems-table tbody tr {
  transition: var(--transition-fast);
}

.ems-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.emp-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.emp-info strong {
  display: block;
  color: var(--white-pure);
  font-size: 0.9rem;
}

.emp-info span {
  font-size: 0.75rem;
  color: var(--gray-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.status-leave {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.status-remote {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white-pure);
}

.score-bar-bg {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.score-bar-fill {
  height: 100%;
  background: var(--red-primary);
  border-radius: 3px;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.close-modal {
  background: none;
  border: none;
  color: var(--gray-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--white-pure);
}

/* --- Section 3: Interactive Business ROI Calculator --- */
.calculator-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.slider-header label {
  font-size: 0.95rem;
  color: var(--gray-light);
  font-weight: 500;
}

.slider-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red-bright);
}

.custom-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-primary);
  box-shadow: 0 0 10px var(--red-primary);
  cursor: pointer;
  transition: transform 0.1s;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-output-box {
  background: linear-gradient(135deg, rgba(227, 58, 50, 0.12) 0%, rgba(10, 10, 14, 0.8) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-neon);
}

.calc-output-box h4 {
  font-size: 1rem;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.big-roi-number {
  font-size: 3.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  background: var(--grad-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.roi-stats-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.roi-substat span {
  font-size: 0.8rem;
  color: var(--gray-muted);
  display: block;
}

.roi-substat strong {
  font-size: 1.3rem;
  color: var(--white-pure);
}

/* --- Section 4: Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-red);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glass-bright);
  background: var(--bg-dark-card-hover);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(227, 58, 50, 0.12);
  border: 1px solid rgba(227, 58, 50, 0.35);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

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

/* --- Section 5: Interactive Platform Showcase Tabs --- */
.showcase-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.showcase-tab-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--gray-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.showcase-tab-btn:hover,
.showcase-tab-btn.active {
  background: var(--red-primary);
  color: var(--white-pure);
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.showcase-display {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

.showcase-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease-in-out;
}

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

.pane-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pane-text p {
  color: var(--gray-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pane-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pane-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-light);
}

.pane-bullets i {
  color: var(--red-bright);
}

/* --- Section 6: Pricing Matrix --- */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  cursor: pointer;
  padding: 3px;
  transition: var(--transition-normal);
}

.toggle-handle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.active .toggle-handle {
  transform: translateX(28px);
}

.discount-tag {
  background: rgba(227, 58, 50, 0.15);
  color: var(--red-bright);
  border: 1px solid var(--border-glow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.pricing-card.popular {
  background: #14141a;
  border-color: var(--border-glow);
  box-shadow: var(--shadow-neon);
  transform: scale(1.04);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-primary);
  color: var(--white-pure);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.3rem 1.2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(227, 58, 50, 0.5);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price-tag {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin: 1.5rem 0;
  color: var(--white-pure);
}

.pricing-card .price-tag span {
  font-size: 1rem;
  color: var(--gray-muted);
  font-weight: 400;
}

.pricing-features {
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--gray-light);
}

.pricing-features i {
  color: var(--red-bright);
}

/* --- Section 7: FAQ & Lead Form --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-glass-bright);
  background: rgba(255, 255, 255, 0.04);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--white-pure);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--gray-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

.contact-card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-muted);
  margin-bottom: 0.4rem;
}

.form-input, select {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--white-pure);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, select:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 12px rgba(227, 58, 50, 0.3);
}

select option {
  background: var(--bg-dark-surface);
  color: var(--white-pure);
}

/* Alert Notification Banner */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-glow);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neon);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Footer --- */
.footer {
  background: #020203;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
  color: var(--gray-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-col h5 {
  color: var(--white-pure);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a:hover {
  color: var(--red-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .calc-grid,
  .showcase-pane,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .research-results-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark-surface);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-glass);
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
  }

  .ems-stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
