/* ---------- WorkModeIQ Design System ---------- */

:root {
  --color-bg: #f9fafb;
  --color-text: #1f2937;
  --color-accent: #295A75;   /* Slate blue */
  --color-secondary: #4a6c6f; /* Muted greenish blue */
  --color-dark: #0d1b1e;
  --color-light: #e8edf0;
  --font-head: "Merriweather", "Georgia", serif;
  --font-body: "Roboto", "Helvetica Neue", "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 38px; /* ~ ribbon (38) + header (~70) + a bit of buffer */
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-accent);
  margin-top: 0;
}

/* Buttons */
.button-cta, .btn-outline {
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.button-cta {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

.button-cta:hover {
  background: #1f4458;
}

.btn-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Links */
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Section spacing */
.section { padding: 60px 20px; }
.container { max-width: 1200px; margin: 0 auto; }


/* ---------- HERO (Left aligned with reduced overlay darkness) ---------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 20, 28, 0.65) 0%,     /* reduced from .85 */
    rgba(8, 20, 28, 0.45) 45%,    /* softer mid fade */
    rgba(8, 20, 28, 0.15) 100%
  );
  z-index: 0;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-inner {
  text-align: left;
  max-width: 1100px;              /* aligns with body content width */
  margin: 0 auto;
  padding: 100px 40px 100px 40px; /* same horizontal rhythm as main content */
}
.hero-logo {
  width: 230px;
  max-width: 280px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero .tagline {
  font-size: 1.15rem;
  color: #e5eff4;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 580px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button-cta {
  background: #2f7491;
  color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.button-cta:hover {
  background: #3d8eae;
}

/* Outline (Log In) button */
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Mobile adjustments ---------- */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    justify-content: center;
  }
  .hero-inner {
    text-align: center;
    padding: 80px 20px;
    max-width: 90%;
  }
  .hero-logo {
    margin: 0 auto 22px;
  }
  .cta-row {
    justify-content: center;
  }
}

.hero {
  position: relative;
  /*min-height: 75vh;  smaller height */
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 28, 0.25);
  z-index: 0;
}

/* ---- NAV (top right) ---- */
.hero-nav {
  position: absolute;
  top: 24px;
  right: 48px;
  z-index: 2;
}
.hero-nav nav {
  display: flex;
  gap: 24px;
}
.hero-nav nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  transition: color .2s ease;
}
.hero-nav nav a:hover { color: #7fc3e0; }

/* ---- MAIN HERO CONTENT ---- */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: 8%;
  text-align: left;
}
.hero-logo {
  width: 280px;
  height: auto;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  color: #dbe5ec;
  margin-bottom: 1.5rem;
}

/* ---- BUTTONS ---- */
.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.button-cta {
  background: #3c90b9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.button-cta:hover { background: #4ab0d8; }
.btn-outline {
  border: 2px solid #fff;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 20px 20px 60px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-nav {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
    align-self: flex-end;
  }
  .hero-logo {
    width: 200px;
  }
  .hero-inner {
    margin: 0;
    text-align: left;
  }
}

/* --- Section: About (image left, copy right) --- */
.about-split{
  background: linear-gradient(180deg, #f5f9fb 0%, #ffffff 60%);
  padding: 64px 0;
}
.about-grid{
  display: grid;
  grid-template-columns: 1.05fr 1.2fr; /* image | text */
  gap: 40px;
  /*align-items: center;*/
  align-items: start;
}
.about-media{
  position: relative;
}
.about-media img{
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(9, 30, 45, .18);
  /* soft fade on right edge so it blends into background */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 78%, rgba(0,0,0,.0) 100%);
          mask-image: linear-gradient(to right, rgba(0,0,0,1) 78%, rgba(0,0,0,.0) 100%);
}
.about-copy .eyebrow{
  color: #3c90b9;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: none;
  text-transform: uppercase;
}

.container .eyebrow{
  color: #3c90b9;
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: none;
  text-transform: uppercase;
}


/*.about-copy h2.eyebrow {
  color: #3c90b9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}*/

.about-head{
  margin: 0 0 12px;
  color: #295A75; /* slate blue heading tone */
  font-size: 2.1rem;
  line-height: 1.25;
}
.about-copy p{
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1f2a33;
  margin: 12px 0;
}
.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.button-ghost{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #295A75;
  color: #295A75;
  text-decoration: none;
  font-weight: 700;
}
.button-ghost:hover{ background: #295A75; color: #fff; }

/* Responsive */
@media (max-width: 980px){
  .about-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .about-media img{
    max-width: 100%;
    -webkit-mask-image: none; mask-image: none; /* keep full image on mobile */
  }
  .about-head{ font-size: 1.85rem; }
}


.about-split {
  padding: 80px 5px;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-media {
  flex: 1 1 45%;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.about-copy {
  flex: 1 1 50%;
}

.about-head {
  font-size: 1.8rem;
  color: #0c1d26;
  margin-bottom: 1rem;
}

.about-copy p {
  color: #30444f;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Engine Panel */
.engine-box {
  display: none;
  margin: 0 auto 0;
  background: linear-gradient(135deg, #13242c, #1d3a46);
  color: #fff;
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 100%;
  width: calc(100% - 60px);
  overflow: hidden;
}

.engine-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.engine-graphic {
  flex: 1 1 280px;
  text-align: center;
}

.engine-graphic img {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.engine-text {
  flex: 2 1 400px;
}

.engine-text h3 {
  color: #7ed3e6;
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.engine-text p {
  line-height: 1.7;
  margin-bottom: 14px;
  color: #d8e6ec;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #9bc4d6;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    flex-direction: column;
  }

  .about-media,
  .about-copy {
    flex: 1 1 100%;
  }

  .engine-inner {
    flex-direction: column;
  }

  .engine-box {
    padding: 30px 20px;
    width: calc(100% - 40px);
  }

  .engine-graphic img {
    width: 80%;
  }
}

.security {
  background:#e9f1f4;
  color:#1f2d38;
  text-align:center;
}
.security-head {
  color:#1f4458;
  font-size:1.9rem;
  margin-bottom:.5em;
  text-align:center;
}
.security-intro {
  text-align:center;
  max-width:780px;
  margin:0 auto 2.5em;
  color:#3b4e5b;
  font-size:1.1rem;
  line-height:1.7;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 1.5rem;
}

.security-item {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px 30px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  border-top: 4px solid #295A75;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.security-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f4458;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.security-item h4 span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e9f1f4;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #295A75;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.05);
}

.security-item p {
  font-size: 0.97rem;
  color: #3a4953;
  line-height: 1.6;
  margin: 0;
}

.security .button-cta {
  font-weight: 600;
  padding: 12px 22px;
}

.security .btn-outline {
  font-weight: 600;
  border-color: #295A75;
  color: #295A75;
}

/* Base style alignment for <a> and <button> */
.button-ghost,
a.button-ghost {
  display: inline-block;
  background: transparent;
  color: #1f4458;
  border: 2px solid #1f4458;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.3;
}

.button-ghost:hover,
a.button-ghost:hover {
  background: #1f4458;
  color: #fff;
  border-color: #1f4458;
}

/* Remove native button inconsistencies */
.button-ghost {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #1f4458;
  background: transparent;
}


/* ============ INTELLIGENCE SUITE (fixed) ============ */
.suite {
  background: #f6f9fb;
  padding: 48px 0;
}

.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}



/* header (logo + one-line blurb) */
.suite-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suite-logo img {
  display: block;
  height: 56px;              /* constrain logo height */
  max-width: 100%;
  object-fit: contain;
}
.suite-tagline {
  color: #cfe0ea;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* collapsible panel (closed by default) */
.suite-panel {
  margin: 14px 0 0;
  background: #fff;
  color: #2a3947;
  border-left: 1px solid #2d3b4d;  /* true 1px borders */
  border-right: 1px solid #2d3b4d;
  border-radius: 8px;
  padding: 0 18px;                  /* slim padding */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}

/* when open */
.suite-card.open .suite-panel {
  max-height: 700px;                /* enough for the copy */
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* collapsible panel (closed by default) */
.suite-panel {
  margin: 14px 0 0;
  background: #fff;
  color: #2a3947;
  border-left: 1px solid #2d3b4d;   /* crisp 1px side borders */
  border-right: 1px solid #2d3b4d;
  border-radius: 0;                 /* remove rounded corners completely */
  padding: 0 18px;                  /* no padding until opened */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
}

/* when open */
.suite-card.open .suite-panel {
  max-height: 700px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
}
.suite-panel p { margin: 8px 0; text-align: left; }

/* buttons row */
.suite-buttons {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* unify button styles (pale blue variant) */
.button-cta--pale {
  background: #b7def1;
  color: #1f2a36;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.button-cta--pale:hover { background: #b9d8f3; }

.button-ghost--outline {
  background: transparent;
  color: #e6f0f7;
  border: 2px solid #8fb8d4;
  padding: 9px 15px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.button-ghost--outline:hover {
  background: rgba(255,255,255,.06);
}

/* keep mobile tidy */
@media (max-width: 520px) {
  .suite-logo img { height: 48px; }
}

/*new card styles*/
/* Base card */
.suite-card {
  background: #2d3b4d;
  color: #ecf0f1;
  border-radius: 12px;
  padding: 22px;                     /* keep outer padding */
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .25s ease;
  position: relative;
}
/* .suite-card:hover { transform: translateY(-3px); }*/

/* Collapsible white panel */
.suite-panel {
  background: #fff;
  color: #2a3947;
  border-left: 1px solid #2d3b4d;
  border-right: 1px solid #2d3b4d;
  border-radius: 0;                 /* perfectly square edges */
  padding: 0 18px;                  /* slim horizontal padding only */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
  margin: 16px -22px 0;             /* key fix → aligns panel flush with card sides */
}

/* When open */
.suite-card.open .suite-panel {
  max-height: 700px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Optional subtle bottom separation shadow 
.suite-card.open .suite-panel::after {
  content: "";
  display: block;
  height: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08); 
}*/

/* top banner inside white panels */
.suite-banner {
  width: 100%;
  height: auto;
  border-top: 1px solid #2d3b4d;
  border-bottom: 1px solid #2d3b4d;
  margin: -1px 0 12px 0;     /* visually aligns the border flush with sides */
  display: block;
  border-radius: 0;          /* ensure square edges */
}

/* optional: subtle fade into white for smoother integration */
.suite-banner {
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9) 90%, rgba(0,0,0,0));
}
/* ============ FEATURED INSIGHTS ============ */
.home-insights {
  background: #f6f9fb;
  padding: 24px 0 10px;
  border-top: 1px solid #d9e4ed;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #183446;
  margin-bottom: 28px;
  text-align: center;
}

/* Grid */
.fi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Cards */
.fi-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: #1a2b3b;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.fi-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.fi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.fi-card:hover .fi-thumb img {
  transform: scale(1.05);
}

/* Content */
.fi-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.fi-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #183446;
  margin-bottom: 6px;
  line-height: 1.4;
}
.fi-date {
  color: #7b8a97;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Empty message */
.fi-empty {
  text-align: center;
  color: #6b7280;
  margin: 20px 0 40px;
}

/* Button area */
.fi-actions {
  text-align: center;
  margin-top: 36px;
}
.fi-actions .button-cta--pale {
/*  display: inline-block;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;*/
  background: #3c90b9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ============ ACCESS FORM SECTION ============ */
.access-section {
  background: #1f2a36; /* dark navy */
  color: #e8edf1;
  padding: 80px 0 100px;
  border-top: 1px solid #3b4b5c;
}

.access-section .eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: #cfe4f8;
  text-align: center;
  letter-spacing: 0.05em;
}

.access-head {
  font-size: 1.75rem;
  color: #ffffff;
  text-align: center;
  margin: 10px 0 18px;
}

.access-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #c5d1dc;
  line-height: 1.6;
}

/* Form grid */
.access-form {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cfe0ea;
}
.form-group input {
  padding: 10px 12px;
  border: 1px solid #445466;
  border-radius: 8px;
  background: #2b3845;
  color: #e8edf1;
}
.form-group input:focus {
  outline: none;
  border-color: #76b5f5;
}

/* message box */
.form-message {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}
.form-message label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cfe0ea;
  margin-bottom: 6px;
}
.form-message textarea {
  border: 1px solid #445466;
  border-radius: 8px;
  background: #2b3845;
  color: #e8edf1;
  padding: 10px 12px;
  resize: vertical;
}
.form-message textarea:focus {
  outline: none;
  border-color: #76b5f5;
}

/* button */
.form-actions {
  text-align: center;
  margin-top: 28px;
}
.form-actions .button-cta {
  background: #3c90b9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-actions .button-cta:hover {
  background: #4ab0d8;
}


/* error + success states */
.error {
  color: #ff8484;
  font-size: 0.8rem;
  margin-top: 3px;
  display: none;
}
.form-success {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  color: #e8edf1;
}
.spam-note {
  font-size: 0.85rem;
  text-align: center;
  color: #9fb2c3;
  margin-top: 10px;
}

/* --- Calendly Modal --- */
.calendly-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.5);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  z-index:9999;
}
.calendly-modal.open {
  opacity:1;
  pointer-events:all;
}
.calendly-modal-content {
  background:#cfe4f8;
  color:#e6eef5;
  border-radius:12px;
  width:90%;
  max-width:860px;
  padding:30px 20px 25px;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  transform:translateY(40px);
  transition:transform .3s ease;
}
.calendly-modal.open .calendly-modal-content {
  transform:translateY(0);
}
.calendly-backdrop {
  position:absolute;
  inset:0;
}
.close-modal {
  position:absolute;
  top:15px;
  right:20px;
  background:none;
  border:none;
  color:#9fbad5;
  font-size:1.8rem;
  cursor:pointer;
}
.close-modal:hover { color:#0e1723; }
.modal-head {
  font-size:1.4rem;
  margin-top:0;
}
.modal-sub {
  font-size:1rem;
  color:#0e1723;
  margin:0;
}

/* --- Footer --- */
.footer-dark {
  background:#0e1723;
  color:#b9c6d4;
  text-align:center;
  padding:40px 0;
}
.footer-sep {
  border:none;
  border-top:1px solid rgba(255,255,255,0.1);
  margin-bottom:25px;
}
.footer-nav a {
  color:#b9c6d4;
  margin:0 12px;
  text-decoration:none;
  font-weight:500;
}
.footer-nav a:hover { color:#fff; }
.footer-copy { font-size:.9rem; margin-bottom:8px; }

.g-recaptcha {
  transform: scale(0.92);
  transform-origin: left;
  margin-top: 10px;
}

.call-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fafc;
  border: 1px solid #d4e3f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-top: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.call-invite h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: #1f2a36;
}

.call-invite p {
  margin: 0;
  font-size: 0.95rem;
  color: #425466;
  line-height: 1.4;
}

.call-invite-action {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .call-invite {
    flex-direction: column;
    text-align: center;
  }
  .call-invite-action {
    width: 100%;
  }
  .call-invite-action button {
    width: 100%;
  }
}

.access-call {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.call-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  width: 100%;
  max-width: 760px; /* matches form width */
  color: #d0d8e0;
}

.call-box-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.call-box-left i {
  background: rgba(255, 255, 255, 0.08);
  color: #8ecaff;
  border-radius: 50%;
  padding: 12px;
  font-size: 1rem;
  flex-shrink: 0;
}

.call-box-left p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

.call-box-right {
  flex-shrink: 0;
}

.button-blue {
  background: #3c90b9;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border:0;
  transition: background 0.2s ease;
}

.button-blue:hover {
  background: #4ab0d8;
}

@media (max-width: 640px) {
  .call-box {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .call-box-left {
    justify-content: center;
  }

  .button-blue {
    width: 100%;
  }
}

.call-success {
  background: rgba(77, 163, 255, 0.08);
  border: 1px solid rgba(77, 163, 255, 0.25);
  color: #eaf3ff;
  padding: 18px 22px;
  border-radius: 10px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  max-width: 700px;
  margin: 0 auto;
}
.call-success i {
  color: #4da3ff;
  font-size: 1.2rem;
  margin-right: 8px;
}
.call-success strong {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}



/* --- Sticky header base --- */
#mainHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  transform: translateY(-100%);
  background: rgba(4, 18, 40, 0.9);
  backdrop-filter: blur(8px);
  transition: transform 0.4s ease, background 0.3s ease;
  z-index: 9999;
}
#mainHeader.visible {
  transform: translateY(0);
}

#mainHeader .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 1.5rem;
}

.nav-logo img {
  height: 30px;
  transition: opacity 0.3s;
  margin-top:.75rem;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #8ec5ff;
}

/* --- Mobile nav --- */
.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
}


.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 12, 28, 0.96);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.mobile-menu.open {
  display: flex;
}
.mobile-inner {
  text-align: center;
}
.mobile-logo {
  width: 160px;
  margin-bottom: 2rem;
}
.mobile-inner a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 0.8rem 0;
  font-size: 1.2rem;
}
.close-mobile {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}



.nav-links a.active {
  color: #9cd3ff;
  border-bottom: 2px solid #9cd3ff;
  padding-bottom: 2px;
}


/* --- Responsive --- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}


/* ============ ENGINE BOX ANIMATION ============ */
#engineBox {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s ease, opacity .4s ease;
  margin: 0 !important;
  padding: 0 !important;
}

#engineBox.open {
  max-height: 1200px;           /* adjust as needed */
  opacity: 1;
  margin-top: 1.25rem !important;  /* space only when open */
  padding: 1rem 0 !important;
}

/* --- Lead Ribbon --- */
.lead-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffec80;
  color: #1f4458;
  font-weight: 500;
  text-align: center;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 900;
}

/* --- Header directly under ribbon --- */
#mainHeader {
  position: fixed;
  top: 38px; /* height of ribbon */
  left: 0;
  width: 100%;
  z-index: 850;
  transition: all 0.3s ease;
}

.ribbon-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.ribbon-text {
  font-size: 0.95rem;
  line-height: 1.3;
}

.ribbon-btn {
  background-color: #1f6f8b;
  color: #fff;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ribbon-btn:hover {
  background-color: #174f63;
}

/* --- Responsive adjustments --- */
@media (max-width: 1024px) {
  .ribbon-text {
    font-size: 0.9rem;
  }
  .ribbon-btn {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .lead-ribbon {
    padding: 5px 8px;
  }
  .ribbon-inner {
    flex-direction: column;
    gap: 4px;
  }

}

@media (max-width: 480px) {
  .ribbon-text {
    font-size: 0.85rem;
  }
  .ribbon-btn {
    padding: 3px 8px;
  }
  body {
    padding-top: 70px;
  }
}


/* Subscribe Modal — isolated */
.subscribe-modal {
  display:none;
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  z-index:100000;
}
.subscribe-backdrop {
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.65);
}
.subscribe-modal-content {
  position:relative;
  background:#fff;
  color:#1f4458;
  width:90%;
  max-width:520px;
  margin:70px auto;
  padding:32px 36px;
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {opacity:0; transform:translateY(-10px);}
  to {opacity:1; transform:translateY(0);}
}
.close-modal {
  position:absolute;
  right:16px;
  top:10px;
  background:none;
  border:none;
  font-size:1.6rem;
  color:#666;
  cursor:pointer;
}



.subscribe-header h3 {
  margin:0 0 4px 0;
  font-size:1.6rem;
  color:#1f4458;
  font-weight:700;
}
.subhead {
  color:#0a6a90;
  font-weight:600;
  margin-bottom:10px;
  font-size:1rem;
}
.intro-text {
  color:#4b5d69;
  margin-bottom:18px;
  font-size:0.95rem;
  line-height:1.45;
}
.subscribe-form label {
  display:block;
  margin-bottom:4px;
  font-weight:600;
  font-size:0.9rem;
}
.subscribe-form input[type=text],
.subscribe-form input[type=email] {
  width:100%;
  padding:10px 12px;
  border-radius:6px;
  border:1px solid #ccd6dd;
  background:#f5f8fa;
  color:#1f4458;
  font-size:0.95rem;
}
.optin-group {
  margin-top:10px;
  font-size:0.9rem;
}
.form-actions {
  text-align:center;
  margin-top:18px;
}
.button-cta {
  background:#1f6f8b;
  color:#fff;
  border:none;
  padding:10px 22px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  transition:background 0.2s;
}
.button-cta:hover {
  background:#2284a4;
}
.form-success {
  text-align:center;
  padding:20px;
  color:#1f4458;
}
.form-success a {
  color:#1f6f8b;
  font-weight:600;
  text-decoration:underline;
}


.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(31,111,139,0.96);
  color: #fff;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.25);
}
.cookie-banner a { color: #f9e679; text-decoration: underline; }
.cookie-actions {
  margin-top: 8px;
}
.cookie-actions button {
  background: #f9e679;
  color: #1f6f8b;
  border: none;
  margin: 4px 6px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-actions .button-ghost--small {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.cookie-settings {
  margin-top: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  display: inline-block;
  color: #fff;
}
.cookie-settings h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 700;
  color: #f9e679;
  text-align: center;
}
.cookie-settings label {
  display: block;
  margin: 6px 0;
}
.cookie-btn-row {
  text-align: center;
  margin-top: 8px;
}
.button-blue--small {
  background: #1f6f8b;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}
.button-ghost--small {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 6px 14px;
  border-radius: 4px;
}
.button-blue--small:hover {
  background: #2380a3;
}

.lead-ribbon button {
  background: #3c90b9;
  color: #fff;
  border: none;
  padding: 6px 14px;
  margin-left: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.lead-ribbon button:hover {
  background: #4ab0d8;
}


/* new modal styles */
/* ----- FIX: Force modal visibility and stacking above header/ribbon ----- */
.subscribe-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;           /* higher than header/ribbon (9999) */
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.subscribe-modal.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.subscribe-modal-content {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
  width: 90%;
  max-width: 520px;
  padding: 32px 36px;
  position: relative;
  z-index: 100001;
}


/* === Subscribe Modal Polished Styling === */

.subscribe-modal-content {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.45);
  width: 90%;
  max-width: 520px;
  overflow: hidden; /* ensures the yellow banner stays flush at the top */
  padding: 0;
  position: relative;
  z-index: 100001;
  font-family: "Raleway", sans-serif;
}

/* Yellow banner across the top */
.subscribe-header {
  background-color: #ffe66a; /* same as your ribbon yellow */
  text-align: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.subscribe-header h3 {
  color: #0c5c78; /* your WorkModeIQ blue */
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.subscribe-header p.subhead {
  font-size: 0.95rem;
  color: #0d3040;
  margin-top: 4px;
  margin-bottom: 8px;
}

.subscribe-header p.intro-text {
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 12px 28px;
  margin: 0;
}

/* Form styling */
.subscribe-form {
  padding: 24px 32px 32px;
}

.subscribe-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #1c3d50;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  background: #f9fafb;
  margin-bottom: 12px;
}

/* Opt-in checkboxes */
.optin-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #2a2a2a;
  margin: 3px 0;
}

/* Action button */
.form-actions {
  text-align: center;
  margin-top: 18px;
}

.button-cta {
  background-color: #0c5c78;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: center;
}

.button-cta:hover {
  background-color: #094a61;
}

/* Success message */
.form-success {
  padding: 30px;
  text-align: center;
  color: #0c5c78;
  background: #f7fdfc;
  border-top: 1px solid #e2f2f0;
}

.subscribe-banner {
  background: #f8d74a; /* yellow ribbon */
  color: #0c5c78;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  margin-bottom: 10px;
  border-radius: 6px 6px 0 0;
}

.subscribe-modal.open {
  display: flex;
  justify-content: center;
  align-items: center;
}

.subscribe-modal .subscribe-modal-content {
  position: relative;
  max-width: 500px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  overflow: hidden;
}

.subscribe-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #333;
  cursor: pointer;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: var(--ribbon-height, 50px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 27, 42, 0.98); /* solid/near-opaque dark */
  backdrop-filter: blur(6px);
  z-index: 2000;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6rem;
  height: 100%;
  overflow-y: auto;
  text-align: center;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.4rem;
  margin: 1rem 0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.mobile-menu a:hover {
  color: #5ac4e0;
}

.close-mobile {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
}

/* Ensure logo shows nicely */
.mobile-logo {
  height: 36px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* For dynamic ribbon height adjustments */
@media (max-width: 768px) {
  :root {
    --ribbon-height: 64px;
  }
}

@media (max-width: 768px) {
   .engine-box {
       padding: 20px;
       width: calc(100% - 15px);
   }
    .engine-inner {
      gap: 40px;
      padding: 0 10px;
    }
    
    .engine-graphic {
      flex: 1 1 280px;
      text-align: right;
      margin-left:8%;
    }
}

@media (max-width: 624px) {
  .hero-nav { display: none !important; }
}


/* new header for mobile */

/* ===== MOBILE HEADER STACKING ON INDEX ===== */
@media (max-width: 624px) {
  /* Make ribbon static so both scroll together */
  .lead-ribbon {
    position: static;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  /* Header directly under ribbon */
  #mainHeader {
    position: static !important;
    background: #0c1b2a;
    box-shadow: none;
    z-index: 999;
  }

  /* Hero starts below header + ribbon naturally */
  .hero {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  /* Hide hero-nav bar (duplicate links) */
  .hero-nav {
    display: none !important;
  }

  /* Fix mobile nav overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 27, 42, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s ease-in-out;
    z-index: 3000;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
  }

  /* Ensure content has breathing room on mobile */
  main, section.hero, .home-insights, .section {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* === FIX: Mobile ribbon/header overlap & double spacing === */
@media (max-width: 768px) {

  /* keep ribbon visible and on top */
  .lead-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
  }

  /* header sits directly below the ribbon */
  #mainHeader {
    position: fixed;
    top: 40px; /* height of ribbon */
    left: 0;
    right: 0;
    z-index: 2500;
    background: #0c1b2a;
    box-shadow: none;
  }

  /* remove global scroll-padding or margin shifts */
  body, main, .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* push page content down below ribbon + header */
  body::before {
    content: "";
    display: block;
    height: 100px; /* ribbon (≈40px) + header (≈60px) */
  }

  /* hide hero-nav (duplicate) */
  .hero-nav { display: none !important; }

  /* fix mobile menu overlay */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12,27,42,0.97);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s ease-in-out;
    z-index: 4000;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobi-ribbon,
.mobi-header {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ==========================================================
   CONTACT SUCCESS / THANK-YOU
   ========================================================== */
.thankyou-wrap {
  background: #0f1b22;
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3);
  margin-top: 2rem;
}

.thankyou-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.thankyou-title {
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.thankyou-text {
  color: #d4e4ef;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.thankyou-btn {
  display: inline-block;
  background: #1cb0ff;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  margin: 0.25rem;
}

.thankyou-btn:hover {
  background: #1491d3;
}

.thankyou-btn.alt {
  background: transparent;
  border: 1px solid #1cb0ff;
  color: #1cb0ff;
}

.thankyou-btn.alt:hover {
  background: #1cb0ff;
  color: #fff;
}

#contact-success {
 max-width:760px;
 margin: 40px auto;
}

/* ==========================================================
   CONTACT SUCCESS ANIMATION ADD-ON
   ========================================================== */
@keyframes thankyouFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#contact-success {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#contact-success.show {
  opacity: 1;
  transform: translateY(0);
  animation: thankyouFade 0.9s ease-out forwards;
}

