/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #1b1642;
  --blue-primary: #253783;
  --blue-light: #43c3ff;
  --bg-light: #f3f8ff;
  --white: #ffffff;
  --text-dark: #1b1642;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #dde8f4;
  --shadow-sm: 0 2px 8px rgba(37,55,131,0.08);
  --shadow-md: 0 8px 32px rgba(37,55,131,0.12);
  --shadow-lg: 0 20px 60px rgba(37,55,131,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font-sans); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
}
.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.accent-text { color: var(--blue-light); }
.underline-accent {
  position: relative;
  display: inline-block;
}
.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue-light);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(67,195,255,0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #2bb8f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67,195,255,0.45);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 27px;
  border-radius: 50px;
  border: 2px solid var(--blue-primary);
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--blue-primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--blue-primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(67,195,255,0.1);
  border: 1px solid rgba(67,195,255,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}
#header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(67,195,255,0.65), transparent);
  background-size: 200% 100%;
  animation: headerSweep 6s ease-in-out infinite;
  opacity: 0.55;
  pointer-events: none;
}
#header.scrolled { box-shadow: var(--shadow-md); }

@keyframes headerSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-link svg {
  height: 40px;
  width: auto;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
nav a:hover { color: var(--blue-primary); background: var(--bg-light); }

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--blue-primary);
  transition: all 0.2s;
}
.header-social a:hover { background: var(--blue-primary); color: var(--white); }
.header-social svg { width: 16px; height: 16px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--blue-dark);
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: white;
}
.mobile-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-dots canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  position: relative;
  z-index: 2;
}


.hero-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: linear-gradient(90deg, rgba(37,55,131,0.06), rgba(67,195,255,0.06));
  border: 1px solid rgba(37,55,131,0.15);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(37,55,131,0.08);
  margin-bottom: 24px;
}

.partner-left {
  position: relative;
  display: flex;
  align-items: center;
}

.partner-odoo-logo {
  height: 34px;   /* Increased size for visibility */
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.partner-firework {
  position: absolute;
  width: 48px;
  top: -14px;
  left: -10px;
  opacity: 0.25;
  z-index: 1;
}

.partner-right {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.partner-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #43c3ff;
}

.partner-location {
  font-size: 15px;
  font-weight: 600;
  color: #253783;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 51px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-headline .accent { color: var(--blue-primary); }
.hero-headline .light-accent { color: var(--blue-light); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 520px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.hero-tag {
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-tag svg { width: 14px; height: 14px; color: var(--blue-light); }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.trust-avatars {
  display: flex;
}
.trust-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-primary);
  border: 2px solid white;
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}
.trust-avatar:first-child { margin-left: 0; }
.trust-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.trust-text strong { color: var(--text-dark); font-weight: 600; }

/* Hero Form Card */
.hero-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(67,195,255,0.12);
  background: white;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23253783' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-btn { width: 100%; margin-top: 8px; justify-content: center; }
.form-microcopy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.form-microcopy svg {
  display: inline;
  width: 12px;
  height: 12px;
  vertical-align: middle;
  color: var(--blue-light);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}
.form-success.active-success {
  display: block;
}
.form-success .success-icon {
  width: 56px;
  height: 56px;
  background: rgba(67,195,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success .success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--blue-primary);
}
.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.88rem; color: var(--text-muted); }

/* Hero Collage Visual */
.hero-visual {
  display: none; /* fallback for form version */
}

/* Wavy divider */
.wave-divider {
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* ============================================================
   PROBLEM SECTION — Why Switch
   ============================================================ */
#why-switch {
  background: var(--blue-dark);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
#why-switch::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,195,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.why-card:hover {
  background: rgba(67,195,255,0.07);
  border-color: rgba(67,195,255,0.25);
  transform: translateY(-4px);
}
.why-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(67,195,255,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card-icon svg { width: 26px; height: 26px; color: var(--blue-light); }
.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  margin-top: 10px;
}
.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
.why-card .pain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff8a80;
  background: rgba(255,138,128,0.1);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.why-card .solution {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--blue-light);
  background: rgba(67,195,255,0.1);
  border-radius: 50px;
  padding: 4px 11px 4px 9px;
  min-height: 28px;
  margin-top: auto;
  white-space: nowrap;
}
.why-card .solution::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  margin-right: 2px;
}

/* ============================================================
   SINGLE SOURCE OF TRUTH
   ============================================================ */
#single-source {
  background: var(--bg-light);
  padding: 90px 0;
}
.source-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.source-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.source-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.source-point .point-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.source-point .point-icon svg { width: 20px; height: 20px; color: var(--blue-primary); }
.source-point-text h4 {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.source-point-text p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom:0;
}

/* Module Diagram */
.module-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.diagram-center {
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 12px rgba(37,55,131,0.1), 0 0 0 24px rgba(37,55,131,0.05);
}
.diagram-center svg { width: 40px; height: 40px; color: white; }
.diagram-ring {
  position: absolute;
  border: 1.5px dashed rgba(37,55,131,0.18);
  border-radius: 50%;
}
.ring-1 { width: 200px; height: 200px; }
.ring-2 { width: 320px; height: 320px; }

.diagram-nodes {
  position: relative;
  width: 320px;
  height: 320px;
}
.diagram-node {
  position: absolute;
  width: 72px;
  height: 72px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.2;
}
.diagram-node:hover { border-color: var(--blue-light); box-shadow: var(--shadow-md); transform: translate(-50%,-50%) scale(1.06); }
.diagram-node svg { width: 20px; height: 20px; color: var(--blue-light); }
/* Place nodes around circle r=140 from center 160,160 */
.dn-1  { top: calc(160px - 140px); left: 160px; }
.dn-2  { top: calc(160px - 140px * 0.707); left: calc(160px + 140px * 0.707); }
.dn-3  { top: 160px; left: calc(160px + 140px); }
.dn-4  { top: calc(160px + 140px * 0.707); left: calc(160px + 140px * 0.707); }
.dn-5  { top: calc(160px + 140px); left: 160px; }
.dn-6  { top: calc(160px + 140px * 0.707); left: calc(160px - 140px * 0.707); }
.dn-7  { top: 160px; left: calc(160px - 140px); }
.dn-8  { top: calc(160px - 140px * 0.707); left: calc(160px - 140px * 0.707); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
#comparison-table {
  background: white;
  padding: 90px 0;
}
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-top: 48px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
thead tr {
  background: var(--blue-dark);
}
thead th {
  padding: 18px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  color: white;
}
thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
thead th.highlight-col {
  background: var(--blue-primary);
  color: white;
  position: relative;
}
/*thead th.highlight-col::after {
  content: '★ Recommended';
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--blue-light);
  margin-top: 2px;
}*/

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-light); }
tbody td {
  padding: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-body);
  vertical-align: middle;
}
tbody td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}
tbody td.highlight-col {
  background: rgba(37,55,131,0.04);
  font-weight: 500;
  color: var(--blue-primary);
}
tbody td .check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /*color: #22c55e;*/
  font-weight: 600;
}
tbody td .check svg { width: 16px; height: 16px; }
tbody td .cross { color: #94a3b8; }

.comparison-cta {
  text-align: center;
  margin-top: 36px;
}
.comparison-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
  text-underline-offset: 4px;
}
.comparison-cta a svg { width: 16px; height: 16px; }

/* ============================================================
   CASE STUDY SECTION
   ============================================================ */
#case-study {
  background: var(--blue-dark);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
#case-study::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,195,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
}
.case-study-left h2 { color: white; }
.case-study-left p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 16px;
}
.case-study-industries {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.case-study-industries span {
  background: rgba(67,195,255,0.1);
  border: 1px solid rgba(67,195,255,0.25);
  color: var(--blue-light);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
}

.case-study-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.case-study-form .form-group label { color: rgba(255,255,255,0.8); }
.case-study-form .form-group input,
.case-study-form .form-group select {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: white;
}
.case-study-form .form-group input::placeholder { color: rgba(255,255,255,0.35); }
.case-study-form .form-group input:focus,
.case-study-form .form-group select:focus {
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.1);
}
.case-study-form .form-group select option { background: var(--blue-dark); color: white; }
.cs-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: white;
}
.cs-success.active-success {
  display: block;
}
.cs-success .success-icon {
  width: 56px; height: 56px;
  background: rgba(67,195,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cs-success .success-icon svg { width: 28px; height: 28px; color: var(--blue-light); }
.cs-success h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 8px; }
.cs-success p { font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   DEMO STEPS
   ============================================================ */
#demo-steps {
  background: var(--bg-light);
  padding: 90px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light), var(--blue-primary));
  z-index: 0;
}

.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(67,195,255,0.4);
}
.step-number {
  width: 52px;
  height: 52px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(37,55,131,0.3);
}
.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

.demo-note {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.demo-note svg { width: 18px; height: 18px; color: var(--blue-primary); flex-shrink: 0; }
.demo-cta { text-align: center; margin-top: 36px; }

/* ============================================================
   MODULES SECTION
   ============================================================ */
#modules {
  background: white;
  padding: 90px 0;
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.module-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: all 0.25s;
}
.module-card:hover {
  background: white;
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.module-card-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.module-card-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.module-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.additional-modules {
  margin-top: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}
.additional-modules h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.additional-modules h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--blue-light);
  border-radius: 2px;
}
.additional-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.additional-tag {
  background: white;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--blue-primary);
  transition: all 0.2s;
}
.additional-tag:hover {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
}

/* ============================================================
   COMPARISON SLIDER
   ============================================================ */
.comparison-container {
  position: relative;
  margin-top: 40px;
}
.comparison-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  aspect-ratio: 900 / 564;
  border: 1px solid #b8d4f3;
  background: white;
}
.comparison-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 564;
}
.comparison-image {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: cover;
}
.comparison-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}
.comparison-label {
  position: absolute;
  top: 24px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.comparison-label-before {
  right: 24px;
}
.comparison-label-after {
  left: 24px;
}
.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
}
.comparison-handle-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent, 
    var(--blue-light) 30%, 
    var(--blue-light) 70%, 
    transparent
  );
  transform: translateX(-50%);
}
.comparison-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: white;
  border: 3px solid var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(67, 195, 255, 0.3);
  transition: all 0.2s;
}
.comparison-handle:hover .comparison-handle-button,
.comparison-handle:active .comparison-handle-button {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(67, 195, 255, 0.5);
}
.comparison-handle-button svg {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
  stroke-width: 3;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  background: var(--bg-light);
  padding: 90px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  align-items: start;
}
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue-primary); }
.faq-toggle {
  width: 28px;
  height: 28px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.faq-toggle svg { width: 14px; height: 14px; color: var(--blue-primary); transition: transform 0.3s; }
.faq-item.open .faq-toggle { background: var(--blue-primary); }
.faq-item.open .faq-toggle svg { color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.faq-answer p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: 20px;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(67,195,255,0.08);
  pointer-events: none;
  animation: ctaPulse 6s ease-in-out infinite;
}
#cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 10%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(67,195,255,0.06);
  pointer-events: none;
  animation: ctaPulse 7.5s ease-in-out infinite;
}
.cta-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
  overflow: hidden;
}
.cta-network canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

@keyframes ctaPulse {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
  50% { transform: translateY(-12px) scale(1.06); opacity: 1; }
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-banner-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.cta-banner-text p { color: rgba(255,255,255,0.65); font-size: 1rem; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 280px;
}
.footer-brand .brand-logo { margin-bottom: 4px; }

.footer-col h4 {
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a, .footer-col address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  font-style: normal;
  line-height: 1.6;
}
.footer-col ul a:hover { color: var(--blue-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue-light); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--blue-light); color: var(--blue-dark); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); font-size: 0.8rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--blue-light); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-buttons {
  position: fixed;
  bottom: 98px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-primary);
  color: white;
  padding: 13px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 24px rgba(37,55,131,0.35);
  transition: all 0.25s;
  white-space: nowrap;
}
.float-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(37,55,131,0.45);
}
.float-btn.call {
  background: #22c55e;
  box-shadow: 0 6px 24px rgba(34,197,94,0.35);
}
.float-btn.call:hover { box-shadow: 0 10px 32px #fff }
.float-btn svg { width: 18px; height: 18px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,22,66,0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--bg-light);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close:hover { background: #fee2e2; }
.modal-close svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-form-card { max-width: 520px; }
  .source-inner { grid-template-columns: 1fr; gap: 48px; }
  .module-diagram { display: none; }
  .case-study-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .header-social { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner { padding: 50px 0; }
  .hero-headline { font-size: 38px; }
  .hero-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-tag { padding: 6px 12px; font-size: 0.65rem; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-banner-actions { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .floating-buttons { bottom: 20px; right: 16px; }
  .float-btn { padding: 12px 16px; font-size: 0; }
  .float-btn svg { width: 20px; height: 20px; }
  .additional-modules { padding: 24px; }
  
  /* Comparison Slider Mobile */
  .comparison-label {
    font-size: 0.75rem;
    padding: 6px 12px;
    top: 16px;
  }
  .comparison-label-before { right: 16px; }
  .comparison-label-after { left: 16px; }
  .comparison-handle-button {
    width: 40px;
    height: 40px;
  }
  .comparison-handle-button svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .modal-box { padding: 28px 20px; }
  .modules-grid { grid-template-columns: 1fr; }
  
  /* Comparison Slider Extra Small */
  .comparison-label {
    font-size: 0.7rem;
    padding: 5px 10px;
    top: 12px;
  }
  .comparison-label-before { right: 12px; }
  .comparison-label-after { left: 12px; }
  .comparison-handle-button {
    width: 36px;
    height: 36px;
  }
}