/* ═══════════════════════════════════════ */
/* RESET & VARIABLES                       */
/* ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #ED1C24;
  --red-hover: #d4181f;
  --near-black: #231F20;
  --dark-bg: #1a1719;
  --coral: #F37053;
  --steel: #849DAA;
  --white: #FFFFFF;
  --light-grey: #f5f6fa;
  --mid-grey: #6b7280;
  --border-grey: #e5e7eb;

  --vms: #1A73E8;
  --vault: #F37053;
  --shield: #0AC410;
  --sense: #A063F8;
  --check: #F7572C;
  --mobile: #00838F;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --max-w: 1200px;
  --section-pad: 100px 0;
  --side-pad: 24px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--near-black); line-height: 1.6; background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; }

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

/* ═══════════════════════════════════════ */
/* NAVBAR                                  */
/* ═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(26, 23, 25, 0.95);
  backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-weight: 900; font-size: 22px; color: var(--white); letter-spacing: -0.5px;
}
.nav-brand .x { color: var(--red); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 10px 24px; border-radius: 6px; font-weight: 600; font-size: 14px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-hover); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 6px 0; transition: all 0.3s;
}

/* ═══════════════════════════════════════ */
/* HERO                                    */
/* ═══════════════════════════════════════ */
.hero {
  min-height: 100vh; background: var(--dark-bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; opacity: 0.08;
  background:
    linear-gradient(90deg, rgba(237,28,36,0.15) 1px, transparent 1px),
    linear-gradient(rgba(237,28,36,0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(237,28,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  text-align: center; position: relative; z-index: 2;
  padding: 0 var(--side-pad);
}
.hero-brand {
  font-size: clamp(48px, 8vw, 80px); font-weight: 900; color: var(--white);
  letter-spacing: -2px; margin-bottom: 8px; line-height: 1;
}
.hero-brand .x { color: var(--red); }
.hero-tagline {
  font-size: clamp(24px, 4vw, 42px); font-weight: 700; color: var(--white);
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.hero-philosophy {
  font-size: 18px; color: var(--steel); font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px;
}
.hero-descriptor {
  font-size: 16px; color: rgba(255,255,255,0.5); margin-bottom: 48px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: var(--white);
  padding: 16px 40px; border-radius: 6px; font-weight: 700; font-size: 16px;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(237,28,36,0.3); }
.btn-secondary {
  background: transparent; color: var(--white);
  padding: 16px 40px; border-radius: 6px; font-weight: 600; font-size: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s ease infinite;
}
.scroll-indicator svg { width: 24px; height: 24px; stroke: var(--steel); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══════════════════════════════════════ */
/* SECTION COMMON                          */
/* ═══════════════════════════════════════ */
.section { padding: var(--section-pad); }
.section-dark { background: var(--dark-bg); color: var(--white); }
.section-light { background: var(--light-grey); }
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px; color: var(--mid-grey); max-width: 600px; font-weight: 400;
  line-height: 1.7;
}
.section-dark .section-subtitle { color: var(--steel); }
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════ */
/* PLATFORM OVERVIEW                       */
/* ═══════════════════════════════════════ */
.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.module-card {
  background: var(--white); border-radius: 12px;
  padding: 32px 28px; position: relative; overflow: hidden;
  border: 1px solid var(--border-grey);
  transition: all 0.3s ease;
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--module-color);
}
.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: transparent;
}
.module-card:hover::before { height: 4px; }
.module-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 22px;
  background: color-mix(in srgb, var(--module-color) 12%, white);
  color: var(--module-color);
}
.module-name {
  font-size: 18px; font-weight: 700; margin-bottom: 6px;
  color: var(--near-black);
}
.module-liner {
  font-size: 13px; font-weight: 600; color: var(--module-color);
  margin-bottom: 12px; letter-spacing: 0.3px;
}
.module-desc {
  font-size: 14px; color: var(--mid-grey); line-height: 1.6;
}

/* ═══════════════════════════════════════ */
/* AI INTELLIGENCE                         */
/* ═══════════════════════════════════════ */
.ai-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ai-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 28px 20px; text-align: center;
  transition: all 0.3s;
}
.ai-card:hover {
  background: rgba(237,28,36,0.06); border-color: rgba(237,28,36,0.2);
  transform: translateY(-4px);
}
.ai-icon {
  font-size: 32px; margin-bottom: 14px; display: block;
  filter: grayscale(0.3);
}
.ai-label {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9);
}

/* ═══════════════════════════════════════ */
/* STATS / BY THE NUMBERS                  */
/* ═══════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900;
  color: var(--red); letter-spacing: -2px; line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px; font-weight: 600; color: var(--mid-grey);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ═══════════════════════════════════════ */
/* INDUSTRY SOLUTIONS                      */
/* ═══════════════════════════════════════ */
.industry-tabs {
  display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.industry-tab {
  padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  background: var(--white); color: var(--mid-grey); border: 2px solid var(--border-grey);
  transition: all 0.2s; cursor: pointer;
}
.industry-tab.active, .industry-tab:hover {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.industry-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.industry-panel { display: none; }
.industry-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px;  }
.industry-image {
  background: var(--dark-bg); border-radius: 12px; height: 340px;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.industry-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(237,28,36,0.05), transparent);
}
.industry-image span { position: relative; z-index: 1; }
.industry-info h3 {
  font-size: 24px; font-weight: 800; margin-bottom: 16px;
}
.industry-info ul {
  list-style: none; padding: 0;
}
.industry-info li {
  padding: 10px 0; font-size: 15px; color: var(--mid-grey);
  border-bottom: 1px solid var(--border-grey);
  display: flex; align-items: flex-start; gap: 12px;
}
.industry-info li::before {
  content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════ */
/* COMPETITIVE EDGE                        */
/* ═══════════════════════════════════════ */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.compare-table thead th {
  background: var(--near-black); color: var(--white);
  padding: 18px 20px; font-size: 14px; font-weight: 700;
  text-align: center;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table thead th:nth-child(2) {
  background: var(--red); color: var(--white);
}
.compare-table tbody td {
  padding: 16px 20px; font-size: 14px; text-align: center;
  border-bottom: 1px solid var(--border-grey);
  background: var(--white);
}
.compare-table tbody td:first-child {
  text-align: left; font-weight: 600; color: var(--near-black);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--light-grey); }
.check { color: #16a34a; font-weight: 700; font-size: 14px; }
.partial { color: #f59e0b; font-weight: 700; font-size: 14px; }
.cross { color: #dc2626; font-weight: 700; font-size: 14px; }

/* ═══════════════════════════════════════ */
/* DEMO FORM                               */
/* ═══════════════════════════════════════ */
.demo-section { background: var(--dark-bg); }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.demo-info h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--white);
  margin-bottom: 16px;
}
.demo-info p { color: var(--steel); font-size: 17px; line-height: 1.7; }
.demo-info .response-note {
  margin-top: 24px; padding: 16px 20px; background: rgba(255,255,255,0.04);
  border-radius: 8px; border-left: 3px solid var(--red);
  color: rgba(255,255,255,0.6); font-size: 14px;
}
.demo-form {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.6); margin-bottom: 8px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); font-family: var(--font); font-size: 15px;
  transition: border-color 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
  background: rgba(255,255,255,0.08);
}
.form-group select option { background: var(--near-black); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  width: 100%; padding: 16px; background: var(--red); color: var(--white);
  border-radius: 8px; font-size: 16px; font-weight: 700;
  transition: all 0.2s; margin-top: 8px;
}
.form-submit:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(237,28,36,0.3); }

/* ═══════════════════════════════════════ */
/* FOOTER                                  */
/* ═══════════════════════════════════════ */
.footer {
  background: var(--near-black); color: rgba(255,255,255,0.5);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-brand { font-size: 24px; margin-bottom: 8px; display: block; }
.footer-brand .parent { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-brand .desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 360px; }
.footer h4 {
  color: var(--white); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom span { font-size: 13px; }
.made-in-india {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE                              */
/* ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .industry-panel.active { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark-bg); padding: 24px;
    gap: 16px; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-toggle { display: block; }
  .modules-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .compare-table { font-size: 12px; }
  .compare-table thead th, .compare-table tbody td { padding: 10px 8px; }
}

@media (max-width: 480px) {
  .ai-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}