/* =============================================
   NeuralEdgeCX Website — Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* NeuralEdgeCX brand palette (derived from logo: plum → orange mark, crimson "cx") */
  --blue: #EA6C05;
  --blue-dark: #7A1E46;
  --blue-light: #FDECD8;
  --gold: #FDB022;
  --teal: #C2410C;
  --purple: #9A2F3C;
  --ink: #0F172A;
  --graphite: #334155;
  --slate: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --mist: #F8FAFC;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(16,24,40,0.08);
  --shadow-xl: 0 20px 50px rgba(16,24,40,0.15);

  /* ---- Typography system ----
     Inter is loaded as a variable font (wght 100–900), so weights below
     aren't limited to the old 400/500/600/700/800 static set. */
  --fw-regular:   430;   /* body copy — slightly past 400 so it never reads "thin" */
  --fw-medium:    520;   /* nav links, labels, secondary UI text */
  --fw-semibold:  600;   /* card/subsection titles, buttons, eyebrows */
  --fw-bold:      700;   /* section (H2) titles */
  --fw-extrabold: 800;   /* hero / page-level (H1) titles only */

  --lh-tight:   1.1;    /* display & hero titles */
  --lh-snug:    1.25;   /* H2/H3 titles */
  --lh-normal:  1.5;    /* UI text, labels, nav */
  --lh-relaxed: 1.65;   /* body paragraphs */
  --lh-loose:   1.8;    /* long-form article copy */

  --ls-tighter: -0.03em; /* hero display size */
  --ls-tight:   -0.015em; /* H2/H3 */
  --ls-normal:  0;
  --ls-wide:    0.02em;  /* buttons / nav, small semibold text */
  --ls-wider:   0.08em;  /* uppercase eyebrows/labels */

  /* Fluid type scale */
  --fs-display: clamp(2.75rem, 2rem + 3.5vw, 4.75rem); /* hero H1 */
  --fs-h1:      clamp(2.125rem, 1.7rem + 1.9vw, 3rem);  /* section titles (H2-level) */
  --fs-h2:      clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);/* subsection titles */
  --fs-h3:      1.25rem;                                 /* card / component titles */
  --fs-h4:      1.0625rem;                               /* small titles */
  --fs-body-lg: 1.125rem;                                /* lead/intro paragraphs */
  --fs-body:    1rem;                                    /* default paragraph */
  --fs-body-sm: 0.9375rem;                                /* secondary body / captions in cards */
  --fs-caption: 0.8125rem;                                /* meta, timestamps, helper text */
  --fs-overline: 0.75rem;                                 /* uppercase labels/eyebrows */

  /* Text colors — reserve the lightest gray for true tertiary/meta text so
     paragraph copy never looks faded */
  --text-heading:   var(--ink);      /* #0F172A — headings */
  --text-body:      #3D4A5C;         /* body copy — darker than old --muted for comfortable reading */
  --text-secondary: var(--slate);    /* #475569 — supporting copy on light backgrounds */
  --text-tertiary:  var(--muted);    /* #64748B — meta, captions, placeholders only */
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--white);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

input, textarea, select { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
}

p { color: var(--text-body); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Announcement Ticker ---------- */
#announcement-ticker {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding: 0.65rem 0;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Header & Navigation ---------- */
.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1480px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: -0.125rem;
}

.logo-brand {
  font-size: 1.375rem;
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  color: var(--blue);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--text-heading);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue); }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(234, 108, 5,0.1);
  color: var(--blue);
  transition: background 0.2s;
}

.mobile-menu-btn:hover { background: rgba(234, 108, 5,0.2); }

.mobile-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mobile-nav {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav.open { display: block; }

.mobile-nav-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mobile-nav-inner a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--text-heading);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-inner a:hover {
  background: rgba(234, 108, 5,0.08);
  color: var(--blue);
}

/* ---------- Hero Section ---------- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--mist);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,20,30,0.42);
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-left { display: flex; flex-direction: column; gap: 2rem; }

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(234, 108, 5,0.12);
  border-left: 4px solid var(--gold);
}

.hero-badge span {
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-title-highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.92);
  line-height: var(--lh-relaxed);
  max-width: 42rem;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: #1e293b;
}

.btn-primary:hover { background: rgba(253, 176, 34,0.9); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
}

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

.btn-dark {
  background: var(--gold);
  color: #1e293b;
}

.btn-dark:hover { background: rgba(253, 176, 34,0.9); }

.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-full { width: 100%; }

.btn svg { width: 1rem; height: 1rem; }

/* ---------- Section Headings ---------- */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ==========================================================
   Products Section — Bento Grid
   ========================================================== */
#products {
  background: #F5F8FF;
}

/* ---- Base card ---- */
.product-card {
  position: relative;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-top-width: 3px;
  border-radius: 1.25rem;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 4px 16px rgba(15,23,42,0.05);
}

.product-card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.12), 0 3px 10px rgba(15,23,42,0.07);
  transform: translateY(-4px);
}

/* Spoke and hub cards share the base .product-card white background —
   color now comes only from the top border + icon, matching each
   product's real logo color. */

/* Hub "Core Platform" badge */
.hub-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  background: rgba(234, 108, 5,0.08);
  border: 1px solid rgba(234, 108, 5,0.2);
  border-radius: 2rem;
  font-size: 0.66rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #EA6C05;
  margin-bottom: 0.9rem;
}

/* ---- Card internals ---- */
.product-card-header { padding: 1.5rem 1.5rem 0; }

.product-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.product-icon-wrap svg { width: 36px; height: 36px; }

.product-name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin-bottom: 0.2rem;
  line-height: var(--lh-snug);
}

.product-tagline {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  line-height: var(--lh-normal);
}

.product-card-body {
  padding: 0.9rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-desc {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
  margin-bottom: 1rem;
}

.product-features-divider {
  border-top: 1px solid rgba(226,232,240,0.7);
  padding-top: 0.85rem;
  margin-top: auto;
  margin-bottom: 0;
}

.product-features-title {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 0.6rem;
}

/* Feature chips — replace plain bullet list */
.features-list {
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
}

.feature-dot {    
  color: var(--teal);
  margin-top: 0.1rem;
  flex-shrink: 0; 
}

/* Visit button */
.product-link {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid currentColor;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  align-self: flex-start;
}

.product-link:hover {
  background: rgba(0,0,0,0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-link .link-text::after { display: none; }

.product-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

.product-link svg:last-child {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}
.product-link:hover svg:last-child { transform: translate(2px, -2px); }

/* ---- Layout: mobile — single column ---- */
.products-hub-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.hub-radial-svg { display: none; }

@media (min-width: 600px) {
  .products-hub-wrapper {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    gap: 1.1rem;
  }
}

@media (min-width: 960px) and (max-width: 1199px) {
  .products-hub-wrapper {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1020px;
    gap: 1.25rem;
  }
}

/* ---- Desktop ≥1200px ----
   24-track grid (6 tracks per card) so row 2's 3 cards are the
   exact same width as row 1's cards, centered with equal margins:
   • Row 1 (4 cards, 6 tracks each):  Surge ERP, Projektify, Xtractorify, MR Tracker
   • Row 2 (3 cards, 6 tracks each, centered):  PawTrack, TeamPulseIQ, OMS
--------------------------------------------- */
@media (min-width: 1200px) {
  .products-hub-wrapper {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-auto-rows: 1fr;
    gap: 1.25rem;
    max-width: 1480px;
    margin: 0 auto;
  }

  /* All cards exactly the same size, regardless of content length */
  .product-card {
    height: 100%;
    min-height: 400px;
  }

  /* ---- Row 1 ---- */
  .product-card--hub                   { grid-column: 1 / 7;   grid-row: 1; } /* Surge ERP   */
  .product-card--spoke[data-spoke="0"] { grid-column: 7 / 13;  grid-row: 1; } /* Projektify  */
  .product-card--spoke[data-spoke="1"] { grid-column: 13 / 19; grid-row: 1; } /* Xtractorify */
  .product-card--spoke[data-spoke="3"] { grid-column: 19 / 25; grid-row: 1; } /* MR Tracker  */

  /* ---- Row 2 (centered, same width as row 1) ---- */
  .product-card--spoke[data-spoke="2"] { grid-column: 4 / 10;   grid-row: 2; } /* PawTrack    */
  .product-card--spoke[data-spoke="5"] { grid-column: 10 / 16;  grid-row: 2; } /* TeamPulseIQ */
  .product-card--spoke[data-spoke="4"] { grid-column: 16 / 22;  grid-row: 2; } /* OMS         */
}

/* ---------- Services Section ---------- */
#services { background: var(--mist); }

.services-bg-video {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 600px;
  pointer-events: none;
  overflow: hidden;
}

.services-bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.services-bg-fade {
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,0.75);
}

.services-section {
  position: relative;
  padding: 6rem 0;
  background: var(--mist);
  overflow: hidden;
}

/* Service Process Cards */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto 4rem;
}

.process-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.5s;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

.process-card:hover::before { transform: scaleX(1); }

.process-card:hover {
  border-color: rgba(234, 108, 5,0.5);
  box-shadow: 0 8px 30px rgba(234, 108, 5,0.15);
}

.process-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.process-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(234, 108, 5,0.1);
  line-height: 1;
  transition: color 0.3s;
}

.process-card:hover .process-number { color: rgba(234, 108, 5,0.2); }

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s;
}

.process-card:hover .process-dot { transform: scale(1.5); }

.process-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.process-card:hover .process-title { color: var(--blue); }

.process-desc { font-size: var(--fs-body-sm); font-weight: var(--fw-regular); color: var(--text-body); line-height: var(--lh-relaxed); }

/* Tech Accordion */
.tech-accordion {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(51,65,85,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s;
}

.accordion-item:hover { transform: translateY(-2px); }

.accordion-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.3s;
}

.accordion-item.open .accordion-top-line { opacity: 1; }

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.accordion-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.accordion-icon-wrap {
  width: 3rem;
  height: 3rem;
  background: rgba(234, 108, 5,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon-wrap { transform: scale(1.1); }

.accordion-icon-wrap svg { width: 40px; height: 40px; }

.accordion-text-wrap { flex: 1; min-width: 0; }

.accordion-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.accordion-summary { font-size: var(--fs-body-sm); font-weight: var(--fw-regular); color: var(--text-secondary); line-height: var(--lh-relaxed); }

.accordion-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--graphite);
  transition: transform 0.3s;
  margin-top: 2px;
}

.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s;
}

.accordion-item.open .accordion-panel {
  max-height: 500px;
  opacity: 1;
}

.accordion-panel-inner {
  padding: 0 1.5rem 1.5rem 4.75rem;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.industry-card {
  padding: 3px;
  background: var(--teal);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: box-shadow 0.5s;
}

.industry-card:hover {
  box-shadow: 0 0 30px rgba(234, 108, 5,0.4), 0 0 60px rgba(194, 65, 12,0.2);
}

.industry-inner {
  background: var(--white);
  border-radius: calc(0.75rem - 3px);
  padding: 2rem 1.5rem;
  height: 100%;
}

.industry-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--blue);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.industry-card:hover .industry-title { color: var(--teal); }

.industry-desc { font-size: var(--fs-body-sm); font-weight: var(--fw-regular); color: var(--text-body); line-height: var(--lh-relaxed); }

/* Cybersecurity Card */
.cyber-card {
  max-width: 56rem;
  margin: 4rem auto 0;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  overflow: hidden;
}

.cyber-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cyber-inner { flex-direction: row; align-items: flex-start; }
}

.cyber-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyber-icon svg { width: 2rem; height: 2rem; stroke: var(--white); fill: none; stroke-width: 2; }

.cyber-body { flex: 1; }

.cyber-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  margin-bottom: 1rem;
  color: var(--white);
}

.cyber-desc {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: rgba(255,255,255,0.92);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.5rem;
}

/* ---------- Development Process ---------- */
#process { background: var(--white); }

.process-steps-wrapper {
  position: relative;
  max-width: 75rem;
  margin: 0 auto;
}

.process-line {
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  opacity: 0.2;
}

@media (min-width: 1024px) { .process-line { display: block; } }

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) { .process-steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .process-steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: opacity 0.7s, transform 0.7s;
}

.step.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.step-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  position: relative;
}

.step.visible .step-circle { animation: pulse-glow 2s ease-in-out infinite; }

.step-circle svg { width: 2rem; height: 2rem; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.step-number {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--blue);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s, transform 0.7s;
}

.step.visible .step-number {
  opacity: 1;
  transform: translateY(0);
}

.step-info {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s, transform 0.7s;
}

.step.visible .step-info {
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.step-desc { font-size: var(--fs-body-sm); font-weight: var(--fw-regular); color: var(--text-secondary); line-height: var(--lh-relaxed); }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(234, 108, 5,0.3); }
  50% { box-shadow: 0 0 30px rgba(234, 108, 5,0.6), 0 0 40px rgba(234, 108, 5,0.3); }
}

/* ---------- Why NeuralEdgeCX ---------- */
.why-section {
  padding: 6rem 0;
  background: var(--mist);
  position: relative;
  overflow: hidden;
}

.why-bg-blur { display: none; }

.why-bg-video {
  position: absolute;
  inset-inline: -3rem;
  inset-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  pointer-events: none;
  overflow: hidden;
}

.why-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  object-position: 70% 50%;
  clip-path: inset(8% 0 0 12%);
}

.values-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 40rem;
  margin: 3rem auto 2rem;
}

.value-badge {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  letter-spacing: var(--ls-tight);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.7s, transform 0.7s;
}

.value-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.value-badge-shimmer {
  display: none;
}

.value-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.7s, transform 0.7s;
}

.value-arrow.visible {
  opacity: 1;
  transform: scale(1);
}

.values-underline {
  height: 4px;
  max-width: 32rem;
  margin: 1.5rem auto 0;
  background: rgba(194, 65, 12,0.5);
  opacity: 0;
  transition: opacity 1s;
}

.values-underline.visible { opacity: 1; }

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .why-cards { grid-template-columns: 1fr 1fr; } }

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.why-card-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(234, 108, 5,0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.why-card-text { font-size: var(--fs-body); font-weight: var(--fw-regular); color: var(--text-body); line-height: var(--lh-relaxed); }

/* ---------- Testimonials ---------- */
#testimonials {
  padding: 6rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Blurred glow blobs removed for a flat look — no soft color blending. */
.testimonials-blob,
.testimonials-blob-1,
.testimonials-blob-2,
.testimonials-blob-3 { display: none; }

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.carousel-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.carousel-track-container { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide { min-width: 100%; padding: 1rem; }

.testimonial-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.testimonial-logo-wrap {
  position: relative;
  width: 12rem;
  height: 4rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.testimonial-logo-wrap:hover { transform: scale(1.05); }

.testimonial-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial-logo-name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  text-align: center;
}

.testimonial-logo-sub {
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 0.25rem;
}

.testimonial-card-outer {
  position: relative;
}

.testimonial-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  opacity: 0.2;
  filter: blur(4px);
  transition: opacity 0.5s;
}

.testimonial-card-outer:hover .testimonial-card-glow { opacity: 0.4; }

.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid;
  transition: transform 0.5s, box-shadow 0.5s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quote-icon {
  position: relative;
  margin-bottom: 1.5rem;
  height: 3rem;
}

.quote-icon-1, .quote-icon-2 {
  position: absolute;
  width: 3rem;
  height: 3rem;
}

.quote-icon-1 { color: rgba(234, 108, 5,0.2); animation: pulse-slow 2s ease-in-out infinite; }
.quote-icon-2 { color: rgba(253, 176, 34,0.3); transform: translate(4px, 4px); animation: pulse-slow 2s ease-in-out infinite; animation-delay: 0.5s; }

.testimonial-quote {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  margin-bottom: 1.5rem;
}

.testimonial-author-bar {
  margin: 1.5rem -2rem -2rem;
  padding: 1rem 2rem;
  background: var(--mist);
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 1rem 1rem;
}

.testimonial-author-name {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
}

.testimonial-author-role {
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
}

.testimonial-author-company {
  font-size: var(--fs-caption);
  font-weight: var(--fw-regular);
  color: #94a3b8;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.carousel-prev svg,
.carousel-next svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.carousel-dot:hover { background: #94a3b8; }
.carousel-dot.active { background: var(--blue); transform: scale(1.3); }

/* ---------- Insights Section ---------- */
#insights { background: var(--white); }

.insights-grid {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
  gap: 2rem;
  justify-content: space-between;
}

.insight-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  width: 100%;
}

.insight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.insight-card-img {
  height: 12rem;
  overflow: hidden;
}

.insight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.insight-card:hover .insight-card-img img { transform: scale(1.05); }

.insight-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-card-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-snug);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.insight-card:hover .insight-card-title { color: var(--blue); }

.insight-card-summary {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  flex: 1;
  margin-bottom: 1rem;
}

.insight-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  transition: gap 0.2s;
  gap: 0.25rem;
}

.insight-read-more svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform 0.2s;
}

.insight-card:hover .insight-read-more { gap: 0.5rem; }
.insight-card:hover .insight-read-more svg { transform: translateX(4px); }

.insight-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(194, 65, 12,0.1);
  border: 1px solid rgba(194, 65, 12,0.2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
}

/* ---------- Contact Section ---------- */
#contact {
  padding: 6rem 0;
  background: rgba(234, 108, 5,0.06);
  position: relative;
  overflow: hidden;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 75rem;
  margin: 0 auto;
}

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-cards { display: flex; flex-direction: column; gap: 2rem; }

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
}

.contact-card-inner { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-card-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.contact-card-content {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  line-height: var(--lh-relaxed);
  white-space: pre-line;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 2px solid var(--border);
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  font-family: var(--font);
  color: var(--text-heading);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(234, 108, 5,0.1);
}

.form-input { height: 3rem; }

.form-textarea {
  min-height: 9.5rem;
  resize: vertical;
  display: block;
}

.form-select { height: 3rem; appearance: none; }

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 1rem;
}

.form-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: #1e293b;
  border: none;
  padding: 0.75rem 2rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  border-radius: 2px;
  cursor: pointer;
  height: 3rem;
  transition: background 0.2s;
}

.form-submit:hover:not(:disabled) { background: rgba(253, 176, 34,0.85); }

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
footer {
  background: var(--mist);
  border-top: 4px solid var(--blue);
}

.footer-inner {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }

.footer-desc { color: var(--text-secondary); font-size: var(--fs-body-sm); line-height: var(--lh-relaxed); }

.footer-col-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  transition: color 0.2s;
  font-size: var(--fs-body-sm);
}

.footer-links a:hover { color: var(--blue); }

.footer-links a.external { color: var(--blue); font-weight: var(--fw-semibold); }
.footer-links a.external:hover { color: var(--teal); }

.footer-links a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.footer-link-desc { font-size: var(--fs-caption); font-weight: var(--fw-regular); color: var(--text-tertiary); line-height: var(--lh-relaxed); margin-top: 0.25rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright { color: var(--text-tertiary); font-size: var(--fs-body-sm); font-weight: var(--fw-regular); }

/* ---------- Blogs Page Specific ---------- */
.blogs-hero {
  padding: 8.5rem 1.5rem 4rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.blogs-hero-blob-1, .blogs-hero-blob-2 { display: none; }

.blogs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.blogs-badge svg {
  width: 16px; height: 16px;
  stroke: var(--blue); fill: none; stroke-width: 2;
}

.blogs-hero-title {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  line-height: var(--lh-tight);
  color: var(--text-heading);
  margin-bottom: 1.5rem;
}

.blogs-hero-desc {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 40rem;
  margin: 0 auto;
}

.blog-filter-section { padding: 2rem 1.5rem; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cat-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-heading);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px,100%), 1fr));
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 14rem;
  overflow: hidden;
  position: relative;
}

.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--blue);
  color: var(--white);
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-meta-item svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

.blog-card-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-snug);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title { color: var(--blue); }

.blog-card-excerpt { font-size: var(--fs-body-sm); font-weight: var(--fw-regular); color: var(--text-secondary); line-height: var(--lh-relaxed); flex: 1; margin-bottom: 1rem; }

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  transition: gap 0.2s;
}

.blog-read-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform 0.2s;
}

.blog-card:hover .blog-read-link { gap: 0.75rem; }
.blog-card:hover .blog-read-link svg { transform: translateX(4px); }

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: var(--blue-dark);
}

.newsletter-blob-1, .newsletter-blob-2 { display: none; }

.newsletter-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.newsletter-desc {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-regular);
  color: #fff;
  line-height: var(--lh-relaxed);
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.7); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.4); }

.newsletter-submit {
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--blue);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

.newsletter-submit:hover {
  background: #f1f5f9;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  min-height: 100vh;
  background: var(--white);
}

.legal-content {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: var(--mist);
}

.legal-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  color: var(--text-heading);
  margin-bottom: 2rem;
}

.legal-body {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--text-body);
}

.legal-body p { margin-bottom: 1rem; line-height: var(--lh-loose); }

.legal-body h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  margin: 2rem 0 1rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ul li {
  margin-bottom: 0.5rem;
  line-height: var(--lh-loose);
}

.legal-body strong { color: var(--text-heading); font-weight: var(--fw-semibold); }

/* ---------- Blog Article Page ----------
   Shared by every post in /blogs — centralized here instead of being
   duplicated inline per post. */
.blog-article { padding: 2rem 0 5rem; min-height: 100vh; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--blue-dark); }

.back-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.article-header { max-width: 47.5rem; margin: 0 auto; }

.article-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--blue);
  color: #fff;
  font-size: var(--fs-overline);
  font-weight: var(--fw-semibold);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: clamp(2.125rem, 1.6rem + 2.5vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tighter);
  color: var(--text-heading);
  line-height: var(--lh-tight);
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-tertiary);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 2rem;
}

.article-meta-item { display: flex; align-items: center; gap: 0.5rem; }

.article-meta-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.article-hero-img { width: 100%; border-radius: 1rem; overflow: hidden; margin-bottom: 2rem; }

.article-hero-img img { width: 100%; height: auto; display: block; }

/* Long-form reading copy — deliberately a touch larger/looser than UI body
   text so extended paragraphs stay comfortable, not thin or cramped. */
.article-body {
  max-width: 47.5rem;
  margin: 0 auto;
  color: var(--text-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-regular);
  line-height: var(--lh-loose);
}

.article-body h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  line-height: var(--lh-snug);
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  line-height: var(--lh-snug);
  margin: 2rem 0 0.75rem;
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

.article-body li { margin-bottom: 0.5rem; }

.article-body ul { list-style: disc; }

.article-body ol { list-style: decimal; }

.article-body strong { color: var(--text-heading); font-weight: var(--fw-semibold); }

.article-body img { width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }

.callout {
  background: rgba(234, 108, 5,0.05);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--fs-body-sm);
}

.comparison-table th, .comparison-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  font-weight: var(--fw-regular);
  color: var(--text-body);
}

.comparison-table th {
  background: var(--mist);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
}

.comparison-table tr:nth-child(even) td { background: #fafafa; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

.section-sub-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub-desc {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: var(--lh-relaxed);
}
