/* =======================================================
   NEXILENSE THEME 1.3.0 — premium design layer
   Loaded after main.css and enhancements.css. One spacing and type system for every page,
   the two-column homepage hero (text left, video right), statistics strip, portfolio
   showcase, compact page heroes, refined cards, forms, header and footer.
   ======================================================= */

:root {
  --nav-h: 76px;
  --wrap-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --sec-y: clamp(4rem, 7.5vw, 6.75rem);
  --sec-y-sm: clamp(2.5rem, 5vw, 4rem);
  --r-lg: 22px;
  --r-md: 16px;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  --card-line: rgba(255,255,255,.08);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.45);
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="light"] { --card-bg: linear-gradient(180deg, #fff, #F7F8FF); --card-line: rgba(10,12,26,.08); --shadow-lg: 0 24px 60px rgba(20,30,80,.12); }

/* ── Base rhythm ─────────────────────────────────────────── */
body { font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
section { padding: var(--sec-y) var(--gutter); }
.wrap { max-width: var(--wrap-w); }
h2.headline { font-size: clamp(2rem, 3.8vw, 3.35rem); line-height: 1.08; letter-spacing: -.028em; margin-bottom: 1rem; text-wrap: balance; }
.sub { font-size: clamp(1rem, 1.25vw, 1.08rem); line-height: 1.75; max-width: 640px; }
.tag { margin-bottom: .9rem; }
.sec-head, .sv-header { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.sec-head .sub { margin-top: .25rem; }
p, li { text-wrap: pretty; }

/* WordPress admin bar: keep the fixed header below it (fixes the clipped logo on staging) */
.admin-bar #nav { top: 32px; }
.admin-bar .mob-nav { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { .admin-bar #nav { top: 46px; } .admin-bar .mob-nav { top: calc(var(--nav-h) + 46px); } }
@media (max-width: 600px) { .admin-bar #nav { position: fixed; } }

/* Faster first paint: the 1.x entrance animations waited ~2–3 s for a loader that no longer exists */
.hero-eyebrow, .hero-p, .hero-actions, .hero-vpanel, .hero-hud, .h1-word { animation-delay: .05s !important; animation-duration: .8s !important; }
.hero-p { animation-delay: .15s !important; } .hero-actions { animation-delay: .25s !important; } .hero-vpanel { animation-delay: .2s !important; }

/* Custom cursor ring stays hidden until the mouse actually moves */
#cursor-follower { opacity: 0; transition: opacity .3s; }
html.nx-mouse #cursor-follower { opacity: 1; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-outline { min-height: 50px; padding: .85rem 1.6rem; border-radius: 12px; font-size: .82rem; letter-spacing: .06em; justify-content: center; }
.btn-primary { box-shadow: 0 10px 34px rgba(139,92,246,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(139,92,246,.42); }
.btn-outline { border-width: 1px; }
.nxc-video-btn.btn-outline, .hero-actions .nxc-video-btn { min-height: 50px; }

/* ── Header ──────────────────────────────────────────────── */
#nav { padding: 0 var(--gutter); }
#nav.sticky { box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.nav-logo { font-size: 1.22rem; letter-spacing: .1em; }
.nav-links { gap: clamp(1.1rem, 2.2vw, 2.1rem); }
.nav-item a { font-size: .76rem; letter-spacing: .09em; padding: .5rem 0; }
.dropdown { border-radius: 16px; padding: .6rem; min-width: 250px; box-shadow: 0 24px 60px rgba(0,0,0,.45); border-color: var(--card-line); }
.dropdown li a { border-radius: 10px; padding: .6rem .85rem; font-size: .84rem; }
.nav-right { gap: .7rem; }
.btn-nav-cta { padding: .7rem 1.25rem; border-radius: 10px; font-size: .74rem; }
#theme-btn { width: 40px; height: 40px; border-radius: 10px; }
@media (max-width: 1180px) { .nav-links { gap: 1rem; } .nav-item a { font-size: .72rem; letter-spacing: .06em; } }
/* Tablet and phone: hamburger menu (6 links + button do not fit comfortably below ~1024px) */
@media (max-width: 1024px) {
  .nav-center, .btn-nav-cta { display: none; }
  .ham-btn { display: flex; }
  .mob-nav { padding: 1rem var(--gutter) 1.5rem; gap: 0; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
  .mob-nav a { font-size: 1rem; padding: .7rem 0; }
  .mob-cta { margin-top: 1rem; justify-content: center; }
}

/* ── Homepage hero ───────────────────────────────────────── */
#hero.nx-hero { display: block; min-height: 0; padding: calc(var(--nav-h) + clamp(2.75rem, 6vw, 5rem)) var(--gutter) clamp(3rem, 5.5vw, 4.75rem); overflow: hidden; }
#hero.nx-hero .hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 78% 45%, rgba(139,92,246,.20), transparent 70%), radial-gradient(35% 45% at 92% 70%, rgba(0,204,255,.14), transparent 70%); }
#hero.nx-hero .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 4.75rem); align-items: center; }
#hero.nx-hero.hero-video-background .hero-inner { grid-template-columns: minmax(0, 760px); }
#hero.nx-hero .hero-content { position: relative; z-index: 1; max-width: 600px; }
#hero.nx-hero .hero-eyebrow { margin-bottom: 1.6rem; }
#hero.nx-hero .eyebrow-text { font-size: .72rem; letter-spacing: .14em; }
#hero.nx-hero .hero-h1 { font-size: clamp(2.8rem, 5.3vw, 5.35rem); line-height: 1; letter-spacing: -.04em; margin-bottom: 1.4rem; }
#hero.nx-hero .hero-p { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75; max-width: 34rem; margin-bottom: 2.1rem; }
#hero.nx-hero .hero-actions { margin-bottom: 0; gap: .8rem; align-items: center; }
#hero.nx-hero .hero-visual { position: relative; z-index: 1; min-width: 0; }
#hero.nx-hero .hero-visual::before { content: ""; position: absolute; inset: -10% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139,92,246,.30), transparent 72%), radial-gradient(closest-side at 70% 70%, rgba(0,204,255,.22), transparent 70%); filter: blur(30px); }
#hero.nx-hero .hero-vpanel { width: 100%; max-width: none; margin: 0; animation: fadeSlideUp .8s .2s var(--ease-expo) both; }
#hero.nx-hero .hvp-frame { border-radius: var(--r-lg); border: 1px solid rgba(0,204,255,.22);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.025), 0 0 80px rgba(139,92,246,.22); }
#hero.nx-hero .hvp-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
#hero.nx-hero .hvp-caption { text-align: left; }
/* No video yet: a calm brand mark (decorative only, no claims) */
.hero-orb { aspect-ratio: 1 / 1; max-width: 460px; margin-left: auto; display: grid; place-items: center; position: relative; }
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,204,255,.18); }
.orb-ring.r1 { inset: 0; } .orb-ring.r2 { inset: 13%; border-color: rgba(139,92,246,.25); } .orb-ring.r3 { inset: 26%; border-color: rgba(0,204,255,.28); }
.orb-ring.r1 { animation: orbSpin 40s linear infinite; border-style: dashed; }
.orb-core { width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); letter-spacing: .08em; color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(0,204,255,.45), rgba(139,92,246,.35) 60%, rgba(11,15,30,.9)); box-shadow: 0 0 80px rgba(0,204,255,.25), inset 0 0 40px rgba(255,255,255,.08); }
.orb-core .bracket { color: var(--electric); font-weight: 300; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
/* The hero's own 1.x statistics row and chips are no longer printed; hide any cached copies */
#hero.nx-hero .hero-kpis, #hero.nx-hero .social-proof-row, #hero.nx-hero .scroll-cue { display: none !important; }

@media (max-width: 1100px) {
  #hero.nx-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem; }
  #hero.nx-hero .hero-h1 { font-size: clamp(2.6rem, 5.4vw, 3.9rem); }
}
@media (max-width: 1200px) { #hero.hero-video-panel.nx-hero .hero-vpanel { max-width: none; margin: 0; } }
@media (max-width: 860px) {
  #hero.nx-hero { padding-top: calc(var(--nav-h) + 2.5rem); }
  #hero.nx-hero .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  #hero.nx-hero .hero-content { max-width: 640px; }
  #hero.nx-hero .hero-visual { max-width: 720px; width: 100%; }
  .hero-orb { display: none; }
}
@media (max-width: 560px) {
  #hero.nx-hero { padding-top: calc(var(--nav-h) + 1.75rem); padding-bottom: 2.5rem; }
  #hero.nx-hero .hero-h1 { font-size: clamp(2.45rem, 11.5vw, 3.1rem); }
  #hero.nx-hero .hero-eyebrow { margin-bottom: 1.2rem; max-width: 100%; }
  #hero.nx-hero .eyebrow-text { font-size: .64rem; letter-spacing: .1em; }
  #hero.nx-hero .hero-actions { flex-direction: column; align-items: stretch; }
  #hero.nx-hero .hero-actions > * { width: 100%; text-align: center; justify-content: center; }
}

/* ── Statistics / highlights strip (below the hero) ──────── */
.nx-stats { padding: 0 var(--gutter); margin-top: 0; position: relative; z-index: 3; }
.nx-stats-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card-bg); box-shadow: var(--shadow-lg); overflow: hidden; }
.nx-stat { padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: .35rem; position: relative; }
.nx-stat + .nx-stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--card-line); }
.nx-stat-val { font: 800 clamp(1.9rem, 3vw, 2.6rem)/1 var(--font-display); letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--electric), var(--plasma)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-stat-val.is-text { font-size: clamp(1rem, 1.35vw, 1.12rem); letter-spacing: -.005em; line-height: 1.3; -webkit-text-fill-color: currentColor; color: var(--white); background: none; }
.nx-stats.is-highlights .nx-stat::after { content: ""; display: block; order: -1; width: 28px; height: 3px; border-radius: 3px; margin-bottom: .55rem; background: linear-gradient(90deg, var(--electric), var(--plasma)); }
.nx-stat-lbl { font-size: .8rem; color: var(--white-60); letter-spacing: .02em; line-height: 1.5; }
.nx-stats.is-numbers .nx-stat-lbl { text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.nx-admin-note { margin: .8rem auto 0; font-size: .78rem; color: var(--gold); text-align: center; }
.nx-admin-box { text-align: left; padding: 1.25rem 1.4rem; border: 1px dashed rgba(255,209,102,.4); border-radius: var(--r-md); background: rgba(255,209,102,.05); color: var(--white-60); font-size: .9rem; line-height: 1.7; }
.nx-admin-box strong { color: var(--gold); }
@media (max-width: 900px) {
  .nx-stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-stat + .nx-stat::before { display: none; }
  .nx-stat { border-top: 1px solid var(--card-line); }
  .nx-stat:nth-child(-n+2) { border-top: 0; }
  .nx-stat:nth-child(even) { border-left: 1px solid var(--card-line); }
  .nx-stats.is-numbers .nx-stats-list[style*="--n:5"] .nx-stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Ticker: quieter */
.ticker { margin-top: var(--sec-y-sm); background: transparent; }
.ticker-track { padding: .8rem 0; }
.t-seg { font-size: .66rem; }

/* ── Cards (services, features, results, testimonials, pricing) ── */
.sv-grid { gap: 1rem; }
.sv-card, .rs-card, .t-card, .px-card, .feat-row, .stat-card { background: var(--card-bg); border-color: var(--card-line); border-radius: var(--r-lg); }
.sv-card { padding: 1.75rem 1.6rem; }
.sv-card:hover { transform: translateY(-5px); box-shadow: 0 26px 70px rgba(0,0,0,.45), 0 0 50px rgba(0,204,255,.08); }
.sv-num { margin-bottom: 1.1rem; }
.sv-name { font-size: 1.12rem; }
.sv-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.about-grid { gap: clamp(2.5rem, 6vw, 6rem); }
.feat-row { padding: 1.15rem 1.25rem; border-radius: var(--r-md); }
.feat-title { font-size: .98rem; }
.feat-desc { font-size: .88rem; }
.t-grid, .rs-grid { gap: 1.1rem; }
.cta-wrap { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.cta-h { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; }

/* ── Portfolio showcase on the homepage ──────────────────── */
.nx-work { background: linear-gradient(180deg, var(--ink-1), var(--ink)); }
.nx-work .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }

/* ── Inner page heroes: compact, content appears quickly ── */
.page-hero, .page-hero-sm { min-height: 0; padding: calc(var(--nav-h) + clamp(2.75rem, 6vw, 4.5rem)) var(--gutter) clamp(2rem, 4vw, 3.25rem); }
.ph-title { font-size: clamp(2.2rem, 4.8vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .9rem; text-wrap: balance; }
.ph-sub { margin: 0 auto; max-width: 680px; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.7; }
.page-hero .post-breadcrumb { margin-bottom: 1rem; }
.page-hero + section { padding-top: var(--sec-y-sm); }
.svc-hero { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc-hero-actions { margin-top: 1.5rem; }
.nx-page-body { padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.nx-body-text .wrap { max-width: 860px; }
.nx-body-app .wrap { max-width: 1120px; }
.nx-body-wide .wrap { max-width: var(--wrap-w); }
.post-body.is-app > *:first-child, .post-body.is-wide > *:first-child { margin-top: 0; }
.post-body.is-app, .post-body.is-wide { font-size: 1rem; }

/* ── Project detail page ─────────────────────────────────── */
.nx-project-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.nx-project-cover { margin: 0 0 1.25rem; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--card-line); box-shadow: var(--shadow-lg); }
.nx-project-cover img { display: block; width: 100%; height: auto; }
.nx-project-gallery { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.nx-project-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--card-line); }
.nx-project-side { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: flex; flex-direction: column; gap: .8rem; padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--card-line); background: var(--card-bg); }
.nx-project-facts { margin: 0 0 .5rem; display: grid; gap: .2rem; }
.nx-project-facts dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white-30); margin-top: .6rem; }
.nx-project-facts dd { margin: 0; font-weight: 600; }
.nx-btn-block { width: 100%; justify-content: center; text-align: center; }
.nx-back { font-size: .88rem; color: var(--white-60); text-align: center; padding: .4rem; }
@media (max-width: 900px) { .nx-project-grid { grid-template-columns: 1fr; } .nx-project-side { position: static; } }

/* ── Forms (contact, comments, newsletter) ───────────────── */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="password"], select, textarea { font-size: 1rem; }
.nl-consent { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--white-60); line-height: 1.5; margin-top: .8rem; text-align: left; cursor: pointer; }
.nl-consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--electric); }
.nl-consent a { color: var(--electric); }
.blog-nl-form { flex-wrap: wrap; }
.blog-nl-form .nl-consent { flex-basis: 100%; justify-content: center; }
.sb-nl-box .nl-consent { font-size: .74rem; margin: .4rem 0 .6rem; }

/* ── Newsletter band ─────────────────────────────────────── */
.newsletter-section { background: var(--ink); border-top: 0; padding: var(--sec-y-sm) var(--gutter); }
.nl-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: 26px; border: 1px solid rgba(0,204,255,.16);
  background: radial-gradient(70% 120% at 0% 0%, rgba(139,92,246,.16), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(0,204,255,.12), transparent 60%), var(--ink-2); }
.nl-card .nl-h { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .7rem; }
.nl-card .nl-text p { color: var(--white-60); margin: 0; line-height: 1.7; }
.nl-card .nl-form { width: 100%; }
.nl-card .nl-input-wrap { display: flex; gap: .6rem; }
.nl-card .nl-input-wrap input[type="email"] { flex: 1; min-width: 0; min-height: 52px; border-radius: 12px; padding: 0 1rem; }
.nl-card .nl-submit { min-height: 52px; border-radius: 12px; padding: 0 1.3rem; white-space: nowrap; }
@media (max-width: 860px) { .nl-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nl-card .nl-input-wrap { flex-direction: column; } }

/* ── Footer ──────────────────────────────────────────────── */
#footer { padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 1.75rem; border-top: 1px solid var(--card-line); }
.ft-main { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); padding-bottom: 2.5rem; }
.ft-brand p { max-width: 340px; margin: 1rem 0 1.25rem; color: var(--white-60); font-size: .9rem; line-height: 1.7; }
.ft-contact { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.ft-contact-row { display: inline-flex; align-items: center; gap: .6rem; color: var(--white-60); font-size: .9rem; min-height: 32px; }
.ft-contact-row:hover { color: var(--electric); }
.ft-ci { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--card-line); background: var(--surface); font-size: .85rem; }
.ft-col-h { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--white-30); margin: 0 0 1.1rem; }
.ft-links { display: flex; flex-direction: column; gap: .15rem; }
.ft-links a { display: inline-flex; align-items: center; min-height: 34px; font-size: .9rem; color: var(--white-60); transition: color .2s, transform .2s; }
.ft-links a:hover { color: var(--white); transform: translateX(3px); }
.ft-trust-badges { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.trust-b { font-size: .78rem; color: var(--white-30); display: flex; align-items: center; gap: .45rem; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--card-line); }
.ft-copy { font-size: .82rem; color: var(--white-30); margin: 0; }
.ft-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.ft-legal a { font-size: .82rem; color: var(--white-30); min-height: 32px; display: inline-flex; align-items: center; }
.ft-legal a:hover { color: var(--electric); }
@media (max-width: 960px) { .ft-main { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft-main { grid-template-columns: 1fr; gap: 1.75rem; } .ft-bottom { flex-direction: column; align-items: flex-start; } }

/* ── Floating buttons: never cover page controls ─────────── */
.whatsapp-btn { width: 52px; height: 52px; bottom: 1.25rem; right: 1.25rem; animation: none; }
@media (max-width: 640px) { body { padding-bottom: 0; } .whatsapp-btn { width: 48px; height: 48px; bottom: .9rem; right: .9rem; } }

/* ── Mobile rhythm ───────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: clamp(3rem, 10vw, 4rem) var(--gutter); }
  h2.headline { font-size: clamp(1.85rem, 7.5vw, 2.4rem); }
  .sv-header { gap: 1.25rem; }
  .sv-header .btn-outline { width: auto; }
  .page-hero, .page-hero-sm { padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) { .orb-ring.r1 { animation: none; } .nxc-pf-card2:hover, .sv-card:hover { transform: none; } }
[data-theme="light"] #hero.nx-hero .hvp-frame { box-shadow: 0 30px 80px rgba(20,30,80,.18); }
[data-theme="light"] .nl-card { background: linear-gradient(135deg, #EEF0FF, #E8F7FF); }
#hero.nx-hero .h1-line { line-height: 1.06; padding-bottom: .06em; }
#hero.nx-hero .h1-line:nth-child(2) .h1-word { animation-delay: .12s !important; }
#hero.nx-hero .h1-line:nth-child(3) .h1-word { animation-delay: .19s !important; }

/* Testimonials adapt to how many real testimonials are published */
@media (min-width: 769px) {
  .t-grid:has(> .t-card:only-child) { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .t-grid:has(> .t-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-grid:has(> .t-card:nth-child(2):last-child) .t-card.tall { grid-row: auto; }
}
/* Blog cards: same image height, consistent rhythm */
.blog-grid { gap: 1.1rem; }
.blog-card { border-radius: var(--r-lg); border-color: var(--card-line); background: var(--card-bg); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .bc-img-wrap, .blog-card .bc-img-placeholder { display: block; aspect-ratio: 16 / 9; height: auto; }
.blog-card .bc-img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .bc-body { flex: 1; display: flex; flex-direction: column; }
.blog-card .bc-excerpt, .blog-card .bc-excerpt p { font-size: .9rem; line-height: 1.65; color: var(--white-60); margin: 0 0 1rem; }
.blog-card .bc-read { margin-top: auto; }
/* Video controls sit bottom-left so the floating chat / WhatsApp buttons (bottom-right) never cover them */
#hero.nx-hero .hvp-controls { right: auto; left: 12px; }
/* Side reveal animations must not create sideways scrolling on phones */
main#main, #footer, .newsletter-section { overflow-x: clip; }
@media (max-width: 768px) { .sr-l:not(.in), .sr-r:not(.in) { transform: translateY(24px); } }

/* Phones: filter chips scroll sideways instead of stacking into many rows */
@media (max-width: 640px) {
  .nxc-pf-filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .4rem; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .nxc-pf-filters::-webkit-scrollbar { display: none; }
  .nxc-pf-filters .nxc-chip { flex: 0 0 auto; scroll-snap-align: start; }
  .sv-card { padding: 1.35rem 1.25rem; }
  .sv-num { display: none; }
}
.story-grid:not(:has(.story-stats)) { grid-template-columns: minmax(0, 820px); }

/* ═════════════════════════ 1.4.0 ═════════════════════════ */

/* ── Brand logo (image) ── */
.nav-logo.nx-logo-img { display: inline-flex; align-items: center; gap: 0; line-height: 0; letter-spacing: 0; flex-shrink: 0; }
.nav-logo.nx-logo-img img { display: block; height: var(--logo-h, 40px); width: auto; max-width: min(250px, 48vw); transition: filter .3s ease, transform .3s ease; }
.nav-logo.nx-logo-img:hover img, .nav-logo.nx-logo-img:focus-visible img { filter: drop-shadow(0 0 16px rgba(0,204,255,.35)); }
.nx-logo-light { display: none !important; }
[data-theme="light"] .nx-logo-light { display: block !important; }
[data-theme="light"] .nx-logo-dark { display: none !important; }
#footer .nav-logo.nx-logo-img img { height: calc(var(--logo-h, 40px) * 1.08); }
.pt-logo-img { height: 54px; width: auto; }
@media (max-width: 600px) { .nav-logo.nx-logo-img img { height: min(var(--logo-h, 40px), 32px); } }

/* ── Header ── */
#nav { --nav-glow: linear-gradient(90deg, transparent, rgba(0,204,255,.55) 30%, rgba(139,92,246,.55) 70%, transparent); }
#nav.sticky { background: color-mix(in srgb, var(--ink) 78%, transparent); }
#nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--nav-glow); opacity: 0; transition: opacity .4s; pointer-events: none; }
#nav.sticky::after { opacity: .8; }
@media (min-width: 1025px) {
  .nav-center .nav-links { padding: .3rem 1.5rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.025); }
  #nav.sticky .nav-center .nav-links { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.09); }
  [data-theme="light"] .nav-center .nav-links { background: rgba(10,20,60,.03); border-color: rgba(10,20,60,.08); }
  .nav-item a { padding: .55rem .15rem; }
}
.nav-item a::after { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--electric), var(--plasma)); bottom: 2px; }
.dropdown { backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
.dropdown li a:hover, .dropdown li a:focus-visible { background: linear-gradient(90deg, rgba(0,204,255,.10), rgba(139,92,246,.08)); }
#theme-btn { display: grid; place-items: center; color: var(--white-60); background: rgba(255,255,255,.03); }
#theme-btn svg { display: block; }
#theme-btn .ico-moon { display: none; }
[data-theme="light"] #theme-btn .ico-sun { display: none; }
[data-theme="light"] #theme-btn .ico-moon { display: block; }
.btn-nav-cta { padding: .75rem 1.3rem; border-radius: 12px; box-shadow: 0 8px 26px rgba(139,92,246,.28); }

/* ── Hero video player ── */
#hero.nx-hero .hvp-frame { isolation: isolate; }
#hero.nx-hero .hvp-frame::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(180deg, transparent, rgba(2,4,9,.72)); }
.hero-vpanel.is-started .hvp-frame::before { opacity: 1; }
.hvp-video { cursor: pointer; }
.hvp-start-ico::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(0,204,255,.45); animation: hvpPulse 2.4s ease-out infinite; }
@keyframes hvpPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
#hero.nx-hero .hvp-controls { left: 14px; right: auto; bottom: 22px; align-items: center; z-index: 3; transition: opacity .35s; }
.hvp-btn { width: 42px; height: 42px; transition: background .2s, border-color .2s, transform .2s; }
.hvp-btn:hover { transform: translateY(-1px); }
.hvp-btn:focus-visible, .hvp-soundhint:focus-visible, .hvp-seek:focus-visible { outline: 3px solid var(--electric, #00CCFF); outline-offset: 2px; }
.hvp-time { font: 600 .74rem/1 var(--font-mono, ui-monospace, monospace); color: rgba(255,255,255,.85); padding: .5rem .7rem; border-radius: 999px; background: rgba(2,4,9,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hvp-fs { position: absolute; top: 12px; right: 12px; z-index: 3; }
.hvp-fs[hidden], .hvp-soundhint[hidden], .hvp-progress[hidden] { display: none !important; }
.hvp-fs .ico-fs-off { display: none; }
.hero-vpanel.is-fs .hvp-fs .ico-fs-on { display: none; }
.hero-vpanel.is-fs .hvp-fs .ico-fs-off { display: block; }
.hvp-soundhint { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem .55rem .8rem; border-radius: 999px;
  border: 1px solid rgba(0,204,255,.45); background: rgba(2,4,9,.7); color: #fff; font: 700 .74rem/1 var(--font-body, system-ui); letter-spacing: .04em; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 24px rgba(0,204,255,.25); animation: fadeSlideUp .5s ease both; }
.hvp-soundhint:hover { background: rgba(2,4,9,.88); border-color: var(--electric, #00CCFF); }
.hvp-progress { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 14px; z-index: 3; --p: 0%; transition: opacity .35s; }
.hvp-progress::before, .hvp-progress::after { content: ""; position: absolute; left: 0; top: 5px; height: 4px; border-radius: 4px; pointer-events: none; }
.hvp-progress::before { right: 0; background: rgba(255,255,255,.22); }
.hvp-progress::after { width: var(--p); background: linear-gradient(90deg, var(--electric, #00CCFF), var(--plasma, #8B5CF6)); box-shadow: 0 0 10px rgba(0,204,255,.5); }
.hvp-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.hvp-progress:hover::before, .hvp-progress:hover::after, .hvp-progress:focus-within::before, .hvp-progress:focus-within::after { top: 4px; height: 6px; }
.hvp-progress:focus-within { opacity: 1; }
/* Auto-hide while playing (mouse still) */
.hero-vpanel.is-idle .hvp-controls, .hero-vpanel.is-idle .hvp-progress, .hero-vpanel.is-idle .hvp-fs, .hero-vpanel.is-idle .hvp-frame::before { opacity: 0; }
.hero-vpanel.is-idle .hvp-video { cursor: none; }
/* Full screen */
.hvp-frame:fullscreen { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; background: #000; width: 100vw; height: 100vh; aspect-ratio: auto; }
.hvp-frame:-webkit-full-screen { border-radius: 0 !important; border: 0 !important; background: #000; width: 100vw; height: 100vh; aspect-ratio: auto; }
.hvp-frame:fullscreen .hvp-video, .hvp-frame:fullscreen iframe { object-fit: contain; }
.hvp-frame:-webkit-full-screen .hvp-video { object-fit: contain; }
.hero-vpanel.is-fs .hvp-controls { left: 24px !important; bottom: 34px !important; }
.hero-vpanel.is-fs .hvp-progress { left: 24px; right: 24px; bottom: 14px; }
.hero-vpanel.is-fs .hvp-fs { top: 20px; right: 20px; }
.hero-vpanel.is-fs .hvp-soundhint { display: none !important; }
@media (max-width: 600px) {
  .hvp-btn { width: 40px; height: 40px; }
  .hvp-time { display: none; }
  .hvp-soundhint { font-size: .7rem; padding: .5rem .8rem .5rem .7rem; }
}
@media (prefers-reduced-motion: reduce) { .hvp-start-ico::before { animation: none; } }

/* ── Buy buttons ── */
.sb-consult { margin-top: .65rem; min-height: 46px; font-size: .74rem; width: 100%; }
.sb-buy-note { margin: .85rem 0 0; font-size: .76rem; line-height: 1.5; color: var(--white-60); text-align: center; }
.sb-buy-note span { color: var(--electric); margin-right: .25rem; }
.nx-woo-price { line-height: 1.15; }
.nx-woo-price del { opacity: .5; font-size: .62em; margin-right: .35rem; }
.nx-woo-price ins { text-decoration: none; }
.nx-woo-price .woocommerce-price-suffix, .nx-woo-price small { font-size: .5em; opacity: .7; }
.nx-btn-block { display: flex; width: 100%; justify-content: center; text-align: center; }
@media (min-width: 1201px) {
  .px-grid { grid-template-columns: repeat(var(--px-n, 3), minmax(0, 1fr)); }
  .px-grid[style*="--px-n:2"] { max-width: 820px; margin-left: auto; margin-right: auto; }
  .px-grid[style*="--px-n:1"] { max-width: 420px; margin-left: auto; margin-right: auto; }
}
