/* ==========================================================================
   NEXYRRA — Design System
   Palette: Void Black / Electric Violet / Cyan / Champagne Gold
   ========================================================================== */

:root{
  /* Surfaces */
  --void:        #030308;
  --bg-deep:      #06060d;
  --bg-base:      #0a0a15;
  --bg-surface:   #10101d;
  --bg-elevated:  #16162a;
  --border-glass: rgba(255,255,255,0.08);
  --border-glass-2: rgba(255,255,255,0.14);

  /* Brand */
  --violet:       #8B5CF6;
  --violet-2:     #A78BFA;
  --violet-dim:   #4C2E8F;
  --cyan:         #22D3EE;
  --cyan-2:       #5EEAD4;
  --magenta:      #F0327A;
  --gold:         #D4AF37;
  --gold-2:       #F4D9A0;

  /* Text */
  --text-1: #F6F6FB;
  --text-2: #ABAFC7;
  --text-3: #6E7290;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--violet) 0%, var(--cyan-2) 55%, var(--cyan) 100%);
  --grad-primary-h: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-gold: linear-gradient(135deg, #F4D9A0 0%, var(--gold) 55%, #9C7A1E 100%);
  --grad-radial: radial-gradient(60% 60% at 50% 40%, rgba(139,92,246,0.35), transparent 70%);

  /* Type */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--void);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
p{ margin:0 0 1em; color: var(--text-2); }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
img,svg{ display:block; max-width:100%; }
button{ font-family: inherit; cursor:pointer; }

::selection{ background: var(--violet); color:#fff; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--void); }
::-webkit-scrollbar-thumb{ background: var(--bg-elevated); border-radius:10px; border:2px solid var(--void); }

/* ---------- Layout helpers ---------- */
.container{
  width:100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section{ position:relative; padding: 120px 0; }
.section--tight{ padding: 80px 0; }
.section--first{ padding-top: 180px; }
.text-center{ text-align:center; }
.grad-text{
  background: var(--grad-primary-h);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.grad-gold-text{
  background: var(--grad-gold);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.75rem;
  font-weight:600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-2);
  padding: 6px 14px;
  border:1px solid var(--border-glass-2);
  border-radius: 100px;
  background: rgba(139,92,246,0.08);
  margin-bottom: 20px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background: var(--grad-primary-h);
  box-shadow: 0 0 12px var(--cyan);
}
.section-head{ max-width: 720px; margin: 0 auto 64px; text-align:center; }
.section-head h2{ font-size: clamp(2rem, 3.4vw, 3rem); }
.section-head p{ font-size: 1.05rem; }

/* ---------- Background fx ---------- */
#bg-canvas{
  position: fixed; inset:0;
  width:100%; height:100%;
  z-index:0;
  pointer-events:none;
  opacity:.6;
}
.noise-overlay{
  position: fixed; inset:0; z-index:1; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.glow-orb{
  position:absolute; border-radius:50%;
  filter: blur(90px);
  pointer-events:none;
  z-index:0;
}

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight:600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--grad-primary-h);
  color:#050308;
  box-shadow: 0 8px 30px -8px rgba(139,92,246,.6);
}
.btn-primary:hover{ box-shadow: 0 12px 40px -6px rgba(34,211,238,.55); }
.btn-ghost{
  background: rgba(255,255,255,0.03);
  border-color: var(--border-glass-2);
  color: var(--text-1);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.07); border-color: var(--cyan); }
.btn-gold{
  background: var(--grad-gold);
  color:#241a02;
  box-shadow: 0 8px 30px -10px rgba(212,175,55,.55);
}
.btn-block{ width:100%; }
.btn-sm{ padding: 10px 20px; font-size:.85rem; }

/* ---------- Nav ---------- */
.nav{
  position: fixed; top:0; left:0; right:0; z-index:100;
  padding: 20px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 12px 0;
  background: rgba(6,6,13,0.75);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-glass);
}
.nav .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:12px; font-family: var(--font-display); }
.brand svg{ width:46px; height:46px; }
.brand span{
  font-size: 1.3rem; font-weight:700; letter-spacing:.02em;
  background: var(--grad-primary-h);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:.92rem; font-weight:500; color: var(--text-2);
  position:relative; padding: 4px 0;
  transition: color .25s;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--grad-primary-h); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--text-1); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; background:none; border:none; color:var(--text-1);
  width:40px; height:40px; align-items:center; justify-content:center;
}
.nav-toggle svg{ width:24px; height:24px; }

.mobile-menu{
  position: fixed; inset: 0; z-index:99;
  background: rgba(6,6,13,0.98);
  backdrop-filter: blur(20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open{ transform: translateY(0); }
.mobile-menu a{ font-size: 1.6rem; font-family: var(--font-display); font-weight:600; }
.mobile-menu .btn{ margin-top:12px; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: 140px;
  overflow:hidden;
}
.hero-inner{ position:relative; z-index:2; text-align:center; max-width: 980px; margin:0 auto; }
.hero h1{
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  margin-bottom: 24px;
}
.hero p.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 640px; margin: 0 auto 40px;
  color: var(--text-2);
}
.hero-actions{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom: 60px; }
.hero-badges{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }
.pill-badge{
  display:flex; align-items:center; gap:8px;
  font-size:.8rem; color: var(--text-2);
  border: 1px solid var(--border-glass); border-radius:100px;
  padding: 8px 16px; background: rgba(255,255,255,.02);
  backdrop-filter: blur(6px);
}
.pill-badge b{ color: var(--text-1); }
.pill-dot{ width:7px; height:7px; border-radius:50%; background: var(--cyan-2); box-shadow:0 0 10px var(--cyan-2); }

/* ---------- Marquee ---------- */
.marquee{ position:relative; overflow:hidden; padding: 40px 0; border-top:1px solid var(--border-glass); border-bottom:1px solid var(--border-glass); }
.marquee-track{ display:flex; width:max-content; gap:64px; animation: scroll-left 32s linear infinite; }
.marquee span{ font-family: var(--font-display); font-size:1.4rem; color: var(--text-3); white-space:nowrap; font-weight:600; letter-spacing:.02em; }
@keyframes scroll-left{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------- Stats ---------- */
.stats-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.stat-card{
  text-align:center; padding: 36px 20px;
  border:1px solid var(--border-glass); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}
.stat-num{
  font-family: var(--font-display); font-size: clamp(2rem,3.4vw,2.6rem); font-weight:700;
  background: var(--grad-primary-h); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{ font-size:.85rem; color: var(--text-2); margin-top:6px; }

/* ---------- Cards / Grid ---------- */
.grid{ display:grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }

.card{
  position:relative;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--border-glass);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
  overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px;
  background: var(--grad-primary-h);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:0; transition: opacity .45s var(--ease);
}
.card:hover{ transform: translateY(-6px); border-color: transparent; background: linear-gradient(180deg, rgba(139,92,246,.08), rgba(34,211,238,.02)); }
.card:hover::before{ opacity:1; }
.card-icon{
  width:52px; height:52px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(139,92,246,.12); border:1px solid var(--border-glass-2);
  margin-bottom: 22px;
}
.card-icon svg{ width:24px; height:24px; stroke: var(--cyan-2); }
.card h3{ font-size: 1.25rem; margin-bottom:10px; }
.card p{ font-size:.94rem; margin-bottom: 0; }
.card-link{ display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-size:.86rem; font-weight:600; color: var(--cyan-2); }
.card ul.feat-list{ margin-top:18px; }
.card ul.feat-list li{ display:flex; gap:10px; font-size:.88rem; color: var(--text-2); padding: 5px 0; }
.card ul.feat-list li::before{ content:"✓"; color: var(--cyan-2); font-weight:700; }

.card-lux{ border-color: rgba(212,175,55,.35); }
.card-lux .card-icon{ background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.4); }
.card-lux .card-icon svg{ stroke: var(--gold); }

/* ---------- Product mockup panel ---------- */
.mockup{
  position:relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass-2);
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-base));
  padding: 20px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
}
.mockup-bar{ display:flex; gap:8px; margin-bottom:18px; padding: 0 4px;}
.mockup-bar span{ width:11px; height:11px; border-radius:50%; background: var(--bg-elevated); }
.mockup-bar span:nth-child(1){ background:#F0327A; }
.mockup-bar span:nth-child(2){ background:#D4AF37; }
.mockup-bar span:nth-child(3){ background:#22D3EE; }
.mockup-body{ border-radius: var(--radius-md); background: var(--bg-deep); border:1px solid var(--border-glass); padding:24px; }
.mockup-row{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; border-bottom:1px solid var(--border-glass); }
.mockup-row:last-child{ border-bottom:none; }
.mockup-chip{ font-size:.72rem; padding:4px 10px; border-radius:100px; background: rgba(94,234,212,.12); color: var(--cyan-2); font-weight:600; }
.mockup-bars{ display:flex; align-items:flex-end; gap:8px; height:120px; margin-top:10px; }
.mockup-bars i{ flex:1; border-radius: 6px 6px 0 0; background: var(--grad-primary); opacity:.85; }

/* ---------- Process timeline ---------- */
.timeline{ display:grid; grid-template-columns: repeat(5,1fr); gap:20px; position:relative; }
.timeline::before{
  content:""; position:absolute; top:26px; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-2), transparent);
}
.timeline-step{ position:relative; text-align:center; padding-top: 70px; }
.timeline-num{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700;
  background: var(--bg-surface); border:1px solid var(--border-glass-2);
  color: var(--cyan-2);
}
.timeline-step h4{ font-size:1.05rem; margin-bottom:8px; }
.timeline-step p{ font-size:.86rem; }

/* ---------- Testimonials ---------- */
.testi-track{ display:flex; overflow:hidden; }
.testi-slide{ min-width:100%; transition: transform .6s var(--ease); }
.testi-card{ max-width: 720px; margin:0 auto; text-align:center; padding: 20px; }
.testi-card p{ font-size: 1.35rem; color: var(--text-1); font-family: var(--font-display); font-weight:500; line-height:1.5; }
.testi-author{ margin-top: 24px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.testi-avatar{ width:52px; height:52px; border-radius:50%; background: var(--grad-primary-h); margin-bottom:10px; }
.testi-name{ font-weight:600; }
.testi-role{ font-size:.82rem; color: var(--text-3); }
.testi-dots{ display:flex; justify-content:center; gap:10px; margin-top: 36px; }
.testi-dots button{ width:9px; height:9px; border-radius:50%; background: var(--bg-elevated); border:none; transition: background .3s, width .3s; }
.testi-dots button.active{ background: var(--grad-primary-h); width:26px; border-radius:6px; }

/* ---------- Pricing ---------- */
.pricing-toggle{ display:flex; justify-content:center; align-items:center; gap:14px; margin-bottom:50px; }
.switch{ width:52px; height:28px; border-radius:100px; background: var(--bg-elevated); border:1px solid var(--border-glass-2); position:relative; }
.switch i{ position:absolute; top:2px; left:2px; width:22px; height:22px; border-radius:50%; background: var(--grad-primary-h); transition: transform .3s var(--ease); }
.switch.on i{ transform: translateX(24px); }

.price-card{ display:flex; flex-direction:column; }
.price-card.featured{ border-color: var(--violet); background: linear-gradient(180deg, rgba(139,92,246,.14), rgba(34,211,238,.03)); transform: scale(1.03); }
.price-tag{ font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--gold); margin-bottom: 6px; }
.price-amount{ font-family: var(--font-display); font-size: 2.6rem; font-weight:700; margin: 12px 0 4px; }
.price-amount span{ font-size:1rem; color: var(--text-3); font-weight:500; }
.price-card .feat-list{ margin: 24px 0; flex:1; }
.price-card .btn{ margin-top: auto; }
.badge-pop{ position:absolute; top:-14px; left:50%; transform:translateX(-50%); background: var(--grad-gold); color:#241a02; font-size:.72rem; font-weight:700; padding:6px 16px; border-radius:100px; }

.compare-table{ width:100%; border-collapse:collapse; margin-top:80px; }
.compare-table th, .compare-table td{ padding: 16px 18px; text-align:center; border-bottom:1px solid var(--border-glass); font-size:.9rem; }
.compare-table th:first-child, .compare-table td:first-child{ text-align:left; color: var(--text-2); }
.compare-table th{ font-family: var(--font-display); color: var(--text-1); }
.compare-table td.yes{ color: var(--cyan-2); font-weight:700; }
.compare-table td.no{ color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom: 1px solid var(--border-glass); padding: 22px 0; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family: var(--font-display); font-weight:600; font-size:1.05rem; }
.faq-q svg{ width:20px; height:20px; transition: transform .35s var(--ease); flex-shrink:0; }
.faq-item.open .faq-q svg{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a{ max-height: 300px; }
.faq-a p{ padding-top:14px; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:.82rem; color: var(--text-2); font-weight:600; }
.field input, .field select, .field textarea{
  background: var(--bg-surface); border:1px solid var(--border-glass-2); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text-1); font-family: inherit; font-size:.95rem;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--cyan); }
.field textarea{ resize: vertical; min-height:120px; }

/* ---------- Footer ---------- */
.footer{ padding: 80px 0 30px; border-top:1px solid var(--border-glass); position:relative; }
.footer-top{ display:grid; grid-template-columns: 1.4fr repeat(4,1fr); gap:40px; margin-bottom:60px; }
.footer-brand p{ font-size:.9rem; max-width:280px; }
.footer-col h5{ font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; color: var(--text-3); margin-bottom:18px; }
.footer-col a{ display:block; font-size:.9rem; color: var(--text-2); padding: 6px 0; transition: color .25s; }
.footer-col a:hover{ color: var(--cyan-2); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--border-glass); font-size:.82rem; color: var(--text-3); flex-wrap:wrap; gap:14px; }
.social-row{ display:flex; gap:12px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border-glass-2); display:flex; align-items:center; justify-content:center; transition: border-color .3s, color .3s; }
.social-row a:hover{ border-color: var(--cyan); color: var(--cyan-2); }
.social-row svg{ width:16px; height:16px; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .1s; }
.reveal-delay-2{ transition-delay: .2s; }
.reveal-delay-3{ transition-delay: .3s; }

/* ---------- Page header (inner pages) ---------- */
.page-hero{ padding: 180px 0 90px; text-align:center; position:relative; }
.page-hero h1{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero p{ max-width:640px; margin:0 auto; font-size:1.05rem; }

/* ---------- CTA banner ---------- */
.cta-banner{
  position:relative; border-radius: var(--radius-xl); padding: 70px 50px; text-align:center; overflow:hidden;
  border:1px solid var(--border-glass-2);
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(34,211,238,.08));
}
.cta-banner h2{ font-size: clamp(1.8rem,3.4vw,2.6rem); max-width:640px; margin:0 auto 16px; }
.cta-banner p{ max-width:520px; margin:0 auto 32px; }
.cta-actions{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

/* ---------- Architecture diagram ---------- */
.arch-diagram{ border:1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 40px; background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.arch-row{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom: 20px; }
.arch-node{ padding: 14px 20px; border-radius: 12px; border:1px solid var(--border-glass-2); background: var(--bg-surface); font-size:.85rem; font-weight:600; color: var(--text-1); }
.arch-node.accent{ border-color: var(--cyan); color: var(--cyan-2); }
.arch-connector{ text-align:center; color: var(--text-3); font-size:1.4rem; margin: -4px 0 4px; }

/* ---------- Utilities ---------- */
.mt-0{ margin-top:0 !important; }
.mb-0{ margin-bottom:0 !important; }
.flex{ display:flex; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-3{ gap:12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .grid-4{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: repeat(2,1fr); }
  .timeline{ grid-template-columns: 1fr; }
  .timeline::before{ display:none; }
  .timeline-step{ padding-top: 0; padding-left: 74px; text-align:left; min-height:60px; }
  .timeline-num{ left:0; top:0; transform:none; }
  .form-grid{ grid-template-columns: 1fr; }
  .price-card.featured{ transform:none; }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: 1fr; gap:32px; }
  .section{ padding: 80px 0; }
  .hero{ padding-top: 120px; }
  .compare-table{ font-size:.8rem; }
}

/* ==========================================================================
   Creative layer — additive polish, does not alter existing rules above
   ========================================================================== */

/* Scroll progress bar */
.nx-progress{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: var(--grad-primary-h);
  box-shadow: 0 0 12px rgba(34,211,238,.7);
  z-index: 300;
  transition: width .08s linear;
}

/* Custom cursor (desktop / fine pointers only, injected via JS) */
.nx-cursor, .nx-cursor-ring{
  position: fixed; top:0; left:0; pointer-events:none; z-index: 299;
  will-change: transform;
}
.nx-cursor{
  width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%;
  background: var(--cyan-2);
  box-shadow: 0 0 16px 4px rgba(34,211,238,.55);
}
.nx-cursor-ring{
  width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%;
  border:1px solid rgba(139,92,246,.55);
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.nx-cursor-ring--active{
  width:56px; height:56px; margin:-28px 0 0 -28px;
  border-color: var(--cyan);
  background: rgba(139,92,246,.08);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce){
  .nx-cursor, .nx-cursor-ring{ display:none; }
}

/* Shimmering gradient text */
.grad-text, .grad-gold-text{
  background-size: 200% auto;
  animation: nx-shimmer 6s ease-in-out infinite;
}
@keyframes nx-shimmer{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* Living background orbs */
.glow-orb{ animation: nx-drift 14s ease-in-out infinite; }
.glow-orb:nth-child(odd){ animation-duration: 18s; animation-direction: alternate; }
@keyframes nx-drift{
  0%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(24px,-18px) scale(1.05); }
  66%{ transform: translate(-18px,14px) scale(0.97); }
  100%{ transform: translate(0,0) scale(1); }
}

/* Floating card icons */
.card-icon{ animation: nx-bob 5s ease-in-out infinite; }
.card:nth-child(2n) .card-icon{ animation-delay: .6s; }
.card:nth-child(3n) .card-icon{ animation-delay: 1.2s; }
@keyframes nx-bob{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-5px); }
}

/* Tilt + glare (JS sets --glare-x/--glare-y and transform on mousemove) */
.card, .mockup{ transition: transform .35s var(--ease), border-color .45s var(--ease), background .45s var(--ease); }
.card::after, .mockup::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: radial-gradient(circle at var(--glare-x,50%) var(--glare-y,50%), rgba(255,255,255,.10), transparent 55%);
  opacity:0; transition: opacity .3s var(--ease);
}
.card:hover::after, .mockup:hover::after{ opacity:1; }

/* Rotating gradient halo on the featured pricing card */
.price-card.featured{ position:relative; z-index:0; }
.price-card.featured::after{
  content:""; position:absolute; inset:-2px; border-radius: inherit; z-index:-1;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--gold), var(--violet));
  filter: blur(14px); opacity:.55;
  animation: nx-spin 6s linear infinite;
}
@keyframes nx-spin{ to{ transform: rotate(360deg); } }

/* Magnetic buttons (JS-driven transform, CSS just smooths release) */
.btn-primary, .btn-gold{ transition: transform .25s var(--ease), box-shadow .35s var(--ease); }

/* Click burst particles */
.nx-burst{
  position: fixed; top:0; left:0; width:6px; height:6px; border-radius:50%;
  background: var(--grad-primary-h);
  pointer-events:none; z-index: 298;
  animation: nx-burst-fly .7s ease-out forwards;
}
@keyframes nx-burst-fly{
  0%{ transform: translate(0,0) scale(1); opacity:1; }
  100%{ transform: translate(var(--dx), var(--dy)) scale(0); opacity:0; }
}

/* Split-word hero reveal */
.split-word{
  display:inline-block;
  opacity:0; transform: translateY(.4em);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.split-word.in{ opacity:1; transform: translateY(0); }

/* AI live status ticker (hero) */
.ai-ticker{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-display); font-size:.85rem; color: var(--cyan-2);
  margin-top: -20px; margin-bottom: 40px;
}
.ai-ticker-cursor{ animation: nx-blink 1s step-end infinite; color: var(--gold); }
@keyframes nx-blink{ 0%,100%{ opacity:1; } 50%{ opacity:0; } }

/* ==========================================================================
   Case Studies — sector tags, city badges, mini project cards, chat mockup
   ========================================================================== */

.case-note{
  max-width: 720px; margin: 0 auto 56px; text-align:center;
  font-size: .88rem; color: var(--text-3); padding: 14px 20px;
  border: 1px dashed var(--border-glass-2); border-radius: var(--radius-md);
  background: rgba(255,255,255,.02);
}

.sector-tag{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color: var(--gold); background: rgba(212,175,55,.1); border:1px solid rgba(212,175,55,.3);
  padding: 5px 12px; border-radius:100px; margin-bottom:14px;
}
.city-badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.72rem; font-weight:600; color: var(--cyan-2);
  background: rgba(34,211,238,.08); border:1px solid var(--border-glass-2);
  padding: 4px 11px; border-radius:100px;
}
.city-badge::before{ content:"📍"; font-size:.7rem; }

.metric-row{ display:flex; gap:26px; flex-wrap:wrap; margin: 20px 0 26px; }
.metric-row .metric{ display:flex; flex-direction:column; }
.metric-row .metric b{ font-family: var(--font-display); font-size:1.5rem; color: var(--text-1); }
.metric-row .metric span{ font-size:.76rem; color: var(--text-3); }

/* Mini case cards — used for the 5-emirate property management grid */
.mini-case{
  padding: 26px; border-radius: var(--radius-md);
  border:1px solid var(--border-glass); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.mini-case:hover{ transform: translateY(-4px); border-color: var(--border-glass-2); }
.mini-case .city-badge{ margin-bottom:14px; }
.mini-case h4{ font-size:1.05rem; margin-bottom:6px; }
.mini-case p{ font-size:.85rem; margin-bottom:14px; }
.mini-case .mini-metric{ font-size:.8rem; color: var(--cyan-2); font-weight:700; }

/* Chat / WhatsApp-style mockup */
.chat-mockup{
  position:relative; border-radius: var(--radius-xl);
  border:1px solid var(--border-glass-2);
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-base));
  padding: 20px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
}
.chat-thread{ display:flex; flex-direction:column; gap:12px; padding: 6px 4px; }
.chat-bubble{
  max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size:.86rem; line-height:1.45;
  color: var(--text-1); background: var(--bg-elevated); border:1px solid var(--border-glass);
}
.chat-bubble.in{ align-self:flex-start; border-bottom-left-radius:4px; }
.chat-bubble.out{
  align-self:flex-end; border-bottom-right-radius:4px; color:#04140f;
  background: var(--grad-primary-h); border:none;
}
.chat-meta{ font-size:.68rem; color: var(--text-3); margin-top:4px; }

/* Case study feature block spacing helper */
.case-block + .case-block{ margin-top: 100px; }

@media (max-width: 980px){
  .metric-row{ gap:18px; }
}

@media (prefers-reduced-motion: reduce){
  .grad-text, .grad-gold-text, .glow-orb, .card-icon, .price-card.featured::after{ animation: none !important; }
}

/* ==========================================================================
   Signature layer — logo stretch, liquid nav, live odometer, status badge,
   architecture pulse, ROI calculator. All additive; nothing above is altered.
   ========================================================================== */

/* Elastic logo (JS drives transform on scroll velocity) */
.nav .brand svg{ transform-origin: 50% 50%; will-change: transform; }

/* Liquid nav indicator */
.nav-links{ position: relative; }
.nav-liquid{
  position:absolute; bottom:-1px; height:2px; left:0; width:0; border-radius:2px;
  background: var(--grad-primary-h);
  box-shadow: 0 0 10px rgba(34,211,238,.7);
  transition: transform .4s var(--ease), width .4s var(--ease), opacity .3s;
  opacity:0; pointer-events:none;
}
.nav-liquid.is-visible{ opacity:1; }

/* Floating live status badge */
.nx-status{
  position: fixed; left:20px; bottom:20px; z-index:150;
  display:flex; align-items:center; gap:8px;
  padding: 9px 16px 9px 12px; border-radius:100px;
  background: rgba(10,10,21,.75); backdrop-filter: blur(12px);
  border:1px solid var(--border-glass-2);
  font-size:.76rem; color: var(--text-2);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6);
  transform: translateY(80px); opacity:0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.nx-status.is-shown{ transform: translateY(0); opacity:1; }
.nx-status-dot{
  width:8px; height:8px; border-radius:50%; background:#3ee08a;
  box-shadow: 0 0 8px #3ee08a; animation: nx-pulse-dot 1.8s ease-in-out infinite;
  flex-shrink:0;
}
.nx-status b{ color: var(--text-1); }
@keyframes nx-pulse-dot{ 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.55; transform:scale(.8); } }
@media (max-width: 640px){ .nx-status{ left:12px; bottom:12px; font-size:.68rem; padding:7px 12px 7px 10px; } }

/* Architecture "signal flowing through the stack" pulse (technology.html) */
.arch-node.accent{ animation: nx-node-pulse 3.6s ease-in-out infinite; }
.arch-row:nth-of-type(1) .arch-node.accent{ animation-delay: 0s; }
.arch-row .arch-node.accent{ animation-delay: .6s; }
@keyframes nx-node-pulse{
  0%,100%{ box-shadow: 0 0 0 rgba(34,211,238,0); border-color: var(--border-glass-2); }
  50%{ box-shadow: 0 0 22px rgba(34,211,238,.45); border-color: var(--cyan); }
}

/* Marquees pause politely when you hover to actually read them */
.marquee:hover .marquee-track{ animation-play-state: paused; }

/* Live rolling odometer digits */
.nx-odometer{ display:inline-flex; align-items:baseline; font-family: var(--font-display); font-weight:700; }
.nx-odo-digit{ display:inline-block; height:1.05em; width:.62em; overflow:hidden; position:relative; }
.nx-odo-strip{ display:flex; flex-direction:column; transition: transform 1.1s cubic-bezier(.16,.84,.44,1); }
.nx-odo-strip span{ height:1.05em; line-height:1.05; display:flex; align-items:center; justify-content:center; }
.nx-odo-static{ display:inline-block; }

.live-strip{
  border:1px solid var(--border-glass); border-radius: var(--radius-lg);
  padding: 36px 30px; display:flex; justify-content:space-around; flex-wrap:wrap; gap:24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}
.live-stat{ text-align:center; min-width:160px; }
.live-stat .nx-odometer{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); background: var(--grad-primary-h); -webkit-background-clip:text; background-clip:text; color:transparent; }
.live-stat span.live-label{ display:block; margin-top:8px; font-size:.78rem; color: var(--text-3); }
.live-stat .live-dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background:#3ee08a; box-shadow:0 0 8px #3ee08a; margin-right:6px; animation: nx-pulse-dot 1.8s ease-in-out infinite; }

/* ROI calculator */
.roi-card{ padding: 44px; border-radius: var(--radius-xl); border:1px solid var(--border-glass-2); background: linear-gradient(160deg, rgba(139,92,246,.08), rgba(34,211,238,.02)); }
.roi-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:center; }
.roi-field{ margin-bottom:22px; }
.roi-field label{ display:flex; justify-content:space-between; font-size:.85rem; color: var(--text-2); margin-bottom:10px; font-weight:600; }
.roi-field label span{ color: var(--cyan-2); font-weight:700; }
.roi-field input[type="range"]{
  width:100%; -webkit-appearance:none; appearance:none; height:5px; border-radius:100px;
  background: var(--bg-elevated); outline:none;
}
.roi-field input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:18px; height:18px; border-radius:50%;
  background: var(--grad-primary-h); cursor:pointer; box-shadow: 0 0 10px rgba(139,92,246,.7);
  border: 2px solid #0a0a15;
}
.roi-field input[type="range"]::-moz-range-thumb{
  width:18px; height:18px; border-radius:50%; background: var(--grad-primary-h); cursor:pointer; border: 2px solid #0a0a15;
}
.roi-output{ display:flex; flex-direction:column; gap:22px; }
.roi-out-item{ padding:22px 26px; border-radius: var(--radius-md); background: var(--bg-surface); border:1px solid var(--border-glass); }
.roi-out-item .roi-num{ font-family: var(--font-display); font-size: 2.1rem; font-weight:700; background: var(--grad-primary-h); -webkit-background-clip:text; background-clip:text; color:transparent; }
.roi-out-item .roi-label{ font-size:.8rem; color: var(--text-3); margin-top:4px; }

@media (max-width: 980px){
  .roi-grid{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .nx-status-dot, .live-dot, .arch-node.accent{ animation: none !important; }
}

/* ==========================================================================
   Contact — floating Call/WhatsApp FAB, nav chip, mobile menu row
   ========================================================================== */

.nx-contact-fab{
  position: fixed; right:20px; bottom:20px; z-index:150;
  display:flex; flex-direction:column; gap:12px; align-items:flex-end;
  transform: translateY(90px) scale(.8); opacity:0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.nx-contact-fab.is-shown{ transform: translateY(0) scale(1); opacity:1; }
.nx-fab-btn{
  position:relative;
  width:52px; height:52px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.65);
  border:1px solid var(--border-glass-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor:pointer;
}
.nx-fab-btn:hover{ transform: translateY(-4px) scale(1.06); }
.nx-fab-btn svg{ width:24px; height:24px; }
.nx-fab-whatsapp{ background: linear-gradient(135deg,#25D366,#128C7E); color:#fff; }
.nx-fab-whatsapp::after{
  content:""; position:absolute; inset:-4px; border-radius:50%;
  border:2px solid rgba(37,211,102,.5);
  animation: nx-fab-ring 2.4s ease-out infinite;
}
@keyframes nx-fab-ring{
  0%{ transform:scale(.9); opacity:.9; }
  100%{ transform:scale(1.5); opacity:0; }
}
.nx-fab-call{ background: var(--grad-primary-h); color:#04140f; }
.nx-fab-tooltip{
  position:absolute; right:64px; top:50%; transform: translateY(-50%) translateX(6px);
  background: rgba(10,10,21,.92); border:1px solid var(--border-glass-2);
  padding:7px 14px; border-radius:8px; font-size:.78rem; color: var(--text-1);
  white-space:nowrap; opacity:0; pointer-events:none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nx-fab-btn:hover .nx-fab-tooltip{ opacity:1; transform: translateY(-50%) translateX(0); }
@media (max-width: 640px){
  .nx-contact-fab{ right:12px; bottom:12px; gap:10px; }
  .nx-fab-btn{ width:46px; height:46px; }
  .nx-fab-tooltip{ display:none; }
}

/* Nav WhatsApp / phone chip (desktop only — avoids crowding tablet/mobile nav) */
.nav-contact-chip{
  display:flex; align-items:center; gap:8px;
  font-size:.85rem; font-weight:600; color: var(--text-1);
  padding: 9px 16px; border-radius:100px;
  border:1px solid var(--border-glass-2);
  background: rgba(37,211,102,.08);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.nav-contact-chip:hover{ border-color:#25D366; background: rgba(37,211,102,.14); transform: translateY(-2px); }
.nav-contact-chip svg{ width:16px; height:16px; color:#25D366; flex-shrink:0; }
@media (max-width: 1150px){ .nav-contact-chip{ display:none; } }

/* Mobile menu contact row */
.mobile-contact-row{ display:flex; gap:14px; }
.mobile-contact-row a{
  display:flex; align-items:center; gap:8px;
  font-size: 1rem !important; font-weight:600 !important;
  padding:12px 20px; border-radius:100px; border:1px solid var(--border-glass-2);
}
.mobile-contact-row a svg{ width:18px; height:18px; }
.mobile-contact-row .mc-whatsapp{ color:#25D366 !important; border-color: rgba(37,211,102,.4); }
.mobile-contact-row .mc-call{ color: var(--cyan-2) !important; border-color: var(--border-glass-2); }

/* ==========================================================================
   Signature layer v2 — 3D hero orb, live AI demo, bento grid, decode text,
   architecture build-in, and small structural fixes. All additive.
   ========================================================================== */

/* Anchor links shouldn't hide under the fixed nav */
[id]{ scroll-margin-top: 100px; }

/* Progressive-enhancement smooth page transitions (Chromium; no-op elsewhere) */
@view-transition{ navigation: auto; }

/* 3D hero canvas */
#hero-3d-canvas{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  width:100%; height:100%;
}

/* Scroll cue */
.scroll-cue{
  position:absolute; left:50%; bottom:32px; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid var(--border-glass-2); border-radius:100px;
  display:flex; justify-content:center; padding-top:8px; z-index:2;
}
.scroll-cue span{ width:4px; height:8px; border-radius:2px; background:var(--cyan-2); animation: nx-scroll-cue 1.8s ease-in-out infinite; }
@keyframes nx-scroll-cue{
  0%{ transform:translateY(0); opacity:1; }
  70%{ transform:translateY(14px); opacity:0; }
  100%{ opacity:0; }
}
@media (max-width: 768px){ .scroll-cue{ display:none; } }

/* Live AI demo box */
.ai-demo{
  border-radius: var(--radius-xl); border:1px solid var(--border-glass-2);
  background: linear-gradient(160deg, var(--bg-surface), var(--bg-base));
  padding: 24px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.7);
}
.ai-demo-label{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color: var(--text-3); margin-bottom:16px;
}
.ai-demo-label .live-dot{ margin-right:2px; }
.ai-demo-thread{ min-height:180px; display:flex; flex-direction:column; gap:12px; padding: 4px 2px 16px; }
.ai-demo-prompts{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.ai-demo-chip{
  font-size:.8rem; padding:8px 14px; border-radius:100px; border:1px solid var(--border-glass-2);
  color: var(--text-2); background: rgba(255,255,255,.02); cursor:pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.ai-demo-chip:hover{ border-color: var(--cyan); color: var(--text-1); background: rgba(34,211,238,.08); }
.ai-demo-form{ display:flex; gap:10px; }
.ai-demo-form input{
  flex:1; background: var(--bg-elevated); border:1px solid var(--border-glass-2); border-radius:100px;
  padding: 12px 18px; color: var(--text-1); font-family:inherit; font-size:.9rem;
}
.ai-demo-form input:focus{ outline:none; border-color: var(--cyan); }
.ai-demo-form button{
  border-radius:100px; padding:12px 22px; font-weight:600; font-size:.9rem;
  background: var(--grad-primary-h); color:#04140f; border:none; cursor:pointer;
  white-space:nowrap;
}
.ai-demo-typing{ display:inline-flex; gap:4px; padding: 12px 16px; }
.ai-demo-typing span{ width:6px; height:6px; border-radius:50%; background: var(--cyan-2); animation: nx-typing 1s ease-in-out infinite; }
.ai-demo-typing span:nth-child(2){ animation-delay:.15s; }
.ai-demo-typing span:nth-child(3){ animation-delay:.3s; }
@keyframes nx-typing{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }

/* Kinetic decode text */
.decode-ready{ font-variant-numeric: tabular-nums; }

/* Bento grid (homepage services) */
.bento-grid{ display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(160px, auto); grid-auto-flow: dense; gap:20px; }
.bento-grid .card{ display:flex; flex-direction:column; }
.bento-grid .card.b-large{ grid-column: span 2; grid-row: span 2; }
.bento-grid .card.b-wide{ grid-column: span 2; }
.bento-grid .card.b-large .card-icon{ width:60px; height:60px; }
.bento-grid .card.b-large h3{ font-size:1.5rem; }
.bento-grid .card.b-large p{ font-size:1rem; max-width: 420px; }
@media (max-width: 980px){
  .bento-grid{ grid-template-columns: repeat(2, 1fr); }
  .bento-grid .card.b-large{ grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px){
  .bento-grid{ grid-template-columns: 1fr; }
  .bento-grid .card.b-large, .bento-grid .card.b-wide{ grid-column: span 1; }
}

/* Architecture diagram — build-in + data flow (technology.html, no markup changes needed) */
.arch-diagram .arch-row, .arch-diagram .arch-connector{
  opacity:0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.arch-diagram.is-built .arch-row, .arch-diagram.is-built .arch-connector{
  opacity:1; transform:none;
}
.arch-connector{ position:relative; }
.arch-connector::after{
  content:""; position:absolute; left:50%; top:0; width:6px; height:6px; border-radius:50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan); transform:translateX(-50%);
  opacity:0;
}
.arch-diagram.is-built .arch-connector::after{
  animation: nx-flow 2.2s linear infinite;
}
@keyframes nx-flow{
  0%{ top:0; opacity:0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ top:100%; opacity:0; }
}

@media (prefers-reduced-motion: reduce){
  .scroll-cue, .ai-demo-typing span, .arch-diagram.is-built .arch-connector::after{ animation: none !important; }
}



/* ============ Services: the story ============ */
.nx-story-acts{ max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.nx-act{ background: rgba(16,16,29,.6); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 28px 32px; position: relative; }
.nx-act-k{ font: 700 11px var(--font-body); letter-spacing: .22em; margin-bottom: 12px; }
.nx-act p{ margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.nx-act p b{ color: var(--text-1); }
.nx-act-stats{ display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; }
.nx-act-stats > div{ text-align: center; }
.nx-act-stats b{ display: block; font: 700 34px var(--font-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nx-act-stats span:last-child{ font: 500 12.5px var(--font-body); color: var(--text-3); }
.nx-act-kicker{ text-align: center; border-color: rgba(212,175,55,.3); }
.nx-act-kicker .btn{ margin-top: 18px; }
.nx-act-note{ margin-top: 14px; font: 400 11.5px var(--font-body); color: var(--text-3); }

/* ==========================================================================
   POLISH LAYER — the $500k pass. Timing, depth, restraint.
   Everything transform/opacity/filter. Layered after the base system
   so it refines without rewriting.
   ========================================================================== */

/* ---- reveals: focus pull. Elements arrive from soft-focus, like a lens
   finding its subject — not just a fade. */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    filter: blur(9px);
    transform: translateY(28px) scale(.985);
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  }
  .reveal.in{ filter: blur(0); transform: translateY(0) scale(1); }
}

/* ---- nav: recede/return choreography + gold-dot current page marker */
.nav{ transition: background .4s var(--ease), padding .4s var(--ease),
      border-color .4s var(--ease), transform .45s var(--ease); }
.nav.nx-hide{ transform: translateY(-110%); }
.nav-links a{ position:relative; }
.nav-links a::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; margin:auto;
  width:0; height:1.5px; border-radius:1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width .3s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-links a.active::after{ width:5px; height:5px; bottom:-8px; border-radius:50%;
  background:var(--gold); box-shadow:0 0 8px rgba(212,175,55,.9); }

/* ---- buttons: light sweep + press weight. Hover feels lit, click feels real. */
.btn{ overflow:hidden; }
.btn > *{ position:relative; z-index:1; }
.btn::before{
  content:''; position:absolute; top:0; bottom:0; left:-80%; width:60%; z-index:0;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events:none;
}
.btn:hover::before{ left:120%; }
.btn:active{ transform: translateY(-1px) scale(.975); transition-duration:.08s; }
@media (prefers-reduced-motion: reduce){ .btn::before{ display:none; } }

/* ---- cursor spotlight layer (positioned by polish.js) */
.nx-spot{
  position:absolute; top:0; left:0; width:440px; height:440px; border-radius:50%;
  background: radial-gradient(circle,
    rgba(139,92,246,.13) 0%, rgba(34,211,238,.05) 42%, transparent 68%);
  pointer-events:none; opacity:0; transition: opacity .45s var(--ease);
  will-change: transform; z-index:0;
}
.card:hover .nx-spot, .price-card:hover .nx-spot, .stat-card:hover .nx-spot,
.nxr-panel:hover .nx-spot, .mockup:hover .nx-spot, .adcard:hover .nx-spot{ opacity:1; }
.card > *:not(.nx-spot), .price-card > *:not(.nx-spot),
.stat-card > *:not(.nx-spot), .adcard > *:not(.nx-spot){ position:relative; z-index:1; }

/* ---- cards: weight on hover. Shadow says "this lifted", border says "this lit". */
.card, .price-card, .stat-card, .mockup{
  transition: transform .35s var(--ease), border-color .45s var(--ease),
              background .45s var(--ease), box-shadow .5s var(--ease);
}
.card:hover, .price-card:hover, .stat-card:hover{
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55),
              0 0 0 1px rgba(139,92,246,.22),
              0 0 44px -16px rgba(139,92,246,.35);
}

/* ---- marquee: content dissolves at the edges instead of being cut */
.marquee{
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* ---- section headers get a scroll-depth transform from polish.js */
.section-head{ will-change: transform; }

/* ---- keyboard users get the gold treatment, not a default blue ring */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

/* ---- selection of gold dot elements shouldn't break the ritual */
.nx-stop::selection{ background: var(--violet); color: #fff; }

/* ==========================================================================
   ONE-PAGE REFIT — hero readability + chrome diet
   ========================================================================== */

/* text wins: a dark radial scrim sits between the 3D layers and the copy */
.hero-scrim{
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background: radial-gradient(58% 52% at 50% 46%, rgba(3,3,8,.78) 0%, rgba(3,3,8,.45) 55%, transparent 100%);
}
.hero h1{ text-shadow: 0 2px 40px rgba(3,3,8,.9); }
.hero p.lead{ text-shadow: 0 1px 24px rgba(3,3,8,.9); color: #C9CCE0; }

/* chrome diet: one assistant (left), one WhatsApp (right). Everything else goes. */
.nx-status{ display:none !important; }
.cmdk-hint{ display:none !important; }

/* pricing wrapper section spacing */
#pricing{ scroll-margin-top: 70px; }
#services, #story, #work, #terminal, #contact{ scroll-margin-top: 70px; }

/* ==========================================================================
   BILLION-DOLLAR HERO — split composition: words left, sculpture right
   ========================================================================== */
@media (min-width: 981px){
  .hero-inner{ text-align:left; max-width: 640px; margin: 0; }
  .hero h1{ font-size: clamp(3rem, 5.2vw, 4.6rem); letter-spacing:-.03em; }
  .hero p.lead{ margin-left:0; max-width: 54ch; }
  .hero-actions, .hero-badges{ justify-content: flex-start; }
  .hero-scrim{
    background: linear-gradient(90deg, rgba(3,3,8,.88) 0%, rgba(3,3,8,.62) 42%, rgba(3,3,8,.15) 68%, transparent 85%);
  }
}
/* scroll cue: a falling gold thread */
.scroll-cue{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); z-index:2; width:1.5px; height:56px; overflow:hidden; }
.scroll-cue span{ position:absolute; left:0; top:-40%; width:100%; height:40%; background:linear-gradient(180deg, transparent, #D4AF37); animation: cue-fall 1.8s cubic-bezier(.6,.05,.3,.95) infinite; }
@keyframes cue-fall{ to{ top:110%; } }
@media (prefers-reduced-motion: reduce){ .scroll-cue{ display:none; } }

/* ==========================================================================
   THE CAPABILITY INDEX — services as editorial typography, not cards
   ========================================================================== */
.nx-index{ border-top: 1px solid var(--border-glass); }
.nxi-row{ position:relative; border-bottom: 1px solid var(--border-glass); cursor: pointer; overflow: hidden; }
.nxi-head{ display:grid; grid-template-columns: 76px 1fr auto 40px; align-items: baseline; gap: 22px; padding: 30px 10px; }
.nxi-num{ font: 700 15px var(--font-display); color: var(--text-3); transition: color .3s; }
.nxi-title{
  font: 700 clamp(1.6rem, 3.6vw, 3rem)/1.05 var(--font-display); letter-spacing:-.025em;
  color: var(--text-2); transition: color .35s var(--ease), transform .45s var(--ease);
}
.nxi-tag{ font: 600 12px var(--font-body); letter-spacing:.14em; text-transform: uppercase; color: var(--text-3); transition: color .3s; white-space:nowrap; }
.nxi-plus{ font: 300 30px/1 var(--font-display); color: var(--text-3); transition: transform .4s var(--ease), color .3s; text-align:center; }
.nxi-body{ max-height: 0; opacity: 0; transition: max-height .55s var(--ease), opacity .4s var(--ease), padding .4s var(--ease); padding: 0 10px 0 98px; }
.nxi-body p{ max-width: 62ch; color: var(--text-2); font-size: 1.02rem; line-height: 1.75; margin: 0 0 18px; }
.nxi-body a{ font: 700 13px var(--font-body); color: var(--nxi-a); border-bottom: 1.5px solid var(--nxi-a); padding-bottom: 3px; }
.nxi-row::before{ /* accent light bar */
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background: var(--nxi-a); transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease); box-shadow: 0 0 18px var(--nxi-a);
}
.nxi-row::after{ /* light sweep across the row */
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--nxi-a) 7%, transparent) 50%, transparent 80%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.nxi-row:hover::after, .nxi-row.open::after{ transform: translateX(100%); }
.nxi-row:hover .nxi-title, .nxi-row.open .nxi-title{ color: var(--text-1); transform: translateX(14px); }
.nxi-row:hover .nxi-num, .nxi-row.open .nxi-num,
.nxi-row:hover .nxi-tag, .nxi-row.open .nxi-tag{ color: var(--nxi-a); }
.nxi-row.open::before{ transform: scaleY(1); }
.nxi-row.open .nxi-plus{ transform: rotate(45deg); color: var(--nxi-a); }
.nxi-row.open .nxi-body{ max-height: 220px; opacity: 1; padding-bottom: 34px; }
@media (max-width: 700px){
  .nxi-head{ grid-template-columns: 44px 1fr 32px; }
  .nxi-tag{ display:none; }
  .nxi-body{ padding-left: 10px; }
}

/* ==========================================================================
   MOBILE / TABLET REFINEMENTS
   ========================================================================== */
@media (max-width: 640px){
  /* Dubai skyline: shorter stage so it fills the phone width nicely */
  #nx-dubai{ height: 320px !important; }
  /* manifesto strikethroughs stack cleanly */
  .nx-strike{ white-space: normal; }
  /* coverflow gets breathing room */
  .ncf{ height: 380px; }
  /* pricing cards stack with comfortable gaps (grid-3 already collapses) */
  #pricing .grid.grid-3{ gap: 18px; }
  /* terminal a bit shorter on phones */
  .nxt-body{ height: 280px; }
  /* capability index title sizing for small screens */
  .nxi-title{ font-size: clamp(1.25rem, 6.4vw, 1.8rem); }
  .nxi-head{ padding: 22px 6px; gap: 14px; }
  .nxi-body{ padding-right: 6px; }
  .nxi-body p{ font-size: .95rem; }
}
@media (max-width: 980px){
  /* iPad portrait: hero stays centered, scrim uses the radial variant (default) */
  .hero-inner{ padding-top: 40px; }
  /* horizontal cinema panels take more width on tablets */
  .nxh-panel{ width: min(480px, 82vw); }
}
/* very small phones: badges wrap tighter */
@media (max-width: 400px){
  .hero-badges{ gap: 8px; }
  .badge-chip{ font-size: .72rem; padding: 8px 12px; }
}
