/* styles.css */
:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --border: #e3e8ef;
  --text: #0b1220;
  --muted: #4b5565;
  --faint: #6b7280;

  --accent: #0b5fff;
  --accent-2: #12b3ff;

  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.12);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html, body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{ color: inherit; text-decoration:none; }
button, input, select, textarea{ font: inherit; }
.container{ width:min(1160px, calc(100% - 48px)); margin:0 auto; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand-mark{
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.brand-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}



/* Brand logo in header */
.brand-logo{
  display:block;
  height: 48px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}

.brand-mark,
.brand-name{
  display:none; /* hide old mark + text */
}

@media (max-width: 560px){
  .brand-logo{
    height: 38px;
    max-width: 240px;
  }
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav a{
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.nav a:hover{ color: var(--text); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 12px 16px;
  cursor:pointer;
  font-weight: 800;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: #d6dde8;
}
.btn:active{ transform: translateY(0px); }
.btn.small{ padding: 10px 14px; font-size: 13px; }

.btn.primary{
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}
.btn.primary:hover{ 
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  border-color: transparent;
}
.btn.ghost{ background: transparent; }
.btn.full{ width:100%; border-radius: 14px; }

/* Full-bleed hero video */
.hero-video{
  position: relative;
  width: 100%;
  height: clamp(360px, 55vh, 720px);
  overflow: hidden;
  background: #0b1220;
}
.hero-video-media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.03);
}
.hero-video-shade{
  position:absolute;
  inset:0;
  background:
    radial-gradient(80% 70% at 30% 35%, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.70) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-video-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
}
.hero-video-content{
  padding: 24px 0;
}
.hero-video-content h1{
  margin:0;
  max-width: 28ch;
  color:#fff;
  font-size: clamp(28px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 900;
  text-shadow: 
    0 2px 12px rgba(0,0,0,0.8),
    0 8px 32px rgba(0,0,0,0.6);
}

.hero-video-content h1 .accent-bright {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
}

/* Summary below hero video */
.hero-summary{
  padding: 26px 0 10px;
}
.hero-summary-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-summary-text{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 78ch;
}





/* Hero check list */
.hero-checks{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  max-width: 78ch;
}
.hero-checks li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(11,95,255,0.06), rgba(18,179,255,0.05));
  border: 1px solid rgba(11,95,255,0.14);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 800;
}
.hero-checks .check{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11,95,255,0.18), rgba(18,179,255,0.14));
  border: 1px solid rgba(11,95,255,0.25);
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 1px;
}

/* Subcopy under section headings */
.section-subcopy{
  margin-top: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sections */
.section{ padding: 64px 0; }
.section.alt{
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head h2{
  margin:0;
  font-size: 30px;
  letter-spacing: -0.3px;
}
.section-head p{
  margin-top: 10px;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.6;
}

/* Phase cards */
.phase-grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.phase-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
}
.phase-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #d6dde8;
}
.phase-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.phase-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,95,255,0.10);
  border: 1px solid rgba(11,95,255,0.18);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.price{
  font-weight: 900;
  color: var(--accent);
  font-size: 13px;
}
.phase-card h3{
  margin: 12px 0 8px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.phase-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bullets{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 8px 0; }

.card-actions{
  margin-top: auto;
  padding-top: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.linkish{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.callout{
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* Comparison table */
.table-wrap{
  margin-top: 18px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.compare-table{
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table thead th{
  text-align:left;
  padding: 14px 14px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.compare-table tbody th,
.compare-table tbody td{
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.45;
}
.compare-table tbody th{
  width: 24%;
  color: var(--text);
  font-weight: 900;
  background: #fbfcfe;
}
.compare-table tbody td{ color: var(--muted); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td{ border-bottom: none; }

.price-pill{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,95,255,0.18);
  background: rgba(11,95,255,0.08);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}
.fine-note{
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
}

/* Image Band */
.image-band{
  position: relative;
  width: 100%;
  margin: 0;
  background: #0b1220;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.image-band > img{
  width: 100%;
  height: clamp(260px, 38vw, 520px);
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.image-band-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 18, 32, 0.78) 0%,
    rgba(11, 18, 32, 0.38) 50%,
    rgba(11, 18, 32, 0.12) 100%
  );
  display: flex;
  align-items: flex-end;
}
.image-band-content{
  padding: 28px 0;
  color: #fff;
}
.image-band-eyebrow{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.image-band-content h2{
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.4px;
}
.image-band-content p{
  margin: 0;
  max-width: 70ch;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

/* Use cases */
.use-grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.use-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.use-card h4{ margin: 0 0 8px; font-size: 16px; }
.use-card p{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Contact */
.contact{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items:start;
}
.contact-left h2{ margin-top: 0; }
.contact-left p{ color: var(--muted); line-height: 1.6; max-width: 72ch; }
.contact-actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.footerline{
  margin-top: 18px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.form-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.form-title{ font-weight: 900; font-size: 16px; }
.form-desc{ color: var(--muted); font-size: 13px; margin-top: 6px; margin-bottom: 14px; line-height:1.5; }

label{ display:block; margin-bottom: 12px; }
label span{
  display:block;
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(11,95,255,0.55);
  box-shadow: 0 0 0 4px rgba(11,95,255,0.12);
}
textarea{ resize: vertical; }
.form-note{
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
}

/* Modal */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop.open{ display:flex; }

.modal{
  width: min(820px, 100%);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
}
.modal-kicker{
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 12px;
  text-transform: uppercase;
}
.modal-title{ margin: 4px 0 0; font-size: 18px; }
.modal-close{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 900;
}
.modal-close:hover{ box-shadow: var(--shadow-sm); }

.modal-body{
  padding: 16px;
  color: var(--text);
  line-height: 1.65;
}
.modal-body h4{ margin: 14px 0 8px; }
.modal-body ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.modal-body li{ margin: 8px 0; }
.modal-body .split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.modal-body .box{
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px;
}
.modal-body .box-title{
  font-weight: 900;
  margin:0 0 6px;
  color: var(--text);
}
.modal-body .box p{ margin:0; color: var(--muted); }

.modal-footer{
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px){
  .phase-grid{ grid-template-columns: 1fr; }
  .use-grid{ grid-template-columns: 1fr 1fr; }
  .contact{ grid-template-columns: 1fr; }

  .hero-video{
    height: clamp(320px, 50vh, 600px);
  }
  .hero-summary-inner{
    align-items:flex-start;
  }
  .image-band-overlay{
    background: linear-gradient(
      180deg,
      rgba(11, 18, 32, 0.10) 0%,
      rgba(11, 18, 32, 0.62) 55%,
      rgba(11, 18, 32, 0.82) 100%
    );
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .roi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px){
  .use-grid{ grid-template-columns: 1fr; }
  .modal-body .split{ grid-template-columns: 1fr; }
  
  .hero-benefits {
    grid-template-columns: 1fr;
  }
  
  .roi-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-video {
    height: clamp(280px, 45vh, 500px);
  }
  
  .hero-video-content h1 {
    font-size: clamp(24px, 8vw, 48px);
  }
  
  .section {
    padding: 48px 0;
  }
  
  .section-head h2 {
    font-size: 28px;
  }
}


/* Hero summary layout tweak when actions removed */
.hero-summary-inner{ justify-content:flex-start; }

/* Hero benefits (4 cards under summary) */
.hero-benefits{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.hero-benefit-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.hero-benefit-card h4{
  margin: 0 0 8px;
  font-size: 16px;
}
.hero-benefit-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px){
  .hero-benefits{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .hero-benefits{ grid-template-columns: 1fr; }
}

/* Full-width copy lines aligned to grids */
/* Hero wide copy */
.hero-wide-copy{
  margin: 14px 0 6px;
  width: 100%;
  max-width: 100%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}


/* Phase wide copy */
.phase-wide-copy{
  max-width: none !important;
  width: 100%;
}

/* ROI section */
.roi-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.roi-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.roi-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.roi-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.roi-cta{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 980px){
  .roi-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .roi-grid{ grid-template-columns: 1fr; }
}

/* Accent gradient text */
.accent{
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Modal character flow + controls (restored) */
.character-ui{
  margin-top: 10px;
}
.character-label{
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}
.character-select{
  width: 100%;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 700;
  outline: none;
}
.character-select:focus{
  border-color: rgba(11,95,255,0.35);
  box-shadow: 0 0 0 4px rgba(11,95,255,0.12);
}

.character-flow{
  margin-top: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  padding: 14px;
}
.flow-empty,
.character-empty{
  color: var(--muted);
  line-height: 1.6;
}

.flow-tree{
  display: grid;
  gap: 12px;
}
.flow-branch{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.flow-arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 900;
  padding: 0 6px;
}
.flow-arrow.down{
  padding: 6px 0;
}
.flow-node{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.flow-node-accent{
  background: linear-gradient(135deg, rgba(11,95,255,0.06), rgba(18,179,255,0.04));
  border-color: rgba(11,95,255,0.18);
}
.flow-label{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 900;
}
.flow-text{
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 700;
}

.flow-stack{
  display: grid;
  gap: 10px;
}
.flow-subhead{
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.flow-audio{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.audio-btn{
  border: 1px solid rgba(11,95,255,0.22);
  background: linear-gradient(135deg, rgba(11,95,255,0.10), rgba(18,179,255,0.06));
  color: var(--text);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}
.audio-btn:hover{
  border-color: rgba(11,95,255,0.30);
}
.audio-btn.is-playing{
  box-shadow: 0 0 0 4px rgba(11,95,255,0.10);
}

@media (max-width: 740px){
  .flow-branch{
    grid-template-columns: 1fr;
  }
  .flow-arrow{
    display: none;
  }
}

/* Modal footer button alignment */
.modal-footer{
  gap: 12px;
}
.modal-footer .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* React modal note + pricing line */
.modal-note{
  margin: 10px 0 12px;
  color: inherit;        /* match surrounding paragraph */
  font: inherit;         /* match font-size + weight */
  line-height: inherit;  /* match line height */
}
.price-line{
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.price-strong{
  font-weight: 900;
  font-size: 18px;
}
.price-note{
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Modal scrolling + layout (fix long decision trees) */
.modal-backdrop.open{
  overflow: hidden;
}
.modal-card{
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}
.modal-header{
  flex: 0 0 auto;
}
.modal-body{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px; /* room for scrollbar */
}
.modal-footer{
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin: 0 -24px -24px;   /* match typical modal padding */
  padding: 14px 24px;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.modal-header{
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

/* === Modal scroll/lock (override) === */
html.modal-open,
body.modal-open{
  overflow: hidden !important;
}

/* Overlay captures scroll */
.modal-backdrop{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-backdrop.open{
  display: flex !important;
}

/* Modal container */
.modal{
  width: min(980px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

/* Keep header/footer visible */
.modal-header{
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
.modal-body{
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 10px;
}
.modal-footer{
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--surface);
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 51;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  #ctaTop {
    display: none;
  }
  
  .nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 40;
  }
  
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav a {
    font-size: 16px;
    padding: 8px 0;
    width: 100%;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* ========== IMPROVED NAV LINKS ========== */
.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 980px) {
  .nav a::after {
    display: none;
  }
}

/* ========== IMPROVED CARD HOVERS ========== */
.phase-card,
.roi-card,
.use-card,
.hero-benefit-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-card:hover,
.roi-card:hover,
.use-card:hover,
.hero-benefit-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.15);
}

/* ========== TABLE SCROLL HINT ========== */
@media (max-width: 980px) {
  .table-wrap::after {
    content: '← Scroll to see more →';
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
  }
}

/* ========== PULSE ANIMATION FOR CTAS ========== */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  }
  50% {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  }
}

#ctaTop,
#ctaContact {
  animation: pulse 2s ease-in-out infinite;
}

/* ========== SECTION FADE-IN ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-video-content h1 {
  animation: fadeInUp 0.8s ease-out;
}

/* ========== FORM MESSAGE STYLING ========== */
#formMessage {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

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

/* Hide honeypot field */
.hidden {
  display: none !important;
}

/* ========== BRIGHT ACCENT FOR DARK BACKGROUNDS ========== */
.accent-bright {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* ========== CONTACT INFO STYLING ========== */
.contact-info {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-info-item {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-info-item strong {
  font-weight: 800;
  color: var(--text);
}

.contact-info-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* ========== NAVIGATION DROPDOWN ========== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--text);
}

.nav-dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--accent);
}

/* Mobile dropdown styles */
@media (max-width: 980px) {
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    padding: 8px 0;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: var(--surface-2);
    border: none;
    box-shadow: none;
    margin-top: 8px;
    padding: 0;
    display: none;
  }

  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown-item {
    padding: 12px 16px;
    margin: 4px 0;
  }
}
