/* ============================================================
   IBM Plex Sans — self-hosted variable font.

   Previously loaded from fonts.googleapis.com, which put three round trips on
   the critical path (DNS/TLS to fonts.googleapis.com → the CSS → DNS/TLS to
   fonts.gstatic.com → the woff2). Measured result on the homepage: the font
   file was not even *requested* until 1,725ms, and because the LCP element is
   a text paragraph, LCP could not settle until it arrived — 2,516ms of
   "element render delay" and a 5.2s mobile LCP. css/nvoice-demo.css made it
   worse still with an @import, which cannot be discovered until that
   stylesheet has itself downloaded and parsed.

   Self-hosting collapses that to one same-origin request, preloaded from the
   document head so it starts at ~170ms alongside the CSS.

   This is the *variable* font — one file whose `wght` axis runs 100–700
   (confirmed from the fvar table, not from the Google Fonts CSS, which
   understates it as 400–700 because of the range the URL asked for). The old
   link requested only `400,500,700` while the CSS uses `font-weight: 600` in 40
   places — every one of those was being synthesised by the browser. The axis
   covers 600 and the 2 uses of 300 properly now. `font-weight: 800` (1 use)
   still clamps to 700, exactly as it already did.

   Licence: SIL Open Font Licence 1.1 — redistribution and self-hosting are
   expressly permitted. See fonts/OFL.txt.
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-v23-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin-Extended. English-AU copy never reaches into this range, so the
   unicode-range means it is declared but never actually fetched — it is here
   so a stray accented name in a testimonial or blog post still renders in the
   right typeface rather than falling back. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var-v23-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Metric-matched fallback for IBM Plex Sans.
   IBM Plex Sans loads with display=swap, so before it arrives the browser
   paints a fallback and then reflows on swap (FOUT) — the measured cause of
   the blog template's CLS (0.406 desktop / 0.15 mobile). This @font-face wraps
   the system Arial in override metrics computed from IBM Plex Sans's own font
   tables (unitsPerEm 1000, ascent 1025, descent 275, x-height 516) so the
   fallback occupies a near-identical line box and the swap barely shifts text.
   Pure static CSS — CSP-safe, no script. See audit finding CLS-2.
   Kept after self-hosting: the swap window is far shorter now, but a cold-cache
   visitor still gets one, and this is what holds the residual CLS down.
   ============================================================ */
@font-face {
  font-family: 'IBM Plex Sans Fallback';
  src: local('Arial');
  size-adjust: 99.51%;
  ascent-override: 103.01%;
  descent-override: 27.64%;
  line-gap-override: 0%;
}

:root {
  /* Main colors */
  --primary-color: #38bfa1;
  --primary-accent-color: #22d3ee;
  --primary-accent-color-rgb: 34, 211, 238;
  --primary-accent-hover-color: #42e0f0;

  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-light-gray: #e0e0e0; /* For slightly brighter text like H2s */
  --text-medium-gray: #cccccc; /* For readable paragraph text */
  --text-dark-gray: #b0b0b0; /* For less prominent paragraph text */
  --text-color-dark: #051122;

  /* Background colors */
  --chat-bg-color: rgba(255, 255, 255, 0.95);
  --subtle-bg-light: rgba(255, 255, 255, 0.03);
  --subtle-border-light: rgba(255, 255, 255, 0.08);
  --subtle-separator-light: rgba(255, 255, 255, 0.1);
  
  /* SEO variables */
  --footer-text: #acacac;
  --footer-heading: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.1);

  /* Typography — 'IBM Plex Sans Fallback' sits between the web font and the
     generic so the metric-matched Arial is used during load, minimising the
     swap reflow that drove blog-template CLS. */
  --font-display: 'IBM Plex Sans', 'IBM Plex Sans Fallback', sans-serif;
  --font-body: 'IBM Plex Sans', 'IBM Plex Sans Fallback', sans-serif;

  /* Layout — the header is `position: fixed`, so <main> has to reserve its
     height. Keeping that as a hand-tuned constant is what produced ~130px of
     dead space under the header: main's 120px padding, the first card's 20px
     margin, its 40px padding and .hero-section's 30px margin all stacked,
     and none of them shrank when the header did at the 768/480 breakpoints.
     Derive it instead: --header-h is the real header height at this
     breakpoint, --header-gap is the visible breathing room below it. */
  --header-h: 80px;
  --header-gap: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary); /* Changed to use variable */
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
  background: #051122;
  background:
    radial-gradient(ellipse at top right, rgba(var(--primary-accent-color-rgb), 0.15) 0%, rgba(5, 17, 34, 0) 60%),
    radial-gradient(ellipse at bottom left, rgba(var(--primary-accent-color-rgb), 0.1) 5%, rgba(5, 17, 34, 0) 60%),
    #051122;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY — Display Font for Headings
   ============================================ */
h1, h2 {
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-body);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS — disabled, content always visible
   ============================================ */
.reveal,
.reveal.visible,
.reveal.active {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3,
.reveal-delay-4 { transition-delay: 0s; }

/* ============================================
   HEADER CTA BUTTON
   ============================================ */
.header-cta {
  padding: 8px 18px !important;
  font-size: 0.88rem !important;
  white-space: nowrap;
}

.header-cta:hover {
  transform: none !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0D1323; /* Could be a variable if used elsewhere */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-accent-color), var(--primary-color));
  box-shadow: 0 0 10px rgba(var(--primary-accent-color-rgb), 0.53), 0 0 20px rgba(56, 191, 161, 0.53); /* Adjusted alpha based on original */
}

header .container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(var(--primary-accent-color-rgb), 0.53));
}

.logo-text {
  font-family: 'IBM Plex Sans', 'IBM Plex Sans Fallback', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.desktop-nav li {
  margin-left: 30px;
}

.desktop-nav li:first-child {
  margin-left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

main {
  padding-top: calc(var(--header-h) + var(--header-gap));
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 0 0 8px rgba(var(--primary-accent-color-rgb), 0.3);
}

.hero-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
}

/* The 30px above separates the hero from whatever precedes it inside the card.
   When the hero *is* the first thing in the card there is nothing to separate
   it from, and the margin just pushes the fold down. */
.hero-section:first-child {
  margin-top: 0;
}

.hero-content {
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, rgba(56, 191, 161, 0.12), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(56, 191, 161, 0.35);
  border-radius: 100px;
  padding: 7px 16px;
  margin-bottom: 22px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.hero-eyebrow-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.hero-eyebrow-sep {
  color: rgba(56, 191, 161, 0.6);
  font-weight: 700;
}

/* Above-the-fold price statement. Pricing previously appeared on the homepage
   only inside a JSON-LD block with no matching visible content — this is the
   visible counterpart, so the price a crawler reads is the price a buyer sees. */
.hero-price {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 3px solid var(--primary-accent-color);
  background: rgba(56, 191, 161, 0.07);
  border-radius: 0 8px 8px 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-price a {
  color: var(--primary-accent-color);
  white-space: nowrap;
}

.hero-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: var(--text-primary); /* Using white for hero title, as per original */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-secondary); /* Adding for consistency */
}

.animation-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: rgba(13, 19, 35, 0.4);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13, 19, 35, 0.2);
  backdrop-filter: blur(8px);
  padding: 20px;
  border: 1px solid rgba(56, 191, 161, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animation-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(56, 191, 161, 0.15);
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

@media screen and (max-width: 768px) {
  .hero-cta {
    justify-content: center;
  }
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(90deg, var(--primary-color), #7064f5);
  color: var(--text-primary);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary:hover {
  box-shadow: 0 5px 15px rgba(56, 191, 161, 0.3);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.blur-background-card {
  background: rgba(5, 17, 34, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
  padding: 40px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 2px rgba(var(--primary-accent-color-rgb), 0.2);
  position: relative;
  overflow: hidden;
}

/* Same reasoning as .hero-section:first-child — the top margin exists to
   separate stacked cards. The first one is separated by main's padding. */
main > .container:first-child > .blur-background-card,
main > .container:first-child > .pricing-masthead,
main > .container:first-child > .pricing-hero-section {
  margin-top: 0;
}

/* features / blog / how-it-works open with .product-section, whose 20px of
   top padding lands on top of the card's own 40px. The card edge is already
   the separation. */
main > .container:first-child > .blur-background-card > .product-section:first-child {
  padding-top: 0;
}

.blur-background-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, rgba(var(--primary-accent-color-rgb), 0.2), rgba(5, 17, 34, 0), rgba(var(--primary-accent-color-rgb), 0.2));
  border-radius: 16px;
  z-index: -1;
  box-shadow: 0 0 20px rgba(var(--primary-accent-color-rgb), 0.15);
}

/* Simple centred page hero used on contact, etc. */
.blur-background-card > h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .blur-background-card > h1 {
    font-size: 2rem;
  }
}

/* ============== FAQ SECTION (product pages: nvoice, nchat, about) ============== */
.faq-section {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.12);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(var(--primary-accent-color-rgb), 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-accent-color);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
/* ============== END FAQ SECTION ============== */

/* ============== GENERAL PAGE CONTENT STYLES (e.g., for About Page) ============== */
.page-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--subtle-separator-light);
}
.page-section:last-child {
  border-bottom: none;
}
.page-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-light-gray);
  text-align: center;
  text-shadow: 0 0 6px rgba(var(--primary-accent-color-rgb), 0.2); /* Added subtle shadow */
}
.page-section h3 {
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
 .page-section h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-color); /* Using variable */
}
.page-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-medium-gray);
}
.lead-text {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 25px;
  text-align: center;
  color: var(--text-light-gray);
}

/* Grid layout for features/values/benefits on content pages */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px; /* Increased top margin slightly */
}
.highlight-item {
  background-color: var(--subtle-bg-light);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--subtle-border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Softer initial shadow */
}
.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15), 0 0 10px rgba(var(--primary-color), 0.1); /* Added subtle color glow */
}
.highlight-item h3, .highlight-item h4 {
  margin-top: 0;
  /* Colors inherited from .page-section h3/h4 or can be specified here */
}
.highlight-item p {
    font-size: 1rem;
    color: var(--text-dark-gray);
    line-height: 1.6; /* Added for consistency */
}
.highlight-item strong { /* For benefit list items within highlight items */
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
  /* General responsive adjustments */
  .desktop-nav ul {
    gap: 15px;
  }

  .desktop-nav li {
    margin-left: 15px;
  }

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-section {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  /* Stack cards vertically on mobile for better readability */
  .cards-row {
    flex-direction: column;
    gap: 20px;
  }

  .info-card {
    margin-bottom: 0; /* Remove any additional bottom margin */
    padding: 25px 20px; /* Reduce padding slightly on mobile */
  }

  .info-card h3 {
    font-size: 1.6rem; /* Slightly smaller titles on mobile */
  }

  .feature-list {
    margin: 15px 0; /* Reduce margins around feature list */
  }

  /* Responsive adjustments for .page-section and .highlight-grid */
  .highlight-grid {
    grid-template-columns: 1fr; /* Stack items on smaller screens */
  }
  .page-section h2 {
    font-size: 1.8rem;
  }
   .page-section h3 {
    font-size: 1.3rem;
  }
}
/* ============== END GENERAL PAGE CONTENT STYLES ============== */


/* Product Section Styles */
.product-section {
  padding: 20px 0;
}

.product-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.product-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  width: 100%;
  color: var(--text-secondary); /* Added for consistency */
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  background: rgba(13, 19, 35, 0.5);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(var(--primary-accent-color-rgb), 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(var(--primary-accent-color-rgb), 0.5));
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

@media screen and (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards Row Styling */
.cards-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 40px 0;
}

.info-card {
  flex: 1;
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(62, 152, 199, 0.5); /* Note: color not in variables, consider adding if used often */
}

.info-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(62, 152, 199, 0.2), rgba(5, 17, 34, 0), rgba(62, 152, 199, 0.2));
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(62, 152, 199, 0.8);
  box-shadow: 0 0 25px rgba(62, 152, 199, 0.3);
}

.info-card:hover::before {
  opacity: 0.9;
}

.info-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(62, 152, 199, 0.4);
}

.info-card p {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.feature-list {
  list-style: none;
  margin: 20px 0;
  text-align: left;
  padding-left: 10px;
}

.feature-list li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.card-cta {
  min-width: 140px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 15px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.card-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

@media screen and (max-width: 1100px) {
  .card-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  /* This is ALREADY in the main 768px query. Keeping it here for now if it's specific to card-buttons context */
  /* If it was meant to be general, it could be removed from here. */
  .card-buttons {
    flex-direction: row; /* Overrides the 1100px rule */
  }
}

@media screen and (max-width: 480px) {
  .card-buttons {
    flex-direction: column;
    width: 100%;
  }
  .card-cta {
    width: 100%;
  }
}


.user-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  width: 100%;
}

.user-flow-image {
  width: 100%;
  background: rgba(13, 19, 35, 0.4);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.user-flow-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(var(--primary-accent-color-rgb), 0.2);
}

.full-width-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ============== HOW IT WORKS — STEP FLOW ============== */
.hiw-card {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hiw-header {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.hiw-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 6px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.25);
  border-radius: 999px;
  background: rgba(var(--primary-accent-color-rgb), 0.06);
}

.hiw-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hiw-header p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Vertical story timeline */
.hiw-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  position: relative;
}

.hiw-tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding-bottom: 36px;
}

.hiw-tl-step:last-child {
  padding-bottom: 0;
}

/* the connecting line runs through the number markers */
.hiw-tl-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.hiw-tl-marker::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg,
    rgba(var(--primary-accent-color-rgb), 0.5) 0%,
    rgba(56, 191, 161, 0.35) 100%);
}

.hiw-tl-step:last-child .hiw-tl-marker::before {
  display: none;
}

.hiw-tl-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color-dark);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-accent-color));
  box-shadow: 0 0 0 6px rgba(13, 19, 35, 0.85),
    0 6px 18px rgba(var(--primary-accent-color-rgb), 0.3);
}

.hiw-tl-body {
  display: flex;
  align-items: center;
  gap: 22px;
  background: rgba(13, 19, 35, 0.55);
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.18);
  border-radius: 16px;
  padding: 22px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hiw-tl-step:hover .hiw-tl-body {
  transform: translateX(4px);
  border-color: rgba(var(--primary-accent-color-rgb), 0.4);
  box-shadow: 0 14px 38px rgba(var(--primary-accent-color-rgb), 0.16);
}

.hiw-tl-text {
  flex: 1;
  min-width: 0;
}

/* icon sits to the RIGHT of the text, filling the recovered width */
.hiw-tl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 16px;
  color: var(--primary-accent-color);
  background: radial-gradient(circle at 30% 25%,
    rgba(var(--primary-accent-color-rgb), 0.18),
    rgba(var(--primary-accent-color-rgb), 0.07));
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.25);
}

.hiw-tl-icon svg {
  width: 34px;
  height: 34px;
}

.hiw-tl-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hiw-tl-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-medium-gray);
  margin: 0;
}

/* Desktop: left spine + wide cards (text left, icon right) */
@media (min-width: 769px) {
  .hiw-tl-step {
    grid-template-columns: 56px 1fr;
    gap: 26px;
  }

  .hiw-tl-body {
    gap: 32px;
    padding: 26px 30px;
  }

  .hiw-tl-icon {
    width: 84px;
    height: 84px;
  }

  .hiw-tl-icon svg {
    width: 40px;
    height: 40px;
  }

  .hiw-tl-body h3 {
    font-size: 1.4rem;
  }

  .hiw-tl-body p {
    font-size: 1.05rem;
  }
}

/* Footer: app badges + CTA */
.hiw-footer {
  margin-top: 44px;
  text-align: center;
}

.hiw-apps-label {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hiw-apps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--primary-accent-color-rgb), 0.5);
  background: rgba(var(--primary-accent-color-rgb), 0.07);
}

.store-badge-glyph {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-badge-text small {
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-dark-gray);
  text-transform: uppercase;
}

.store-badge-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .hiw-card {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hiw-header h2 { font-size: 1.8rem; }
  .hiw-header p { font-size: 1.05rem; }

  .hiw-tl-step {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding-bottom: 28px;
  }

  .hiw-tl-num {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .hiw-tl-marker::before { bottom: -28px; }

  /* stack icon above text so narrow cards keep readable line lengths */
  .hiw-tl-body {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 20px;
  }

  .hiw-tl-icon {
    width: 48px;
    height: 48px;
  }

  .hiw-tl-icon svg {
    width: 24px;
    height: 24px;
  }
}
/* ============== END HOW IT WORKS — STEP FLOW ============== */

.why-section {
  padding: 20px 0;
}

.why-content h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  background: linear-gradient(90deg, var(--text-primary), var(--primary-accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.benefit-card {
  background: rgba(13, 19, 35, 0.5);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--primary-accent-color-rgb), 0.15);
  border-color: rgba(var(--primary-accent-color-rgb), 0.3);
}

.benefit-icon {
  min-height: 150px;
  max-height: 150px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(var(--primary-accent-color-rgb), 0.5));
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.benefit-card .benefit-icon img {
   display: block;
   width: auto;
   max-height: 150px;
   object-fit: contain;
}


.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* 3-card variant: use on sections with exactly 3 benefit cards */
.benefits-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 992px) {
  .benefits-grid,
  .benefits-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .benefits-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .why-content h2 {
    font-size: 1.8rem;
  }
}

/* For T-Smart Page & General Product Page Styles (if any) */
.product-detail-section h1 { margin-bottom: 15px; }
.product-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}
.trust-certifications {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9em;
  color: var(--text-secondary);
}
.trust-certifications p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-divider {
  border: 0;
  border-top: 1px solid rgba(62, 152, 199, 0.2); /* Note: color not in variables */
  margin: 20px 0;
}

.measurable-impact-section { margin-top: 40px; text-align: center; }
.measurable-impact-section > h3 { margin-bottom: 20px; font-size: 1.8em; color: var(--text-primary);}
.measurable-impact-section .impact-cards .info-card h3 { font-size: 1.5em; margin-bottom: 10px; }
.measurable-impact-section .impact-cards .info-card p { font-size: 0.95em; }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.industries-grid .feature-item .feature-icon img { max-height: 60px; margin-bottom: 10px; }

.final-cta-section { text-align: center; padding: 30px 20px; }
.final-cta-section > p { max-width: 700px; margin: 20px auto; color: var(--text-secondary); }
.integration-highlight-box {
  max-width: 800px;
  box-sizing: border-box;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.integration-highlight-box h3 { margin-bottom: 15px; color: var(--text-primary); }
.integration-highlight-box > p { margin-bottom: 25px; color: var(--text-secondary); }
.integration-steps {
  display: flex; justify-content: space-around; text-align: left;
  flex-wrap: wrap; gap: 20px; margin-top: 20px;
}
.integration-steps .step {
  flex-basis: calc(33.333% - 14px);
  min-width: 220px; padding: 10px;
  color: var(--text-secondary);
}
.integration-steps .step strong { display: block; margin-bottom: 8px; font-size: 1.05em; color: var(--text-primary); }
.final-cta-buttons { justify-content: center; margin-top: 40px; display: flex; gap: 20px; }
.roi-guarantee-text {
  margin-top: 40px;
  font-size: 0.95em;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: var(--text-secondary);
}
.roi-guarantee-text strong {
  font-weight: 600;
  color: var(--primary-color);
}


/* ============== MEGA MENU STYLES ============== */
.desktop-nav ul li.nav-item-solutions {
  position: relative;
}

.desktop-nav ul li.nav-item-solutions > a {
  display: flex;
  align-items: center;
}

.arrow-down {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-primary);
  transition: transform 0.3s ease;
}

li.has-megamenu:hover .arrow-down {
  transform: rotate(180deg);
}

.mega-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% - 150px));
  width: 590px;
  max-width: 95vw;
  padding-top: 15px;
  z-index: 1001;
  box-sizing: border-box;
}

.mega-menu-container.compact-menu {
  width: 180px;
  transform: translateX(-70%);
}

li.has-megamenu:hover .mega-menu-container,
li.has-megamenu .mega-menu-container.mega-menu-visible {
  display: block;
  animation: fadeInDown 0.3s ease-out forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px) translateX(calc(-50% - 150px));
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(calc(-50% - 150px));
  }
}

@keyframes fadeInDownCompact {
  from {
    opacity: 0;
    transform: translateY(-10px) translateX(-70%);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(-70%);
  }
}

/* Keep the Solutions panel within the viewport when the desktop nav is centred. */
@media screen and (min-width: 1025px) {
  .mega-menu-container:not(.compact-menu):not(.features-mega) {
    transform: translateX(-40%);
  }

  @keyframes fadeInDownSolutions {
    from {
      opacity: 0;
      transform: translateY(-10px) translateX(-40%);
    }
    to {
      opacity: 1;
      transform: translateY(0) translateX(-40%);
    }
  }

  li.has-megamenu:hover .mega-menu-container:not(.compact-menu):not(.features-mega),
  li.has-megamenu .mega-menu-container.mega-menu-visible:not(.compact-menu):not(.features-mega) {
    animation: fadeInDownSolutions 0.3s ease-out forwards;
  }
}

li.has-megamenu:hover .mega-menu-container.compact-menu {
  animation: fadeInDownCompact 0.3s ease-out forwards;
}

.company-links.vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: 100%;
}

.company-links.vertical .company-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 15px;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
  text-align: center;
}

.company-links.vertical .company-link:hover {
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  color: var(--primary-accent-color);
  width: 100%;
}


.mega-menu-content {
  background-color: #0D1323; /* Could be variable */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--primary-accent-color-rgb), 0.1);
  padding: 22px 18px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.25);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.menu-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.mega-menu-content.company-menu {
  padding: 0;
  overflow: hidden;
  width: 100%;
  gap: 0;
}

.mega-menu-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-accent-color), #7064f5);
  opacity: 0.8;
}

.mega-menu-card {
  flex-grow: 0;
  flex-shrink: 0;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  border-radius: 12px;
  padding: 16px 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  margin: 0;
}

.mega-menu-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tsmart-card {
  background: linear-gradient(145deg, #1A2B4D, #121E36);
  border: 1px solid var(--primary-accent-color);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tsmart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(var(--primary-accent-color-rgb), 0.15), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.tsmart-card:hover {
  border-color: var(--primary-accent-hover-color);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 8px 25px rgba(var(--primary-accent-color-rgb), 0.4);
}

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

.vspeak-card {
  background: linear-gradient(145deg, #2A1A4D, #1E1236);
  border: 1px solid #7064f5;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.vspeak-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(112, 100, 245, 0.15), transparent 70%);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.vspeak-card:hover {
  border-color: #8c82f7;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 8px 25px rgba(112, 100, 245, 0.4);
}

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


.mega-menu-card .card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  min-height: 62px;
}

.mega-menu-card .card-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: width 0.3s ease, left 0.3s ease;
}

.mega-menu-card:hover .card-header::after {
  width: 70%;
  left: 15%;
}

.mega-menu-card .card-title-section {
  flex-grow: 1;
  text-align: left;
}

.mega-menu-card .card-title-section .card-product-name {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.mega-menu-card .card-title-section .card-subtitle {
  font-size: 0.75em;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.mega-menu-card .card-title-section h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.mega-menu-card .card-body {
  padding-top: 8px;
  flex-grow: 1;
  text-align: left;
  padding-left: 6px;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}
.mega-menu-card .card-body ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  width: 100%;
}

.mega-menu-card .card-body li {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  padding: 2px 0;
  margin-left: 0;
  border-radius: 3px;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

.mega-menu-card .card-body .feature-label {
  flex: 1;
  text-align: left;
}

.tsmart-card .card-body li:hover {
  box-shadow: 0 0 10px rgba(var(--primary-accent-color-rgb), 0.1);
}

.vspeak-card .card-body li:hover {
  box-shadow: 0 0 10px rgba(112, 100, 245, 0.1);
}

.feature-bullet {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(56, 191, 161, 0.6);
  margin-top: 0.4em;
  flex-shrink: 0;
  position: relative;
}

.feature-bullet::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(56, 191, 161, 0.3);
  z-index: -1;
  animation: pulse 2s infinite;
}

.vspeak-card .feature-bullet {
  background-color: #8c82f7;
  box-shadow: 0 0 8px rgba(112, 100, 245, 0.6);
}

.vspeak-card .feature-bullet::after {
  background: rgba(112, 100, 245, 0.3);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.mega-menu-card .card-cta {
  min-width: 140px;
  padding: 11px 16px;
  margin-top: 12px;
  background: linear-gradient(90deg, #0ea7ff, var(--primary-color) 80%);
  color: var(--text-primary) !important;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  font-size: 1em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(var(--primary-accent-color-rgb), 0.10);
  display: inline-block;
  text-align: center;
}
.mega-menu-card .card-cta:hover,
.mega-menu-card .card-cta:focus {
  background: linear-gradient(90deg, #095c93, var(--primary-accent-color) 80%);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(14, 167, 255, 0.20), 0 1px 3px rgba(56,191,161,0.125); /* Adjusted alpha of second shadow */
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.tsmart-card .card-cta {
  background: linear-gradient(90deg, var(--primary-accent-color) 30%, var(--primary-color) 100%);
}
.tsmart-card .card-cta:hover {
  background: linear-gradient(90deg, var(--primary-accent-hover-color), var(--primary-accent-color) 90%);
}
.vspeak-card .card-cta {
  background: linear-gradient(90deg, #8c82f7, #6c64f5 90%);
}
.vspeak-card .card-cta:hover {
  background: linear-gradient(90deg, #7064f5 10%, var(--primary-accent-hover-color) 80%);
}

.card-use-case {
  font-size: 0.9em;
  color: rgba(var(--primary-accent-color-rgb), 0.9);
  margin: 8px 0 0;
  padding-left: 4px;
}
.vspeak-card .card-use-case {
  color: #9b90f7;
}

.mega-menu-trust {
  text-align: center;
  margin-top: 18px;
  color: #c4f8ff;
  font-size: 0.98em;
  background: rgba(var(--primary-accent-color-rgb), 0.03);
  padding: 10px 5px 0 5px;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.04em;
}

/* Features mega menu: a 3x3 grid of compact icon+title+description rows,
   right-anchored to the nav item since "Features" sits near the right edge
   of the nav and a centered 640px panel would clip off-screen. */
.mega-menu-container.features-mega {
  left: auto;
  right: -20px;
  transform: none;
  width: 640px;
  max-width: 90vw;
}

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

li.has-megamenu:hover .mega-menu-container.features-mega {
  animation: fadeInDownFeatures 0.3s ease-out forwards;
}

.mega-menu-content.features-menu-content {
  display: block;
  width: 100%;
}

.features-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 16px;
  width: 100%;
}

.feature-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.feature-menu-item:hover {
  background: rgba(var(--primary-accent-color-rgb), 0.08);
}

.feature-menu-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: rgba(var(--primary-accent-color-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-accent-color);
}

.feature-menu-icon svg {
  width: 18px;
  height: 18px;
}

.feature-menu-text {
  min-width: 0;
}

.feature-menu-title {
  display: block;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-menu-desc {
  display: block;
  font-size: 0.78em;
  color: var(--text-secondary);
  line-height: 1.3;
}

.features-menu-footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

.features-menu-footer a {
  color: var(--primary-accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
}

.features-menu-footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for Mega Menu */
@media screen and (max-width: 1024px) {
  /* Hide desktop mega menu on mobile - mobile navigation handles this */
  .mega-menu-container {
    display: none !important;
  }
  
  li.has-megamenu:hover .mega-menu-container {
    display: none !important;
  }
}

/* Additional responsive tweaks for very small screens */
@media screen and (max-width: 400px) {
  .mega-menu-content {
    padding: 15px;
  }

  .mega-menu-card {
    padding: 15px;
  }

  .mega-menu-card .card-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .mega-menu-card .card-body li {
    font-size: 0.8em;
  }
}
/* ============== END MEGA MENU STYLES ============== */

/* ============== RESEARCH PAGE STYLES ============== */
/* Research page */
.feature-list li {
  margin-bottom: 20px;
}

/* Research Areas Horizontal Layout */
.research-areas-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.research-area {
  flex: 1;
  background: rgba(var(--primary-accent-color-rgb), 0.03);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-area:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(var(--primary-accent-color-rgb), 0.15);
}

.research-area-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.research-icon {
  width: 48px;
  height: 48px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  border-radius: 12px;
  padding: 10px;
}

.research-icon img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px rgba(var(--primary-accent-color-rgb), 0.5));
}

.research-area h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-accent-color);
}

.research-highlights {
  margin: 20px 0;
  padding: 15px;
  background: rgba(var(--primary-accent-color-rgb), 0.05);
  border-radius: 8px;
}

.research-highlights h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-primary);
}

@media screen and (max-width: 992px) {
  .research-areas-wrapper {
    flex-direction: column;
  }
}

/* Publication styling */
.publications li {
  margin-bottom: 30px;
  border-left: 3px solid var(--primary-accent-color);
  padding-left: 15px;
  position: relative;
}

.publication-date {
  display: inline-block;
  color: var(--primary-accent-color);
  font-weight: 500;
  margin-bottom: 5px;
}

.paper-link {
  color: var(--primary-accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.paper-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Technical specs styling */
.technical-specs {
  padding: 20px 0;
}

.specs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.specs-column {
  flex: 1;
  min-width: 300px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(var(--primary-accent-color-rgb), 0.2);
}

.specs-table td {
  padding: 12px 5px;
}

.specs-table td:first-child {
  font-weight: 500;
  width: 40%;
}

/* Technical details list */
.technical-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.technical-details li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.technical-details li:before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-accent-color);
  position: absolute;
  left: 8px;
  top: 8px;
}

/* Research lab styling */
.research-lab {
  padding: 20px 0;
}

.lab-images {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.lab-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lab-image img {
  width: 100%;
  height: auto;
  display: block;
}

.lab-image p {
  padding: 10px 15px;
  margin: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-weight: 500;
}

/* Collaborations styling */
.collaborations {
  padding: 20px 0;
}

.collaborations-grid {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.collaboration-item {
  flex: 1;
  min-width: 300px;
}

.collaboration-list {
  list-style: none;
  padding-left: 0;
}

.collaboration-list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
}

.collaboration-list strong {
  color: var(--primary-accent-color);
}

/* Case studies styling */
.case-studies {
  padding: 20px 0;
}

.case-studies-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.case-study {
  flex: 1;
  min-width: 300px;
  padding: 25px;
  background: rgba(var(--primary-accent-color-rgb), 0.05);
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
}

.case-study-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.case-icon {
  width: 50px;
  height: 50px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  border-radius: 50%;
}

.case-icon img {
  width: 30px;
  height: 30px;
}

.case-stats {
  margin-top: 20px;
  padding: 10px 15px;
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  border-radius: 8px;
  font-weight: 500;
  color: var(--primary-accent-color);
  font-size: 0.9em;
}

/* Future research styling */
.research-future {
  padding: 20px 0;
}

.future-research-grid {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.future-item {
  flex: 1;
  min-width: 300px;
}

.future-list {
  list-style: none;
  padding-left: 0;
}

.future-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.future-list li:before {
  content: '\2192';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-accent-color);
  font-weight: bold;
}

.release-timeline {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9em;
}

/* Responsive styles for research page */
@media screen and (max-width: 768px) {
  .specs-grid,
  .collaborations-grid,
  .case-studies-grid,
  .future-research-grid {
    flex-direction: column;
  }
  
  .specs-column,
  .collaboration-item,
  .case-study,
  .future-item {
    min-width: 100%;
  }
  
  .blur-background-card {
    padding: 24px 20px;
  }
}
/* ============== END RESEARCH PAGE STYLES ============== */

/* ============== MOBILE NAVIGATION STYLES ============== */

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
  background: rgba(var(--primary-accent-color-rgb), 0.1);
}

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

/* Hamburger Animation - Transform to X when menu is open */
.mobile-menu-toggle.menu-open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.menu-open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.menu-open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Container */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #0D1323;
  border-top: 1px solid rgba(var(--primary-accent-color-rgb), 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-nav.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Mobile Navigation List */
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.mobile-nav-item {
  margin: 0;
}

/* Mobile Solutions Header */
.mobile-solutions-header {
  padding: 15px 20px 10px;
  border-bottom: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
}

.mobile-solutions-header h3 {
  color: var(--primary-accent-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Solutions Cards */
.mobile-solutions-cards {
  padding: 15px 20px 20px;
}

.mobile-solution-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(var(--primary-accent-color-rgb), 0.05);
  border: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-solution-card:last-child {
  margin-bottom: 0;
}

.mobile-solution-card:hover {
  background: rgba(var(--primary-accent-color-rgb), 0.1);
  border-color: var(--primary-accent-color);
  transform: translateY(-2px);
}

.mobile-card-content h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.mobile-card-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

/* Mobile Company Header */
.mobile-company-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-company-header h3 {
  color: var(--primary-accent-color);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-company-header .arrow-down {
  border-top-color: var(--primary-accent-color);
}

.mobile-company-header.expanded .arrow-down {
  transform: rotate(180deg);
}

/* Mobile Company Links — collapsed by default, expanded via JS toggle */
.mobile-company-links {
  display: none;
  padding: 15px 20px 20px;
  flex-direction: column;
  gap: 12px;
}

.mobile-company-links.expanded {
  display: flex;
}

/* Mobile Navigation Links */
.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(var(--primary-accent-color-rgb), 0.1);
}

.mobile-nav-link:hover {
  color: var(--primary-accent-color);
  background: rgba(var(--primary-accent-color-rgb), 0.05);
}

.mobile-nav-link.highlight {
  background: var(--primary-accent-color);
  color: #0D1323;
  font-weight: 600;
  margin: 20px;
  border-radius: 8px;
  text-align: center;
  border: none;
}

.mobile-nav-link.highlight:hover {
  background: var(--primary-accent-hover-color);
  color: #0D1323;
}

/* Desktop Navigation - Hide on Mobile */
.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 30px;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* Mobile Specific Adjustments */
@media screen and (max-width: 768px) {
  :root {
    --header-h: 70px;
    --header-gap: 20px;
  }

  header .container {
    height: 70px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .mobile-solution-card {
    padding: 12px;
  }
    
  .mobile-card-content h4 {
    font-size: 15px;
  }
  
  .mobile-card-content p {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --header-h: 65px;
    --header-gap: 16px;
  }

  header .container {
    height: 65px;
    padding: 0 15px;
  }

  .mobile-solutions-cards,
  .mobile-company-links {
    padding: 15px 15px 20px;
  }

  .mobile-nav-link {
    padding: 12px 15px;
    font-size: 15px;
  }
}

/* ============================================================
   GENERAL DESIGN POLISH
   ============================================================ */

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Consistent section vertical rhythm */
.container + .container {
  margin-top: 0;
}

/* Improve button focus accessibility */
.btn:focus-visible {
  outline: 2px solid var(--primary-accent-color);
  outline-offset: 3px;
}

/* Primary button gradient polish — consistent across all pages */
.btn.primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary {
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.secondary:hover {
  border-color: rgba(var(--primary-accent-color-rgb), 0.5);
}

/* Large button variant for CTA sections */
.btn.large {
  padding: 15px 32px;
  font-size: 1.05rem;
  border-radius: 8px;
}

/* Consistent link colour in product content */
.product-content a,
.why-content a {
  color: var(--primary-accent-color);
  text-decoration: none;
}

.product-content a:hover,
.why-content a:hover {
  text-decoration: underline;
}

/* Improve cards-row on about page (two rows of 3) */
.cards-row {
  flex-wrap: wrap;
}

/* Product description centering for product hero */
.product-detail-section .product-description {
  text-align: center;
}

/* Slightly more vertical breathing room between blur cards on mobile */
@media screen and (max-width: 768px) {
  .blur-background-card {
    margin: 12px 0;
  }

  .product-content h2,
  .why-content h2 {
    font-size: 1.75rem;
  }

  .product-content p {
    font-size: 1.05rem;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .final-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .info-card h3 {
    font-size: 1.4rem;
  }

  .faq-item h3 {
    font-size: 0.98rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .blur-background-card {
    padding: 24px 16px;
  }

  .hero-section,
  .hero-content {
    min-width: 0;
    width: 100%;
  }

  .hero-section {
    gap: 24px;
    margin-top: 8px;
  }

  .hero-eyebrow {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 2.15rem);
    line-height: 1.18;
    margin-bottom: 20px;
  }

  .hero-content p {
    margin-bottom: 20px;
    line-height: 1.55;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-content h2 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .benefit-icon {
    min-height: 100px;
    max-height: 100px;
  }
}
/* ============================================================
   END GENERAL DESIGN POLISH
   ============================================================ */
