/* Frontx Global — NEXUS concept */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07090D;
  --bg-2: #0B0F15;
  --bg-3: #10161F;
  --cyan: #00E5FF;
  --cyan-soft: rgba(0, 229, 255, .14);
  --blue: #3D7BFF;
  --text: #F4F7FA;
  --muted: #BAC4D0;
  --muted-2: #9DA8B5;
  --line: rgba(255, 255, 255, .15);
  --line-2: rgba(255, 255, 255, .22);
  --glass: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  --text-2: #D5DCE5;
  --radius: 18px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; position: relative; }
.center { text-align: center; }
.grad {
  background: linear-gradient(92deg, #fff 10%, var(--cyan) 60%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cyan { color: var(--cyan); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); padding: 8px 14px; border: 1px solid rgba(0,229,255,.4);
  border-radius: 100px; background: rgba(0,229,255,.1); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 620px; }

/* Glows & motifs */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); z-index: -1;
  background: radial-gradient(circle, rgba(0,229,255,.22), rgba(0,229,255,0) 65%); }
.glow.blue { background: radial-gradient(circle, rgba(61,123,255,.2), rgba(61,123,255,0) 65%); }
.chev-motif { position: absolute; z-index: -1; pointer-events: none; height: auto; max-width: none; }
.chev-motif .cm-chev { fill: #A6A6A6; opacity: .22; }
.chev-motif .cm-tri { fill: var(--cyan); opacity: .45; }
.chev-motif.c .cm-chev { opacity: .2; } .chev-motif.c .cm-tri { opacity: .4; }
.chev-motif.sm .cm-chev { opacity: .16; } .chev-motif.sm .cm-tri { opacity: .32; }
.stats-band { overflow: hidden; }
.clip { overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font: 600 .98rem/1 var(--head);
  border: 1px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--cyan); color: #021216; box-shadow: 0 0 0 1px rgba(0,229,255,.4), 0 10px 40px -8px rgba(0,229,255,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,229,255,.6), 0 14px 50px -6px rgba(0,229,255,.75); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(0,229,255,.5); background: rgba(0,229,255,.06); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font: 600 .95rem var(--head); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Glass card with animated gradient border */
.glass {
  position: relative; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s, border-color .35s, background .35s;
}
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 55%, var(--cyan) 72%, var(--blue) 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; animation: spin 4s linear infinite;
}
.glass.hov:hover { transform: translateY(-4px); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.glass.hov:hover::before, .glass.lit::before { opacity: 1; }
@keyframes spin { to { --a: 360deg; } }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: border-color .35s; border-bottom: 1px solid transparent; }
/* blur lives on a pseudo so the header itself doesn't become a containing block for the fixed mobile nav */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: rgba(7,9,13,.72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.site-header.scrolled::before, .site-header.nav-open::before { opacity: 1; }
.site-header.scrolled, .site-header.nav-open { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.nav > ul > li { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; font-size: .93rem; color: #E1E7EE; background: none; border: 0; transition: color .2s, background .2s; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.05); }
.nav-link.active { color: var(--cyan); }
.nav-link .caret { width: 14px; height: 14px; transition: transform .25s; }
.has-mega:hover .caret, .has-mega.open .caret { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); align-items: center; justify-content: center; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; transition: transform .3s, top .3s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  width: 680px; padding: 14px; border-radius: 20px;
  background: rgba(11,15,21,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -30px rgba(0,229,255,.4);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 14px; padding: 14px; border-radius: 14px; transition: background .2s; }
.mega-item:hover { background: rgba(0,229,255,.06); }
.mega-item strong { display: block; font: 600 .98rem/1.3 var(--head); color: #fff; margin-bottom: 3px; }
.mega-item small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan);
  background: linear-gradient(145deg, rgba(0,229,255,.16), rgba(0,229,255,.02)); border: 1px solid rgba(0,229,255,.22); }
.ico svg { width: 22px; height: 22px; }
.ico.lg { width: 56px; height: 56px; border-radius: 16px; } .ico.lg svg { width: 26px; height: 26px; }

/* Hero */
.hero { min-height: 100vh; padding: 150px 0 90px; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 40px; }
.hero-proof { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; display: grid; place-items: center; font: 600 .75rem var(--head); color: #021216; }
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--cyan); letter-spacing: 2px; }
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; }
.page-hero.hero-split .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.crumbs { font-size: .85rem; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--cyan); }

/* Dashboard mock */
.dash { padding: 20px; position: relative; }
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4452; }
.dash-tag { font-size: .75rem; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--cyan); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.kpi small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi b { font: 600 1.35rem/1.3 var(--head); display: block; }
.kpi em { font-style: normal; font-size: .72rem; color: #3BF0A0; }
.chart-box { border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--line); padding: 14px; }
.chart-box .lbl { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars rect { transform-origin: bottom; transform-box: fill-box; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleY(0); } }
.float-card { position: absolute; padding: 12px 16px; border-radius: 14px; font-size: .8rem; display: flex; align-items: center; gap: 10px;
  background: rgba(13,18,26,.88); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -15px rgba(0,0,0,.8); animation: bob 6s ease-in-out infinite; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.float-card b { font-family: var(--head); font-size: 1rem; display: block; line-height: 1.2; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; } .float-card .ico svg { width: 17px; height: 17px; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Logo strip */
.logo-strip { padding: 40px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.logo-strip p { text-align: center; color: var(--muted-2); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: #A9B4C1; font: 600 1.25rem var(--head); letter-spacing: -.02em; white-space: nowrap; transition: color .25s; }
.wordmark:hover { color: #E6ECF2; }
.wordmark svg { width: 26px; height: 26px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card { padding: 30px; display: flex; flex-direction: column; min-height: 100%; }
.svc-card h3 { margin: 22px 0 10px; }
.svc-card p { color: var(--muted); flex: 1; }
.svc-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.svc-card li { font-size: .76rem; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: #D5DCE5; }
.card { padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 10px; }
.num { font: 600 .85rem var(--head); color: var(--cyan); letter-spacing: .1em; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(61,123,255,.6), rgba(255,255,255,.08)); }
.step { position: relative; }
.step .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid rgba(0,229,255,.35); font: 600 1rem var(--head); color: var(--cyan); box-shadow: 0 0 30px -6px rgba(0,229,255,.5); margin-bottom: 22px; position: relative; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.step .dur { display: inline-block; font-size: .75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; }

/* Stats */
.stats-band { padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 18px 24px; border-left: 1px solid var(--line); }
.stat:first-of-type { border-left: 0; }
.stat b { display: block; font: 600 clamp(2.2rem, 4vw, 3.2rem)/1.05 var(--head); letter-spacing: -.03em; }
.stat b span.sfx { color: var(--cyan); }
.stat small { color: var(--muted); font-size: .92rem; }

/* Case studies */
.case { overflow: hidden; display: flex; flex-direction: column; }
.case-visual { height: 210px; position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.case-visual svg.cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-visual .tag { position: absolute; top: 16px; left: 16px; font-size: .74rem; padding: 5px 11px; border-radius: 100px; background: rgba(7,9,13,.7); border: 1px solid var(--line-2); color: #DDE4EA; z-index: 1; }
.case-visual .big { position: absolute; right: 18px; bottom: 14px; font: 600 2.6rem/1 var(--head); letter-spacing: -.04em; z-index: 1; text-shadow: 0 0 30px rgba(0,229,255,.5); }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-body .client { color: var(--muted); font-size: .85rem; margin-bottom: 6px; }
.case-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.case-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.case-metrics { display: flex; gap: 22px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 6px; }
.case-metrics div b { display: block; font: 600 1.15rem var(--head); color: #fff; }
.case-metrics div small { color: var(--muted); font-size: .75rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.filter { padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); font-size: .9rem; color: #E1E7EE; transition: all .25s; }
.filter:hover { border-color: rgba(0,229,255,.5); }
.filter.active { background: var(--cyan); color: #021216; border-color: var(--cyan); box-shadow: 0 0 24px -4px rgba(0,229,255,.6); }
.case.hide { display: none; }

/* Testimonials */
.slider { position: relative; max-width: 880px; margin: 0 auto; }
.slider-window { overflow: hidden; border-radius: 24px; }
.slider-track { display: flex; transition: transform .7s cubic-bezier(.65,0,.35,1); }
.slide { min-width: 100%; padding: 50px 56px; }
.slide blockquote { margin: 0 0 30px; font: 500 clamp(1.2rem, 2.4vw, 1.6rem)/1.45 var(--head); letter-spacing: -.015em; }
.slide blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--cyan); margin-bottom: 18px; text-shadow: 0 0 20px rgba(0,229,255,.6); }
.who { display: flex; align-items: center; gap: 14px; }
.who .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 600 1rem var(--head); color: #021216; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.who b { display: block; font-family: var(--head); }
.who small { color: var(--muted); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.slider-nav button.arr { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); display: grid; place-items: center; transition: border-color .2s; }
.slider-nav button.arr:hover { border-color: var(--cyan); }
.slider-nav button.arr svg { width: 18px; height: 18px; }
.sdots { display: flex; gap: 8px; }
.sdots button { width: 8px; height: 8px; border-radius: 8px; border: 0; background: #4A5563; padding: 0; transition: all .3s; }
.sdots button.active { width: 28px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* Pricing */
.price-toggle { display: inline-flex; padding: 5px; border-radius: 100px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); margin-bottom: 44px; }
.price-toggle button { border: 0; background: none; padding: 10px 20px; border-radius: 100px; font-size: .9rem; color: var(--muted); }
.price-toggle button.active { background: rgba(0,229,255,.12); color: var(--cyan); }
.price-toggle .save { font-size: .72rem; color: #3BF0A0; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(0,229,255,.4); background: linear-gradient(180deg, rgba(0,229,255,.09), rgba(255,255,255,.015)); box-shadow: 0 30px 80px -30px rgba(0,229,255,.45); }
.plan .badge { position: absolute; top: -13px; left: 30px; font: 600 .72rem var(--head); letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; background: var(--cyan); color: #021216; }
.plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan .for { color: var(--muted); font-size: .9rem; min-height: 46px; }
.price { font: 600 3rem/1 var(--head); letter-spacing: -.04em; margin: 18px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan .note { font-size: .8rem; color: var(--muted-2); margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: .94rem; color: #E1E7EE; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }
.plan .btn { width: 100%; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.015); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.compare th { font: 600 .95rem var(--head); background: rgba(255,255,255,.025); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare td { color: #E1E7EE; }
.compare td:first-child { color: #E8EDF2; }
.compare tr.group td { font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); background: rgba(0,229,255,.04); }
.compare .yes { color: var(--cyan); } .compare .no { color: var(--muted); }
.compare col.feat { background: rgba(0,229,255,.035); }

/* CTA band */
.cta-band { padding: 80px 60px; text-align: center; overflow: hidden; position: relative; border-color: rgba(0,229,255,.28);
  background: radial-gradient(ellipse 70% 120% at 50% 120%, rgba(0,229,255,.28), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.cta-band h2 { max-width: 760px; margin: 0 auto 18px; font-size: clamp(2rem, 4.6vw, 3.6rem); }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 34px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin: 0; }

/* Service detail */
.deliv { padding: 26px; }
.deliv h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.deliv p { color: var(--muted); font-size: .94rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.benefits { list-style: none; padding: 0; margin: 26px 0 0; }
.benefits li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.benefits li svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.benefits li b { color: #fff; font-family: var(--head); font-weight: 600; }
.stat-stack { display: grid; gap: 16px; }
.stat-card { padding: 26px 28px; display: flex; align-items: center; gap: 22px; }
.stat-card b { font: 600 2.8rem/1 var(--head); letter-spacing: -.04em; min-width: 150px; }
.stat-card b .sfx { color: var(--cyan); }
.stat-card p { margin: 0; color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool { padding: 20px; display: flex; align-items: center; gap: 14px; font: 600 .98rem var(--head); }
.tool .tl { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 700 .9rem var(--head); color: var(--cyan); background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.2); }
.tool small { display: block; font: 400 .78rem var(--body); color: var(--muted); }

/* Accordion */
.acc { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.acc-item { border-radius: 16px; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; padding: 22px 26px; background: none; border: 0; font: 600 1.06rem/1.4 var(--head); color: #fff; }
.acc-btn .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s, border-color .3s, background .3s; }
.acc-btn .pm svg { width: 14px; height: 14px; }
.acc-item.open .pm { transform: rotate(45deg); border-color: var(--cyan); background: rgba(0,229,255,.1); color: var(--cyan); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 26px 22px; margin: 0; color: var(--muted); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open { border-color: rgba(0,229,255,.28); }

/* Visual mocks */
.browser { overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser-bar .url { flex: 1; font-size: .74rem; color: var(--muted); background: rgba(255,255,255,.04); border-radius: 8px; padding: 6px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-body { padding: 20px; }
.sk { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); margin-bottom: 8px; }
.sk.c { background: rgba(0,229,255,.5); }
.serp { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 10px; }
.serp.win { border-color: rgba(0,229,255,.45); background: rgba(0,229,255,.05); box-shadow: 0 0 30px -10px rgba(0,229,255,.5); }
.serp .u { font-size: .72rem; color: var(--muted); }
.serp .t { font: 600 .98rem/1.35 var(--head); color: #8AB4FF; margin: 2px 0 4px; }
.serp.win .t { color: var(--cyan); }
.serp .d { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.serp .ad { font-size: .7rem; font-weight: 700; color: #fff; margin-right: 6px; }
.pos { float: right; font: 600 .75rem var(--head); color: #3BF0A0; }
.geogrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 18px; }
.geogrid span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem var(--head); }
.g1 { background: var(--cyan); color: #021216; box-shadow: 0 0 14px rgba(0,229,255,.6); }
.g2 { background: rgba(0,229,255,.45); color: #021216; }
.g3 { background: rgba(61,123,255,.4); color: #fff; }
.g4 { background: rgba(255,255,255,.08); color: var(--muted); }
.phones { display: flex; justify-content: center; gap: 22px; align-items: flex-end; }
.phone { width: 200px; border-radius: 34px; padding: 10px; background: #0D1219; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 50px -20px rgba(0,229,255,.4); }
.phone.sm { width: 170px; transform: translateY(-24px); }
.phone-screen { border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #0F1722, #0A0E14); padding: 18px 14px 64px; min-height: 360px; position: relative; }
.phone-screen .notch { width: 70px; height: 18px; border-radius: 12px; background: #000; margin: -8px auto 16px; }
.app-card { border-radius: 14px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 10px; font-size: .74rem; }
.app-card b { font-family: var(--head); font-size: .95rem; display: block; }
.app-hero { border-radius: 16px; padding: 14px; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #021216; margin-bottom: 10px; }
.app-hero small { font-size: .7rem; } .app-hero b { font: 700 1.5rem var(--head); display: block; }
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-around; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.tabbar i { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.15); }
.tabbar i.on { background: var(--cyan); }
.ring { position: relative; width: 84px; height: 84px; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.4rem var(--head); color: #3BF0A0; }
.ring-label { text-align: center; font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* Blog */
.post { overflow: hidden; display: flex; flex-direction: column; }
.post-visual { height: 190px; position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); }
.post-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.meta .cat { color: var(--cyan); font-weight: 600; }
.post h3 { font-size: 1.2rem; line-height: 1.3; }
.post p { color: var(--muted); font-size: .94rem; flex: 1; }
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; margin-bottom: 26px; }
.featured-post .post-visual { height: auto; min-height: 320px; border-radius: var(--radius) 0 0 var(--radius); border-bottom: 0; border-right: 1px solid var(--line); }
.featured-post .post-body { padding: 44px; justify-content: center; }
.featured-post h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }

/* Forms */
.form { padding: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: #E1E7EE; font-weight: 500; }
.field input, .field select, .field textarea, .newsletter input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #BAC4D0 50%), linear-gradient(135deg, #BAC4D0 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0B0F15; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder, .newsletter input::placeholder { color: #A3AEBB; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,229,255,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line-2); font-size: .85rem; color: #E1E7EE; transition: all .2s; }
.chips input:checked + span { background: rgba(0,229,255,.12); border-color: var(--cyan); color: var(--cyan); }
.chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,229,255,.3); }
.form-success { display: none; text-align: center; padding: 50px 20px; }
.form-success .ico { margin: 0 auto 20px; width: 70px; height: 70px; border-radius: 50%; }
.form-success .ico svg { width: 32px; height: 32px; }
.sent .form-fields { display: none; } .sent .form-success { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item b { font-family: var(--head); font-weight: 600; word-break: break-word; }
.map { height: 280px; overflow: hidden; position: relative; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; left: 54%; top: 46%; transform: translate(-50%, -100%); text-align: center; }
.map .pin i { display: block; width: 18px; height: 18px; margin: 0 auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(0,229,255,.18), 0 0 30px var(--cyan); animation: pulse 2s infinite; }
.map .pin span { display: inline-block; margin-bottom: 12px; font-size: .78rem; padding: 7px 12px; border-radius: 10px; background: rgba(7,9,13,.9); border: 1px solid var(--line-2); white-space: nowrap; }

/* Team */
.member { padding: 26px; text-align: center; }
.member .ph { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font: 600 1.6rem var(--head); color: var(--cyan); background: radial-gradient(circle at 30% 30%, rgba(0,229,255,.25), rgba(0,229,255,.03)); border: 1px solid rgba(0,229,255,.3); }
.member h3 { font-size: 1.1rem; margin-bottom: 4px; }
.member small { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 30px; position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(0,229,255,.025)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid .logo img { height: 40px; margin-bottom: 20px; }
.footer-grid p { color: #CDD5DF; font-size: .93rem; max-width: 320px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: #CDD5DF; font-size: .93rem; transition: color .2s; }
.footer-grid li a:hover { color: var(--cyan); }
.f-contact li { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; }
.f-contact svg { flex: none; width: 17px; height: 17px; color: var(--cyan); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); color: #E1E7EE; transition: all .25s; }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px -4px rgba(0,229,255,.6); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-bottom a:hover { color: var(--cyan); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; } .d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}

/* Responsive */
@media (max-width: 1100px) {
  .nav-link { padding: 10px 10px; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); height: calc(100dvh - 78px); overflow-y: auto; background: #07090D; flex-direction: column; align-items: stretch; padding: 20px 24px 40px; transform: translateX(100%); transition: transform .4s cubic-bezier(.65,0,.35,1); visibility: hidden; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.1rem; border-radius: 0; background: none !important; }
  .mega { position: static; transform: none !important; width: auto; opacity: 1; visibility: visible; display: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 14px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .has-mega:hover .mega { display: none; }
  .has-mega.open .mega { display: block; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-item { padding: 10px 4px; }
  .mega-foot { display: none; }
  .header-cta .btn-primary { display: none; }
  .nav .nav-mobile-cta { display: flex; margin-top: 24px; }
  .hero-grid, .page-hero.hero-split .container, .split { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .grid-4, .tools { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat:nth-of-type(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-visual { min-height: 220px; border-radius: var(--radius) var(--radius) 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .plan.featured { order: -1; grid-column: 1 / -1; }
}
.nav-mobile-cta { display: none; }
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .page-hero { padding: 130px 0 60px; }
  .grid-3, .grid-2, .plans, .grid-4 { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool { padding: 14px; font-size: .88rem; gap: 10px; }
  .tool small { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .stats-band { padding: 10px; }
  .stat { padding: 16px 12px; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi { padding: 10px 8px; } .kpi b { font-size: 1rem; } .kpi small { font-size: .6rem; letter-spacing: .02em; }
  .dash { padding: 14px; }
  .dash-row { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .slide { padding: 34px 24px; }
  .cta-band { padding: 56px 22px; }
  .form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-card b { min-width: 0; }
  .phone { width: 236px; } .phone.sm { display: none; }
  .featured-post .post-body { padding: 26px; }
  .newsletter { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .page-hero.hero-split .container > *, .hero-grid > *, .split > * { min-width: 0; }
  .mega-item small { display: none; }
  .section-head { margin-bottom: 40px; }
  .header-inner { height: 70px; }
  .chev-motif .cm-chev { opacity: .14; } .chev-motif .cm-tri { opacity: .28; }
  .chev-motif.sm { display: none; }
  table.compare { min-width: 480px; }
  .compare th, .compare td { padding: 12px 10px; font-size: .84rem; }
  .compare td:first-child { position: sticky; left: 0; background: #0D1118; }
  .nav { top: 70px; height: calc(100dvh - 70px); }
  .logo img { height: 30px; }
}

/* =====================================================================
   NEXUS 3D LAYER
   ===================================================================== */

/* ---- 3D X host: three.js canvas over the flat SVG fallback ---- */
.x3d { position: absolute; z-index: -1; pointer-events: none; }
.x3d > .chev-motif { position: absolute; inset: 0; width: 100%; height: 100%; z-index: auto; transition: opacity 1s; }
.x3d canvas { position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; opacity: 0; transition: opacity 1.2s; }
.x3d.gl-on canvas { opacity: 1; }
.x3d.gl-on > .chev-motif { opacity: 0; }
.x3d-sm > .chev-motif, .x3d-cta > .chev-motif { animation: xsway 9s ease-in-out infinite; }
@keyframes xsway { 0%, 100% { transform: perspective(900px) rotateY(-16deg) rotateX(4deg); } 50% { transform: perspective(900px) rotateY(12deg) rotateX(-3deg) translateY(-10px); } }

/* ---- Home hero: dashboard tilts in perspective, inner layers lifted ---- */
.hero-visual { perspective: 1600px; }
.dash-rig { position: relative; transform-style: preserve-3d; transform: rotateX(calc(var(--py2, 0) * -3deg)) rotateY(calc(var(--px2, 0) * 4.5deg)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.dash-rig .dash { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; transform-style: preserve-3d; }
.dash-rig .glass-face { position: absolute; inset: 0; border-radius: inherit; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none; }
.dash-rig .dash > :not(.glass-face) { position: relative; transform: translateZ(14px); }
.dash-rig .dash > .kpis { transform: translateZ(26px); }
.dash-rig .dash > .dash-row { transform: translateZ(20px); }
.dash-rig .float-card { transform: translateZ(56px); }

/* ---- Service / page visuals on a 3D stage ---- */
.v3d { perspective: 1500px; }
.v3d-rig { transform-style: preserve-3d; transform: rotateY(calc(-10deg + var(--px2, 0) * 7deg)) rotateX(calc(5deg + var(--py2, 0) * -5deg)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.v3d .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #161b23, #0e1218); transform-style: preserve-3d;
  box-shadow: 0 2px 0 #0b0e13, 0 4px 0 #090c10, 0 6px 0 #07090d, 0 50px 90px -30px rgba(0,0,0,.95), 0 0 70px -28px rgba(0,229,255,.45); }
.v3d .browser { overflow: visible; }
.v3d .dash > *, .v3d .browser > * { position: relative; transform: translateZ(16px); }
.v3d .dash > .kpis { transform: translateZ(30px); }
.v3d .dash > .serp.win { transform: translateZ(44px); }
.v3d .chart-box, .v3d .geogrid, .v3d .dash-row, .v3d .browser-body, .v3d .browser-body div { transform-style: preserve-3d; }
.v3d .geogrid span { transition: transform .5s; }
.v3d .geogrid .g1 { transform: translateZ(34px); box-shadow: 0 0 14px rgba(0,229,255,.6), 0 14px 18px -6px rgba(0,0,0,.8); }
.v3d .geogrid .g2 { transform: translateZ(22px); box-shadow: 0 10px 14px -6px rgba(0,0,0,.8); }
.v3d .geogrid .g3 { transform: translateZ(12px); }
.v3d .geogrid .g4 { transform: translateZ(3px); }
.v3d .ring { transform: translateZ(30px); }
.v3d .phones { transform-style: preserve-3d; }
.v3d .phone { transform: translateZ(30px); }
.v3d .phone.sm { transform: translateZ(-60px) translateY(-24px); }

/* ---- Tilt cards with cursor sheen and layered depth ---- */
.glass.tilt { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #151a21, #0f1318); }
.tilt { transform-style: preserve-3d; }
.tilt.reveal.in, .tilt:not(.reveal) { transform: perspective(1000px) translateY(var(--ty, 0px)) translateZ(var(--tz, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.glass.hov.tilt:hover { --ty: -4px; }
.tilt.tilting { transition: transform .12s linear, opacity .9s, background .35s; }
.tilt > * { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tilt:hover > :not(.btn):not(.badge) { transform: translateZ(var(--lz, 22px)); }
.tilt .ico { --lz: 46px; }
.tilt .case-visual, .tilt .post-visual { --lz: 10px; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0,229,255,.16), rgba(0,229,255,0) 45%); opacity: 0; transition: opacity .4s; transform: translateZ(1px); }
.tilt:hover::after { opacity: 1; }
.case.tilt, .post.tilt { overflow: visible; }

/* ---- Dimensional service icons ---- */
.ico { position: relative; border-color: rgba(0,229,255,.38);
  background: linear-gradient(150deg, #17505c 0%, #0c2a32 50%, #071619 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -3px 6px rgba(0,0,0,.55),
    0 1px 0 #05343d, 0 2px 0 #042b33, 0 3px 0 #03232a, 0 4px 0 #021b21, 0 14px 22px -8px rgba(0,229,255,.5); }
.ico::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 46%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)); }
.ico svg { position: relative; z-index: 1; filter: drop-shadow(0 0 6px rgba(0,229,255,.75)) drop-shadow(0 1px 0 #00323b); }

/* ---- Pressable 3D buttons ---- */
.btn { --depth: 5px; }
.btn-primary { background: linear-gradient(180deg, #8af5ff 0%, #18e3fb 48%, #00cbe3 100%); color: #021216; border-color: transparent;
  box-shadow: 0 var(--depth) 0 #00828f, 0 calc(var(--depth) + 12px) 30px -8px rgba(0,229,255,.6), inset 0 1px 0 rgba(255,255,255,.75); }
.btn-primary:hover { --depth: 7px; transform: translateY(-2px);
  box-shadow: 0 var(--depth) 0 #00828f, 0 calc(var(--depth) + 14px) 36px -8px rgba(0,229,255,.75), inset 0 1px 0 rgba(255,255,255,.75); }
.btn-ghost { background: linear-gradient(180deg, #27303b, #171c24); border-color: rgba(255,255,255,.2);
  box-shadow: 0 var(--depth) 0 #04060a, 0 calc(var(--depth) + 10px) 24px -10px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-ghost:hover { --depth: 7px; transform: translateY(-2px); border-color: rgba(0,229,255,.55); background: linear-gradient(180deg, #2a3541, #18202a); }
.btn:active { --depth: 1px; transform: translateY(4px); transition-duration: .06s; }
.btn-sm { --depth: 4px; }
/* home hero buttons and callout icons stay exactly as approved */
.hero .btn-primary { background: var(--cyan); box-shadow: 0 0 0 1px rgba(0,229,255,.4), 0 10px 40px -8px rgba(0,229,255,.55); }
.hero .btn-primary:hover { box-shadow: 0 0 0 1px rgba(0,229,255,.6), 0 14px 50px -6px rgba(0,229,255,.75); }
.hero .btn-ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); box-shadow: none; }
.hero .btn-ghost:hover { border-color: rgba(0,229,255,.5); background: rgba(0,229,255,.06); }
.hero .btn:active { transform: none; }
.hero .ico { background: linear-gradient(145deg, rgba(0,229,255,.16), rgba(0,229,255,.02)); border-color: rgba(0,229,255,.22); box-shadow: none; }
.hero .ico::after { display: none; }
.hero .ico svg { filter: none; }

/* ---- Mega-menu 3D fold-down ---- */
.has-mega { perspective: 1000px; }
.mega { transform-origin: 50% 0; transform: translateX(-50%) rotateX(-82deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility 0s .5s; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { transform: translateX(-50%) rotateX(0deg); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .25s, visibility 0s; }

/* ---- Raised stat tiles ---- */
.stats-band { gap: 16px; padding: 20px; }
.stat { border-left: 0 !important; border-radius: 16px; padding: 22px 22px 20px; border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(160deg, #1c232d, #11161d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 0 #0c1015, 0 4px 0 #0a0d12, 0 6px 0 #090b0f, 0 8px 0 #07090c, 0 28px 40px -18px rgba(0,0,0,.95); }
.stat b { text-shadow: 0 0 28px rgba(0,229,255,.28); }
.stat.tilt:hover b { --lz: 40px; }
.stat-card { box-shadow: 0 2px 0 #0c1015, 0 4px 0 #0a0d12, 0 6px 0 #090b0f, 0 28px 40px -18px rgba(0,0,0,.9); }

/* ---- Pricing depth, popular plan lifted ---- */
.plans { perspective: 1600px; }
.plan.tilt { box-shadow: 0 2px 0 #0c1016, 0 4px 0 #0a0d12, 0 6px 0 #080a0e, 0 36px 60px -26px rgba(0,0,0,.9); }
.plan.featured.tilt { --ty: -14px; --tz: 40px; z-index: 2; background: linear-gradient(180deg, #10303a, #0d1a21);
  box-shadow: 0 0 0 1px rgba(0,229,255,.45), 0 2px 0 #00616d, 0 4px 0 #00525c, 0 6px 0 #00444d, 0 8px 0 #003a42, 0 50px 90px -28px rgba(0,229,255,.5); }
.plan.featured.tilt:hover { --ty: -18px; }

/* ---- "How we work": 3D staircase ---- */
.timeline::before { display: none; }
.step-n { display: block; font: 700 .85rem var(--head); color: var(--cyan); letter-spacing: .12em; margin-bottom: 8px; }
.stair { position: relative; height: 320px; perspective: 1400px; margin-bottom: 26px; }
.stair-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; pointer-events: none; transform: perspective(700px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(0,229,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,.22) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.stair-rig { position: absolute; left: 50%; bottom: 46px; width: min(720px, 86%); display: grid; grid-template-columns: repeat(4, 1fr); align-items: end;
  transform-style: preserve-3d; transform: translateX(-50%) rotateX(calc(-20deg + var(--py2, 0) * 4deg)) rotateY(calc(26deg + var(--px2, 0) * -8deg)); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.blk { --D: 110px; position: relative; height: var(--h); transform-style: preserve-3d;
  background: linear-gradient(180deg, #2a323d, #151a22); box-shadow: inset 0 2px 0 rgba(0,229,255,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.blk > i { position: absolute; display: block; }
.blk .f-top { left: 0; top: 0; width: 100%; height: var(--D); transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(180deg, #3d4755, #28303b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,229,255,.5); }
.blk .f-side { top: 0; right: 100%; width: var(--D); height: 100%; transform-origin: 100% 50%; transform: rotateY(-90deg);
  background: linear-gradient(90deg, #0b0e13, #12171e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.blk b { position: absolute; inset: auto 0 14px; text-align: center; font: 700 clamp(1.4rem, 3vw, 2.3rem)/1 var(--head); color: #fff; text-shadow: 0 0 18px rgba(0,229,255,.55); transform: translateZ(1px); }
.blk.cy { background: linear-gradient(180deg, #2ff0ff, #00a9bd); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 0 50px -10px rgba(0,229,255,.7); }
.blk.cy .f-top { background: linear-gradient(180deg, #b6fbff, #3eeeff); }
.blk.cy .f-side { background: linear-gradient(90deg, #005f6b, #00808f); }
.blk.cy b { color: #021216; text-shadow: none; }

/* ---- 3D testimonial carousel ---- */
.cflow { position: relative; max-width: 1040px; margin: 0 auto; }
.cf-stage { position: relative; height: 400px; perspective: 1400px; overflow: hidden; }
.cf-item { position: absolute; left: 50%; top: 50%; width: min(640px, 84%); padding: 44px 48px; border-radius: 24px; transform: translate(-50%, -50%);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .6s; -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(160deg, #1b222c, #10151b); border-color: rgba(0,229,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 70px -30px rgba(0,0,0,.95), 0 0 50px -25px rgba(0,229,255,.5); }
.cf-item blockquote { margin: 0 0 26px; font: 500 clamp(1.1rem, 2.1vw, 1.45rem)/1.45 var(--head); letter-spacing: -.015em; color: #fff; }
.cf-item blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--cyan); margin-bottom: 18px; text-shadow: 0 0 20px rgba(0,229,255,.6); }

/* ---- CTA band: glowing perspective grid floor ---- */
.cta-band { padding-bottom: 150px; }
.cta-band .grid-floor { position: absolute; left: -50%; right: -50%; bottom: 0; height: 60%; z-index: -1; pointer-events: none; opacity: .8;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(0,229,255,.5) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(0,229,255,.5) 1.5px, transparent 1.5px);
  background-size: 64px 64px; animation: gridmove 4s linear infinite;
  -webkit-mask-image: linear-gradient(0deg, #000 20%, transparent 92%); mask-image: linear-gradient(0deg, #000 20%, transparent 92%); }
.cta-band .horizon { position: absolute; left: 0; right: 0; bottom: 38%; height: 170px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(0,229,255,.24), transparent 70%); }
@keyframes gridmove { to { background-position: 0 64px; } }

/* ---- responsive & motion ---- */
@media (max-width: 980px) {
  .plan.featured.tilt { --ty: 0px; --tz: 0px; }
  .stats-band { padding: 14px; gap: 12px; }
  .stat:nth-of-type(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .x3d.gl-on canvas { opacity: .4; }
  .x3d-hero.gl-on canvas { opacity: .28; }
  .v3d-rig { transform: rotateY(-6deg) rotateX(3deg); }
  .stair { height: 210px; margin-bottom: 18px; }
  .stair-rig { width: 92%; bottom: 30px; transform: translateX(-50%) rotateX(-18deg) rotateY(24deg); }
  .blk { --D: 60px; height: calc(var(--h) * .55); }
  .cf-stage { height: 470px; }
  .cf-item { padding: 30px 24px; width: 88%; }
  .cta-band { padding-bottom: 120px; }
  .stat { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-rig, .v3d-rig, .stair-rig { transition: none; }
  .x3d > .chev-motif { animation: none; }
}

/* v1.0.1 — home hero: calmer 3D X so the dashboard reads first */
.x3d-hero.gl-on canvas { opacity: .6; filter: brightness(.72) saturate(.85); }
.x3d-hero > .chev-motif { opacity: .55; }
.x3d-hero.gl-on > .chev-motif { opacity: 0; }
.dash-rig .glass-face { background: linear-gradient(180deg, rgba(17,22,30,.9), rgba(10,13,19,.94)); }
.dash-rig .dash { box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08); }
@media (max-width: 900px) { .x3d-hero.gl-on canvas { opacity: .25; } }
