/* ============================================================
   Power Down Semiconductor — Unified Styles
   Base = CLEANED system (Products/Applications/Tech/About)
   Home page = Original hero/ticker/tiles restored (scoped)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --text: #0b1220;
  --muted: #526173;
  --border: rgba(12, 24, 45, 0.12);

  --navy: #071a33;
  --navy-2:#061327;

  --accent: #0aa6a6;
  --accent-2:#3ad6c6;

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1200px;

  --shadow: 0 18px 55px rgba(7, 18, 35, .10);
  --shadow-2: 0 10px 28px rgba(7, 18, 35, .10);

  --focus: 0 0 0 4px rgba(10,166,166,.18);
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Dark theme */
html[data-theme="dark"]{
  --bg:#060b13;
  --surface:#0b1424;
  --surface-2:#0f1b30;
  --text:#e6edf6;
  --muted:#a7b2c3;
  --border: rgba(255,255,255,0.10);

  --shadow: 0 22px 70px rgba(0,0,0,.45);
  --shadow-2: 0 14px 40px rgba(0,0,0,.38);
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.small{ font-size: 12.5px; color: var(--muted); }
.fine{ color: var(--muted); font-size: 12px; margin-top: 10px; }

.skip-link{
  position:absolute; left:-999px; top:-999px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:12px;
  box-shadow:var(--shadow-2);
  z-index:9999;
}
.skip-link:focus{ left:16px; top:16px; outline:none; box-shadow: var(--focus), var(--shadow-2); }

/* ---------- Typography helpers (cleaned pages) ---------- */
.title{
  margin: 0;
  font-size: clamp(40px, 4.1vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.h2{
  margin: 0 0 10px;
  font-size: clamp(26px, 2.3vw, 34px);
  letter-spacing: -0.03em;
}
.h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.p{
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 78ch;
}

/* ============================================================
   HEADER — NXP/ST style
   ============================================================ */
.site-header.nxp-st{
  position: sticky;
  top: 0;
  z-index: 2200;
}

/* Utility bar */
.utilitybar{
  height: 34px;
  display:flex;
  align-items:center;
  background: linear-gradient(180deg, #071a33, #061327);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.utility-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 16px;
}
.utility-left{
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}
.u-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.16);
}
.u-badge{
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* Main nav row */
.mainnav{
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(14px);
}
#siteHeader.is-scrolled .mainnav{
  box-shadow: 0 18px 60px rgba(0,0,0,.10);
}
.navrow{
  height: 70px;
  display:flex;
  align-items:center;
  gap: 14px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
  text-decoration:none !important;
}
.logo-badge{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  overflow:hidden;
}
.logo-badge img{ height: 26px; width:auto; display:block; }

.brand-text{ display:flex; flex-direction:column; line-height: 1.05; }
.brand-name{ font-weight: 950; font-size: 14px; letter-spacing:.01em; }
.brand-sub{ margin-top:4px; font-size: 12px; color: var(--muted); font-weight: 800; }

/* Hamburger */
.hamburger{
  display:none;
  width: 44px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  cursor:pointer;
  padding: 10px;
  flex: 0 0 auto;
}
.hamburger span{
  display:block;
  height:2px;
  background: var(--text);
  margin:6px 0;
  border-radius:2px;
  opacity:.9;
}

/* Capsule holds nav only */
.navcapsule{
  flex: 0 1 auto;
  min-width: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 28px rgba(7,18,35,.08);
  width: fit-content;
  max-width: calc(100% - 520px);
  margin-inline: auto;
  overflow: visible;
}

/* Primary nav */
.primary-nav{
  display:flex;
  align-items:center;
  gap: 16px;
  white-space: nowrap;
  overflow: visible;
}

/* Links */
.navlink{
  height: 40px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 0 6px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--text) 70%, var(--muted));
  text-decoration:none !important;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.navlink:hover{
  color: var(--text);
  transform: translateY(-1px);
}
.navlink::after{
  content:"";
  position:absolute;
  left: 6px; right: 6px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
  opacity: .95;
}
.navlink:hover::after{ transform: scaleX(1); }
.navlink.active{ color: var(--text); }
.navlink.active::after{ transform: scaleX(1); }

.caret{
  width:0; height:0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  transform: translateY(1px);
}

/* Right actions */
.actions{
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}

/* Theme toggle */
.theme-switch{
  width: 54px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: var(--shadow-2);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.theme-switch:focus{ outline:none; box-shadow: var(--focus), var(--shadow-2); }

.ts-track{
  width: 42px; height: 26px;
  border-radius: 999px;
  position: relative;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  overflow:hidden;
}
.ts-ico{
  position:absolute; top:50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .75;
}
.ts-sun{ left: 7px; }
.ts-moon{ right: 7px; }
.ts-knob{
  position:absolute;
  top:50%;
  left: 3px;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  transition: transform .22s var(--ease);
}
html[data-theme="dark"] .ts-knob{
  transform: translate(16px, -50%);
  background: rgba(255,255,255,.10);
}

/* Header CTA */
.wp-cta{
  height: 40px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 950;
  cursor:pointer;
  box-shadow: var(--shadow-2);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255,255,255,.22);
}
.wp-cta:hover{ transform: translateY(-1px); box-shadow: var(--shadow); filter: brightness(1.03); }
.wp-cta:focus{ outline:none; box-shadow: var(--focus), var(--shadow); }

.wp-ico{
  width: 30px; height: 30px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.18);
  color: #fff;
  box-shadow: 0 12px 26px rgba(10,166,166,.25);
}

/* ============================================================
   Mega menus
   ============================================================ */
.mega-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 16, 0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease);
  z-index: 2100;
}
.mega-backdrop.is-on{
  opacity: 1;
  pointer-events: auto;
}

.dropdown{ position: relative; z-index: 2300; }
.dropdown-panel{
  position:absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: min(980px, calc(100vw - 60px));
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0,0,0,.18);
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s var(--ease);
  z-index: 2400;
}

/* desktop hover open */
@media (hover:hover) and (min-width: 981px){
  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel{
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    visibility: visible;
  }
}

/* dropdown content */
.dropdown-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px,1fr));
  gap: 12px;
}
.dropdown-panel[aria-label="Applications"] .dropdown-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dropdown-item{
  display:flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  text-decoration:none !important;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  align-items:flex-start;
}
.dropdown-item:hover{
  text-decoration:none;
  background: color-mix(in srgb, var(--surface-2) 100%, transparent);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
.dropdown-item > div{ min-width:0; flex: 1 1 auto; }
.dropdown-item .title{
  font-weight: 950;
  font-size: 14px;
  margin-bottom: 2px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.dropdown-item .desc{
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap:anywhere;
  word-break: break-word;
}

.badge{
  display:inline-block;
  font-size: 11px;
  font-weight: 950;
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  vertical-align: middle;
}
.card-icon{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex: 0 0 auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 950;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-2);
  cursor:pointer;
  text-decoration:none !important;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); text-decoration:none; }
.btn:focus{ outline:none; box-shadow: var(--focus), var(--shadow); }

.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}
.btn--ghost{
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover{
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  box-shadow: none;
}
.link{
  font-weight: 980;
  color: var(--accent);
  text-decoration:none !important;
}
.link:hover{ text-decoration:underline !important; }

/* ============================================================
   Sections + layout primitives (cleaned pages)
   ============================================================ */
.section{ padding: 54px 0; }
.section--tight{ padding: 36px 0; }
.section--muted{
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}
.rule{
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}
.kicker .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(10,166,166,.16);
}
.section-head{
  margin-bottom: 18px;
}
.section-head .kicker{ margin-bottom: 10px; }
.section-head .p{ margin-top: 6px; max-width: 80ch; }

/* ============================================================
   Card system (used across Company + other pages)
   ============================================================ */
.card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 22px;
}
.card--hover{
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card--hover:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  text-decoration:none;
}
.card-top{ margin-bottom: 10px; }
.card-foot{ margin-top: 14px; }
.card-grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card-grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
}

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag{
  display:inline-flex;
  align-items:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  font-size: 12px;
  font-weight: 900;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

.checklist{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.checklist li{
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.6;
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 950;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ============================================================
   Page hero (Company + other subpages)
   ============================================================ */
.page-hero{
  position: relative;
  overflow:hidden;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 25%, rgba(10,166,166,.16), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(58,214,198,.12), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 60%, transparent), transparent 70%);
}
.page-hero.company-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 86%, transparent) 0%,
      rgba(0,0,0,0) 60%),
    radial-gradient(circle at 90% 20%, rgba(10,166,166,.18), transparent 55%);
  pointer-events:none;
}
.hero-stack{
  position: relative;
  z-index: 2;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 6px;
}
.hero-kpis{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.kpi{
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
}
.kpi .num{ font-weight: 980; font-size: 18px; }
.kpi .lbl{ margin-top: 4px; color: var(--muted); font-size: 12.5px; }

.fineprint{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   Steps + CTA band
   ============================================================ */
.step-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}
.step-num{
  font-weight: 980;
  letter-spacing: .06em;
  font-size: 12px;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cta-band{
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 10%, var(--surface)),
    color-mix(in srgb, var(--accent-2) 8%, var(--surface)));
  box-shadow: var(--shadow-2);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.cta-band-actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:flex-end;
}

/* ============================================================
   People cards
   ============================================================ */
.person-card{ padding: 20px; }
.person-top{
  display:flex;
  align-items:center;
  gap: 12px;
}
.person-mark{
  width: 44px;
  height: auto;
  opacity: .9;
}
.person-name{
  font-weight: 980;
  letter-spacing: -0.01em;
}
.person-meta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.contact-row{ margin-top: 14px; }
.contact-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer{
  margin-top: 34px;
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0,1fr));
  gap: 18px;
}
.footer h4{ margin: 0 0 8px; font-size: 14px; }
.footer a{
  display:block;
  color: var(--muted);
  padding: 5px 0;
  text-decoration:none;
}
.footer a:hover{ color: var(--text); text-decoration:underline; }

/* ============================================================
   Modal + forms
   ============================================================ */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
  background: transparent;
}
.modal.is-open{ display:block; }

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(7,18,35,.45);
  backdrop-filter: blur(2px);
}

.modal-panel{
  position: relative;
  z-index: 10000;
  width: min(720px, calc(100% - 30px));
  margin: 7vh auto;
  max-height: calc(100vh - 14vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
.modal-title{ margin:0; font-size: 18px; font-weight: 980; }

.modal-close{
  border:none;
  background: transparent;
  cursor:pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.modal-close:hover{
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.modal-body{ padding: 16px 18px 18px; }
html.modal-open{ overflow:hidden; }

.field{ display:flex; flex-direction:column; gap: 6px; margin: 10px 0; }
label{ font-weight: 950; font-size: 13px; }
input, select, textarea{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus{
  outline:none;
  box-shadow: var(--focus);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.error{ color: #d14343; font-size: 12.5px; min-height: 16px; }

/* ============================================================
   Motion / reveal
   ============================================================ */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }
.reveal.delay-1{ transition-delay: .08s; }
.reveal.delay-2{ transition-delay: .16s; }
.reveal.delay-3{ transition-delay: .24s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ transition: none; }
}

/* ============================================================
   Responsive (cleaned pages)
   ============================================================ */
@media (max-width: 1100px){
  .dropdown-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step-grid{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 980px){
  .utilitybar{ display:none; }
  .hamburger{ display:block; }

  .navcapsule{
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    flex: 1 1 auto;
    justify-content:flex-end;
    max-width: none;
  }

  .primary-nav{
    position:absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 14px 14px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 8px;
    white-space: normal;
    z-index: 2500;
    overflow: visible;
  }
  .primary-nav.open{ display:flex; }

  .navlink{
    height: auto;
    padding: 12px 12px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
    transform: none !important;
  }
  .navlink::after{ display:none; }

  .dropdown-panel{
    position: static;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    box-shadow: none;
    transform: none !important;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events:auto;
  }
  .dropdown.open .dropdown-panel{ display:block; }
  .dropdown-grid{ grid-template-columns: 1fr; }

  .split{ grid-template-columns: 1fr; }
  .card-grid-3{ grid-template-columns: 1fr; }
  .card-grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .mega-backdrop{ display:none; }
}

@media (max-width: 560px){
  .container{ width: calc(100% - 32px); }
  .hero-kpis{ grid-template-columns: 1fr; }
}

/* Keep dropdown panel text wrap safe */
.primary-nav .dropdown-panel,
.primary-nav .dropdown-panel *{
  white-space: normal;
}

/* ============================================================
   HOME PAGE — ORIGINAL DESIGN RESTORE (SCOPED)
   Only applies when: <body data-page="home">
   ============================================================ */

/* Home sections spacing matches original homepage */
body[data-page="home"] .section{ padding: 38px 0; }

/* Home lead style (original) */
body[data-page="home"] .lead{
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
  line-height: 1.6;
}

/* ---------------- HERO (original) ---------------- */
body[data-page="home"] .hero{
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: 54px 0 18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}

body[data-page="home"] .hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background-image: url("../assets/pdbg2.png");
  background-size: cover;
  background-position: right center;
  background-repeat:no-repeat;
  opacity: .42;
  transform: scale(1.03);
  animation: homeHeroBreathe 9s var(--ease) infinite;
  filter: saturate(1.05) contrast(1.05);
}

body[data-page="home"] .hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 18% 20%, rgba(10,166,166,.22), transparent 52%),
    radial-gradient(circle at 82% 30%, rgba(58,214,198,.14), transparent 58%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 92%, transparent) 0%,
      color-mix(in srgb, var(--bg) 70%, transparent) 45%,
      rgba(0,0,0,0) 100%);
  pointer-events:none;
}

@keyframes homeHeroBreathe{
  0%,100%{ transform: scale(1.03) translateY(0); }
  50%{ transform: scale(1.06) translateY(-6px); }
}

body[data-page="home"] .hero-grid{ position: relative; z-index: 2; }

body[data-page="home"] .eyebrow{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}
body[data-page="home"] .eyebrow .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(10,166,166,.16);
}

body[data-page="home"] .hero h1{
  margin: 12px 0 10px;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

body[data-page="home"] .hero .accent{
  background: linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* Home CTA row keeps original spacing */
body[data-page="home"] .cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Home KPI strip (original) */
body[data-page="home"] .hero-kpis{
  position: relative;
  z-index: 2;
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

/* ---------------- Ticker (original) ---------------- */
body[data-page="home"] .ticker{
  position: relative;
  z-index: 2;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow:hidden;
}
body[data-page="home"] .ticker-track{
  display:flex;
  gap: 26px;
  padding: 12px 0;
  animation: homeMarquee 22s linear infinite;
  white-space: nowrap;
  font-weight: 900;
  color: var(--muted);
}
body[data-page="home"] .ticker-track span{
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
body[data-page="home"] .ticker-dot{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .85;
}
@keyframes homeMarquee{
  to{ transform: translateX(-50%); }
}

/* ---------------- Home sections / tiles (original) ---------------- */
body[data-page="home"] .section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
body[data-page="home"] .section-title h2{
  margin:0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
body[data-page="home"] .section-title p{
  margin:0;
  color: var(--muted);
  max-width: 70ch;
}

body[data-page="home"] .tile-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

body[data-page="home"] .tile{
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height: 220px;
  transform: translateZ(0);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
body[data-page="home"] .tile::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-60%) rotate(12deg);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .45s var(--ease);
}
html[data-theme="dark"] body[data-page="home"] .tile::before{
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.10), transparent);
}
body[data-page="home"] .tile:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}
body[data-page="home"] .tile:hover::before{
  opacity: 1;
  transform: translateX(60%) rotate(12deg);
}
body[data-page="home"] .tile h3{ margin: 10px 0 8px; font-size: 18px; }
body[data-page="home"] .tile p{ margin: 0; color: var(--muted); font-size: 14.5px; }

body[data-page="home"] .tile .meta{
  margin-top: auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  padding-top: 14px;
}

/* ---------------- Home app tiles (original) ---------------- */
body[data-page="home"] .app-tile{
  padding: 0;
  min-height: 230px;
}
body[data-page="home"] .app-tile .app-top{
  position: relative;
  height: 120px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: none;
}
body[data-page="home"] .app-tile .app-top::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    var(--app-img),
    linear-gradient(135deg, rgba(10,166,166,.18), rgba(58,214,198,.10));
  background-size: cover, cover;
  background-position: center, center;
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.03) brightness(0.92);
  transition: transform 900ms var(--ease), filter 900ms var(--ease);
}
body[data-page="home"] .app-tile .app-top::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.85) 65%, rgba(255,255,255,0.95) 100%),
    radial-gradient(circle at 20% 30%, rgba(10,166,166,0.16), transparent 55%),
    radial-gradient(circle at 80% 55%, rgba(58,214,198,0.12), transparent 60%);
  pointer-events:none;
}
body[data-page="home"] .app-tile:hover .app-top::before{
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.05) brightness(0.90);
}
html[data-theme="dark"] body[data-page="home"] .app-tile .app-top::after{
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.45) 100%),
    radial-gradient(circle at 20% 30%, rgba(10,166,166,0.18), transparent 55%),
    radial-gradient(circle at 80% 55%, rgba(58,214,198,0.14), transparent 60%);
}
body[data-page="home"] .app-tile .app-body{ padding: 16px 18px 18px; }

/* local images */
body[data-page="home"] .app-ai{ --app-img: url("../assets/apps/app-ai.webp"); }
body[data-page="home"] .app-crypto{ --app-img: url("../assets/apps/app-crypto.webp"); }
body[data-page="home"] .app-med{ --app-img: url("../assets/apps/app-med.webp"); }
body[data-page="home"] .app-wear{ --app-img: url("../assets/apps/app-wear.webp"); }
body[data-page="home"] .app-mobile{ --app-img: url("../assets/apps/app-mobile.webp"); }
body[data-page="home"] .app-neuro{ --app-img: url("../assets/apps/app-neuro.webp"); }

/* Home panels/callouts/code (original utility styles) */
body[data-page="home"] .panel{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 18px;
}
body[data-page="home"] .callout{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 14px;
}
body[data-page="home"] .code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}

/* Home responsiveness (original) */
@media (max-width: 1100px){
  body[data-page="home"] .hero h1{ max-width: 22ch; }
  body[data-page="home"] .hero-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px){
  body[data-page="home"] .tile-grid{ grid-template-columns: 1fr; }
  body[data-page="home"] .hero-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px){
  body[data-page="home"] .hero-kpis{ grid-template-columns: 1fr; }
}

/* Reduced motion includes home hero + ticker */
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .ticker-track{ animation: none; }
  body[data-page="home"] .hero::before{ animation: none; }
}
/* ============================================================
   FIX: Reduce white "fog" on Application tile images (LIGHT THEME)
   Paste at VERY END of styles.css
   ============================================================ */

html[data-theme="light"] .app-tile .app-top::after{
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.22) 0%,
      rgba(255,255,255,0.52) 62%,
      rgba(255,255,255,0.68) 100%
    ),
    radial-gradient(circle at 20% 30%, rgba(10,166,166,0.10), transparent 60%),
    radial-gradient(circle at 80% 55%, rgba(58,214,198,0.08), transparent 65%);
}

/* Make the image itself slightly clearer on light mode */
html[data-theme="light"] .app-tile .app-top::before{
  filter: saturate(1.12) contrast(1.08) brightness(0.98);
}

/* Hover stays punchy without becoming foggy */
html[data-theme="light"] .app-tile:hover .app-top::before{
  filter: saturate(1.16) contrast(1.10) brightness(0.95);
}
/* Consistent vertical spacing between stacked content blocks */
.section-gap{
  height: 26px; /* match the breathing room like your "Where LPP™ delivers..." block */
}

@media (max-width: 980px){
  .section-gap{ height: 18px; }
}
/* Technology page: add breathing room between intro text and first card */
.tech-intro{ margin-bottom: 18px; }

@media (max-width: 980px){
  .tech-intro{ margin-bottom: 14px; }
}
/* ============================================================
   FIX: Make "Learn more" clickable inside tiles
   (the .tile::before shine overlay was intercepting clicks)
   ============================================================ */

.tile{ position: relative; }

/* overlay should never capture clicks */
.tile::before{ pointer-events: none; }

/* keep real content above overlay */
.tile > *{
  position: relative;
  z-index: 1;
}
/* ============================================================
   TYPE SCALE PATCH — Bigger fonts site-wide
   Paste at VERY END of styles.css
   ============================================================ */

:root{
  /* Change this ONE number if you want more/less */
  --type-scale: 1.12; /* 1.08 = slightly bigger, 1.15 = bigger */
}

/* Base text */
body{
  font-size: calc(16px * var(--type-scale)) !important;
}

/* Common text helpers */
.lead{ font-size: calc(18px * var(--type-scale)) !important; line-height: 1.75 !important; }
.p{ font-size: calc(15.5px * var(--type-scale)) !important; line-height: 1.7 !important; }
.small{ font-size: calc(12.5px * var(--type-scale)) !important; }
.fine{ font-size: calc(12px * var(--type-scale)) !important; }

/* Header / nav */
.brand-name{ font-size: calc(14px * var(--type-scale)) !important; }
.brand-sub{ font-size: calc(12px * var(--type-scale)) !important; }
.navlink{ font-size: calc(13.5px * var(--type-scale)) !important; }
.u-badge{ font-size: calc(11px * var(--type-scale)) !important; }

/* Dropdown cards */
.dropdown-item .title{ font-size: calc(14px * var(--type-scale)) !important; }
.dropdown-item .desc{ font-size: calc(12.5px * var(--type-scale)) !important; }

/* Buttons */
.btn{ font-size: calc(14px * var(--type-scale)) !important; }
.wp-cta{ font-size: calc(14px * var(--type-scale)) !important; }

/* Home hero + section titles */
.hero h1{ font-size: clamp(38px, 3.8vw, 62px) !important; }
.section-title h2{ font-size: calc(30px * var(--type-scale)) !important; }
.section-title p{ font-size: calc(15.5px * var(--type-scale)) !important; }

/* Tiles / cards */
.tile h3{ font-size: calc(18px * var(--type-scale)) !important; }
.tile p{ font-size: calc(14.5px * var(--type-scale)) !important; line-height: 1.7 !important; }
.link{ font-size: calc(14px * var(--type-scale)) !important; }
.kpi .num{ font-size: calc(18px * var(--type-scale)) !important; }
.kpi .lbl{ font-size: calc(12.5px * var(--type-scale)) !important; }

/* Company/subpage typography helpers (if used) */
.title{ font-size: clamp(46px, 4.6vw, 72px) !important; }
.h2{ font-size: clamp(30px, 2.6vw, 38px) !important; }
.h3{ font-size: calc(18px * var(--type-scale)) !important; }

/* Forms / modal */
.modal-title{ font-size: calc(18px * var(--type-scale)) !important; }
label{ font-size: calc(13px * var(--type-scale)) !important; }
input, select, textarea{ font-size: calc(14px * var(--type-scale)) !important; }

/* Mobile: keep it readable without getting huge */
@media (max-width: 560px){
  :root{ --type-scale: 1.08; }
  .hero h1{ font-size: clamp(34px, 7vw, 46px) !important; }
}
/* ============================================================
   APPLICATION SUBPAGES (6 pages) — style + class-alias patch
   Paste at VERY END of styles.css
   Targets: ai-data-centers.html, crypto-mining.html, iot-medical.html,
            wearables.html, mobile.html, neurodevices.html
   ============================================================ */

/* ---------- Class aliases (your app pages use older names) ---------- */
.btn-primary{ /* alias of .btn--primary */
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent !important;
  color: #fff !important;
}
.btn-ghost{ /* alias of .btn--ghost */
  background: transparent !important;
  box-shadow: none !important;
}
.btn-ghost:hover{
  background: color-mix(in srgb, var(--surface-2) 75%, transparent) !important;
}
.kpi .label{ /* alias of .kpi .lbl */
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.muted{ color: var(--muted) !important; }

/* ---------- App hero (match your "page hero" vibe) ---------- */
.app-hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 25%, rgba(10,166,166,.14), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(58,214,198,.12), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 65%, transparent),
      transparent 70%);
}

/* tighten up the hero content width like enterprise pages */
.app-hero .hero-grid{ position: relative; z-index: 2; }
.app-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}
.app-hero .eyebrow::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(10,166,166,.16);
}

.app-hero h1{
  margin: 12px 0 10px;
  font-size: clamp(38px, 3.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.app-hero .lead{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 78ch;
}

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

/* ---------- KPI strip inside app hero ---------- */
.app-hero .hero-kpis{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.app-hero .kpi{
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(10px);
}
.app-hero .kpi .num{
  font-weight: 980;
  font-size: 18px;
}

/* ---------- App sections spacing (matches your other pages) ---------- */
.app-section-tight{ padding-top: 36px; }
.section.app-section-tight{ padding-bottom: 42px; }

/* Ensure split panels look consistent */
.panel{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 20px;
}
.panel h2{ margin: 0 0 10px; font-size: 26px; letter-spacing: -0.02em; }
.panel h3{ margin: 0 0 10px; font-size: 18px; letter-spacing: -0.01em; }
.panel p{ margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.panel p:last-child{ margin-bottom: 0; }

.panel-soft{
  background: color-mix(in srgb, var(--surface-2) 78%, var(--surface));
}

/* App card grid inside the soft panel */
.app-card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Cards inside app grids (your app pages use .card in a different meaning) */
.app-card-grid .card{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 16px;
}
.app-card-grid .card h4{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.app-card-grid .card p{
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .app-hero{ padding: 44px 0 28px; }
  .app-hero .hero-kpis{ grid-template-columns: 1fr; }
  .app-card-grid{ grid-template-columns: 1fr; }
}
/* ============================================================
   APPLICATION PAGES FIX (6 pages)
   Paste at VERY END of css/styles.css
   ============================================================ */

/* Old button class aliases -> new system */
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent !important;
  color: #fff !important;
}
.btn-ghost{
  background: transparent !important;
  box-shadow: none !important;
}
.btn-ghost:hover{
  background: color-mix(in srgb, var(--surface-2) 75%, transparent) !important;
}

/* Old KPI label alias */
.kpi .label{
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

/* Old muted helper */
.muted{ color: var(--muted) !important; }

/* App hero (matches your Applications page vibe) */
.hero.app-hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 25%, rgba(10,166,166,.14), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(58,214,198,.12), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--surface) 65%, transparent),
      transparent 70%);
}

.hero.app-hero .hero-grid{ position: relative; z-index: 2; }

.hero.app-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 85%, var(--text));
}
.hero.app-hero .eyebrow::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(10,166,166,.16);
}

.hero.app-hero h1{
  margin: 12px 0 10px;
  font-size: clamp(38px, 3.6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero.app-hero .lead{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 78ch;
}

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

.hero.app-hero .hero-kpis{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* App sections spacing */
.section.app-section-tight{ padding-top: 36px; }
.section.app-section-tight{ padding-bottom: 42px; }

/* App card grid */
.app-card-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 980px){
  .hero.app-hero{ padding: 44px 0 28px; }
  .hero.app-hero .hero-kpis{ grid-template-columns: 1fr; }
  .app-card-grid{ grid-template-columns: 1fr; }
}
/* ============================================================
   HOME HERO: Move background image UP (no layout changes)
   Paste at VERY END of styles.css
   ============================================================ */

/* Increase this number to move the photo UP more */
:root{
  --home-hero-bg-shift: 30px;
}

/* move the bg image UP by shifting the vertical position */
body[data-page="home"] .hero::before{
  background-position: right calc(50% - var(--home-hero-bg-shift)) !important;
}

/* Mobile tweak (usually needs less shift) */
@media (max-width: 980px){
  :root{ --home-hero-bg-shift: 90px; }
}
