/* ============================================================
   MEGADATA SISTEMAS — Digital Command Center v2
   Dark Theme | Cyan + Purple Accent Palette
   ============================================================ */

/* ---- Variables ------------------------------------------- */
:root {
  --bg:          #04040f;
  --bg2:         #080816;
  --surface:     #0c0c20;
  --surface2:    #12122a;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.12);
  --c-cyan:      #00d4ff;
  --c-cyan-dim:  rgba(0,212,255,.18);
  --c-purple:    #7b5cf6;
  --c-purple-dim:rgba(123,92,246,.18);
  --c-orange:    #ff7240;
  --c-orange-dim:rgba(255,114,64,.18);
  --c-green:     #2dffb3;
  --c-green-dim: rgba(45,255,179,.18);
  --text:        #e8eaf6;
  --text-muted:  rgba(232,234,246,.55);
  --text-dim:    rgba(232,234,246,.35);
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --nav-h:       72px;
  --max-w:       1240px;
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: none; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Scrollbar ------------------------------------------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--c-purple); border-radius: 9px; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .6s ease .3s, visibility .6s ease .3s;
}
#preloader.out { opacity: 0; visibility: hidden; }
.pre-inner { width: 260px; text-align: center; }
.pre-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700;
  letter-spacing: .08em; color: var(--c-cyan); margin-bottom: 2rem; }
.pre-bar { height: 2px; background: var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 1rem; }
.pre-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--c-purple), var(--c-cyan));
  border-radius: 9px; transition: width .15s ease; }
.pre-pct { font-size: .75rem; color: var(--text-dim); letter-spacing: .12em; }

/* ============================================================
   CURSOR
   ============================================================ */
#cursor-dot {
  position: fixed; pointer-events: none; z-index: 9998;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-cyan);
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, opacity .3s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; pointer-events: none; z-index: 9997;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,.5);
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}
#cursor-ring.ring-expand { width: 56px; height: 56px; border-color: var(--c-cyan); }

/* ============================================================
   CANVAS BG
   ============================================================ */
#bgCanvas {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; opacity: .42;
  mix-blend-mode: screen;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav-scrolled {
  background: rgba(4,4,15,.85);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}
.nav-wrap {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.nlogo { display: flex; align-items: center; }
.nlogo img { height: 40px; width: auto; }
.nlinks {
  display: flex; align-items: center; gap: .25rem; margin-left: auto;
}
.nlinks a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-muted); padding: .5rem .85rem; border-radius: 8px;
  transition: color .25s, background .25s;
}
.nlinks a:hover { color: var(--text); background: var(--border); }
.nav-cta {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  color: var(--bg); background: var(--c-cyan);
  padding: .5rem 1.25rem; border-radius: 9px;
  transition: background .25s, box-shadow .25s, transform .2s;
  margin-left: .75rem;
}
.nav-cta:hover { background: #22e4ff; box-shadow: 0 0 20px rgba(0,212,255,.5); transform: translateY(-1px); }
.nav-cta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(4,4,15,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(4,4,15,.15); }
}
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; margin-left: auto; padding: 0;
  cursor: none;
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile menu ----------------------------------------- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 890;
  background: rgba(4,4,15,.96); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  transform: translateY(-10px); opacity: 0; visibility: hidden;
  transition: transform .35s, opacity .35s, visibility .35s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--text-muted);
  padding: .8rem 1rem; border-radius: 10px;
  transition: color .2s, background .2s;
}
.mobile-menu a:hover { color: var(--text); background: var(--border); }
.mobile-menu .nav-cta { display: inline-flex; align-self: flex-start; margin-top: .75rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem,5vw,4rem) 6rem;
  overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-grid {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 2;
}
.hero-left { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-cyan); padding: .4rem 1rem; border-radius: 99px;
  border: 1px solid rgba(0,212,255,.25); background: rgba(0,212,255,.07);
  width: fit-content;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-cyan); animation: pulse-dot 1.8s infinite; }
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6.5vw, 6.4rem); font-weight: 800; line-height: 1.0;
  letter-spacing: -.03em;
}
.ht-line { display: block; overflow: hidden; }
.ht-word { display: inline-block; }
.accent-c { color: var(--c-cyan); }
.accent-p { color: var(--c-purple); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); line-height: 1.75;
  max-width: 48ch;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---- Shared buttons -------------------------------------- */
.btn-glow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  padding: .8rem 1.85rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  color: #fff; transition: box-shadow .3s, transform .2s;
}
.btn-glow:hover { box-shadow: 0 0 30px rgba(0,212,255,.45), 0 0 60px rgba(123,92,246,.2); transform: translateY(-2px); }
.btn-glow svg, .btn-ghost svg, .prod-btn svg, .nav-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-glow.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em;
  padding: .8rem 1.85rem; border-radius: 10px;
  border: 1px solid var(--border2); color: var(--text);
  transition: background .25s, border-color .25s, transform .2s;
}
.btn-ghost:hover { background: var(--border); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

.hero-counters {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.75rem; width: fit-content;
}
.hc-item { display: flex; flex-direction: column; gap: .2rem; padding: 0 1.25rem; }
.hc-item:first-child { padding-left: 0; }
.hc-item:last-child { padding-right: 0; }
.hc-top { display: flex; align-items: baseline; gap: .15rem; }
.hc-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--c-cyan); }
.hc-suf { font-size: 1.2rem; font-weight: 700; color: var(--c-cyan); }
.hc-lbl { font-size: .72rem; font-weight: 500; color: var(--text-dim); letter-spacing: .04em; text-transform: uppercase; }
.hc-div { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

.hero-scroll { margin-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.hs-label { font-size: .72rem; letter-spacing: .12em; color: var(--text-dim); text-transform: uppercase; }
.hs-track { width: 2px; height: 40px; background: var(--border); border-radius: 2px; overflow: hidden; }
.hs-thumb { width: 100%; height: 40%; background: var(--c-cyan); border-radius: 2px;
  animation: scrollThumb 2s ease-in-out infinite; }
@keyframes scrollThumb { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ---- Orbit Widget --------------------------------------- */
.hero-right { display: flex; align-items: center; justify-content: center; }
.orbit-wrap {
  position: relative; width: min(540px, 92vw); aspect-ratio: 1;
  transform-style: preserve-3d; transition: transform .1s ease-out;
}
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 110px; height: 110px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.orbit-core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,.25); animation: spin 12s linear infinite;
}
.orbit-core-ring.r2 { inset: 8px; border-color: rgba(123,92,246,.25); animation-direction: reverse; animation-duration: 8s; }
.orbit-core-inner {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 800;
  color: #fff; letter-spacing: .05em; z-index: 1;
  box-shadow: 0 0 40px rgba(0,212,255,.4), 0 0 80px rgba(123,92,246,.25);
}
.orbit {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid var(--border);
  transform: translate(-50%,-50%);
}
.orbit-a { width: 160px; height: 160px; animation: spin 14s linear infinite; }
.orbit-b { width: 230px; height: 230px; animation: spin 20s linear infinite reverse; }
.orbit-c { width: 310px; height: 310px; animation: spin 28s linear infinite; }
.orbit-d { width: 390px; height: 390px; animation: spin 36s linear infinite reverse; }
.orbit-e { width: 460px; height: 460px; animation: spin 44s linear infinite; }
.orbit-f { width: 530px; height: 530px; animation: spin 52s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.orbit-pill {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%) translateY(-50%);
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 99px; padding: .32rem .9rem;
  display: flex; align-items: center; gap: .45rem;
  font-size: .75rem; font-weight: 600; color: var(--text); white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.op-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.op-dot.cyan   { background: var(--c-cyan);   box-shadow: 0 0 8px var(--c-cyan); }
.op-dot.purple { background: var(--c-purple); box-shadow: 0 0 8px var(--c-purple); }
.op-dot.orange { background: var(--c-orange); box-shadow: 0 0 8px var(--c-orange); }
.op-dot.green  { background: var(--c-green);  box-shadow: 0 0 8px var(--c-green); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  overflow: hidden; padding: 1.4rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ticker.ticker-dark { background: var(--bg2); }
.ticker-inner { display: flex; align-items: center; }
.ticker-group {
  display: flex; align-items: center;
  animation: tickLeft 30s linear infinite; flex-shrink: 0;
}
.ticker-group.ticker-reverse { animation: tickRight 30s linear infinite; }
.ticker-item {
  display: flex; align-items: center; gap: .7rem; padding: 0 2.5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
.t-sep { color: var(--c-cyan); font-size: 1.1rem; opacity: .5; }
@keyframes tickLeft  { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes tickRight { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-cyan); padding: .35rem 1rem;
  border: 1px solid rgba(0,212,255,.25); border-radius: 99px;
  background: rgba(0,212,255,.06);
}
.chip-purple {
  color: var(--c-purple);
  border-color: rgba(123,92,246,.25);
  background: rgba(123,92,246,.06);
}
.section-h {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.025em;
}
.sh-stroke {
  -webkit-text-stroke: 2px var(--c-cyan);
  -webkit-text-fill-color: transparent;
}
.sh-gradient {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sh-gradient-purple {
  background: linear-gradient(135deg, var(--c-purple), var(--c-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: clamp(.9rem, 1.3vw, 1rem); color: var(--text-muted); line-height: 1.7; max-width: 52ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 7rem clamp(1.5rem,5vw,4rem);
  position: relative; overflow: hidden;
}
.about::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,246,.08) 0%, transparent 70%);
  pointer-events: none;
}
.about-wrap {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.about-l { display: flex; flex-direction: column; gap: 1.5rem; }
.about-body { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.about-pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.about-pill {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  padding: .38rem .9rem; border-radius: 99px; border: 1px solid var(--border2);
  color: var(--text-muted); transition: color .2s, border-color .2s;
}
.about-pill:hover { color: var(--c-cyan); border-color: rgba(0,212,255,.4); }
.about-r { display: flex; align-items: center; justify-content: center; }
.about-card-stack { position: relative; width: 340px; height: 300px; }
.acs-card { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card-back  { transform: rotate(-4deg) translateY(12px); background: var(--surface2); border: 1px solid var(--border); opacity: .5; }
.card-mid   { transform: rotate(-1.5deg) translateY(6px); background: var(--surface); border: 1px solid var(--border); opacity: .75; }
.card-front {
  transform: none; background: var(--surface); border: 1px solid var(--border2);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem;
}
.acf-header { display: flex; align-items: center; gap: .55rem; }
.acf-dot { width: 12px; height: 12px; border-radius: 50%; }
.acf-dot.green  { background: var(--c-green); box-shadow: 0 0 8px var(--c-green); animation: pulse-green 2.2s infinite; }
.acf-dot.yellow { background: #ffe066; }
.acf-dot.red    { background: #ff6b6b; }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 8px var(--c-green);}50%{box-shadow:0 0 18px var(--c-green);} }
.acf-title { font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 700; color: var(--text-dim); letter-spacing: .06em; }
.acf-body { display: flex; flex-direction: column; gap: .55rem; }
.acf-line { display: flex; align-items: center; gap: .7rem; }
.acf-key { font-family: monospace; font-size: .78rem; color: var(--text-dim); width: 90px; flex-shrink: 0; }
.acf-val { font-family: monospace; font-size: .78rem; color: var(--text); }
.green-val { color: var(--c-green); }
.cyan-val  { color: var(--c-cyan); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 7rem clamp(1.5rem,5vw,4rem); background: var(--bg2); }
.services-header {
  max-width: var(--max-w); margin: 0 auto 4rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.srv-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem;
  align-items: stretch;
}
.srv-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  height: 100%;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  cursor: none;
}
.srv-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, var(--srv-accent, rgba(0,212,255,.06)), transparent 60%);
}
.srv-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px -15px var(--srv-shadow, rgba(0,212,255,.2)); }
.srv-card[data-color="cyan"]   { --srv-accent: rgba(0,212,255,.07); --srv-shadow: rgba(0,212,255,.25); }
.srv-card[data-color="cyan"]:hover   { border-color: rgba(0,212,255,.35); }
.srv-card[data-color="purple"] { --srv-accent: rgba(123,92,246,.07); --srv-shadow: rgba(123,92,246,.25); }
.srv-card[data-color="purple"]:hover { border-color: rgba(123,92,246,.35); }
.srv-card[data-color="orange"] { --srv-accent: rgba(255,114,64,.07); --srv-shadow: rgba(255,114,64,.25); }
.srv-card[data-color="orange"]:hover { border-color: rgba(255,114,64,.35); }
.srv-card[data-color="green"]  { --srv-accent: rgba(45,255,179,.07); --srv-shadow: rgba(45,255,179,.25); }
.srv-card[data-color="green"]:hover  { border-color: rgba(45,255,179,.35); }
.srv-number { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--text-dim); text-transform: uppercase; }
.srv-icon-wrap { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); }
.srv-card[data-color="cyan"]   .srv-icon-wrap { color: var(--c-cyan); }
.srv-card[data-color="purple"] .srv-icon-wrap { color: var(--c-purple); }
.srv-card[data-color="orange"] .srv-icon-wrap { color: var(--c-orange); }
.srv-card[data-color="green"]  .srv-icon-wrap { color: var(--c-green); }
.srv-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.srv-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.srv-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.srv-tag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; padding: .22rem .7rem; border-radius: 99px; border: 1px solid var(--border); color: var(--text-dim); }
.srv-arrow { position: absolute; top: 1.75rem; right: 1.75rem; color: var(--text-dim); opacity: 0; transform: translate(-4px,4px); transition: opacity .3s, transform .3s; }
.srv-card:hover .srv-arrow { opacity: 1; transform: translate(0,0); }

/* ============================================================
   PRODUCTS (MGDAX)
   ============================================================ */
.products { padding: 7rem clamp(1.5rem,5vw,4rem); position: relative; overflow: hidden; }
.products-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,212,255,.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(123,92,246,.04) 0%, transparent 60%);
}
.products-wrap { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.products-header { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 3.5rem; }
.prod-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.prod-card {
  border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border);
  padding: 2.5rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.5rem;
  transition: transform .3s, box-shadow .3s;
}
.prod-card:hover { transform: translateY(-6px); }
.prod-glow { position: absolute; border-radius: 50%; pointer-events: none; opacity: .6; filter: blur(80px); }
.workforce-glow { top: -80px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(0,212,255,.2), transparent 70%); }
.extractia-glow { top: -80px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(123,92,246,.25), transparent 70%); }
.prod-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.prod-badge { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .85rem; border-radius: 99px; }
.badge-workforce { background: rgba(0,212,255,.12); color: var(--c-cyan); border: 1px solid rgba(0,212,255,.25); }
.badge-extractia { background: rgba(123,92,246,.12); color: var(--c-purple); border: 1px solid rgba(123,92,246,.25); }
.prod-ext { font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--text-dim); border: 1px solid var(--border); padding: .25rem .65rem; border-radius: 6px; }
.prod-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 800; letter-spacing: -.02em; }
.prod-card > p { font-size: .92rem; color: var(--text-muted); line-height: 1.7; }
.prod-feat { display: flex; flex-direction: column; gap: .6rem; }
.pf-item { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--text-muted); }
.pfi-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.workforce-card .pfi-dot { background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }
.extractia-card .pfi-dot { background: var(--c-purple); box-shadow: 0 0 8px var(--c-purple); }
.prod-btn { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; padding: .75rem 1.5rem; border-radius: 10px; margin-top: auto; transition: box-shadow .3s, transform .2s; width: fit-content; }
.btn-workforce { background: linear-gradient(135deg, var(--c-cyan), #0096c7); color: var(--bg); }
.btn-workforce:hover { box-shadow: 0 0 25px rgba(0,212,255,.5); transform: translateY(-2px); }
.btn-extractia { background: linear-gradient(135deg, var(--c-purple), #5e3cc0); color: #fff; }
.btn-extractia:hover { box-shadow: 0 0 25px rgba(123,92,246,.5); transform: translateY(-2px); }

/* ============================================================
   ERP (BODELL)
   ============================================================ */
.erp { padding: 7rem clamp(1.5rem,5vw,4rem); background: var(--bg2); position: relative; overflow: hidden; }
.erp-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-size: 180px;
}
.erp-wrap { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.erp-l { display: flex; flex-direction: column; gap: 1.5rem; }
.erp-body { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }
.erp-modules { display: flex; flex-direction: column; gap: .7rem; margin-top: .5rem; }
.em-item { display: flex; align-items: center; gap: .9rem; font-size: .88rem; color: var(--text-muted); padding: .75rem 1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, color .2s; }
.em-item:hover { border-color: rgba(0,212,255,.3); color: var(--text); }
.em-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); flex-shrink: 0; }
.erp-r { display: flex; flex-direction: column; gap: 1.5rem; }
.erp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.es-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem; transition: border-color .3s; }
.es-item:hover { border-color: rgba(0,212,255,.3); }
.es-num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--c-cyan), var(--c-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.es-lbl { font-size: .78rem; font-weight: 500; color: var(--text-dim); }
.erp-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.erp-pill { font-size: .75rem; font-weight: 600; padding: .35rem .85rem; border-radius: 99px; border: 1px solid var(--border2); color: var(--text-muted); transition: color .2s, border-color .2s; }
.erp-pill:hover { color: var(--c-orange); border-color: rgba(255,114,64,.4); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { padding: 7rem clamp(1.5rem,5vw,4rem); }
.portfolio-header { max-width: var(--max-w); margin: 0 auto 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.pf-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pf-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--border); cursor: none; transition: transform .4s cubic-bezier(.25,.46,.45,.94), box-shadow .4s; transform-style: preserve-3d; }
.pf-card.pf-large { grid-column: span 2; aspect-ratio: 16/9; }
.pf-card:hover { box-shadow: 0 25px 80px -15px rgba(0,0,0,.7); }
.pf-img-wrap { position: absolute; inset: 0; }
.pf-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; }
.pf-card:hover .pf-img-wrap img { transform: scale(1.06); filter: brightness(.7); }
/* Always-on gradient over image bottom third */
.pf-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,4,15,.93) 0%, rgba(4,4,15,.5) 42%, rgba(4,4,15,.1) 70%, transparent 100%); opacity: 1; transition: opacity .4s; }
.pf-card:hover .pf-overlay { opacity: 1; }
.pf-tags-inner { position: absolute; top: 1rem; right: 1rem; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; z-index: 3; }
.pf-tags-inner span { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: var(--text-muted); padding: .25rem .65rem; border-radius: 6px; }
/* Info bar always visible */
.pf-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.4rem 1.5rem; opacity: 1; transform: none; transition: none; z-index: 3; }
.pf-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: .35rem; display: block; }
.pf-info h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; }
.pf-info p { font-size: .82rem; color: var(--text-dim); line-height: 1.6; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s ease, opacity .35s ease; }
.pf-card:hover .pf-info p { max-height: 80px; opacity: 1; }
.pf-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 0 0 1px rgba(0,212,255,.25), 0 28px 70px -12px rgba(0,0,0,.75), 0 0 50px -15px rgba(0,212,255,.15); }
.pf-card:hover .pf-img-wrap img { transform: scale(1.08); filter: brightness(.65); }
.pf-number { position: absolute; bottom: 1rem; right: 1rem; font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 700; color: var(--text-dim); letter-spacing: .06em; z-index: 3; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { padding: 7rem clamp(1.5rem,5vw,4rem); background: var(--bg2); overflow: hidden; }
.clients-header { max-width: var(--max-w); margin: 0 auto 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; }
.marquee-row { display: flex; align-items: center; animation: tickLeft 35s linear infinite; flex-shrink: 0; }
.marquee-rev .marquee-row { animation: tickRight 35s linear infinite; }
.cl-logo { flex-shrink: 0; padding: .6rem 1.4rem; display: flex; align-items: center; justify-content: center; min-width: 100px; }
.cl-logo img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.45); transition: filter .3s; }
.cl-logo:hover img { filter: grayscale(0) opacity(1); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 8rem clamp(1.5rem,5vw,4rem); position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; pointer-events: none; }
.cb-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.cb-g1 { width: 500px; height: 500px; top: -100px; left: -150px; background: radial-gradient(circle, rgba(123,92,246,.12), transparent 70%); }
.cb-g2 { width: 500px; height: 500px; bottom: -100px; right: -150px; background: radial-gradient(circle, rgba(0,212,255,.1), transparent 70%); }
.contact-wrap { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: flex-start; }
.contact-l { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; }
.contact-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-top: .5rem; }
.ci-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.ci-item:hover { border-color: rgba(123,92,246,.35); }
.ci-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--c-purple-dim); color: var(--c-purple); }
.ci-icon.ci-wa { background: var(--c-green-dim); color: var(--c-green); }
.ci-lbl { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: .2rem; }
.ci-val { font-size: .88rem; color: var(--text); transition: color .2s; }
a.ci-val:hover { color: var(--c-cyan); }
.cf-glass { background: rgba(12,12,32,.7); backdrop-filter: blur(20px); border: 1px solid var(--border2); border-radius: var(--radius-xl); padding: 2.25rem; }
.cf-glass form { display: flex; flex-direction: column; gap: 1.1rem; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: .5rem; }
.cf-field label { font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--text-dim); text-transform: uppercase; }
.cf-field input,
.cf-field textarea,
.cf-field select { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; color: var(--text); outline: none; transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus { border-color: rgba(123,92,246,.5); box-shadow: 0 0 0 3px rgba(123,92,246,.12); }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: var(--text-dim); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select { cursor: none; color: var(--text); }
.cf-field select option { background: var(--surface2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 0 clamp(1.5rem,5vw,4rem); }
.footer-top { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 4rem; padding: 4rem 0 3rem; border-bottom: 1px solid var(--border); }
.ft-brand { display: flex; flex-direction: column; gap: 1rem; min-width: 180px; }
.ft-logo { height: 36px; width: auto; }
.ft-brand p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.ft-social { display: flex; gap: .75rem; }
.ft-social a { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: color .25s, border-color .25s; }
.ft-social a:hover { color: var(--c-cyan); border-color: rgba(0,212,255,.35); }
.ft-links { display: flex; gap: 4rem; flex: 1; }
.ft-col { display: flex; flex-direction: column; gap: .6rem; }
.ft-col h5 { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: .25rem; }
.ft-col a { font-size: .84rem; color: var(--text-muted); transition: color .2s; }
.ft-col a:hover { color: var(--c-cyan); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; gap: 1rem; flex-wrap: wrap; }
.footer-bottom span { font-size: .78rem; color: var(--text-dim); }
.fb-right strong { color: var(--text-muted); font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .15s; }
.reveal-d2 { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .hero-left { align-items: flex-start; }
  .about-wrap { grid-template-columns: 1fr; }
  .about-r { display: none; }
  .erp-wrap { grid-template-columns: 1fr; }
  .prod-cards { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pf-card.pf-large { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nlinks, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hc-div { display: none; }
  .hc-item { padding: .75rem; border-top: 1px solid var(--border); width: 50%; }
  .hero-counters { padding: .5rem; background: transparent; border: none; flex-wrap: wrap; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card.pf-large { grid-column: span 1; aspect-ratio: 4/3; }
  .ft-links { flex-wrap: wrap; gap: 2.5rem; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .erp-stats-grid { grid-template-columns: 1fr 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-wrap { gap: 2.5rem; }
}

@media (max-width: 480px) {
  .srv-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-glow, .btn-ghost { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .erp-stats-grid { grid-template-columns: 1fr; }
}

.nlinks a.nav-active {
  color: var(--c-cyan);
  background: rgba(0,212,255,.07);
}

/* ============================================================
   HERO — ENHANCED
   ============================================================ */
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,212,255,.07) 0%, transparent 65%),
              radial-gradient(ellipse 60% 50% at 20% 70%, rgba(123,92,246,.05) 0%, transparent 60%);
}
.hero-title-dot { color: var(--c-cyan); }
.hero-slogan {
  font-style: italic;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  color: var(--c-cyan);
  opacity: 0.72;
  margin: -0.4rem 0 1.4rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0,212,255,0.35);
  letter-spacing: 0.01em;
  font-family: var(--ff-body);
}
.hero-trust-bar {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  padding: .75rem 1.25rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  width: fit-content;
}
.htb-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 500; color: var(--text-muted);
  padding: 0 .9rem;
}
.htb-item svg { color: var(--c-green); flex-shrink: 0; }
.htb-sep { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.eyebrow-sep { color: var(--border2); margin: 0 .2rem; }
.eyebrow-live { color: var(--c-green); font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.hc-top { display: flex; align-items: baseline; gap: .1rem; }

/* ============================================================
   WHY MEGADATA
   ============================================================ */
.why {
  padding: 7rem clamp(1.5rem,5vw,4rem);
  background: var(--bg);
  position: relative; overflow: hidden;
}
.why::before {
  content: ''; position: absolute; bottom: -300px; left: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.05) 0%, transparent 70%);
  pointer-events: none;
}
.why-wrap { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.why-header { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,255,.3);
  box-shadow: 0 20px 60px -20px rgba(0,212,255,.15);
}
.why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-cyan-dim); color: var(--c-cyan);
  border: 1px solid rgba(0,212,255,.2);
  transition: box-shadow .3s;
}
.why-card:hover .why-icon { box-shadow: 0 0 30px rgba(0,212,255,.3); }
.why-icon-purple {
  background: var(--c-purple-dim); color: var(--c-purple); border-color: rgba(123,92,246,.2);
}
.why-icon-orange { background: var(--c-orange-dim); color: var(--c-orange); border-color: rgba(255,114,64,.2); }
.why-icon-green  { background: var(--c-green-dim);  color: var(--c-green);  border-color: rgba(45,255,179,.2); }
.why-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text);
}
.why-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: 7rem clamp(1.5rem,5vw,4rem);
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.process::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
}
.process-wrap { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.process-header { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.ps-step {
  display: grid; grid-template-columns: 56px 40px 1fr; gap: 0 1.5rem;
  align-items: flex-start;
}
.ps-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; padding-top: .1rem;
  flex-shrink: 0;
}
.ps-connector {
  width: 2px; background: linear-gradient(to bottom, rgba(0,212,255,.4), rgba(123,92,246,.1));
  margin: 0 auto; align-self: stretch;
  margin-top: .6rem;
}
.ps-connector-last { background: linear-gradient(to bottom, rgba(0,212,255,.3), transparent); }
.ps-content {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: .75rem;
  margin-bottom: 1.25rem;
  transition: border-color .3s, transform .3s;
}
.ps-content:hover { border-color: rgba(0,212,255,.35); transform: translateX(6px); }
.ps-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 700;
}
.ps-content p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }
.ps-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-cyan); background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2); border-radius: 99px;
  padding: .25rem .8rem; width: fit-content;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 7rem clamp(1.5rem,5vw,4rem);
  background: var(--bg);
  position: relative; overflow: hidden;
}
.testimonials::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,.3), rgba(123,92,246,.3), transparent);
}
.testi-wrap { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.testi-header { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.testi-card::before {
  content: '"';
  position: absolute; top: -10px; right: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: rgba(0,212,255,.05); pointer-events: none;
}
.testi-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,.25);
  box-shadow: 0 24px 60px -20px rgba(0,212,255,.12);
}
.testi-stars {
  font-size: .95rem; color: #ffd700; letter-spacing: .05em;
}
.testi-card blockquote {
  font-size: .92rem; color: var(--text-muted); line-height: 1.75;
  font-style: italic; flex: 1;
  border-left: 2px solid rgba(0,212,255,.3); padding-left: 1rem;
}
.testi-author {
  display: flex; align-items: center; gap: .9rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.ta-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em;
}
.ta-av-1 { background: linear-gradient(135deg, var(--c-cyan), var(--c-purple)); color: #fff; }
.ta-av-2 { background: linear-gradient(135deg, var(--c-purple), #e91e8c); color: #fff; }
.ta-av-3 { background: linear-gradient(135deg, var(--c-orange), #ffcc00); color: var(--bg); }
.ta-av-4 { background: linear-gradient(135deg, var(--c-green), var(--c-cyan)); color: var(--bg); }
.ta-av-5 { background: linear-gradient(135deg, #e91e8c, var(--c-purple)); color: #fff; }
.ta-av-6 { background: linear-gradient(135deg, var(--c-cyan), var(--c-green)); color: var(--bg); }
.ta-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.ta-role { font-size: .75rem; color: var(--text-dim); margin-top: .1rem; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 800;
  display: flex; align-items: center; gap: .65rem;
  background: #25d366; color: #fff;
  padding: .8rem 1.4rem .8rem .9rem;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(37,211,102,.4), 0 2px 8px rgba(0,0,0,.3);
  font-size: .85rem; font-weight: 700; letter-spacing: .02em;
  transition: transform .3s, box-shadow .3s;
  cursor: none;
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 48px rgba(37,211,102,.55), 0 4px 12px rgba(0,0,0,.3);
}
.wa-pulse {
  position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(37,211,102,.6);
  animation: waPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.wa-label { line-height: 1; }

/* ============================================================
   ABOUT PILLS — fix (was using wrong class name)
   ============================================================ */
.about-pills span {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  padding: .38rem .9rem; border-radius: 99px; border: 1px solid var(--border2);
  color: var(--text-muted); transition: color .2s, border-color .2s;
}
.about-pills span:hover { color: var(--c-cyan); border-color: rgba(0,212,255,.4); }

/* ============================================================
   RESPONSIVE — NEW SECTIONS
   ============================================================ */
@media (max-width: 1100px) {
  .why-grid      { grid-template-columns: 1fr 1fr; }
  .testi-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .why-grid      { grid-template-columns: 1fr; }
  .testi-grid    { grid-template-columns: 1fr; }
  .hero-trust-bar { display: none; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: .85rem; border-radius: 50%; }
  .ps-step { grid-template-columns: 42px 24px 1fr; gap: 0 1rem; }
  .ps-num { font-size: 1.6rem; }
}

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

/* ================================================
   2026 ULTRA — Scroll-driven FX
================================================ */

/* ── Touch / mobile: restore native cursor ── */
@media (pointer: coarse) {
  body { cursor: auto !important; }
  #cursor-dot, #cursor-ring, #cursor-glow { display: none !important; }
}

/* ── Large cursor glow blob ── */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 3;
  width: 650px; height: 650px;
  border-radius: 50%;
  top: 0; left: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(0, 212, 255, 0.065) 0%,
    rgba(123, 92, 246, 0.04) 38%,
    transparent 68%);
  will-change: transform;
  mix-blend-mode: screen;
  transition: background 0.6s ease;
}

/* ── Scroll progress bar (top of nav) ── */
#scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 10;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-purple), var(--c-orange));
  box-shadow: 0 0 10px var(--c-cyan);
  pointer-events: none;
}

/* ── Cursor glow comet trail ── */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9995;
  border-radius: 50%;
  background: var(--c-cyan);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ── Word-split headline animation ── */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em; /* prevent descender clipping */
}
.word-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.word-inner.reveal-word {
  transform: translateY(0);
}

/* ── Lateral slide reveals ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ── 3D card entrance — override .why-card.reveal ── */
.why-card.reveal {
  opacity: 0;
  transform: perspective(700px) rotateX(22deg) translateY(40px);
  transform-origin: top center;
  transition: opacity 0.7s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card.reveal.revealed {
  opacity: 1;
  transform: perspective(700px) rotateX(0deg) translateY(0);
}

/* ── 3D entrance — testi-cards ── */
.testi-card.reveal {
  opacity: 0;
  transform: perspective(700px) rotateX(18deg) translateY(50px);
  transform-origin: top center;
  transition: opacity 0.7s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.testi-card.reveal.revealed {
  opacity: 1;
  transform: perspective(700px) rotateX(0deg) translateY(0);
}

/* ── Portfolio reveal: opacity+scale handled in PORTFOLIO block above ── */

/* ================================================
   SERVICES — Full-Screen Page-Turn Scroller
   Each card = 1 complete viewport
================================================ */
.srv-pin {
  position: relative;
  /* height set by JS: numCards × 100vh */
}
.srv-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: var(--bg);
  /* No CSS perspective — curl is drawn on canvas */
}
.srv-pin-head { display: none; }  /* heading lives inside each card */
.srv-scroll-hint { display: none; }
.srv-overflow {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.srv-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── FULL-SCREEN CARD (stacked flat, canvas curl on top) ── */
.srv-track .srv-card {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 52% 48%;
  align-items: center;
  padding: 3.5rem clamp(2.5rem, 8vw, 8rem);
  gap: 2rem;
  overflow: hidden;
  will-change: opacity;
  /* per-card accent background */
  background:
    radial-gradient(ellipse 70% 90% at 85% 50%, rgba(var(--accent-rgb,0,212,255), 0.09), transparent 65%),
    var(--bg);
}

/* Accent colors */
.srv-track .srv-card[data-color="cyan"]   { --accent-color: var(--c-cyan);   --accent-rgb: 0,212,255;   }
.srv-track .srv-card[data-color="purple"] { --accent-color: var(--c-purple); --accent-rgb: 123,92,246;  }
.srv-track .srv-card[data-color="orange"] { --accent-color: var(--c-orange); --accent-rgb: 255,114,64;  }
.srv-track .srv-card[data-color="green"]  { --accent-color: var(--c-green);  --accent-rgb: 45,255,179;  }

/* subtle vignette on every card */
.srv-track .srv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.45));
  pointer-events: none;
  z-index: 1;
}

/* ── LEFT CONTENT PANEL ── */
.srv-card-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.srv-card-left .srv-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-color, var(--c-cyan));
  font-family: var(--ff-head);
}
.srv-card-left h3 {
  font-size: clamp(2.4rem, 4.8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}
.srv-ch { color: var(--accent-color, var(--c-cyan)); }
.srv-card-left p {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 500px;
}
.srv-card-left .srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.srv-card-left .srv-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb, 0,212,255), 0.35);
  color: var(--accent-color, var(--c-cyan));
  background: rgba(var(--accent-rgb, 0,212,255), 0.06);
  text-transform: uppercase;
}
.srv-card-left .srv-arrow {
  margin-top: 0.5rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb, 0,212,255), 0.4);
  color: var(--accent-color, var(--c-cyan));
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.srv-card-left .srv-arrow:hover {
  background: rgba(var(--accent-rgb, 0,212,255), 0.12);
  transform: scale(1.1);
}
.srv-card-left .srv-arrow svg { width: 18px; height: 18px; }

/* ── RIGHT DECORATION PANEL ── */
.srv-card-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  height: 100%;
}
.srv-icon-ring {
  width: clamp(180px, 24vw, 300px);
  height: clamp(180px, 24vw, 300px);
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb, 0,212,255), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 70px rgba(var(--accent-rgb, 0,212,255), 0.12),
              inset 0 0 40px rgba(var(--accent-rgb, 0,212,255), 0.04);
  animation: ringGlow 4s ease-in-out infinite;
}
@keyframes ringGlow {
  0%,100% { box-shadow: 0 0 40px rgba(var(--accent-rgb,0,212,255),.1),  inset 0 0 20px rgba(var(--accent-rgb,0,212,255),.03); }
  50%      { box-shadow: 0 0 100px rgba(var(--accent-rgb,0,212,255),.25), inset 0 0 50px rgba(var(--accent-rgb,0,212,255),.08); }
}
.srv-icon-ring::before {
  content: '';
  position: absolute;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb, 0,212,255), 0.07);
}
.srv-icon-ring .srv-icon-wrap {
  width: clamp(80px, 11vw, 130px);
  height: clamp(80px, 11vw, 130px);
  border-radius: 50%;
  border: none;
  background: rgba(var(--accent-rgb, 0,212,255), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color, var(--c-cyan));
  transition: background 0.3s;
}
.srv-icon-ring .srv-icon-wrap svg {
  width: 44%; height: 44%;
  stroke-width: 1.2;
}
/* Ghost watermark number */
.srv-num-watermark {
  position: absolute;
  bottom: 8%;
  right: clamp(2rem, 4vw, 5rem);
  font-size: clamp(110px, 19vw, 210px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--accent-rgb, 0,212,255), 0.07);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-family: var(--ff-head);
  letter-spacing: -0.05em;
  z-index: 1;
}

/* ── PAGE COUNTER ── */
.srv-page-counter {
  position: absolute;
  bottom: 2rem;
  right: clamp(2rem, 5vw, 5rem);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--ff-head);
  z-index: 10;
  opacity: 0.55;
  pointer-events: none;
}

/* ── DOTS (absolute, bottom-centre) ── */
.srv-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
  pointer-events: none;
}
.srv-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.srv-dot.active {
  background: var(--c-cyan);
  transform: scale(1.5);
  box-shadow: 0 0 8px var(--c-cyan);
}

/* ============================================================
   MGDAX PRODUCT SCREENSHOT MOCKUP
   ============================================================ */
.prod-mockup {
  margin-top: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.55);
  transform: perspective(700px) rotateY(-5deg) rotateX(2deg) scale(0.97);
  transform-origin: center bottom;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94), box-shadow .55s;
  box-shadow: -10px 20px 50px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.04);
  flex-shrink: 0;
}
.prod-card:hover .prod-mockup {
  transform: perspective(700px) rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 0 0 1px rgba(0,212,255,.18), 0 24px 60px rgba(0,0,0,.4), 0 0 40px rgba(0,212,255,.06);
}
.pmb-bar {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.06);
  padding: .4rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pmb-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pmb-dot.d1 { background: #ff5f57; }
.pmb-dot.d2 { background: #febc2e; }
.pmb-dot.d3 { background: #28c840; }
.pmb-url {
  font-size: .63rem; color: rgba(255,255,255,.3); letter-spacing: .04em;
  flex: 1; text-align: center; font-family: var(--ff-head);
}
.pmb-screen { display: block; position: relative; min-height: 140px; overflow: hidden; }
.pmb-screen img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16/9; object-fit: cover;
  background: var(--surface);
}
/* placeholder when image hasn't loaded */
.pmb-screen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,.04) 0%, rgba(123,92,246,.04) 100%);
  pointer-events: none;
}

/* ============================================================
   BODELL ERP FLOATING SCREEN
   ============================================================ */
.erp-screen-float {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.6);
  transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(0.98);
  transform-origin: right center;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
  box-shadow: -16px 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  margin-bottom: 2rem;
}
.erp-screen-float:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(0deg) scale(1);
}
.esf-chrome {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05);
  padding: .5rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.esf-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.esf-title { font-size: .63rem; color: rgba(255,255,255,.3); letter-spacing: .05em; margin-left: .5rem; font-family: var(--ff-head); }
.erp-screen-float img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; opacity: .7; background: var(--surface); }

/* ============================================================
   3D TILT — why-cards & prod-cards
   ============================================================ */
.why-card, .prod-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* transition is handled inline by JS */

/* ============================================================
   SECTION DEPTH ENHANCEMENTS
   ============================================================ */

/* Giant ghost watermark behind section headings */
.section-ghost {
  position: absolute;
  font-family: var(--ff-head);
  font-size: clamp(80px, 16vw, 180px);
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
  top: -0.25em; left: -0.04em;
}

/* Enhanced portfolio section */
.portfolio { position: relative; overflow: hidden; }
.portfolio::before {
  content: '';
  position: absolute;
  top: 0; left: -20%; width: 60%; height: 100%;
  background: radial-gradient(ellipse at 30% 40%, rgba(0,212,255,.04) 0%, transparent 65%);
  pointer-events: none;
}
.portfolio::after {
  content: '';
  position: absolute;
  top: 10%; right: -10%; width: 50%; height: 80%;
  background: radial-gradient(ellipse at 70% 60%, rgba(255,114,64,.03) 0%, transparent 65%);
  pointer-events: none;
}

/* portfolio header needs relative positioning for ghost text */
.portfolio-header { position: relative; }

/* per-card subtle accent border based on nth-child */
.pf-grid .pf-card:nth-child(1) { --pf-accent: 0,212,255; }
.pf-grid .pf-card:nth-child(2) { --pf-accent: 123,92,246; }
.pf-grid .pf-card:nth-child(3) { --pf-accent: 255,114,64; }
.pf-grid .pf-card:nth-child(4) { --pf-accent: 45,255,179; }
.pf-grid .pf-card:nth-child(5) { --pf-accent: 0,212,255; }
.pf-grid .pf-card:nth-child(6) { --pf-accent: 123,92,246; }
.pf-grid .pf-card:hover {
  box-shadow: 0 0 0 1px rgba(var(--pf-accent,0,212,255),.28),
              0 28px 70px -12px rgba(0,0,0,.75),
              0 0 50px -8px rgba(var(--pf-accent,0,212,255),.12);
}

/* Diagonal top edge on portfolio section */
.portfolio {
  clip-path: polygon(0 2.5rem, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(7rem + 2.5rem);
}
@media (max-width: 768px) { .portfolio { clip-path: none; padding-top: 5rem; } }

/* ── MOBILE: native swipe ── */
@media (max-width: 768px) {
  .srv-pin { height: auto !important; }
  .srv-sticky {
    position: static;
    height: auto;
    padding: 0;
    perspective: none;
  }
  .srv-overflow {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .srv-track {
    transform: none !important;
    height: auto;
  }
  .srv-track .srv-card {
    opacity: 1 !important;
    transform: none !important;
    scroll-snap-align: start;
    min-height: 92svh;
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem 4rem;
  }
  .srv-card-right { display: none; }
  .srv-num-watermark { font-size: clamp(80px,30vw,120px); bottom: 2rem; right: 1rem; }
  .srv-page-counter { bottom: 1rem; right: 1.5rem; }
  .srv-dots { display: none; }
  .srv-pin-head { display: none; }
}

/* ================================================================
   2026 ULTRA-II — Cinematic Section Entries & Living Atmosphere
================================================================ */

/* ── Why + About need position:relative for ::before pseudo ++ */
.why  { position: relative; }
.about { position: relative; }

/* ── Enhanced .reveal — deeper 3D entrance ── */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.96) rotateX(-6deg);
  transform-origin: center bottom;
  transition: opacity .85s cubic-bezier(0.16,1,0.3,1),
              transform .85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed    { opacity: 1; transform: none; }
.reveal.reveal-d1   { transition-delay: .12s; }
.reveal.reveal-d2   { transition-delay: .24s; }

/* ── Directional reveals ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-70px) rotateY(6deg);
  transition: opacity .8s cubic-bezier(0.16,1,0.3,1),
              transform .85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(70px) rotateY(-6deg);
  transition: opacity .8s cubic-bezier(0.16,1,0.3,1),
              transform .85s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.revealed,
.reveal-right.revealed { opacity: 1; transform: none; }

/* ── Section atmosphere glows — fade in on entry ── */
.why::before,
.products::before { opacity: 0; transition: opacity 1.8s ease; }
.why.section-entered::before,
.products.section-entered::before { opacity: 1; }

.why::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 100% 50%, rgba(123,92,246,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at   0% 50%, rgba(0,212,255,.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.products::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 90% 30%, rgba(0,212,255,.065) 0%, transparent 65%),
    radial-gradient(ellipse 55% 65% at 10% 70%, rgba(123,92,246,.065) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

/* ── Why cards color-coded no-overflow accent tops ── */
.why-card { border-top-width: 2px; border-top-style: solid; }
.why-card:nth-child(1) { border-top-color: rgba(0,212,255,.55); }
.why-card:nth-child(2) { border-top-color: rgba(123,92,246,.55); }
.why-card:nth-child(3) { border-top-color: rgba(255,114,64,.55); }
.why-card:nth-child(4) { border-top-color: rgba(45,255,179,.55); }
.why-card:nth-child(5) { border-top-color: rgba(123,92,246,.55); }
.why-card:nth-child(6) { border-top-color: rgba(0,212,255,.55); }

/* ── Dot-grid texture for why + about sections ── */
.why,
.about {
  background-image: radial-gradient(circle, rgba(255,255,255,.023) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Section heading animated underline that draws itself in ── */
.section-h::after {
  content: '';
  display: block;
  width: 0px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-purple) 50%, var(--c-orange));
  margin-top: .7rem;
  transition: width 1.1s cubic-bezier(0.16,1,0.3,1) .45s;
}
.section-entered .section-h::after { width: 80px; }
.section-entered .section-h        { text-shadow: 0 0 70px rgba(0,212,255,.16); }

/* ── Process section connector glow dots ── */
.ps-num {
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-entered .ps-step:nth-child(1) { animation: stepSlideIn .7s  cubic-bezier(0.16,1,0.3,1) .0s  both; }
.section-entered .ps-step:nth-child(2) { animation: stepSlideIn .7s  cubic-bezier(0.16,1,0.3,1) .09s both; }
.section-entered .ps-step:nth-child(3) { animation: stepSlideIn .7s  cubic-bezier(0.16,1,0.3,1) .18s both; }
.section-entered .ps-step:nth-child(4) { animation: stepSlideIn .7s  cubic-bezier(0.16,1,0.3,1) .27s both; }
.section-entered .ps-step:nth-child(5) { animation: stepSlideIn .7s  cubic-bezier(0.16,1,0.3,1) .36s both; }
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Portfolio card entry: staggered curtain wipe ── */
.pf-card.reveal {
  opacity: 0;
  transform: scale(0.93) translateY(32px);
  transition: opacity .75s ease, transform .9s cubic-bezier(0.16,1,0.3,1);
  clip-path: none;
}
.pf-card.reveal.revealed {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════
   INFO PODER SECTION
══════════════════════════════════════════════════════════ */
.infopoder {
  padding: 7rem clamp(1.5rem,5vw,4rem);
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.infopoder::before {
  content: ''; position: absolute; top: -250px; right: -180px;
  width: 650px; height: 650px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,246,.07) 0%, transparent 70%);
  pointer-events: none;
}
.infopoder::after {
  content: ''; position: absolute; bottom: -200px; left: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,.05) 0%, transparent 70%);
  pointer-events: none;
}

.ip-wrap {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Left column ── */
.ip-left { display: flex; flex-direction: column; gap: 1.8rem; }

.ip-hooks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .85rem;
}
.ip-hook {
  display: flex; align-items: flex-start; gap: .9rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: .9rem; line-height: 1.6; color: var(--text-muted);
  transition: border-color .3s, background .3s;
}
.ip-hook:hover {
  border-color: rgba(123,92,246,.35);
  background: var(--surface2);
}
.ip-hook strong { color: var(--text); }
.ip-hook-icon {
  color: var(--c-purple); font-size: 1rem;
  flex-shrink: 0; margin-top: .18rem;
}

/* ── Right column ── */
.ip-right {
  display: flex; flex-direction: column; gap: 2.5rem;
  position: sticky; top: calc(var(--nav-h, 70px) + 2rem);
}

/* ── 3D Cube ── */
.ip-cube-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 2rem 0;
}
.cube-scene {
  perspective: 800px;
  width: 220px; height: 220px;
}
.cube-wrap {
  width: 220px; height: 220px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(0deg); /* initial resting angle; JS drives rotation */
  cursor: grab;
}
.cube-wrap:active { cursor: grabbing; }

.cube-face {
  position: absolute;
  width: 220px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(8,8,22,.82);
  backdrop-filter: blur(6px);
  transition: transform 1.15s cubic-bezier(0.34,1.35,0.64,1),
              opacity   .9s ease;
}

/* ── Exploded state (default — before .assembled) ── */
.face-front  { transform: rotateY(  0deg) translateZ(600px); opacity: 0; border: 1px solid rgba(0,212,255,.4); }
.face-back   { transform: rotateY(180deg) translateZ(600px); opacity: 0; border: 1px solid rgba(123,92,246,.4); }
.face-right  { transform: rotateY( 90deg) translateZ(600px); opacity: 0; border: 1px solid rgba(255,114,64,.35); }
.face-left   { transform: rotateY(-90deg) translateZ(600px); opacity: 0; border: 1px solid rgba(45,255,179,.35); }
.face-top    { transform: rotateX( 90deg) translateZ(600px); opacity: 0; border: 1px solid rgba(123,92,246,.35); }
.face-bottom { transform: rotateX(-90deg) translateZ(600px); opacity: 0; border: 1px solid rgba(0,212,255,.2); }

/* ── Assembled state ── */
.cube-wrap.assembled .face-front  { transform: rotateY(  0deg) translateZ(110px); opacity: 1; transition-delay: 0s; }
.cube-wrap.assembled .face-right  { transform: rotateY( 90deg) translateZ(110px); opacity: 1; transition-delay: .08s; }
.cube-wrap.assembled .face-back   { transform: rotateY(180deg) translateZ(110px); opacity: 1; transition-delay: .16s; }
.cube-wrap.assembled .face-left   { transform: rotateY(-90deg) translateZ(110px); opacity: 1; transition-delay: .22s; }
.cube-wrap.assembled .face-top    { transform: rotateX( 90deg) translateZ(110px); opacity: 1; transition-delay: .30s; }
.cube-wrap.assembled .face-bottom { transform: rotateX(-90deg) translateZ(110px); opacity: 1; transition-delay: .36s; }

/* Face content */
.cf-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .3rem; text-align: center; padding: .5rem;
  pointer-events: none;
}
.cf-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-cyan); opacity: .85;
}
.cf-big {
  font-size: 1.45rem; font-weight: 800;
  color: var(--text); line-height: 1.15;
}
.cf-stat {
  font-size: 2.2rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Case study card ── */
.ip-case {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.ip-case-header {
  display: flex; align-items: center; justify-content: space-between;
}
.ip-case-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-green);
  padding: .25rem .7rem;
  background: rgba(45,255,179,.1);
  border: 1px solid rgba(45,255,179,.25);
  border-radius: 20px;
}
.ip-case-icon { font-size: 1.3rem; }
.ip-case-title {
  font-size: 1rem; font-weight: 700; color: var(--text); margin: 0;
}
.ip-case-body {
  font-size: .88rem; line-height: 1.65; color: var(--text-muted); margin: 0;
}
.ip-case-body em { color: var(--c-cyan); font-style: normal; font-weight: 600; }
.ip-case-chain {
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.ip-step {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: .28rem .75rem;
  font-size: .73rem; font-weight: 600; color: var(--text-muted);
}
.ip-arrow { color: var(--c-purple); font-size: .9rem; }
.ip-case-cta {
  font-size: .83rem; font-weight: 700; color: var(--c-purple); margin: 0;
}

@media (max-width: 900px) {
  .ip-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .ip-right { position: static; }
  .cube-scene, .cube-wrap, .cube-face { width: 170px; height: 170px; }
  .face-front  { transform: rotateY(  0deg) translateZ(500px); }
  .face-back   { transform: rotateY(180deg) translateZ(500px); }
  .face-right  { transform: rotateY( 90deg) translateZ(500px); }
  .face-left   { transform: rotateY(-90deg) translateZ(500px); }
  .face-top    { transform: rotateX( 90deg) translateZ(500px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(500px); }
  .cube-wrap.assembled .face-front  { transform: rotateY(  0deg) translateZ(85px); }
  .cube-wrap.assembled .face-back   { transform: rotateY(180deg) translateZ(85px); }
  .cube-wrap.assembled .face-right  { transform: rotateY( 90deg) translateZ(85px); }
  .cube-wrap.assembled .face-left   { transform: rotateY(-90deg) translateZ(85px); }
  .cube-wrap.assembled .face-top    { transform: rotateX( 90deg) translateZ(85px); }
  .cube-wrap.assembled .face-bottom { transform: rotateX(-90deg) translateZ(85px); }
  .cf-stat { font-size: 1.7rem; }
  .cf-big  { font-size: 1.15rem; }
}

/* ── ip-cases carousel ── */
.ip-cases-carousel {
  position: relative;
  /* fixed height so the column doesn't jump between cards */
  min-height: 320px;
}
.ip-case {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(0.16,1,0.3,1);
  transform: translateY(12px);
}
.ip-case.ip-case-active {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
  position: relative; /* take space in flow only when active */
}
.ip-case-num {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  color: var(--text-dim);
}
/* timer bar nav */
.ip-cases-nav {
  display: flex; gap: .55rem; justify-content: flex-end;
  margin-top: 1.25rem;
  position: relative;
  z-index: 2;
}
.ip-timer-track {
  flex: 1; height: 4px;
  background: var(--border);
  border-radius: 3px; overflow: hidden;
  cursor: pointer;
  opacity: .45;
  transition: opacity .2s;
}
.ip-timer-track:hover { opacity: 1; }
.ip-timer-fill {
  height: 100%; width: 0%;
  background: var(--c-cyan);
  border-radius: 3px;
  /* transition applied dynamically by JS */
}
