/* ============================================================
   home.css — Swat Info System home page ("Kinetic Aurora" design)
   Vivid flowing gradient (fx.js canvas) + floating glass UI.
   Self-contained; scoped to .ha. Loaded only on / (index).
   ============================================================ */
.ha {
  --a1: #6366f1; --a2: #22d3ee; --a3: #10b981; --a4: #8b5cf6; --a5: #f43f81;
  --ink: #0b1020; --ink-2: #26304a; --muted: #55617c; --line: rgba(20,24,48,.09);
  --glass: rgba(255,255,255,.66); --glass-2: rgba(255,255,255,.82);
  --glass-line: rgba(255,255,255,.75);
  --disp: 'Archivo Expanded','Archivo',sans-serif; --body: 'Archivo',sans-serif; --mono: 'Archivo',sans-serif;
  --fx-cursor: #4f46e5; --fx-cursor-fill: rgba(99,102,241,.14);
  position: relative; color: var(--ink); font-family: var(--body);
}

/* ---- living gradient backdrop (fixed) ---- */
.ha-bg { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: #eef1f9; }
.ha-bg canvas { position: absolute; inset: -16%; width: 132%; height: 132%; filter: blur(60px) saturate(1.45); opacity: .8; }
.ha-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.52) 55%, rgba(255,255,255,.7) 100%); }
.ha-noise { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }

/* ---- shared bits ---- */
.ha .container { position: relative; z-index: 1; }
.ha-glass { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 24px; border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 24px 60px -30px rgba(26,22,80,.38); }
.ha-grad { background: linear-gradient(100deg, var(--a1), var(--a2) 35%, var(--a3) 60%, var(--a4)); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: haShift 9s linear infinite; }
@keyframes haShift { to { background-position: 220% center; } }
.ha-kick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--a1); }
.ha-kick::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.ha h2 { font-family: var(--disp); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); }

/* buttons (concept-local, glassy/gradient) */
.ha-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 10px 0 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, filter .3s; white-space: nowrap; }
.ha-btn svg { width: 30px; height: 30px; padding: 7px; border-radius: 10px; box-sizing: border-box; }
.ha-btn--grad { color: #fff; background: linear-gradient(100deg, var(--a1), var(--a4)); box-shadow: 0 16px 40px -14px rgba(99,102,241,.75); }
.ha-btn--grad svg { background: rgba(255,255,255,.22); }
.ha-btn--grad:hover { box-shadow: 0 22px 50px -14px rgba(99,102,241,.85); filter: saturate(1.1); }
.ha-btn--glass { color: var(--ink); background: var(--glass-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line); box-shadow: 0 10px 30px -18px rgba(26,22,80,.4); }
.ha-btn--glass svg { background: var(--ink); color: #fff; }

/* ---------------- HERO ---------------- */
.ha-hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; overflow: hidden;
  padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(70px, 10vh, 120px); }
.ha-hero > .fx-canvas { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(42px) saturate(1.5); opacity: .95; z-index: -2; }
.ha-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 42%, rgba(255,255,255,.4), rgba(255,255,255,.1) 55%, transparent 72%); }
.ha-hero-in { max-width: 1040px; margin-inline: auto; text-align: center; }
.ha-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; margin-bottom: 26px;
  background: var(--glass-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-line);
  box-shadow: 0 8px 24px -16px rgba(26,22,80,.5); font-size: .82rem; color: var(--ink-2); }
.ha-badge b { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(100deg, var(--a1), var(--a4)); color: #fff;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.ha-badge b svg { width: 13px; height: 13px; }
.ha-h1 { font-family: var(--disp); font-weight: 700; font-size: clamp(2.7rem, 7vw, 6rem); line-height: .95; letter-spacing: -.045em; color: var(--ink); text-wrap: balance; }
.ha-lead { margin: clamp(22px, 3vw, 34px) auto 0; max-width: 60ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.ha-actions { margin-top: clamp(30px, 4vw, 44px); display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ha-stats { margin-top: clamp(46px, 6vh, 80px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin-inline: auto; }
.ha-stat { padding: 22px 18px; border-radius: 20px; }
.ha-stat .n { font-family: var(--disp); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.035em; line-height: 1; }
.ha-stat .n .suffix { -webkit-text-fill-color: initial; }
.ha-stat .l { margin-top: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .ha-stats { grid-template-columns: 1fr 1fr; } }
.ha-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 999px;
  border: 1.5px solid rgba(20,24,48,.18); display: grid; justify-items: center; padding-top: 7px; background: var(--glass-2); z-index: 1; }
.ha-cue span { width: 4px; height: 8px; border-radius: 2px; background: var(--a1); animation: haCue 1.7s ease-in-out infinite; }
@keyframes haCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------- SECTIONS ---------------- */
.ha-sec { position: relative; padding-block: clamp(64px, 9vw, 130px); }
.ha-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.ha-head .ha-kick { justify-content: center; }
.ha-head h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-top: 18px; }
.ha-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

/* trust marquee */
.ha-trust { text-align: center; }
.ha-trust p { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.ha-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ha-chip { padding: 11px 20px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 600; color: var(--ink-2); font-size: .94rem; box-shadow: 0 8px 22px -16px rgba(26,22,80,.4); }
.ha-chips .ha-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s; }
.ha-chips .ha-chip img { width: 20px; height: 20px; object-fit: contain; display: block; }
.ha-chips .ha-chip:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 40%, var(--glass-line)); box-shadow: 0 16px 30px -18px rgba(26,22,80,.55); }

/* build cards (glass + tilt) */
.ha-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 22px); }
.ha-card { grid-column: span 4; padding: clamp(26px, 2.8vw, 38px); display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .35s; transform-style: preserve-3d; color: inherit; }
.ha-card--wide { grid-column: span 6; } .ha-card--full { grid-column: span 12; }
.ha-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 36px 80px -34px rgba(26,22,80,.5); }
.ha-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--a1), var(--a4)); box-shadow: 0 14px 30px -12px rgba(99,102,241,.6); }
.ha-ico svg { width: 28px; height: 28px; }
.ha-ico.c2 { background: linear-gradient(135deg, var(--a3), var(--a2)); box-shadow: 0 14px 30px -12px rgba(16,185,129,.55); }
.ha-ico.c3 { background: linear-gradient(135deg, var(--a5), var(--a4)); box-shadow: 0 14px 30px -12px rgba(244,63,129,.5); }
.ha-card h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.8rem); letter-spacing: -.025em; margin-bottom: 10px; }
.ha-card p { color: var(--muted); font-size: .98rem; }
.ha-card .ha-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.ha-card .ha-tags span { font-family: var(--mono); font-size: .7rem; padding: 5px 11px; border-radius: 999px; background: rgba(99,102,241,.1); color: var(--a1); }
.ha-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--a1); }
.ha-go svg { width: 16px; height: 16px; transition: transform .3s; } .ha-card:hover .ha-go svg { transform: translateX(4px); }
.ha-card--stat { align-items: flex-start; justify-content: center; color: #fff;
  background: linear-gradient(140deg, #4f46e5, #7c3aed 55%, #0ea5e9); border: none; }
.ha-card--stat .bn { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -.035em; line-height: 1; }
.ha-card--stat .bl { margin-top: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.82); }
@media (max-width: 900px) { .ha-card, .ha-card--wide { grid-column: span 6; } .ha-card--full { grid-column: span 12; } }
@media (max-width: 600px) { .ha-card, .ha-card--wide, .ha-card--full { grid-column: span 12; } }

/* editions rail */
.ha-rail { display: flex; gap: 18px; overflow-x: auto; padding: 4px 0 20px; scroll-snap-type: x proximity; cursor: grab; scrollbar-width: none; }
.ha-rail::-webkit-scrollbar { display: none; }
.ha-rail.is-drag { cursor: grabbing; }
.ha-rcard { scroll-snap-align: start; flex: 0 0 clamp(260px, 27vw, 330px); padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column;
  min-height: 240px; position: relative; overflow: hidden; color: inherit; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.ha-rcard:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 36px 80px -34px rgba(26,22,80,.5); }
.ha-rn { font-family: var(--disp); font-weight: 700; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-rcard h3 { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin: 12px 0 8px; }
.ha-rcard p { color: var(--muted); font-size: .93rem; }
.ha-rcard .ha-go { font-size: .9rem; }

/* approach */
.ha-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ha-step { padding: clamp(24px, 2.4vw, 32px); position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.ha-step:hover { transform: translateY(-6px); }
.ha-sn { font-family: var(--disp); font-weight: 700; font-size: 2.2rem; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, var(--a4), var(--a5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ha-step h3 { font-family: var(--disp); font-weight: 700; font-size: 1.25rem; margin: 10px 0 8px; letter-spacing: -.02em; }
.ha-step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .ha-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ha-steps { grid-template-columns: 1fr; } }

/* CTA */
.ha-cta { position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 40px); text-align: center; color: #fff;
  padding: clamp(56px, 8vw, 110px) clamp(28px, 5vw, 80px); background: linear-gradient(130deg, #4f46e5, #7c3aed 45%, #0ea5e9 80%, #10b981); isolation: isolate; }
.ha-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ha-cta h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; margin: 6px auto 0; }
.ha-cta p { color: rgba(255,255,255,.88); margin: 16px auto 0; max-width: 52ch; font-size: 1.1rem; }
.ha-cta .ha-actions { margin-top: 32px; }
.ha-cta .ha-btn--glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); }
.ha-cta .ha-btn--glass svg { background: #fff; color: var(--a1); }
.ha-cta .ha-btn--grad { background: #fff; color: var(--a1); }
.ha-cta .ha-btn--grad svg { background: linear-gradient(100deg, var(--a1), var(--a4)); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .ha-grad { animation: none; } .ha-cue span { animation: none; }
}

/* a11y: darken small accent text to meet contrast (>=4.5:1 on light glass) */
.ha-go, .ha-tags span, .ha-kick { color: #4338ca; }
.ha-cta .ha-kick { color: #fff; }

/* ---------- SERVICES ---------- */
.ha-svcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.ha-svc { padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; color: inherit; transition: box-shadow .35s; }
.ha-svc-n { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; color: #4338ca; letter-spacing: -.02em; }
.ha-svc h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin: 10px 0 8px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ha-svc p { color: var(--muted); font-size: .96rem; }
.ha-svc-tag { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, var(--a1), var(--a4)); padding: 4px 10px; border-radius: 999px; }
.ha-svc--feat { background: linear-gradient(135deg, rgba(99,102,241,.16), rgba(139,92,246,.1)); border: 1px solid rgba(99,102,241,.32); }
@media (max-width: 700px) { .ha-svcs { grid-template-columns: 1fr; } }

/* ---------- FLAGSHIP PRODUCT ROWS ---------- */
.ha-prod { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: center; }
.ha-prod + .ha-prod { margin-top: clamp(28px, 4vw, 64px); }
.ha-prod--rev .ha-prod-v { order: 2; }
.ha-prod-v { border-radius: 24px; overflow: hidden; color: #fff; padding: clamp(28px, 3vw, 44px); min-height: clamp(300px, 34vw, 380px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; position: relative; isolation: isolate; box-shadow: 0 30px 70px -30px rgba(26,22,80,.5); }
.ha-prod-v::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 38px 38px; }
.pv--pharma { background: radial-gradient(130% 120% at 82% 8%, #10b981, #065f46 92%); }
.pv--api { background: radial-gradient(130% 120% at 82% 8%, #22d3ee, #0e7490 92%); }
.pv--solar { background: radial-gradient(130% 120% at 82% 8%, #6366f1, #0b3a97 92%); }
.ha-prod-v .pv-tag { align-self: flex-start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px; }
.ha-prod-v .pv-big { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.04; letter-spacing: -.03em; }
.ha-prod-v .pv-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-prod-v .pv-mods span { font-size: .78rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.ha-prod-b h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.03em; margin: 14px 0 4px; }
.ha-dom { font-family: var(--mono); font-size: .84rem; color: #4338ca; margin-bottom: 16px; }
.ha-prod-b > p { color: var(--muted); margin-bottom: 20px; max-width: 52ch; }
.ha-metrics { display: flex; gap: clamp(20px, 3vw, 40px); margin-bottom: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ha-metrics b { display: block; font-family: var(--disp); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.03em; color: var(--ink); }
.ha-metrics span { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .ha-prod, .ha-prod--rev { grid-template-columns: 1fr; } .ha-prod--rev .ha-prod-v { order: 0; } }

/* ---------- INDUSTRY MOSAIC ---------- */
.ha-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); grid-auto-rows: minmax(150px, 1fr); }
.ha-tile { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; justify-content: flex-end; color: inherit; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.ha-tile:hover { transform: translateY(-5px); box-shadow: 0 30px 70px -34px rgba(26,22,80,.5); }
.ha-tile--lg { grid-column: span 2; grid-row: span 2; color: #fff; justify-content: space-between; }
/* big tile: tag pill at top, body (heading + feature pills + CTA) at bottom */
.ha-tile-top { display: flex; align-items: center; gap: 12px; }
.ha-tile-tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #fff;
  padding: 6px 12px; border-radius: 999px; background: rgba(6,10,32,.28); border: 1px solid rgba(255,255,255,.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ha-tile-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ha-feat { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #fff;
  padding: 7px 13px; border-radius: 999px; background: rgba(6,10,32,.26); border: 1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, transform .3s; }
.ha-feat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.85); flex-shrink: 0; }
.ha-tile--lg:hover .ha-feat { background: rgba(6,10,32,.36); }
.ha-tile-go--lg { color: #fff; margin-top: 20px; font-size: .74rem; }
.ha-tile--lg:hover .ha-tile-go svg { transform: translateX(6px); }
.ha-tile-go svg { transition: transform .35s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.tile--pharma { background: radial-gradient(130% 130% at 80% 12%, #10b981, #065f46 100%); }
.tile--solar { background: radial-gradient(130% 130% at 80% 12%, #6366f1, #0b3a97 100%); }
.ha-tile-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ha-tile--lg .ha-tile-k { color: rgba(255,255,255,.82); }
.ha-tile--lg p { color: rgba(255,255,255,.9); font-size: .92rem; margin-top: 6px; }
.ha-tile h3 { font-family: var(--disp); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin-top: 4px; }
.ha-tile--lg h3 { font-size: clamp(1.5rem, 2vw, 2rem); color: #fff; }
@media (max-width: 800px) { .ha-mosaic { grid-template-columns: repeat(2, 1fr); } .ha-tile--lg { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 480px) { .ha-mosaic { grid-template-columns: 1fr; } .ha-tile--lg { grid-column: span 1; } }

/* ---------- CONNECTED PLATFORM ---------- */
.ha-connected { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(28px, 3.4vw, 52px); }
.ha-conn-copy h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 14px 0; }
.ha-conn-copy p { color: var(--muted); max-width: 46ch; }
.ha-nodes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ha-nodes span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.58); border: 1px solid var(--glass-line); font-weight: 600; color: var(--ink-2); font-size: .96rem; }
.ha-nodes svg { width: 26px; height: 26px; color: #4f46e5; flex-shrink: 0; }
@media (max-width: 800px) { .ha-connected { grid-template-columns: 1fr; } }

/* ---------- TEAM / PROMISE ---------- */
.ha-team { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(28px, 3.4vw, 52px); }
.ha-team-b h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 14px 0; line-height: 1.08; }
.ha-team-b > p { color: var(--muted); max-width: 52ch; margin-bottom: 22px; }
.ha-vals { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.ha-vals span { font-family: var(--mono); font-size: .74rem; padding: 8px 16px; border-radius: 999px; background: rgba(99,102,241,.1); color: #4338ca; }
.ha-team-stats { display: grid; gap: 22px; }
.ha-team-stats .n { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.ha-team-stats .l { margin-top: 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .ha-team { grid-template-columns: 1fr; } .ha-team-stats { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================================
   AURORA-THEMED HEADER + FOOTER + BLOCK RECOLOR
   This file loads ONLY on / (the home page), so targeting the shared .site-header
   / .site-footer here re-skins them for this page only (main.css untouched).
   ========================================================================= */

/* ---- Header → glass, aurora accents ---- */
.site-header .nav { background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.site-header.is-stuck { background: transparent; }
.site-header.is-stuck .nav { background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 16px 40px -22px rgba(26,22,80,.5); }
.brand-word .bw-erp { background: linear-gradient(100deg, #4f46e5, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-link:hover, .nav-link.is-active, .nav-drop-t.parent-active { color: #4338ca; background: rgba(99,102,241,.1); }
.nav-link.is-active::after { background: linear-gradient(90deg, #6366f1, #22d3ee); }
.nav-caret:hover { color: #4338ca; background: rgba(99,102,241,.1); }
.nav-tel svg { color: #4f46e5; }
.nav-tel { color: var(--ink); }
.nav-cta .btn--primary { background: linear-gradient(100deg, #6366f1, #8b5cf6); box-shadow: 0 12px 30px -14px rgba(99,102,241,.75); }
.nav-cta .btn--primary > svg { background: rgba(255,255,255,.25); color: #fff; }
.nav-new { background: #4338ca; }
.nav-drop a:hover, .nav-drop a.is-active { background: rgba(99,102,241,.1); color: #4338ca; }
.nav-drop a:hover small { color: #6366f1; }
.scroll-progress span { background: linear-gradient(90deg, #6366f1, #22d3ee, #10b981); box-shadow: 0 0 10px rgba(99,102,241,.5); }

/* ---- Footer → deep aurora night ---- */
.site-footer { background: linear-gradient(160deg, #0a0a1f 0%, #191142 55%, #0c1030 100%); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 60% at 86% 0%, rgba(99,102,241,.42), transparent 60%), radial-gradient(40% 60% at 4% 100%, rgba(244,63,129,.26), transparent 60%); }
.site-footer .container { position: relative; z-index: 1; }
.brand--footer .bw-erp { background: linear-gradient(100deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-badge svg { color: #67e8f9; }
.footer-contact svg { color: #a5b4fc; }
.footer-socials a:hover { background: linear-gradient(100deg, #6366f1, #8b5cf6); }

/* ---- Recolor ported blocks into the aurora palette (no original emerald/royal-blue) ---- */
.pv--pharma { background: radial-gradient(130% 120% at 82% 8%, #8b5cf6, #4338ca 92%); }
.pv--api    { background: radial-gradient(130% 120% at 82% 8%, #22d3ee, #0284c7 92%); }
.pv--solar  { background: radial-gradient(130% 120% at 82% 8%, #f43f81, #7c3aed 92%); }
.tile--pharma { background: radial-gradient(130% 130% at 80% 12%, #8b5cf6, #4338ca 100%); }
.tile--solar  { background: radial-gradient(130% 130% at 80% 12%, #22d3ee, #0284c7 100%); }

/* safety: keep the shared footer above the fixed aurora backdrop (same guard as Midnight) */
.site-footer { position: relative; z-index: 10; isolation: isolate; }
.ha-bg, .ha-noise { pointer-events: none; }

/* ---------- hero fits the console now ---------- */
.ha-hero { min-height: auto; }

/* ---------- INTERACTIVE PRODUCT CONSOLE ---------- */
.ha-console { margin: clamp(30px, 4vw, 48px) auto 0; max-width: 920px; padding: 0; overflow: hidden; text-align: left; }
.cons-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--glass-line); background: rgba(255,255,255,.4); }
.cons-live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; animation: consPulse 2.4s infinite; flex-shrink: 0; }
@keyframes consPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.cons-title { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); }
.cons-dots { margin-left: auto; display: flex; gap: 5px; }
.cons-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(20,24,48,.16); }
.cons-body { display: grid; grid-template-columns: 196px 1fr; }
.cons-tabs { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-right: 1px solid var(--glass-line); background: rgba(255,255,255,.28); }
.cons-tab { text-align: left; padding: 12px 14px; border-radius: 12px; display: flex; flex-direction: column; gap: 2px; transition: background .3s, transform .3s; }
.cons-tab b { font-family: var(--disp); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--ink); }
.cons-tab span { font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cons-tab.is-on { background: linear-gradient(100deg, rgba(99,102,241,.18), rgba(139,92,246,.12)); }
.cons-tab.is-on b { color: #4338ca; }
.cons-tab:not(.is-on):hover { background: rgba(99,102,241,.08); transform: translateX(3px); }
.cons-stage { position: relative; padding: 16px; }
.cons-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cons-panel.is-on { display: grid; }
.cf { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.52); border: 1px solid var(--glass-line);
  opacity: 0; transform: translateY(8px); animation: cfIn .5s cubic-bezier(.16,1,.3,1) forwards; }
.cons-panel.is-on .cf:nth-child(1) { animation-delay: .03s; }
.cons-panel.is-on .cf:nth-child(2) { animation-delay: .08s; }
.cons-panel.is-on .cf:nth-child(3) { animation-delay: .13s; }
.cons-panel.is-on .cf:nth-child(4) { animation-delay: .18s; }
.cons-panel.is-on .cf:nth-child(5) { animation-delay: .23s; }
.cons-panel.is-on .cf:nth-child(6) { animation-delay: .28s; }
@keyframes cfIn { to { opacity: 1; transform: none; } }
.cf-i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.cf-i svg { width: 18px; height: 18px; }
.cf-t { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.15; }
.cf-t small { display: block; font-weight: 400; font-size: .68rem; color: var(--muted); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .cons-live, .cf { animation: none; } .cf { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cons-body { grid-template-columns: 1fr; }
  .cons-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--glass-line); }
  .cons-tab { flex: 0 0 auto; }
  .cons-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) { .cons-panel { grid-template-columns: 1fr; } }

/* ---------- animated header background ---------- */
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background: linear-gradient(100deg, rgba(99,102,241,.16), rgba(34,211,238,.12) 35%, rgba(244,63,129,.12) 65%, rgba(99,102,241,.16));
  background-size: 300% 100%; animation: hdrFlow 14s linear infinite; }
@keyframes hdrFlow { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .site-header::after { animation: none; } }

/* ---------- CONNECTED PLATFORM — radial diagram (aurora palette) ---------- */
.ha-hub { position: relative; max-width: 760px; margin: 0 auto; aspect-ratio: 1.5 / 1; }
.ha-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ha-hub-lines line { stroke: rgba(99,102,241,.4); stroke-width: .35; stroke-dasharray: 2 2; animation: haDash 18s linear infinite; }
@keyframes haDash { to { stroke-dashoffset: -40; } }
.ha-hub-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: clamp(118px, 15vw, 160px); height: clamp(118px, 15vw, 160px); border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px;
  color: #fff; background: linear-gradient(140deg, #6366f1, #8b5cf6); box-shadow: 0 0 0 8px rgba(99,102,241,.12), 0 24px 60px -18px rgba(99,102,241,.55); }
.ha-hub-core::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(99,102,241,.4); animation: haPulse 3s ease-out infinite; }
@keyframes haPulse { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.ha-hub-core b { font-family: var(--disp); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.25rem); }
.ha-hub-core span { display: block; font-family: var(--mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.ha-node { position: absolute; transform: translate(-50%,-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; }
.ha-node svg { width: 52px; height: 52px; padding: 13px; box-sizing: border-box; border-radius: 15px; background: #fff; border: 1px solid var(--glass-line);
  color: #4f46e5; box-shadow: 0 16px 34px -18px rgba(26,22,80,.4); transition: transform .3s, border-color .3s, color .3s, box-shadow .3s; }
.ha-node.n2 svg, .ha-node.n4 svg, .ha-node.n6 svg { color: #0891b2; }
.ha-node span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.ha-node:hover svg { transform: translateY(-4px); border-color: rgba(99,102,241,.5); box-shadow: 0 22px 46px -20px rgba(99,102,241,.5); }
.ha-node.n1 { top: 4%; left: 50%; } .ha-node.n2 { top: 28%; left: 89%; } .ha-node.n3 { top: 72%; left: 89%; }
.ha-node.n4 { top: 96%; left: 50%; } .ha-node.n5 { top: 72%; left: 11%; } .ha-node.n6 { top: 28%; left: 11%; }
@media (max-width: 680px) {
  .ha-hub { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 440px; }
  .ha-hub-lines { display: none; }
  .ha-hub-core { position: static; transform: none; grid-column: 1 / -1; width: 100%; height: auto; border-radius: 18px; padding: 18px; margin-bottom: 4px; display: flex; gap: 6px; }
  .ha-hub-core::after { display: none; }
  .ha-node { position: static; transform: none; width: auto; flex-direction: row; justify-content: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); }
  .ha-node svg { width: 40px; height: 40px; padding: 9px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .ha-hub-lines line, .ha-hub-core::after { animation: none; } }

/* =========================================================================
   AURORA fix: header should NOT show a white box behind the logo/menu.
   Transparent over the hero; a light glass pill only once scrolled (stuck).
   ========================================================================= */
.site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.site-header .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.site-header.is-stuck { background: transparent; box-shadow: none; }
.site-header.is-stuck .nav { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 16px 40px -22px rgba(26,22,80,.5); }

/* =========================================================================
   FLAGSHIP PRODUCTS — dark cinematic "scenes" (Midnight design, aurora hues).
   Kept alongside the lighter .ha-prod rows so both designs live on the page.
   ========================================================================= */
.ha-scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); align-items: center; }
.ha-scene + .ha-scene { margin-top: clamp(28px, 4vw, 64px); }
.ha-scene--rev .ha-scene-panel { order: 2; }
.ha-scene-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: clamp(28px, 3vw, 44px);
  min-height: clamp(300px, 34vw, 380px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; color: #fff;
  box-shadow: 0 40px 90px -46px rgba(10,10,40,.9), inset 0 0 0 1px rgba(255,255,255,.08); }
.ha-scene-panel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 38px 38px; }
.ha-scene-panel::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; z-index: 1; }
.spanel--pharma { background: radial-gradient(130% 120% at 82% 6%, rgba(16,185,129,.4), transparent 66%), linear-gradient(160deg, #0b1630, #0a0f22); }
.spanel--pharma::before { background: linear-gradient(90deg, #10b981, #22d3ee); }
.spanel--api { background: radial-gradient(130% 120% at 82% 6%, rgba(34,211,238,.44), transparent 66%), linear-gradient(160deg, #0b1430, #0a0f22); }
.spanel--api::before { background: linear-gradient(90deg, #22d3ee, #6366f1); }
.spanel--solar { background: radial-gradient(130% 120% at 82% 6%, rgba(139,92,246,.46), transparent 66%), linear-gradient(160deg, #0d1130, #0a0f22); }
.spanel--solar::before { background: linear-gradient(90deg, #8b5cf6, #f43f81); }
.ha-ptag { align-self: flex-start; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: #c7d2fe; background: rgba(99,102,241,.2); border: 1px solid rgba(99,102,241,.4); border-radius: 999px; padding: 6px 14px; }
.ha-ptag--sm { align-self: flex-start; color: #4338ca; background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.26); margin-bottom: 4px; }
.ha-pbig { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; letter-spacing: -.03em; }
.ha-pbig em { color: #67e8f9; font-style: italic; }
.ha-pmods { display: flex; flex-wrap: wrap; gap: 8px; }
.ha-pmods span { font-size: .78rem; font-weight: 500; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e8ecf6; }
.ha-scene-body h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.03em; color: var(--ink); margin: 10px 0 4px; }
.ha-scene-body > p { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }
@media (max-width: 860px) { .ha-scene, .ha-scene--rev { grid-template-columns: 1fr; } .ha-scene--rev .ha-scene-panel { order: 0; } }

/* =========================================================================
   DARK CONSTELLATION overlay on the aurora background (Midnight effect,
   dark lines so it reads on the light aurora canvas; aurora colors kept).
   ========================================================================= */
.ha-bg .ha-constellation { position: absolute; inset: 0; width: 100%; height: 100%; filter: none; opacity: .5; z-index: 1; }

/* =========================================================================
   PRODUCT HIGHLIGHT — HUD console (Midnight design, aurora-tinted, dark panel)
   Scoped under .ha-hud so it overrides the light glass-console base styles.
   ========================================================================= */
.ha-hud { position: relative; overflow: hidden; margin: clamp(4px, 1vw, 10px) auto 0; max-width: 940px; text-align: left; border-radius: 24px;
  background: linear-gradient(160deg, #0c1326, #0a0f22); color: #eef1f9; box-shadow: 0 40px 90px -46px rgba(10,10,40,.9), inset 0 0 0 1px rgba(255,255,255,.08); }
.hh-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-family: var(--mono); }
.hh-live { display: inline-flex; align-items: center; gap: 7px; font-size: .64rem; letter-spacing: .14em; color: #34d399; }
.hh-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: hhPulse 2s infinite; }
@keyframes hhPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hh-title { font-size: .72rem; letter-spacing: .12em; color: #7dd3fc; }
.hh-id { margin-left: auto; font-size: .62rem; letter-spacing: .14em; color: #9aa4bd; }
.ha-hud .hh-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.ha-hud .cons-tab { flex: 1 1 0; flex-direction: row; gap: 0; text-align: center; justify-content: center; padding: 10px 8px; border-radius: 10px 10px 0 0;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: #9aa4bd; background: transparent; border: 1px solid transparent; border-bottom: 0;
  transition: color .3s, background .3s, border-color .3s; position: relative; }
.ha-hud .cons-tab.is-on { color: #fff; background: linear-gradient(180deg, rgba(99,102,241,.18), transparent); border-color: rgba(255,255,255,.1); transform: none; }
.ha-hud .cons-tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: linear-gradient(90deg, #6366f1, #22d3ee); box-shadow: 0 0 10px #22d3ee; }
.ha-hud .cons-tab:not(.is-on):hover { color: #7dd3fc; background: transparent; transform: none; }
.hh-stage { position: relative; padding: 20px 18px; border-top: 1px solid rgba(255,255,255,.1); }
.hh-stage::before, .hh-stage::after { content: ""; position: absolute; width: 15px; height: 15px; border: 1px solid #22d3ee; opacity: .5; pointer-events: none; }
.hh-stage::before { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.hh-stage::after { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }
.hh-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), transparent); animation: hhScan 4.8s linear infinite; }
@keyframes hhScan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }
.ha-hud .cons-panel { display: none; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.ha-hud .cons-panel.is-on { display: grid; }
.hh-f { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.02);
  opacity: 0; transform: translateX(-8px); animation: hhIn .5s cubic-bezier(.16,1,.3,1) forwards; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(1) { animation-delay: .04s; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(2) { animation-delay: .09s; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(3) { animation-delay: .14s; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(4) { animation-delay: .19s; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(5) { animation-delay: .24s; }
.ha-hud .cons-panel.is-on .hh-f:nth-child(6) { animation-delay: .29s; }
@keyframes hhIn { to { opacity: 1; transform: none; } }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; flex-shrink: 0; }
.hh-l { font-family: var(--mono); font-size: .8rem; font-weight: 600; color: #f0f3fa; line-height: 1.2; }
.hh-l small { display: block; font-weight: 400; font-size: .68rem; color: #9aa4bd; letter-spacing: .02em; margin-top: 2px; }
.hh-bar { margin-left: auto; width: 56px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; flex-shrink: 0; }
.hh-bar i { display: block; height: 100%; width: var(--w, 70%); background: linear-gradient(90deg, #6366f1, #22d3ee); box-shadow: 0 0 8px rgba(34,211,238,.6); }
@media (max-width: 720px) { .ha-hud .cons-panel { grid-template-columns: 1fr; } .ha-hud .cons-tab { font-size: .64rem; padding: 9px 4px; } }
@media (prefers-reduced-motion: reduce) { .hh-live i, .hh-scan, .hh-f { animation: none; } .hh-f { opacity: 1; transform: none; } }

/* =========================================================================
   INDUSTRY MOSAIC — photo tiles + specialisation icon watermarks
   ========================================================================= */
.ha-tile--photo { color: #fff; isolation: isolate; background: #0a0c1e; }
.ha-tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--img); background-size: cover; background-position: center; transition: transform .6s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.ha-tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,10,26,.88) 6%, rgba(8,10,26,.35) 52%, rgba(8,10,26,.08)); }
.ha-tile--photo:hover::before { transform: scale(1.07); }
.ha-tile--photo .ha-tile-k { color: rgba(255,255,255,.82); }
.ha-tile--photo h3 { color: #fff; }
.ha-tile-ico { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 0; opacity: .15; pointer-events: none; color: #fff;
  transition: transform .6s var(--ease-out, cubic-bezier(.16,1,.3,1)), opacity .6s; }
.ha-tile-ico svg { width: clamp(200px, 24vw, 320px); height: clamp(200px, 24vw, 320px); }
.ha-tile--lg:hover .ha-tile-ico { transform: translateY(-50%) scale(1.06) rotate(-4deg); opacity: .2; }
/* capability checklist (fills the middle of the big tiles) */
.ha-tile-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.ha-tile-list li { position: relative; padding-left: 28px; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.96); line-height: 1.35; }
.ha-tile-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center;
  font-size: .66rem; font-weight: 800; color: #fff; }
.ha-tile--lg > *:not(.ha-tile-ico) { position: relative; z-index: 1; }

/* =========================================================================
   HUD console — retint accents to the aurora sweep (indigo → violet → cyan)
   ========================================================================= */
.hh-title { color: #a5b4fc; }
.ha-hud .cons-tab.is-on::after { background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee); box-shadow: 0 0 10px rgba(139,92,246,.7); }
.hh-bar i { background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee); box-shadow: 0 0 8px rgba(139,92,246,.55); }
.hh-stage::before, .hh-stage::after { border-color: #8b5cf6; }
.hh-scan { background: linear-gradient(90deg, transparent, rgba(139,92,246,.6), transparent); }

/* =========================================================================
   INDUSTRY MOSAIC — icon tiles (no photos) + header always visible
   ========================================================================= */
.ha-tile--icon { --tacc: #6366f1; --tink: #4338ca; background: #fff; box-shadow: var(--hairline), var(--shadow-sm);
  display: flex; flex-direction: column; color: inherit; overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s; }
/* hover wash tinted to the tile accent */
.ha-tile--icon::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease-out, cubic-bezier(.16,1,.3,1));
  background: linear-gradient(145deg, color-mix(in srgb, var(--tacc) 14%, transparent), color-mix(in srgb, var(--tacc) 3%, transparent)); }
.ha-tile--icon:hover::before { opacity: 1; }
/* soft colour glow blooming from the top-right corner (always on, grows on hover) */
.ha-tile--icon::after { content: ""; position: absolute; top: -46px; right: -46px; width: 160px; height: 160px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--tacc) 26%, transparent), transparent 66%);
  opacity: .55; transition: opacity .45s, transform .55s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.ha-tile--icon:hover::after { opacity: .9; transform: scale(1.18); }
.ha-tile--icon:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--tacc) 55%, rgba(26,22,80,.5)); }
.ha-ibadge { position: relative; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: auto;
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--tacc) 60%, rgba(26,22,80,.55)); transition: transform .4s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.ha-tile--icon:hover .ha-ibadge { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.ha-ibadge svg { width: 27px; height: 27px; }
.ib-1 { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.ib-2 { background: linear-gradient(135deg, #22d3ee, #0ea5e9); }
.ib-3 { background: linear-gradient(135deg, #10b981, #22d3ee); }
.ib-4 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ib-5 { background: linear-gradient(135deg, #f43f81, #8b5cf6); }
.ib-6 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
/* per-tile accent (vivid glow var --tacc + text-safe var --tink for the arrow) */
.ha-tile--icon:has(.ib-1) { --tacc: #6366f1; --tink: #4338ca; }
.ha-tile--icon:has(.ib-2) { --tacc: #0ea5e9; --tink: #0369a1; }
.ha-tile--icon:has(.ib-3) { --tacc: #10b981; --tink: #047857; }
.ha-tile--icon:has(.ib-4) { --tacc: #8b5cf6; --tink: #6d28d9; }
.ha-tile--icon:has(.ib-5) { --tacc: #f43f81; --tink: #be185d; }
.ha-tile--icon:has(.ib-6) { --tacc: #22d3ee; --tink: #0e7490; }
.ha-tile--icon .ha-tile-k { color: var(--muted); margin-top: 18px; }
.ha-tile--icon h3 { color: var(--ink); }
.ha-tile--icon p { color: var(--ink-2); font-size: .89rem; line-height: 1.5; margin-top: 7px; }
.ha-tile-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--tink); }
.ha-tile-go svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.ha-tile--icon:hover .ha-tile-go svg { transform: translateX(6px); }

/* keep the header visible on scroll (override the global auto-hide) */
.site-header.is-hidden { transform: none !important; }

/* =========================================================================
   Remove the global topographic "lines" + dot background on this page —
   the Midnight constellation now provides the motion. Make it full-bleed.
   ========================================================================= */
body::before, body::after { display: none !important; }
.ha-bg { background: #eef1f9; }
.ha-bg .ha-constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .62; filter: none; z-index: 1; }

/* =========================================================================
   HUD FLOW CONSOLE — central core wired to module nodes with flowing beams
   (litellm-style connecting-modules effect; connectors drawn by fx.js)
   ========================================================================= */
.ha-hud .cons-panel { display: none; }
.ha-hud .cons-panel.is-on { display: block; }
.hh-flow { position: relative; display: grid; grid-template-columns: minmax(128px, 190px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; min-height: 250px; }
.hh-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.hhw-base { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 1.4; }
.hhw-beam { fill: none; stroke: #22d3ee; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 15; filter: drop-shadow(0 0 4px rgba(34,211,238,.85)); animation: hhFlow 2.1s linear infinite; }
@keyframes hhFlow { to { stroke-dashoffset: -15.1; } }
.hh-core { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 20px 14px; border-radius: 16px; text-align: center;
  background: linear-gradient(140deg, rgba(99,102,241,.32), rgba(34,211,238,.16)); border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 0 34px -6px rgba(99,102,241,.55), inset 0 0 0 1px rgba(255,255,255,.06); }
.hh-core-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; margin: 0 auto 6px; animation: hhPulse 2s infinite; }
.hh-core b { font-family: var(--disp); font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: -.02em; }
.hh-core small { font-family: var(--mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: #a5b4fc; }
.hh-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.hh-node { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; background: rgba(12,16,34,.72); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hh-ndot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px #22d3ee; flex-shrink: 0; }
.hh-nl { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: #f0f3fa; line-height: 1.15; }
.hh-nl small { display: block; font-weight: 400; font-size: .66rem; color: #9aa4bd; margin-top: 2px; }
@media (max-width: 720px) { .hh-flow { grid-template-columns: 1fr; } .hh-wires { display: none; } .hh-nodes { grid-template-columns: 1fr; } .hh-core { margin-bottom: 6px; } }
@media (prefers-reduced-motion: reduce) { .hhw-beam { animation: none; stroke-dasharray: none; opacity: .55; } }

/* =========================================================================
   HERO GLASS FLOW CONSOLE — connecting-modules flow, styled LIGHT (glass)
   ========================================================================= */
.ha-console--flow { padding: 0; overflow: hidden; }
.ha-console--flow .hh-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--glass-line); font-family: var(--mono); background: rgba(255,255,255,.4); }
.ha-console--flow .hh-live { display: inline-flex; align-items: center; gap: 7px; font-size: .64rem; letter-spacing: .14em; color: #0e9f6e; }
.ha-console--flow .hh-live i { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: hhPulse 2s infinite; }
.ha-console--flow .hh-title { font-size: .72rem; letter-spacing: .1em; color: var(--ink-2); }
.ha-console--flow .hh-id { margin-left: auto; font-size: .62rem; letter-spacing: .1em; color: var(--muted); }
.ha-console--flow .hh-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
.ha-console--flow .cons-tab { flex: 1 1 0; flex-direction: row; gap: 0; justify-content: center; text-align: center; padding: 10px 8px; border-radius: 10px 10px 0 0;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid transparent; border-bottom: 0;
  transition: color .3s, background .3s, border-color .3s; position: relative; }
.ha-console--flow .cons-tab.is-on { color: #4338ca; background: linear-gradient(180deg, rgba(99,102,241,.12), transparent); border-color: var(--glass-line); transform: none; }
.ha-console--flow .cons-tab.is-on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee); }
.ha-console--flow .cons-tab:not(.is-on):hover { color: #4338ca; background: transparent; transform: none; }
.ha-console--flow .hh-stage { position: relative; padding: 20px 18px; border-top: 1px solid var(--glass-line); }
.ha-console--flow .hh-stage::before, .ha-console--flow .hh-stage::after { border-color: #8b5cf6; }
.ha-console--flow .hh-scan { background: linear-gradient(90deg, transparent, rgba(99,102,241,.4), transparent); }
.ha-console--flow .cons-panel { display: none; }
.ha-console--flow .cons-panel.is-on { display: block; }
.ha-console--flow .hh-core { background: linear-gradient(140deg, #6366f1, #8b5cf6); color: #fff; border: 1px solid rgba(255,255,255,.5); box-shadow: 0 16px 34px -14px rgba(99,102,241,.6); }
.ha-console--flow .hh-core b { color: #fff; }
.ha-console--flow .hh-core small { color: rgba(255,255,255,.85); }
.ha-console--flow .hh-core-dot { background: #d1fadf; box-shadow: 0 0 10px rgba(255,255,255,.85); }
.ha-console--flow .hh-node { background: #fff; border: 1px solid var(--glass-line); box-shadow: var(--hairline), 0 10px 24px -16px rgba(26,22,80,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ha-console--flow .hh-ndot { background: #6366f1; box-shadow: 0 0 8px rgba(99,102,241,.6); }
.ha-console--flow .hh-nl { color: var(--ink); }
.ha-console--flow .hh-nl small { color: var(--muted); }
.ha-console--flow .hhw-base { stroke: rgba(99,102,241,.18); }
.ha-console--flow .hhw-beam { stroke: #6366f1; filter: drop-shadow(0 0 4px rgba(99,102,241,.6)); }

/* =========================================================================
   HEADER — glass on the WHOLE container when scrolled (not just the nav)
   ========================================================================= */
.site-header.is-stuck { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 30px -22px rgba(26,22,80,.5); border-bottom: 1px solid var(--glass-line); }
.site-header.is-stuck .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: none; }

/* =========================================================================
   ERP EDITIONS — show all cards in a grid (was a clipped horizontal rail)
   ========================================================================= */
.ha-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); overflow: visible; cursor: default; padding-bottom: 0; }
.ha-rail .ha-rcard { flex: initial; }
@media (max-width: 1040px) { .ha-rail { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .ha-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ha-rail { grid-template-columns: 1fr; } }

/* ---- Pharma cards: second button → swattecherp.com ---- */
.ha-btn-pair { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ha-btn--ext { padding-right: 10px; }
