/* =============================================
   OPTU CONSULTING — Stylesheet
   Inspired by Viviscape design language
   Colors: #630404 | #7ea6ac | #226673
   Fonts:  Oswald | Open Sans
   ============================================= */

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

:root {
  --red:        #630404;
  --red-dark:   #4a0303;
  --teal-lt:    #7ea6ac;
  --teal:       #226673;
  --teal-dark:  #1a4f5a;
  --white:      #ffffff;
  --off-white:  #f4f7f8;
  --light-gray: #dde6e9;
  --mid-gray:   #7a8f96;
  --dark:       #0a1520;
  --dark-2:     #0f1e2a;
  --dark-3:     #162433;
  --dark-card:  rgba(255,255,255,.04);

  /* Light mode surfaces */
  --lm-bg:      #ffffff;
  --lm-bg-2:    #f4f7f8;
  --lm-bg-3:    #eaf0f3;
  --lm-card:    #ffffff;
  --lm-border:  #dde6e9;
  --lm-text:    #0d1a1e;
  --lm-text-2:  #3d5560;
  --lm-text-3:  #6a8591;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.12);
  --shadow-md:  0 8px 32px rgba(0,0,0,.2);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.3);
  --glow-teal:  0 0 40px rgba(34,102,115,.4);

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --transition: .3s cubic-bezier(.25,.8,.25,1);
  --section-gap: 100px;
}

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

body {
  font-family: var(--font-body);
  background: var(--lm-bg);
  color: var(--lm-text);
  line-height: 1.7;
  overflow-x: hidden;
}
html.nav-is-open,
html.nav-is-open body { overflow: hidden; }

/* body-lock when nav open */
body[style*="position: fixed"] { overflow: hidden; }

/* ---- Type ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); letter-spacing:.02em; line-height:1.15; }

.text-gradient {
  background: linear-gradient(90deg, var(--teal-lt), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-navy  { color: var(--teal); }
.text-teal-lt { color: var(--teal-lt); }
.text-teal  { color: var(--teal-lt); }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section   { padding: var(--section-gap) 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header p { font-size: 1.05rem; color: var(--lm-text-2); max-width: 560px; margin: 16px auto 0; }
.section-header h2 { font-size: clamp(1.9rem,4vw,2.8rem); font-weight:600; color: var(--lm-text); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .72rem; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color: var(--teal-lt);
  background: rgba(126,166,172,.12);
  border: 1px solid rgba(126,166,172,.25);
  padding: 5px 14px; border-radius:100px;
  margin-bottom: 14px;
}
.section-label-light { color: #fff; background: #226673; border-color: #226673; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items:center; gap:10px;
  font-family: var(--font-head); font-size:.9rem; font-weight:500; letter-spacing:.06em;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor:pointer; text-decoration:none;
  transition: var(--transition); white-space:nowrap;
}
.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,4,4,.4);
}
.btn-glow { box-shadow: 0 0 20px rgba(99,4,4,.25); }
.btn-glow:hover { box-shadow: 0 0 36px rgba(99,4,4,.5); }

.btn-glass {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); transform: translateY(-2px); }

.btn-white { background: var(--white); color: var(--red); border-color: var(--white); font-weight:700; }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-full { width:100%; justify-content:center; }

/* =============================================
   READING PROGRESS
   ============================================= */
.reading-progress {
  position: fixed; top:0; left:0; z-index:2000;
  height: 3px; width:0%;
  background: linear-gradient(90deg, var(--red), var(--teal-lt));
  transition: width .1s linear;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 14px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(34,102,115,.12);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: #ffffff;
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(34,102,115,.12);
}

.nav { display:flex; align-items:center; justify-content:space-between; gap:32px; }

.logo-link { text-decoration:none; display:flex; align-items:center; flex-shrink:0; }
.logo-img { height: 88px; max-width: 220px; width:auto; display:block; border-radius: 18px; padding: 6px 8px; background: transparent; box-sizing: border-box; }

.nav-links { display:flex; align-items:center; gap:6px; list-style:none; }

.nav-link, .nav-link:visited, .nav-link:active, .nav-link:focus {
  font-family: var(--font-head); font-size:1rem; font-weight:500; letter-spacing:.06em;
  color: #226673; text-decoration:none;
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #226673; background: rgba(34,102,115,.08); }
.site-header.scrolled .nav-link { color: #226673; }
.site-header.scrolled .nav-link:hover { color: #226673; background: rgba(34,102,115,.08); }

/* Dropdown */
.nav-item-drop { position:relative; }
.nav-item-drop::after {
  content:''; position:absolute; top:100%; left:0; width:100%; height:14px;
}
.drop-caret { font-size:.6rem; opacity:.7; margin-left:2px; }
.nav-dropdown {
  display:none; position:absolute; top:calc(100% + 14px); left:0;
  background: #fff; border:1px solid rgba(34,102,115,.15);
  border-radius:var(--radius-md); padding:10px 0; min-width:200px;
  list-style:none; box-shadow: 0 8px 32px rgba(34,102,115,.15); z-index:100;
}
.nav-item-drop:hover .nav-dropdown,
.nav-item-drop.drop-open .nav-dropdown { display:block; }
.nav-dropdown li a {
  display:block; padding:8px 18px;
  font-family:var(--font-body); font-size:.85rem; color:#226673;
  text-decoration:none; transition:background var(--transition), color var(--transition);
}
.nav-dropdown li a:hover { background:rgba(34,102,115,.07); color:#0d3a44; }
.dropdown-sep { height:1px; background:rgba(34,102,115,.1); margin:8px 0; }
.dropdown-heading {
  padding:4px 18px 6px;
  font-family:var(--font-head); font-size:.65rem; letter-spacing:.14em;
  text-transform:uppercase; color:rgba(34,102,115,.45);
}

.nav-cta {
  font-family: var(--font-head); font-size:.82rem; font-weight:500; letter-spacing:.06em;
  color: var(--white); text-decoration:none;
  background: var(--red); padding: 9px 18px; border-radius: var(--radius-sm);
  transition: var(--transition); white-space:nowrap;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,4,4,.4); }

.nav-toggle {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.nav-toggle span { display:block; width:26px; height:2px; background:#226673; border-radius:2px; transition:var(--transition); }
.site-header.scrolled .nav-toggle span { background: #226673; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO ZONE — unified gradient + grid
   ============================================= */
.hero-zone {
  position: relative;
  background: linear-gradient(
    to bottom,
    #0d2e38 0%,
    #1b4d5c 18%,
    #226673 38%,
    #226673 78%,
    #3a7f8f 84%,
    #7ab5bf 89%,
    #c0dce0 94%,
    #f4f7f8 100%
  );
}
/* Unified grid that bleeds through the full zone */
.hero-zone::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,.25) 12%,
    rgba(0,0,0,.65) 35%,
    rgba(0,0,0,.65) 58%,
    rgba(0,0,0,.3) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,.25) 12%,
    rgba(0,0,0,.65) 35%,
    rgba(0,0,0,.65) 58%,
    rgba(0,0,0,.3) 78%,
    transparent 100%
  );
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position:relative; min-height:auto;
  background: transparent;
  display:flex; flex-direction:column; justify-content:flex-start;
  overflow:hidden;
  margin-bottom: 0;
  padding-bottom: 180px;
}

/* Grid pattern on hero ::after — removed, handled by .hero-zone */
.hero::after {
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  /* intentionally empty — grid is on .hero-zone::before */
}

.hero-particles { position:absolute; inset:0; top:72px; z-index:1; pointer-events:none; }

.hero-glow {
  position:absolute; border-radius:50%;
  filter: blur(80px); z-index:2; pointer-events:none;
}
.hero-glow-1 {
  width:1200px; height:1200px; top:-300px; left:-300px;
  background: radial-gradient(circle, rgba(126,166,172,.38) 0%, rgba(34,102,115,.22) 40%, transparent 68%);
  animation: orb-float 9s ease-in-out infinite;
}
.hero-glow-2 {
  width:400px; height:400px; bottom:-100px; right:10%;
  background: radial-gradient(circle, rgba(34,102,115,.3) 0%, transparent 70%);
  animation: orb-float 11s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%,100% { transform:translate(0,0); }
  50%      { transform:translate(20px,-30px); }
}

/* Decorative corner arc wrapping above & down the left of the headline */
/* 2-column hero layout with stats spanning full width below */
.hero-inner {
  position:relative; z-index:3; width:100%;
  display:grid; grid-template-columns:1fr minmax(0, 480px); gap:56px; align-items:center;
  padding-top:220px; padding-bottom:80px;
}

/* LEFT column */
.hero-text { display:flex; flex-direction:column; }

.hero-badge {
  display:inline-flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-family: var(--font-head); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  padding: 6px 16px; border-radius:100px; margin-bottom:26px;
  width:fit-content;
}
.badge-dot {
  width:7px; height:7px; background:#7ea6ac; border-radius:50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.5;transform:scale(1.5);} }

.hero-headline {
  font-size: clamp(2.6rem,5vw,4.2rem);
  font-weight:700; color:var(--white); line-height:1.08; margin-bottom:20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.hero-highlight { color: #7ea6ac; }
.hero-line { display: block; white-space: nowrap; }

.hero-sub {
  font-size: clamp(.92rem,1.4vw,1.04rem);
  color: rgba(255,255,255,.82); margin-bottom:32px; font-weight:400; line-height:1.75;
}
.hero-sub strong { color: var(--white); font-weight:600; }

.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:0; }

/* Stats below divider */
.hero-stats-divider {
  width:100%; height:1px; background:rgba(255,255,255,.18);
  margin: 32px 0 26px;
}
.hero-stats {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
}
.hero-stat { display:flex; flex-direction:column; gap:4px; }
.hero-stat-num {
  font-family: var(--font-head); font-size:clamp(1.4rem,2.5vw,1.8rem);
  font-weight:700; color: var(--white); line-height:1;
}
.hero-stat-lbl {
  font-size:.7rem; color:rgba(255,255,255,.55);
  text-transform:uppercase; letter-spacing:.08em; line-height:1.3;
}

.hero-cta-sub {
  font-size:.82rem; color:rgba(255,255,255,.55);
  margin-top:14px; line-height:1.5; font-style:italic;
}

/* RIGHT column — Hero SVG graphic */
.hero-visual {
  display:flex; align-items:center; justify-content:center;
}

/* ── Four Pillars hero graphic ── */
.pillars-wrap {
  width: 100%; max-width: 520px;
  position: relative;
  padding: 6px;
}
/* Corner accent brackets */
.pillars-corner {
  position: absolute; width: 28px; height: 28px;
  pointer-events: none; z-index: 2;
}
.pillars-corner-tl {
  top: 0; left: 0;
  border-top: 2px solid #7ea6ac; border-left: 2px solid #7ea6ac;
  border-radius: 4px 0 0 0;
}
.pillars-corner-br {
  bottom: 0; right: 0;
  border-bottom: 2px solid #7ea6ac; border-right: 2px solid #7ea6ac;
  border-radius: 0 0 4px 0;
}
.pillars-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(126,166,172,0.6);
  text-align: center;
  margin-bottom: 14px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* Individual pillar card */
.pillar-card {
  background: linear-gradient(145deg, rgba(13,46,56,0.9), rgba(6,14,19,0.95));
  border: 1px solid rgba(126,166,172,0.14);
  border-radius: 16px;
  padding: 22px 18px 18px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: pillarFloat 6s ease-in-out infinite;
}
.pillar-card-1 { animation-delay: 0s; }
.pillar-card-2 { animation-delay: 1.2s; }
.pillar-card-3 { animation-delay: 0.6s; }
.pillar-card-4 { animation-delay: 1.8s; }
@keyframes pillarFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.pillar-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(34,102,115,0.12), transparent 70%);
  pointer-events: none;
}
.pillar-card:hover {
  border-color: rgba(126,166,172,0.45);
  box-shadow: 0 12px 36px rgba(34,102,115,0.25), 0 0 0 1px rgba(126,166,172,0.2);
  transform: translateY(-8px) !important;
}
/* Icon */
.pillar-icon-wrap {
  width: 72px; height: 72px;
  background: rgba(34,102,115,0.1);
  border: 1px solid rgba(126,166,172,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pillar-svg { width: 48px; height: 48px; }
/* Pulse ring on each icon */
.pillar-pulse {
  transform-origin: 24px 24px;
  animation: pillarPulse 3s ease-in-out infinite;
}
@keyframes pillarPulse {
  0%,100% { opacity: 0.1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.08); }
}
/* Cursor blink on software card */
.pillar-cursor-blink { animation: pillarBlink 1s step-end infinite; }
@keyframes pillarBlink { 0%,100%{opacity:1} 50%{opacity:0} }
/* Animated bar heights */
.pillar-bar { transform-origin: bottom; animation: pillarBarGrow 1.5s ease-out forwards; }
.pillar-bar-1 { animation-delay: 0.2s; transform: scaleY(0); }
.pillar-bar-2 { animation-delay: 0.4s; transform: scaleY(0); }
.pillar-bar-3 { animation-delay: 0.6s; transform: scaleY(0); }
@keyframes pillarBarGrow { to { transform: scaleY(1); } }
/* Trend line draw-on */
.pillar-trendline {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: pillarDraw 1.8s ease-out 0.8s forwards;
}
.pillar-trend-dot { opacity: 0; animation: pillarFadeIn 0.3s ease 2.4s forwards; }
@keyframes pillarDraw { to { stroke-dashoffset: 0; } }
@keyframes pillarFadeIn { to { opacity: 1; } }
/* Dashed connection lines */
.pillar-dash { stroke-dasharray: 4 3; animation: pillarDashFlow 2s linear infinite; }
@keyframes pillarDashFlow { to { stroke-dashoffset: -14; } }
/* Name & tags */
.pillar-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: #fff; letter-spacing: 0.5px; line-height: 1.2;
}
.pillar-tags {
  display: flex; gap: 5px; flex-wrap: wrap; justify-content: center;
}
.pillar-tags span {
  font-size: 0.55rem; color: rgba(126,166,172,0.7);
  background: rgba(34,102,115,0.15);
  border: 1px solid rgba(126,166,172,0.15);
  border-radius: 20px; padding: 2px 7px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pillar-arrow {
  font-size: 0.75rem; color: rgba(126,166,172,0.4);
  transition: color 0.2s, transform 0.2s;
}
.pillar-card:hover .pillar-arrow {
  color: #7ea6ac; transform: translateX(4px);
}

/* Keep old platform/hub classes hidden */
.opc-card, .ai-hub-card { display: none; }

/* Keep old SVG styles */
.hero-svg-graphic {
  width: 100%; max-width: 560px; display: block; border-radius: 18px;
  filter: drop-shadow(0 0 20px rgba(34,102,115,.45)) drop-shadow(0 24px 48px rgba(0,0,0,.55));
}
.hsvg-gear { transform-origin: 260px 225px; animation: icon-spin 14s linear infinite; }
.hsvg-gear-node { transform-origin: 12px 12px; animation: icon-spin 8s linear infinite; }
.hsvg-pulse-1 { transform-origin: 260px 225px; animation: hsvg-pulse 3s ease-in-out infinite; }
.hsvg-pulse-2 { transform-origin: 260px 225px; animation: hsvg-pulse 3s ease-in-out infinite 1.1s; }
@keyframes hsvg-pulse { 0%,100%{opacity:.15;transform:scale(1)} 50%{opacity:.45;transform:scale(1.05)} }
.hconn-1 { animation: hconn-flow 2.4s linear infinite; }
.hconn-2 { animation: hconn-flow 2.8s linear infinite 0.6s; }
.hconn-3 { animation: hconn-flow 2.6s linear infinite 1.2s; }
.hconn-4 { animation: hconn-flow 2.5s linear infinite 0.3s; }
.hconn-5 { animation: hconn-flow 2.2s linear infinite 1.8s; }
@keyframes hconn-flow { to{stroke-dashoffset:-24} }
/* ======================== HERO DASHBOARD MOCKUP ======================== */
.hdash-wrap {
  width: 100%;
  max-width: 580px;
  position: relative;
  padding: 24px 18px 30px;
}
.hdash-win {
  background: #0b1c26;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(126,166,172,0.2),
    inset 0 1px 0 rgba(255,255,255,0.07);
}
.hdash-chrome {
  background: #060f16;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hdash-dots { display:flex; gap:5px; flex-shrink:0; }
.hdash-dots span { width:9px; height:9px; border-radius:50%; display:block; }
.hdash-url-bar {
  flex: 1;
  background: #060f16;
  border-radius: 5px;
  padding: 3px 10px;
}
.hdash-body { display:flex; height:278px; }
.hdash-sidebar {
  width: 42px;
  background: #060f16;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hdash-sb-btn {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.hdash-sb-btn:hover, .hdash-sb-btn.active {
  background: rgba(126,166,172,0.15);
  color: #7ea6ac;
}
.hdash-panel {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.hdash-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.hdash-panel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.hdash-live-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.28);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 9px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 1.5px;
}
.hdash-live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  animation: hdash-blink 1.4s ease-in-out infinite;
}
@keyframes hdash-blink { 0%,100%{opacity:1} 50%{opacity:0.15} }
.hdash-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  flex-shrink: 0;
}
.hdash-kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(126,166,172,0.13);
  border-radius: 8px;
  padding: 9px 9px 7px;
}
.hdash-kpi-val {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: flex; align-items: baseline; gap: 1px;
}
.hdash-kpi-unit { font-size: 11px; color: rgba(255,255,255,0.4); font-weight:400; margin-left:1px; }
.hdash-kpi-lbl {
  font-size: 8px;
  color: rgba(255,255,255,0.38);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.3;
  margin-top: 3px;
}
.hdash-kpi-trend { font-size:9px; color:#4ade80; font-family:'Open Sans',sans-serif; font-weight:700; margin-top:4px; }
.hdash-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7px;
  flex: 1;
  min-height: 0;
  margin-top: 8px;
}
.hdash-chart-box, .hdash-feed-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(126,166,172,0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.hdash-box-ttl {
  font-size: 8px;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.32);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.hdash-period { color: rgba(126,166,172,0.55); margin-left:4px; }
.hdash-chart-svg { flex:1; width:100%; min-height:0; }
.hdash-line-path {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  animation: hdash-draw 2.4s ease forwards 1.3s;
}
.hdash-fill-path {
  opacity: 0;
  animation: hdash-fadein 0.8s ease forwards 3s;
}
.hdash-chart-dot {
  opacity: 0;
  animation: hdash-fadein 0.4s ease forwards 3.5s;
  filter: drop-shadow(0 0 4px #7ea6ac);
}
@keyframes hdash-draw { to { stroke-dashoffset: 0; } }
@keyframes hdash-fadein { to { opacity: 1; } }
.hdash-feed-list { display:flex; flex-direction:column; gap:6px; flex:1; overflow:hidden; }
.hdash-feed-item { display:flex; align-items:flex-start; gap:6px; }
.hdash-feed-dot { width:5px; height:5px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.hdash-feed-txt { font-size:9px; color:rgba(255,255,255,0.45); font-family:'Open Sans',sans-serif; line-height:1.4; }
.hdash-feed-item.is-new .hdash-feed-txt { color:rgba(255,255,255,0.85); }
.hdash-feed-item.fade-in { animation: hdash-slidein 0.35s ease forwards; }
@keyframes hdash-slidein { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

/* Floating badges */
.hdash-badge {
  position: absolute;
  background: linear-gradient(135deg,rgba(11,28,38,0.97),rgba(6,15,22,0.97));
  border: 1px solid rgba(126,166,172,0.25);
  border-radius: 30px;
  padding: 7px 14px;
  font-size: 11px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 1px rgba(126,166,172,0.1);
  z-index: 2;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.hdash-badge-tr { top:2px; right:0; animation: hdash-float 3.2s ease-in-out infinite; }
.hdash-badge-bl { bottom:4px; left:20px; color:#4ade80; border-color:rgba(74,222,128,0.25); animation: hdash-float 3.8s ease-in-out infinite 0.6s; }
.hdash-pulse-dot { width:8px; height:8px; border-radius:50%; background:#4ade80; animation:hdash-blink 1.3s ease-in-out infinite; flex-shrink:0; }
@keyframes hdash-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

@media (max-width:900px) {
  /* no tilt */
}
@media (max-width:768px) {
  .hdash-wrap { max-width:100%; padding:16px 8px 20px; }
  .hdash-badge { display:none; }
}

/* ── Cycling screen container ── */
.hdash-content {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.hdash-screen {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hdash-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hdash-screen-hdr {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  padding: 0 4px;
  gap: 12px;
}
.hdash-screen-title {
  font-family: 'Oswald', sans-serif;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.8px; text-transform: uppercase;
}
/* Screen indicators */
.hdash-indicators {
  display: flex; justify-content: center; align-items: center; gap: 5px;
  padding: 10px 0 0;
  background: none;
  width: 100%;
}
.hdash-ind-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transition: all 0.35s ease; cursor: pointer;
}
.hdash-ind-dot.is-active { background: #7ea6ac; width: 18px; border-radius: 3px; }
/* Small badge variants */
.hdash-badge-sm {
  font-size: 8.5px; font-family: 'Open Sans', sans-serif; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: 1px;
}
.hdash-badge-teal { background: rgba(34,102,115,0.3); border: 1px solid rgba(126,166,172,0.35); color: #7ea6ac; }
.hdash-badge-dim  { background: transparent; border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); }
.hdash-badge-red  { background: rgba(99,4,4,0.3); border: 1px solid rgba(180,60,60,0.4); color: #f07070; }

/* ── Screen 0: AI Agent ── */
.hdash-agent-body { display:grid; grid-template-columns:1fr 1fr; gap:8px; flex:1; min-height:0; }
.hdash-agent-col {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(126,166,172,0.1);
  border-radius: 8px; padding: 8px; overflow: hidden;
}
.hdash-col-ttl {
  font-size: 8px; text-transform: uppercase; letter-spacing: 0.9px;
  color: rgba(255,255,255,0.3); margin-bottom: 7px;
  font-family: 'Open Sans', sans-serif;
}
.hdash-task-item {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; font-size: 9px; font-family: 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hdash-task-item:last-child { border-bottom: none; }
.hdash-task-item.done  { color: rgba(255,255,255,0.75); }
.hdash-task-item.running { color: #7ea6ac; }
.hdash-task-check {
  width: 14px; height: 14px; border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 9px; line-height: 1;
}
.done .hdash-task-check    { background: rgba(74,222,128,0.15); border-color: #4ade80; color: #4ade80; }
.running .hdash-task-check { background: rgba(126,166,172,0.15); border-color: #7ea6ac; color: #7ea6ac; animation: hdash-spin 1.3s linear infinite; }
@keyframes hdash-spin { to { transform: rotate(360deg); } }
.hdash-output-line {
  font-size: 8.5px; font-family: monospace;
  color: rgba(255,255,255,0.42); padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 4px;
}
.hdash-output-line:last-child { border-bottom: none; color: #7ea6ac; }
.hdash-output-line.ok { color: #4ade80; }
.hdash-output-line::before { content: '>'; color: rgba(126,166,172,0.35); margin-right: 2px; }
.hdash-cursor {
  display: inline-block; width: 6px; height: 11px;
  background: #7ea6ac; border-radius: 1px;
  animation: hdash-blink 0.85s ease-in-out infinite;
  vertical-align: text-bottom; margin-left: 2px;
}
.hdash-status-bar {
  font-size: 8px; font-family: 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.28); padding: 5px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}

/* ── Screen 1: Reports ── */
.hdash-reports-list { display:flex; flex-direction:column; gap:7px; flex:1; justify-content:center; }
.hdash-report-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(126,166,172,0.1);
  border-radius: 8px; padding: 8px 10px;
  opacity: 0; transform: translateY(14px);
}
.hdash-screen.is-active .hdash-report-row:nth-child(1) { animation: hdash-rowIn 0.38s ease forwards 0.08s; }
.hdash-screen.is-active .hdash-report-row:nth-child(2) { animation: hdash-rowIn 0.38s ease forwards 0.24s; }
.hdash-screen.is-active .hdash-report-row:nth-child(3) { animation: hdash-rowIn 0.38s ease forwards 0.40s; }
.hdash-screen.is-active .hdash-report-row:nth-child(4) { animation: hdash-rowIn 0.38s ease forwards 0.56s; }
@keyframes hdash-rowIn { to { opacity: 1; transform: translateY(0); } }
.hdash-report-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(126,166,172,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.hdash-report-info { flex: 1; min-width: 0; }
.hdash-report-name { font-size: 9.5px; font-family: 'Open Sans', sans-serif; color: rgba(255,255,255,0.75); margin-bottom: 5px; }
.hdash-rbar-track { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.hdash-rbar-fill  { height: 100%; background: linear-gradient(to right, #226673, #7ea6ac); border-radius: 2px; width: 0; transition: width 0.9s ease 0.3s; }
.hdash-screen.is-active .hdash-rbar-fill { width: var(--w, 70%); }
.hdash-report-val { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; }

/* ── Screen 2: Dashboard mini bars ── */
.hdash-mini-bars { display:flex; align-items:flex-end; gap:4px; height:52px; }
.hdash-mini-bar-col { display:flex; flex-direction:column; align-items:center; gap:2px; flex:1; }
.hdash-mini-bar {
  width: 100%; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #226673, #7ea6ac);
  height: 0; transition: height 0.65s cubic-bezier(0.34,1.4,0.64,1);
}
.hdash-screen.is-active .hdash-mini-bar { height: var(--h); }
.hdash-mini-lbl { font-size: 7px; color: rgba(126,166,172,0.7); font-family: 'Open Sans', sans-serif; }
.hdash-loc-list { display:flex; flex-direction:column; gap:6px; overflow:hidden; }
.hdash-loc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8.5px; font-family: 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.55);
}
.hdash-loc-val { font-weight: 700; }
.hdash-loc-val.g { color: #4ade80; }
.hdash-loc-val.y { color: #f59e0b; }
.hdash-loc-val.t { color: #7ea6ac; }

/* ── Screen 3: Code Editor ── */
.hdash-code-wrap {
  flex: 1; background: rgba(0,0,0,0.25);
  border: 1px solid rgba(126,166,172,0.1);
  border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
  min-height: 0;
}
.hdash-code-body {
  flex: 1; overflow: hidden; padding: 8px 8px 8px 0;
  display: flex;
  font-size: 9px; line-height: 1.75;
}
.hdash-ln-col {
  width: 26px; text-align: right; padding-right: 8px;
  color: rgba(255,255,255,0.15); flex-shrink: 0;
  font-family: monospace; font-size: 9px; line-height: 1.75;
  user-select: none;
}
.hdash-code-lines { flex: 1; overflow: hidden; }
.hdash-type-line {
  max-width: 0; overflow: hidden; white-space: nowrap;
  color: rgba(255,255,255,0.72); font-family: monospace;
}
.hdash-screen.is-active .hdash-type-line:nth-child(1) { animation: hdash-type 0.35s steps(30) forwards 0.15s; }
.hdash-screen.is-active .hdash-type-line:nth-child(2) { animation: hdash-type 0.45s steps(30) forwards 0.45s; }
.hdash-screen.is-active .hdash-type-line:nth-child(3) { animation: hdash-type 0.38s steps(30) forwards 0.85s; }
.hdash-screen.is-active .hdash-type-line:nth-child(4) { animation: hdash-type 0.32s steps(30) forwards 1.18s; }
.hdash-screen.is-active .hdash-type-line:nth-child(5) { animation: hdash-type 0.22s steps(30) forwards 1.45s; }
.hdash-screen.is-active .hdash-type-line:nth-child(6) { animation: hdash-type 0.42s steps(30) forwards 1.62s; }
.hdash-screen.is-active .hdash-type-line:nth-child(7) { animation: hdash-type 0.40s steps(30) forwards 1.98s; }
.hdash-screen.is-active .hdash-type-line:nth-child(8) { animation: hdash-type 0.48s steps(30) forwards 2.32s; }
.hdash-screen.is-active .hdash-type-line:nth-child(9) { animation: hdash-type 0.28s steps(30) forwards 2.72s; }
.hdash-screen.is-active .hdash-type-line:nth-child(10) { animation: hdash-type 0.32s steps(30) forwards 2.96s; }
.hdash-screen.is-active .hdash-type-line:nth-child(11) { animation: hdash-type 0.38s steps(30) forwards 3.22s; }
.hdash-screen.is-active .hdash-type-line:nth-child(12) { animation: hdash-type 0.28s steps(30) forwards 3.52s; }
@keyframes hdash-type { from { max-width: 0; } to { max-width: 100%; } }
.c-kw  { color: #c792ea; }
.c-fn  { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-cm  { color: rgba(255,255,255,0.28); font-style: italic; }
.c-num { color: #f78c6c; }

/* ── Screen 4: Mobile App ── */
.hdash-phone-area {
  flex: 1; display: flex; align-items: center;
  justify-content: center; min-height: 0;
}
.hdash-phone {
  width: 116px; height: 218px; border-radius: 22px;
  border: 2.5px solid #d1d5db;
  background: #f5f7fa; position: relative; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.06);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  flex-shrink: 0;
}
.hdash-screen.is-active .hdash-phone { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
/* Notch */
.hdash-phone::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 5px; background: #d1d5db; border-radius: 3px; z-index: 10;
}
/* Status bar */
.happ-status-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 9;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 8px 0;
  font-size: 5.5px; font-family: 'Open Sans', sans-serif; font-weight: 700;
  color: #1f2937; height: 16px;
}
.happ-status-icons { display: flex; align-items: center; gap: 3px; color: #1f2937; }
/* App root */
.happ-root {
  position: absolute; inset: 0; top: 16px;
  display: flex; flex-direction: column;
  background: #f5f7fa;
}
/* App header - gradient like a real app */
.happ-header {
  background: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  padding: 8px 9px 10px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-shrink: 0;
}
.happ-greeting {
  font-size: 5px; color: rgba(255,255,255,0.7);
  font-family: 'Open Sans', sans-serif; margin-bottom: 1px;
}
.happ-name {
  font-family: 'Oswald', sans-serif; font-size: 11px;
  font-weight: 600; color: white; letter-spacing: 0.3px;
}
.happ-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.4);
  font-size: 5.5px; font-family: 'Oswald', sans-serif;
  font-weight: 700; color: white;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.3px;
}
/* Body */
.happ-body {
  flex: 1; overflow: hidden;
  padding: 7px 7px 4px;
  display: flex; flex-direction: column; gap: 5px;
  background: #f5f7fa;
}
/* Metric cards */
.happ-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex-shrink: 0; }
.happ-metric {
  background: white; border-radius: 7px;
  padding: 5px 5px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.happ-metric-icon {
  width: 16px; height: 16px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.happ-metric-val {
  font-family: 'Oswald', sans-serif; font-size: 10px;
  font-weight: 700; color: #111827; line-height: 1;
}
.happ-metric-lbl {
  font-size: 5px; color: #6b7280;
  font-family: 'Open Sans', sans-serif; margin: 1px 0;
}
.happ-metric-trend {
  font-size: 6px; font-weight: 700;
  font-family: 'Open Sans', sans-serif; color: #4f46e5;
}
/* Chart card */
.happ-chart-card {
  background: white; border-radius: 7px; padding: 5px 5px 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); flex-shrink: 0;
}
.happ-chart-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.happ-chart-title { font-size: 7px; font-family: 'Oswald', sans-serif; font-weight: 600; color: #111827; }
.happ-chart-sub   { font-size: 5px; color: #9ca3af; font-family: 'Open Sans', sans-serif; }
.happ-chart-bars  { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.happ-cbar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: #e0e7ff; height: var(--ch, 50%);
  transition: height 0.6s cubic-bezier(0.34,1.4,0.64,1);
}
.happ-cbar.active { background: #4f46e5; }
.hdash-screen.is-active .happ-cbar { height: var(--ch, 50%); }
.happ-chart-labels {
  display: flex; gap: 2px; margin-top: 2px;
  font-size: 5px; color: #9ca3af; font-family: 'Open Sans', sans-serif;
}
.happ-chart-labels span { flex: 1; text-align: center; }
/* Activity */
.happ-activity-label {
  font-size: 6px; font-family: 'Oswald', sans-serif; font-weight: 600;
  color: #374151; letter-spacing: 0.3px; flex-shrink: 0;
}
.happ-activity { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.happ-act-row {
  display: flex; align-items: center; gap: 4px;
  background: white; border-radius: 5px; padding: 3px 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.happ-act-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.happ-act-txt { flex: 1; font-size: 6px; color: #374151; font-family: 'Open Sans', sans-serif; }
.happ-act-time { font-size: 5px; color: #9ca3af; font-family: 'Open Sans', sans-serif; }
/* Bottom nav */
.happ-nav {
  display: flex; background: white;
  border-top: 1px solid #e5e7eb; padding: 4px 0 5px;
  flex-shrink: 0;
}
.happ-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 1.5px;
  color: #9ca3af; cursor: pointer;
}
.happ-nav-item.active { color: #4f46e5; }
.happ-nav-item svg { display: block; }
.happ-nav-item span {
  font-size: 4.5px; font-family: 'Open Sans', sans-serif; font-weight: 600;
}
/* ── Pharmacy Portal Mockup (shared with hero screen 5) ── */
.pharm-mockup {
  border-radius: 0; overflow: hidden;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif;
  display: flex; width: 100%; height: 100%;
}
.phm-sidebar {
  width: 130px; flex-shrink: 0;
  background: #0d2e38; display: flex; flex-direction: column; height: 100%;
}
.phm-sidebar-logo {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: #7ea6ac; letter-spacing: 0.08em; text-transform: uppercase;
}
.phm-sidebar-logo span { color:#fff; display:block; font-size:0.65rem; font-weight:400; opacity:0.5; margin-top:1px; font-family:'Open Sans',sans-serif; letter-spacing:0; }
.phm-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; font-size: 0.7rem; color: rgba(255,255,255,0.5);
  cursor: pointer; border-left: 2px solid transparent;
}
.phm-nav-item.active { color:#fff; background:rgba(126,166,172,0.1); border-left-color:#7ea6ac; }
.phm-nav-icon { font-size:0.8rem; width:14px; text-align:center; }
.phm-nav-section { padding:10px 14px 4px; font-size:0.58rem; color:rgba(255,255,255,0.25); text-transform:uppercase; letter-spacing:0.1em; }
.phm-sidebar-footer { margin-top:auto; padding:10px 14px; border-top:1px solid rgba(255,255,255,0.07); font-size:0.65rem; color:rgba(255,255,255,0.35); }
.phm-main { flex:1; display:flex; flex-direction:column; background:#f4f7f8; overflow:hidden; }
.phm-topbar { background:#fff; border-bottom:1px solid #e5eef0; padding:8px 14px; display:flex; align-items:center; justify-content:space-between; }
.phm-topbar-title { font-family:'Oswald',sans-serif; font-size:0.8rem; font-weight:600; color:#0d2e38; }
.phm-topbar-right { display:flex; align-items:center; gap:8px; }
.phm-topbar-badge { background:#dcfce7; border-radius:20px; padding:2px 8px; font-size:0.65rem; color:#166534; font-weight:600; display:flex; align-items:center; gap:4px; }
.phm-live-dot { width:5px; height:5px; border-radius:50%; background:#4ade80; animation:phmPulse 2s ease-in-out infinite; }
@keyframes phmPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.phm-user-avatar { width:22px; height:22px; border-radius:50%; background:#226673; color:#fff; font-size:0.6rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
.phm-stats-row { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; padding:10px 12px 6px; }
.phm-stat-card { background:#fff; border-radius:8px; border:1px solid #e5eef0; padding:8px 10px; }
.phm-stat-val { font-family:'Oswald',sans-serif; font-size:1.2rem; font-weight:700; color:#226673; line-height:1; }
.phm-stat-lbl { font-size:0.62rem; color:#7ea6ac; margin-top:2px; text-transform:uppercase; letter-spacing:0.07em; }
.phm-body { display:grid; grid-template-columns:1fr 90px; gap:8px; padding:0 12px 8px; flex:1; min-height:0; }
.phm-chart-card { background:#fff; border-radius:8px; border:1px solid #e5eef0; padding:8px 10px; display:flex; flex-direction:column; }
.phm-chart-title { font-size:0.62rem; font-weight:700; color:#7ea6ac; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:8px; }
.phm-bars { display:flex; align-items:flex-end; gap:5px; flex:1; padding-bottom:16px; position:relative; }
.phm-bars::after { content:''; position:absolute; bottom:16px; left:0; right:0; height:1px; background:#e5eef0; }
.phm-bar-group { display:flex; flex-direction:column; align-items:center; flex:1; gap:3px; }
.phm-bar { width:100%; border-radius:3px 3px 0 0; background:#226673; min-height:4px; }
.phm-bar.accent { background:#7ea6ac; }
.phm-bar-lbl { font-size:0.55rem; color:#7ea6ac; white-space:nowrap; }
.phm-bar.phm-bar-h1 { height:10px; } .phm-bar.phm-bar-h2 { height:18px; } .phm-bar.phm-bar-h3 { height:22px; }
.phm-bar.phm-bar-h4 { height:26px; } .phm-bar.phm-bar-h5 { height:30px; } .phm-bar.phm-bar-h6 { height:38px; }
.phm-metrics-card { background:#fff; border-radius:8px; border:1px solid #e5eef0; padding:8px 10px; display:flex; flex-direction:column; gap:6px; }
.phm-metric-row { display:flex; flex-direction:column; gap:1px; }
.phm-metric-label { font-size:0.58rem; color:#7ea6ac; text-transform:uppercase; letter-spacing:0.06em; }
.phm-metric-val { font-family:'Oswald',sans-serif; font-size:0.95rem; font-weight:700; color:#0d2e38; }
.phm-metric-bar-wrap { height:3px; background:#eef2f3; border-radius:2px; margin-top:2px; }
.phm-metric-bar-fill { height:100%; border-radius:2px; background:#226673; }
.phm-alert { background:#fff7ed; border-top:2px solid #f97316; padding:6px 12px; margin:6px 12px 8px; border-radius:6px; display:flex; align-items:flex-start; gap:6px; }
.phm-alert-icon { color:#f97316; font-size:0.8rem; flex-shrink:0; margin-top:1px; }
.phm-alert-text { font-size:0.65rem; color:#7c3a00; line-height:1.4; }
.phm-screens { position:relative; flex:1; display:flex; flex-direction:column; overflow:hidden; }
.phm-screen { position:absolute; inset:0; display:flex; flex-direction:column; opacity:0; transform:translateX(18px); transition:opacity 0.45s ease,transform 0.45s ease; pointer-events:none; overflow:hidden; }
.phm-screen.active { opacity:1; transform:translateX(0); pointer-events:auto; position:relative; }
.phm-screen.exit { opacity:0; transform:translateX(-18px); position:absolute; }
.phm-table { width:100%; border-collapse:collapse; font-size:0.62rem; }
.phm-table th { background:#f0f4f5; color:#7ea6ac; text-transform:uppercase; letter-spacing:0.07em; padding:5px 8px; text-align:left; font-weight:700; border-bottom:1px solid #e5eef0; }
.phm-table td { padding:5px 8px; border-bottom:1px solid #f0f4f5; color:#0d2e38; vertical-align:middle; }
.phm-table tr:last-child td { border-bottom:none; }
.phm-badge { display:inline-block; border-radius:20px; padding:1px 7px; font-size:0.58rem; font-weight:700; }
.phm-badge-pending { background:#fff7ed; color:#c2410c; }
.phm-badge-ready   { background:#dcfce7; color:#166534; }
.phm-badge-process { background:#dbeafe; color:#1d4ed8; }
.phm-badge-hold    { background:#fef9c3; color:#854d0e; }
.phm-patient-row { display:flex; align-items:center; gap:8px; padding:5px 10px; border-bottom:1px solid #f0f4f5; font-size:0.65rem; }
.phm-patient-avatar { width:22px; height:22px; border-radius:50%; background:#226673; color:#fff; font-size:0.55rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.phm-patient-name { font-weight:600; color:#0d2e38; }
.phm-patient-meta { font-size:0.58rem; color:#7ea6ac; }
.phm-patient-rx   { font-size:0.62rem; font-weight:700; color:#226673; }
.phm-inv-bar-wrap { height:4px; background:#eef2f3; border-radius:2px; margin-top:2px; width:60px; }
.phm-inv-bar { height:100%; border-radius:2px; }
/* Hero screen 5 scale wrapper */
.phm-hero-scale {
  position: absolute;
  top: 0; left: 0;
  transform: scale(0.7);
  transform-origin: top left;
  width: 142.86%;
  height: 142.86%;
}
#hds-5 { padding: 0; overflow: hidden; position: absolute; inset: 0; }

/* ── Screen 5: Pharmacy Portal ── */
.hdash-rx-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; flex-shrink: 0;
}
.hdash-rx-stat {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(126,166,172,0.13);
  border-radius: 7px; padding: 7px 6px 6px; text-align: center;
}
.hdash-rx-stat-val {
  font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 700;
  color: #fff; line-height: 1;
}
.hdash-rx-stat-lbl {
  font-size: 7px; color: rgba(255,255,255,0.4);
  font-family: 'Open Sans', sans-serif; margin-top: 2px;
}
.hdash-rx-stat-warn { border-color: rgba(249,163,22,0.3); }
.hdash-rx-stat-warn .hdash-rx-stat-val { color: #f59e0b; }
.hdash-rx-stat-alert { border-color: rgba(249,115,22,0.3); }
.hdash-rx-stat-alert .hdash-rx-stat-val { color: #f97316; }
.hdash-rx-metrics { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.hdash-rx-row {
  display: flex; align-items: center; gap: 7px;
}
.hdash-rx-lbl {
  font-size: 8.5px; color: rgba(255,255,255,0.5);
  font-family: 'Open Sans', sans-serif; width: 44px; flex-shrink: 0;
}
.hdash-rx-bar-wrap {
  flex: 1; height: 5px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden;
}
.hdash-rx-bar {
  height: 100%; width: 0;
  background: var(--rc, #7ea6ac); border-radius: 3px;
  transition: width 0.75s cubic-bezier(0.34,1.2,0.64,1);
}
.hdash-screen.is-active .hdash-rx-bar { width: var(--rw, 50%); }
.hdash-rx-val {
  font-size: 9px; font-family: 'Oswald', sans-serif; font-weight: 600;
  color: rgba(255,255,255,0.7); width: 28px; text-align: right; flex-shrink: 0;
}

/* ── 3-phone tri layout ── */
.hdash-tri-phones {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex: 1; padding: 8px 12px; flex-wrap: nowrap; overflow: hidden;
}
.hdash-tri-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.hdash-tri-center { transform: none; }
/* Phone-mode styles kept for reference but inactive */
.hdash-win.phone-mode .hdash-tri-lbl { color: rgba(255,255,255,0.6); }
.hdash-phone-sm {
  width: 132px !important; height: 250px !important; border-radius: 18px !important;
}
.hdash-phone-sm .happ-header { padding: 6px 7px 7px; }
.hdash-phone-sm .happ-name { font-size: 9px; }
.hdash-phone-sm .happ-body { gap: 4px; padding: 5px 5px 3px; }
.hdash-phone-sm .happ-metric { padding: 4px 4px 3px; }
.hdash-phone-sm .happ-chart-card { padding: 4px 4px 3px; }
.hdash-phone-sm .happ-chart-bars { height: 22px; }
.hdash-phone-sm .happ-activity { gap: 2px; }
.hdash-phone-sm .happ-act-row { padding: 2px 4px; }
.hdash-phone-sm .happ-nav { padding: 3px 0 4px; }
.hdash-phone-sm .happ-status-bar { padding: 1px 7px 0; height: 14px; font-size: 5px; }

/* Phone-mode: strip the window so phones float on the hero background */
.hdash-win.phone-mode {
  background: transparent;
  box-shadow: none;
  border: none;
}
.hdash-win.phone-mode .hdash-chrome   { display: none; }
.hdash-win.phone-mode .hdash-indicators {
  background: transparent;
  border-top: none;
}
.hdash-win.phone-mode .hdash-screen-hdr { display: none; }
.hdash-win.phone-mode #hds-4 { padding: 8px 10px; }
.hdash-win.phone-mode .hdash-tri-lbl { color: rgba(255,255,255,0.6); }

/* Login screen phone */
.happ-login-wrap {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #eef2ff 0%, #fff 50%, #f5f3ff 100%);
  display: flex; flex-direction: column; align-items: center;
  padding: 13px 9px 7px; box-sizing: border-box; gap: 3px;
  overflow: hidden;
}
.happ-login-status {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  font-size: 5px; font-family: 'Open Sans', sans-serif; font-weight: 700;
  color: #4f46e5; margin-bottom: 8px;
}
.happ-login-welcome {
  font-size: 10px; font-weight: 700; color: #1e1b4b;
  font-family: 'Oswald', sans-serif; align-self: flex-start; margin-bottom: 1px;
}
.happ-login-wsub {
  font-size: 6px; color: #6b7280; font-family: 'Open Sans', sans-serif;
  align-self: flex-start; margin-bottom: 8px;
}
.happ-login-icon { display: none; }
.happ-login-brand { display: none; }
.happ-login-sub { display: none; }
.happ-login-field { width: 100%; }
.happ-login-label {
  font-size: 5px; color: #6b7280; font-family: 'Open Sans', sans-serif;
  margin-bottom: 2px; padding-left: 1px;
}
.happ-login-input {
  width: 100%; background: #fff; border: 1.5px solid #c7d2fe; border-radius: 5px;
  padding: 4px 6px; font-size: 6px; color: #9ca3af;
  font-family: 'Open Sans', sans-serif; box-sizing: border-box;
}
.happ-login-dots { letter-spacing: 2px; color: #d1d5db; }
.happ-login-btn {
  width: 100%; background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 6px; padding: 5.5px; text-align: center;
  font-size: 7px; font-weight: 600; color: #fff;
  font-family: 'Open Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(79,70,229,0.38); margin: 4px 0 3px;
}
.happ-login-forgot {
  font-size: 5.5px; color: #6366f1; font-family: 'Open Sans', sans-serif;
}
.happ-login-divider {
  display: flex; align-items: center; width: 100%; gap: 4px; margin: 4px 0;
}
.happ-login-divider-line { flex: 1; height: 1px; background: #e0e7ff; }
.happ-login-divider-txt {
  font-size: 4.5px; color: #9ca3af; font-family: 'Open Sans', sans-serif; white-space: nowrap;
}
.happ-login-socials { display: flex; gap: 4px; width: 100%; }
.happ-login-social-g {
  flex: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: 5px;
  padding: 4px 2px; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.happ-login-social-a {
  flex: 1; background: #111; border-radius: 5px;
  padding: 4px 2px; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.happ-login-social-lbl { font-size: 5px; font-family: 'Open Sans', sans-serif; }
.happ-login-new {
  font-size: 5px; color: #9ca3af; font-family: 'Open Sans', sans-serif; margin-top: 3px;
}

/* Dark mode fitness tracker phone */
.happ-dark-wrap {
  position: absolute; inset: 0;
  background: #0d0d0d;
  display: flex; flex-direction: column;
  padding: 10px 9px 0; box-sizing: border-box; overflow: hidden;
}
.happ-dark-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 5px; font-family: 'Open Sans', sans-serif; font-weight: 700;
  color: rgba(255,255,255,0.8); margin-bottom: 5px;
}
.happ-dark-hdr {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px;
}
.happ-dark-date { font-size: 5px; color: rgba(255,255,255,0.35); font-family: 'Open Sans', sans-serif; margin-bottom: 1px; }
.happ-dark-title { font-size: 8px; font-weight: 700; color: #fff; font-family: 'Oswald', sans-serif; }
.happ-dark-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: #06b6d4; display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 700; color: #fff; font-family: 'Open Sans', sans-serif;
}
.happ-dark-ring-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 5px; width: 54px; height: 54px;
}
.happ-dark-ring-txt {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.happ-dark-steps-num { font-size: 10px; font-weight: 700; color: #fff; font-family: 'Oswald', sans-serif; line-height: 1; }
.happ-dark-steps-lbl { font-size: 5px; color: rgba(255,255,255,0.45); font-family: 'Open Sans', sans-serif; }
.happ-dark-stats {
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a; border-radius: 8px; padding: 5px 4px; margin-bottom: 5px;
}
.happ-dark-stat { flex: 1; text-align: center; }
.happ-dark-stat-val { font-size: 8px; font-weight: 700; color: #fff; font-family: 'Oswald', sans-serif; line-height: 1.1; }
.happ-dark-stat-lbl { font-size: 4.5px; color: rgba(255,255,255,0.35); font-family: 'Open Sans', sans-serif; }
.happ-dark-stat-divider { width: 1px; height: 18px; background: rgba(255,255,255,0.1); }
.happ-dark-hr-card {
  background: #1a1a1a; border-radius: 7px; padding: 5px 6px 4px; margin-bottom: 4px;
}
.happ-dark-hr-row { display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.happ-dark-hr-label { font-size: 5.5px; color: rgba(255,255,255,0.6); font-family: 'Open Sans', sans-serif; flex: 1; }
.happ-dark-hr-val { font-size: 6px; font-weight: 700; color: #f43f5e; font-family: 'Oswald', sans-serif; }
.happ-dark-goal {
  font-size: 5.5px; color: rgba(255,255,255,0.4); font-family: 'Open Sans', sans-serif;
  text-align: center; flex: 1;
}
.happ-dark-nav {
  display: flex; border-top: 1px solid rgba(255,255,255,0.07);
  padding: 4px 0 6px; margin: 0 -9px;
}
.happ-dark-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: 4.5px; font-family: 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.3);
}
.happ-dark-nav-active { color: #06b6d4; }
#hds-4 { justify-content: center; align-items: center; }

/* Feature list */
.hdash-phone-info { display: flex; flex-direction: column; gap: 9px; padding-left: 14px; }
.hdash-phone-feature {
  display: flex; align-items: center; gap: 7px;
  font-size: 9px; font-family: 'Open Sans', sans-serif;
  color: rgba(255,255,255,0.6);
  opacity: 0; transform: translateX(12px);
}
.hdash-screen.is-active .hdash-phone-feature:nth-child(1) { animation: hdash-slideR 0.35s ease forwards 0.4s; }
.hdash-screen.is-active .hdash-phone-feature:nth-child(2) { animation: hdash-slideR 0.35s ease forwards 0.6s; }
.hdash-screen.is-active .hdash-phone-feature:nth-child(3) { animation: hdash-slideR 0.35s ease forwards 0.8s; }
.hdash-screen.is-active .hdash-phone-feature:nth-child(4) { animation: hdash-slideR 0.35s ease forwards 1.0s; }
@keyframes hdash-slideR { to { opacity: 1; transform: translateX(0); } }
.hdash-feat-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ea6ac; flex-shrink: 0; }

@media (max-width:768px) {
  .hdash-content { height: 290px; }
  .hdash-phone-info { display: none; }
  .hdash-phone { width: 104px; height: 196px; }
}

/* Hero background ticker */
.hero-ticker-wrap {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.hero-ticker-track {
  display: flex; align-items: center; gap: 28px;
  white-space: nowrap;
  animation: hero-ticker-scroll 40s linear infinite;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(126,166,172,0.18);
  text-transform: uppercase;
}
.hero-ticker-dot {
  color: rgba(99,4,4,0.35);
  font-size: 12px;
}
@keyframes hero-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll mouse indicator — removed, replaced by ticker */
.scroll-indicator-wrap { display: none; }
.scroll-mouse {
  width:22px; height:36px; border:2px solid rgba(255,255,255,.45);
  border-radius:12px; display:flex; justify-content:center; padding-top:6px;
}
.scroll-wheel {
  width:3px; height:8px; background:rgba(255,255,255,.65);
  border-radius:2px; animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim { 0%{transform:translateY(0);opacity:1;} 100%{transform:translateY(12px);opacity:0;} }

/* Wave dividers */
.section-wave {
  position:absolute; bottom:0; left:0; right:0; z-index:4;
  color: #226673; line-height:0;
}
.section-wave svg { width:100%; height:90px; display:block; }
.section-wave-bottom { color: var(--dark); }

/* Animations */
.animate-in {
  opacity:0; transform:translateY(24px);
  animation: fade-in-up .8s ease forwards;
}
@keyframes fade-in-up { to { opacity:1; transform:translateY(0); } }

/* =============================================
   STATS BAR
   ============================================= */
/* Old stats-bar section removed — stats now inline in hero */

/* Stats: full-width bottom row in hero grid */
.hero-stats-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0;
  padding-top: 16px;
  margin-top: 4px;
}



.stats-grid {
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}

.stat-item {
  display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; flex:1; min-width:140px;
}

.stat-val-wrap {
  display:flex; align-items:baseline; gap:0;
}

.stat-item .stat-num {
  font-family: var(--font-head); font-size:2.8rem; font-weight:700; line-height:1;
  color: var(--white);
}

.stat-item .stat-suf {
  font-family: var(--font-head); font-size:2.8rem; font-weight:700;
  color: var(--white);
}

.stat-item .stat-lbl {
  font-size:.75rem; color:rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.08em;
}

.stat-divider {
  width:1px; height:50px; background:rgba(255,255,255,.25); flex-shrink:0;
}

/* =============================================
   BRIDGE SECTION
   ============================================= */
.bridge-section {
  background: transparent;
  padding: 60px 0 60px;
  position: relative;
}
.bridge-section::before { display: none; }
.bridge-section .container { position: relative; z-index: 1; }
.bridge-inner { max-width: 820px; margin: 0 auto; text-align:center; }
.bridge-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--lm-text-2);
  line-height: 1.75;
  font-weight: 300;
  text-align: center;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
[data-anim], .animate-on-scroll {
  opacity:0; transform:translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-anim].is-visible, .animate-on-scroll.is-visible {
  opacity:1; transform:translate(0,0);
}
/* Ensure sections with dark bg still show white headings */
/* case-section responsive handled by case-grid */

/* =============================================
   WHY OPTU (CARDS)
   ============================================= */
.why-section {
  background: var(--lm-bg);
  position:relative; overflow:hidden;
}

.deco-dots {
  position:absolute; width:260px; height:260px;
  background-image: radial-gradient(rgba(34,102,115,.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  border-radius:50%; pointer-events:none;
}
.deco-dots-left  { bottom:-60px; left:-60px; }
.deco-dots-right { top:-60px; right:-60px; }

.why-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}

.why-card {
  background: var(--lm-card);
  border:1px solid var(--lm-border);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  position:relative; overflow:hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(34,102,115,.15);
  border-color: var(--teal-lt);
}

/* card-shine shimmer on hover */
.card-shine {
  position:absolute; inset:0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
  pointer-events:none;
}
.why-card:hover .card-shine { transform: translateX(100%); }

.why-icon-wrap {
  width:50px; height:50px; border-radius:12px;
  background: rgba(34,102,115,.1); border:1px solid rgba(34,102,115,.2);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.why-icon { font-size:1.5rem; }

.why-card h3 {
  font-size:1rem; font-weight:600; color:var(--lm-text); margin-bottom:10px;
}
.why-card p { font-size:.875rem; color:var(--lm-text-2); line-height:1.65; }

/* =============================================
   SOLUTIONS
   ============================================= */
.solutions-section {
  position:relative; overflow:hidden;
  padding-top: 0;
  padding-bottom: 40px;
  margin-top: -60px;
  background: linear-gradient(to bottom, transparent 0%, rgba(244,247,248,0.4) 40px, #f4f7f8 120px);
}

.solutions-bg-pattern {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(34,102,115,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,102,115,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events:none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 120px);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 120px);
}

.solutions-section > .container {
  position: relative;
  z-index: 1;
}

.solutions-header {
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:end;
  margin-bottom:50px;
}
.solutions-title h2 { font-size:clamp(2.4rem,4.5vw,3.6rem); font-weight:700; color:var(--lm-text); line-height:1.1; }
.solutions-desc p { color:var(--lm-text-2); margin-bottom:24px; font-size:.95rem; }

.solutions-banner {
  margin-bottom: 44px;
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--lm-border);
}
.solutions-banner-img { width:100%; height:300px; object-fit:cover; object-position:center 30%; display:block; }

.solutions-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }

.solution-card {
  background: #7ea6ac;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position:relative; overflow:hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display:flex; flex-direction:column;
}
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(34,102,115,.35);
  border-color: rgba(255,255,255,.5);
  background: #fff;
}

.solution-card-glow {
  position:absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  opacity:0; transition: opacity var(--transition);
}
.solution-card:hover .solution-card-glow { opacity:1; }

.solution-number {
  font-family: var(--font-head); font-size:2.8rem; font-weight:700;
  color: rgba(0,0,0,.12); line-height:1; margin-bottom:14px;
  transition: color var(--transition);
}
.solution-card:hover .solution-number { color: rgba(0,0,0,.22); }

.solution-icon {
  width:56px; height:56px; color:#1a3a42; margin-bottom:16px;
  flex-shrink: 0;
}

/* Individual icon animations */

/* AI & Automation — gear rotates, AI text stays static */
.gear-spin {
  transform-origin: 12px 12px;
  animation: icon-spin 6s linear infinite;
}
.solution-card:nth-child(1):hover .gear-spin {
  animation-duration: 1.5s;
}

/* Custom Software — brackets spread, slash blinks */
.code-bracket-l { animation: bracket-l 2.6s ease-in-out infinite; }
.code-bracket-r { animation: bracket-r 2.6s ease-in-out infinite; }
.code-slash     { animation: slash-blink 2.6s ease-in-out infinite 0.4s; }

@keyframes bracket-l {
  0%,100% { transform: translateX(0); }
  40%,60% { transform: translateX(-5px); }
}
@keyframes bracket-r {
  0%,100% { transform: translateX(0); }
  40%,60% { transform: translateX(5px); }
}
@keyframes slash-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* Consulting — lightbulb rays pulse outward with stagger */
.sol-ray { transform-box: fill-box; transform-origin: center; }
.sol-ray-top { animation: ray-pulse 2.2s ease-in-out infinite 0s; }
.sol-ray-tr  { animation: ray-pulse 2.2s ease-in-out infinite 0.44s; }
.sol-ray-r   { animation: ray-pulse 2.2s ease-in-out infinite 0.88s; }
.sol-ray-tl  { animation: ray-pulse 2.2s ease-in-out infinite 0.22s; }
.sol-ray-l   { animation: ray-pulse 2.2s ease-in-out infinite 0.66s; }

@keyframes ray-pulse {
  0%,100% { opacity: 0.2; transform: scale(0.4); }
  50%      { opacity: 1;   transform: scale(1); }
}

/* Bulb body glow on hover */
.solution-card:nth-child(4):hover .solution-icon svg {
  filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 6px rgba(126,166,172,.6));
}
.solution-card:nth-child(3) .solution-icon svg path:first-child {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: icon-draw 2.4s ease forwards, icon-draw-loop 4s ease-in-out 2.5s infinite;
}

/* Hover: teal glow on all icons */
.solution-card:hover .solution-icon svg {
  filter: drop-shadow(0 0 6px rgba(126,166,172,.6));
}
.solution-card:nth-child(2):hover .code-bracket-l { animation-duration: 1s; }
.solution-card:nth-child(2):hover .code-bracket-r { animation-duration: 1s; }

@keyframes icon-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes icon-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes icon-draw-loop {
  0%,100% { stroke-dashoffset: 0; }
  45%     { stroke-dashoffset: 80; }
  55%     { stroke-dashoffset: 80; }
}
@keyframes icon-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(1deg); }
}

.solution-card h3 {
  font-size:1.45rem; font-weight:700; color:#0d1a1e; margin-bottom:10px; line-height:1.2;
  transition: color var(--transition);
}
.solution-card:hover h3 { color: #0d2e38; }
.solution-card p {
  font-size:.85rem; color:#2a3e44; line-height:1.65; margin-bottom:18px; flex:1;
  transition: color var(--transition);
}
.solution-card:hover p { color: #2a3e44; }

.solution-list {
  list-style:none; display:flex; flex-direction:column; gap:7px;
  padding-top:16px; border-top:1px solid rgba(0,0,0,.15); margin-bottom:20px;
}
.solution-list li {
  font-size:.8rem; color:#2a3e44;
  padding-left:14px; position:relative; line-height:1.5;
  transition: color var(--transition);
}
.solution-card:hover .solution-list li { color: #2a3e44; }
.solution-list li::before {
  content:''; position:absolute; left:0; top:8px;
  width:5px; height:5px; border-radius:50%;
  background: #1a3a42;
}

.card-link {
  font-family: var(--font-head); font-size:.82rem; font-weight:600; letter-spacing:.06em;
  color: #0d1a1e; text-decoration:none;
  display:inline-flex; align-items:center; gap:6px;
  transition: gap var(--transition), color var(--transition);
  margin-top:auto;
}
.card-link:hover { gap:10px; color: #630404; }

/* =============================================
   ABOUT (IMAGE + COPY SPLIT)
   ============================================= */
.about-section { background: var(--lm-bg); }

.about-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center;
}

.about-visual { position:relative; }
.about-image-wrap { position:relative; height:460px; border-radius:var(--radius-lg); overflow:visible; }
/* Brand color overlay on the photo */
.about-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    rgba(99,4,4,.18) 0%,
    rgba(34,102,115,.35) 50%,
    rgba(126,166,172,.2) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
/* Left accent border */
.about-image-wrap::before {
  content: ''; position: absolute;
  top: 16px; left: -6px; bottom: 16px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(to bottom, var(--red), var(--teal), var(--teal-lt));
  z-index: 2;
}
.about-photo {
  width:100%; height:100%; object-fit:cover; object-position:center;
  border-radius:var(--radius-lg); display:block;
  box-shadow: var(--shadow-lg);
  filter: saturate(.85) contrast(1.05);
}

.about-float-card {
  position:absolute; z-index:2;
  background: rgba(255,255,255,.95); backdrop-filter:blur(12px);
  border:1px solid var(--lm-border);
  border-radius:var(--radius-md); padding:13px 17px;
  display:flex; align-items:center; gap:12px;
  box-shadow: var(--shadow-md);
  animation: float-card 4s ease-in-out infinite;
}
.card-f1 { top:24px; right:-20px; animation-delay:0s; }
.card-f2 { bottom:24px; left:-20px; animation-delay:2s; }

@keyframes float-card { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }

.float-ico { font-size:1.5rem; flex-shrink:0; }
.about-float-card strong { display:block; font-family:var(--font-head); font-size:.88rem; color:var(--lm-text); }
.about-float-card span  { font-size:.72rem; color:var(--mid-gray); }

.about-copy .section-label { margin-bottom:12px; }
.about-copy h2 { font-size:clamp(1.8rem,3.5vw,2.5rem); color:var(--lm-text); margin-bottom:14px; }

.about-lead {
  font-family: var(--font-head); font-size:clamp(1.5rem,3vw,2rem);
  font-weight:600; color:var(--teal-lt); line-height:1.2; margin-bottom:16px;
}

.about-copy > p { color:var(--lm-text-2); font-size:.95rem; line-height:1.8; margin-bottom:18px; }

.about-pillars { margin-top:28px; display:flex; flex-direction:column; gap:18px; }

.pillar { display:flex; align-items:flex-start; gap:14px; }
.pillar-dot {
  flex-shrink:0; width:8px; height:8px; border-radius:50%;
  background: var(--teal); margin-top:8px;
  box-shadow:0 0 8px var(--teal);
}
.pillar strong { display:block; font-family:var(--font-head); font-size:.95rem; color:var(--lm-text); margin-bottom:3px; }
.pillar p { font-size:.85rem; color:var(--lm-text-2); margin:0; }

/* =============================================
   CASE STUDIES
   ============================================= */
.case-section {
  background: #226673;
}
.case-section .section-header { text-align: center; }
.case-section .section-header h2 { text-align: center; }
.case-section .section-header p { color: rgba(255,255,255,.75); text-align: center; }
.case-section .section-label { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  background: var(--lm-card);
  border: 1px solid var(--lm-border);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.case-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(34,102,115,.14);
  border-color: var(--teal-lt);
}

.case-card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.case-industry {
  font-family: var(--font-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); background: rgba(34,102,115,.1);
  padding: 3px 12px; border-radius: 100px;
}
.case-metric-pill {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  color: var(--white); background: var(--red);
  padding: 4px 14px; border-radius: 100px;
}

.case-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--lm-text); font-weight: 600; line-height: 1.3;
}
.case-arr { color: var(--teal-lt); }

.case-challenge, .case-solution {
  font-size: .88rem; color: var(--lm-text-2); line-height: 1.7; margin: 0;
}
.case-solution { flex: 1; }
.case-challenge strong, .case-solution strong { color: var(--lm-text); font-weight: 600; }

.case-results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0 0;
  border-top: 1px solid var(--lm-border);
  margin-top: 4px;
}
.case-stat { display: flex; flex-direction: column; gap: 3px; }
.case-stat-val {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
  color: var(--teal); line-height: 1;
}
.case-stat-lbl {
  font-size: .68rem; color: var(--lm-text-3);
  text-transform: uppercase; letter-spacing: .07em;
}

.case-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--font-head); font-size: .82rem; font-weight: 500; letter-spacing: .05em;
  color: var(--teal); text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.case-cta:hover { gap: 10px; color: var(--red); }

/* =============================================
   PROCESS — HORIZONTAL TRACK
   ============================================= */
.process-section { background: var(--lm-bg-2); }
.process-section .section-header h2 { color: var(--lm-text); text-align: center; width: 100%; }
.process-section .section-header { text-align: center; }
.process-subtitle { display: block; text-align: center; max-width: none; width: 100%; }
.section-header p.process-subtitle { max-width: none; white-space: nowrap; }
@media (max-width: 700px) { .section-header p.process-subtitle { white-space: normal; } }
.case-section-sub { white-space: nowrap; display: block; text-align: center; }
.section-header .case-section-sub { max-width: none; margin: 16px auto 0; }

/* Track: all 6 steps in a row */
.proc-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Step card */
.proc-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 8px;
  position: relative;
}

/* Number badge */
.proc-num {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal);
  border: 3px solid rgba(126,166,172,.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: #fff;
  box-shadow: 0 0 0 6px rgba(34,102,115,.1), 0 4px 16px rgba(34,102,115,.3);
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 1;
}
.proc-num-last {
  background: var(--red);
  border-color: rgba(99,4,4,.4);
  box-shadow: 0 0 0 6px rgba(99,4,4,.1), 0 4px 16px rgba(99,4,4,.3);
}
.proc-item:hover .proc-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 9px rgba(34,102,115,.15), 0 6px 22px rgba(34,102,115,.4);
}

/* Card body */
.proc-item h3 {
  font-size: .9rem; color: var(--lm-text); font-weight: 700;
  line-height: 1.25; margin: 0;
}
.proc-item p {
  font-size: .78rem; color: var(--lm-text-2); line-height: 1.6; margin: 0;
}

/* Connector between steps */
.proc-conn {
  flex-shrink: 0;
  width: 40px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-top: 24px; /* align with center of badge */
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-lt));
  border-radius: 2px;
  overflow: visible;
}

/* Traveling pulse dot */
.proc-pulse {
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 3px rgba(126,166,172,.8), 0 0 0 2px var(--teal-lt);
  top: 50%; transform: translateY(-50%);
  animation: proc-travel 2.5s ease-in-out infinite;
}
@keyframes proc-travel {
  0%   { left: -5px;  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

/* Mobile: vertical stack */
@media (max-width: 860px) {
  .proc-track {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .proc-item { flex-direction: row; text-align: left; align-items: flex-start; gap: 16px; padding: 0; width: 100%; max-width: 480px; }
  .proc-item h3 { font-size: 1rem; }
  .proc-item p  { font-size: .85rem; }
  .proc-conn {
    width: 4px; height: 36px; margin-top: 0; margin-left: 23px;
    background: linear-gradient(to bottom, var(--teal), var(--teal-lt));
  }
  @keyframes proc-travel {
    0%   { top: -5px;  left: 50%; transform: translateX(-50%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% - 5px); left: 50%; transform: translateX(-50%); opacity: 0; }
  }
}

/* =============================================
   TESTIMONIALS — CAROUSEL
   ============================================= */
.testi-section {
  background: linear-gradient(160deg, #0d2e38 0%, #1a4a56 50%, #226673 100%);
  position: relative; overflow: hidden;
}
.testi-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.testi-section .container { position: relative; z-index: 1; }
.testi-section .section-header h2 { color: #fff; }
.testi-section .section-header p  { color: rgba(255,255,255,.7); }
.testi-section .section-label { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

/* Carousel */
.testi-carousel {
  position: relative;
  overflow-x: clip;       /* clips slides left/right without affecting vertical */
  overflow-y: visible;    /* lets headshots protrude above cards */
  padding-top: 52px;      /* room for overflowing headshots */
}
.testi-track {
  display: flex;
  animation: testi-marquee 80s linear infinite;
  will-change: transform;
}
@keyframes testi-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-200%); }
}
.testi-slide {
  min-width: 50%; padding: 0 14px 20px;
  box-sizing: border-box;
}

/* Card */
.testi-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 28px 32px;
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  height: 100%;
}
.testi-card::before { display: none; }

/* Headshot protruding above card */
.testi-avatar-wrap {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.testi-headshot {
  width: 88px; height: 88px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  display: block;
}

/* Name / role / company */
.testi-name {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--lm-text); display: block; margin-bottom: 3px;
}
.testi-role {
  font-size: .78rem; color: var(--lm-text-3); display: block; margin-bottom: 8px;
}
.testi-company-badge {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-head); font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--teal);
  padding: 3px 12px; border-radius: 100px;
}
.testi-stars { color: #f5a623; font-size: 1rem; letter-spacing: 3px; margin-bottom: 16px; }
.testi-card blockquote {
  font-size: .94rem; color: var(--lm-text);
  line-height: 1.8; font-style: italic;
  text-align: center; flex: 1;
}

/* Controls */
.testi-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 28px;
}
.testi-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.testi-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.testi-pause { font-size: .65rem; letter-spacing: 1px; }

/* Mobile */
@media (max-width: 640px) {
  .process-subtitle { max-width: none; }
  .case-section-sub { white-space: normal; text-align: center; }
  .testi-section .section-header { margin-bottom: 36px; }
  .testi-carousel {
    overflow: hidden;
    padding-top: 0;
  }
  .testi-track {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    animation: none !important;
    transform: none !important;
    width: 100%;
  }
  .testi-track::-webkit-scrollbar { display: none; }
  .testi-slide {
    scroll-snap-align: center;
    min-width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
    flex-shrink: 0;
    padding-top: 0;
  }
  .testi-card {
    padding: 24px 20px 28px;
  }
  /* Flow the avatar inside the card instead of floating above it */
  .testi-avatar-wrap {
    position: static;
    transform: none;
    margin: 0 auto 12px;
  }
  .testi-card blockquote { font-size: .88rem; }
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  padding:72px 0; position:relative; overflow:hidden;
}
.cta-band::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:50px 50px;
}
.cta-band-inner {
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap;
}
.cta-band-text h2 { font-size:clamp(1.5rem,3vw,2.1rem); color:var(--white); margin-bottom:10px; }
.cta-band-text p  { color:rgba(255,255,255,.8); font-size:1rem; max-width:520px; }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--lm-bg-2); }

.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:72px; align-items:start; }

.contact-info .section-label { margin-bottom:12px; }
.contact-info h2 { font-size:clamp(1.8rem,3.5vw,2.5rem); color:var(--lm-text); margin-bottom:16px; }
.contact-info > p { color:var(--lm-text-2); margin-bottom:28px; font-size:.95rem; }

.contact-details { display:flex; flex-direction:column; gap:14px; }
.contact-item { display:flex; align-items:center; gap:12px; }
.c-ico { font-size:1.1rem; width:22px; text-align:center; }
.contact-item a, .contact-item span { font-size:.9rem; color:var(--lm-text-2); text-decoration:none; transition:color var(--transition); }
.contact-item a:hover { color:var(--teal-lt); }

.contact-trust { margin-top:26px; display:flex; flex-direction:column; gap:9px; }
.trust-item { font-size:.875rem; color:var(--lm-text-2); font-weight:400; display:flex; align-items:center; gap:8px; }
.trust-item strong { color:#226673; font-weight:600; }
.trust-check { width:18px; height:18px; flex-shrink:0; }

/* Form */
.contact-form {
  background: var(--lm-card); border:1px solid var(--lm-border);
  border-radius:var(--radius-lg); padding:38px 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group { display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.form-group:last-of-type { margin-bottom:26px; }

.form-group label {
  font-family:var(--font-head); font-size:.72rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:#226673;
}
.form-group input, .form-group select, .form-group textarea {
  font-family:var(--font-body); font-size:.9rem; color:var(--lm-text);
  background: var(--lm-bg-2); border:1.5px solid var(--lm-border);
  border-radius:var(--radius-sm); padding:12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline:none; width:100%;
}
.form-group input, .form-group textarea { color:#226673; }
.form-group input::placeholder, .form-group textarea::placeholder { color:var(--lm-text-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal); box-shadow:0 0 0 3px rgba(34,102,115,.2);
  background: rgba(255,255,255,.08);
}
.form-group select option { background:var(--lm-bg); color:var(--lm-text); }
.form-group textarea { resize:vertical; min-height:110px; }

.form-success {
  display:flex; align-items:center; gap:10px; margin-top:14px;
  padding:12px 16px; background:rgba(34,102,115,.12);
  border:1px solid rgba(34,102,115,.3); border-radius:var(--radius-sm);
  color:var(--teal-lt); font-size:.88rem; font-weight:600;
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background:var(--dark); padding-top:64px; }

.footer-inner {
  display:grid; grid-template-columns:1.4fr 2fr; gap:60px;
  padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.08);
}

.footer-brand p { font-size:.875rem; color:rgba(255,255,255,.5); max-width:280px; line-height:1.65; margin-top:14px; }
.footer-logo-img { height:60px; width:auto; display:block; opacity:.85; border-radius: 12px; }

.footer-links { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.footer-col h4 {
  font-family:var(--font-head); font-size:.72rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  color:var(--teal-lt); margin-bottom:16px;
}
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col a { font-size:.875rem; color:rgba(255,255,255,.5); text-decoration:none; transition:color var(--transition); }
.footer-col a:hover { color:var(--white); }

.footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 24px; flex-wrap:wrap; gap:12px;
}
.footer-bottom p { font-size:.75rem; color:rgba(255,255,255,.4); }
.footer-bottom a { color:rgba(255,255,255,.35); text-decoration:none; transition:color var(--transition); }
.footer-bottom a:hover { color:var(--teal-lt); }

/* =============================================
   RESPONSIVE — TABLET ≤ 1024px
   ============================================= */
@media (max-width:1024px) {
  :root { --section-gap:80px; }
  .hero-inner        { grid-template-columns:1fr 1fr; gap:36px; }
  .why-grid          { grid-template-columns:repeat(2,1fr); }
  .solutions-grid    { grid-template-columns:repeat(2,1fr); }
  .solutions-header  { grid-template-columns:1fr; gap:24px; }
    .case-grid { grid-template-columns:1fr; }
  .testi-grid        { grid-template-columns:repeat(2,1fr); }
  .about-grid        { gap:48px; }
  .footer-inner      { grid-template-columns:1fr; gap:40px; }
  .stats-grid        { justify-content:center; }
  .hero-stats-row    { justify-content:center; }
  .stat-divider      { display:none; }
}

/* =============================================
   RESPONSIVE — MOBILE ≤ 768px
   ============================================= */
@media (max-width:768px) {
  :root { --section-gap:64px; }

  .nav-toggle { display:flex; }

  /* ── Slide-out panel ── */
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 85vw);
    background: #ffffff;
    flex-direction: column; align-items: stretch;
    padding: 72px 0 60px;
    gap: 0; list-style: none;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    box-shadow: -6px 0 40px rgba(0,0,0,.22);
    border-left: 1px solid rgba(34,102,115,.12);
    z-index: 1000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-links.open { transform: translateX(0); }

  /* ── All top-level links ── */
  .nav-links > li > .nav-link,
  .nav-links > li > .nav-drop-toggle {
    display: block;
    font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 500;
    letter-spacing: .04em; color: #1c2b2e;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(34,102,115,.07);
    background: none; border-radius: 0;
    text-decoration: none;
  }
  .nav-links > li > .nav-link:hover,
  .nav-links > li > .nav-drop-toggle:hover { background: rgba(34,102,115,.06); }

  /* ── Dropdowns: flow inline ── */
  .nav-dropdown {
    display: none !important;
    position: static !important;
    box-shadow: none; border: none; border-radius: 0;
    padding: 4px 0; min-width: unset;
    background: #f4f7f8;
    top: unset; left: unset;
  }
  .nav-item-drop:hover .nav-dropdown { display: none !important; }
  .nav-item-drop.drop-open .nav-dropdown { display: block !important; }
  .nav-dropdown li a {
    display: block;
    padding: 10px 24px 10px 36px;
    font-size: .88rem; color: #226673;
    border-bottom: 1px solid rgba(34,102,115,.05);
    text-decoration: none;
  }
  .nav-dropdown li a:hover { background: rgba(34,102,115,.08); }
  .dropdown-heading { padding: 8px 24px 4px 36px; font-size: .65rem; }
  .dropdown-sep { height: 1px; background: rgba(34,102,115,.1); margin: 4px 0; }

  /* ── CTA: red text, subtle top border ── */
  .nav-cta {
    display: block;
    font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
    letter-spacing: .04em; color: #630404;
    padding: 16px 24px;
    background: none; border-radius: 0; box-shadow: none;
    border-top: 2px solid rgba(99,4,4,.15);
    margin-top: 8px;
    text-decoration: none; transform: none;
  }
  .nav-cta:hover { background: rgba(99,4,4,.06); transform: none; box-shadow: none; }

  /* ── Dim overlay behind panel ── */
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; }
  .nav-overlay.active { display: block; }

  .hero-inner        { grid-template-columns:1fr; gap:32px; padding-top:110px; padding-bottom:60px; }
  .hero-visual       { display:flex; justify-content:center; order:-1; }
  .hero-svg-graphic  { max-width: min(340px, 90vw); }
  .hero-headline     { font-size:clamp(2rem,8vw,3rem); }
  .hero-line         { display: block !important; width: 100%; }
  .hero-actions      { flex-direction:column; }
  .hero-stats        { grid-template-columns:1fr 1fr; gap:14px; }

  .why-grid          { grid-template-columns:1fr; }
  .solutions-grid    { grid-template-columns:1fr; }
  .solutions-header  { grid-template-columns:1fr; }
  .testi-grid        { grid-template-columns:1fr; }
  .about-grid        { grid-template-columns:1fr; }
  .about-visual      { display:none; }
  .contact-grid      { grid-template-columns:1fr; gap:40px; }
  .tl-dot    { width: 46px; height: 46px; font-size: .9rem; }
  .cta-band-inner    { flex-direction:column; text-align:center; }
  .form-row          { grid-template-columns:1fr; }
  .contact-form      { padding:26px 20px; }
  .footer-links      { grid-template-columns:1fr 1fr; }
  .footer-bottom     { flex-direction:column; text-align:center; }
  .stats-grid        { flex-direction:column; gap:28px; }
  .hero-stats-row    { flex-direction:column; gap:28px; }
  .solutions-banner-img { height:200px; }
}

@media (max-width:480px) {
  .footer-links { grid-template-columns:1fr; }
  .testi-grid   { grid-template-columns:1fr; }
}

.mobile-break { display: none; }
@media (max-width: 640px) {
  .mobile-break { display: block; }
}
