/* ═══════════════════════════════════════════════════════════════
   NEXORA TECHNOLOGIES V2 — Obsidian Precision Design System
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald:      #00c07f;
  --emerald-dim:  rgba(0,192,127,0.12);
  --emerald-glow: rgba(0,192,127,0.06);
  --obsidian:     #0a0a0a;
  --surface:      #0d0d0d;
  --surface-2:    #131313;
  --border:       rgba(255,255,255,0.05);
  --border-hover: rgba(0,192,127,0.2);
  --text-muted:   rgba(255,255,255,0.4);
  --text-dim:     rgba(255,255,255,0.6);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--obsidian);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── INTRO ────────────────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--obsidian);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#intro-logo {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  letter-spacing: 0.35em;
  opacity: 0;
  filter: blur(20px);
}

#intro-sub {
  margin-top: 0.75rem;
  color: var(--emerald);
  font-size: 0.65rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  opacity: 0;
}

#intro-track {
  margin-top: 2.5rem;
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

#intro-bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 0;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

/* ─── NAVBAR ───────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s;
}

#navbar.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { text-decoration: none; display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  color: #fff;
}
.nav-brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  color: var(--emerald);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0,192,127,0.35);
  color: var(--emerald);
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.25s, border-color 0.25s;
}
.nav-cta:hover {
  background: var(--emerald-dim);
  border-color: var(--emerald);
}
.nav-cta svg { width: 12px; height: 12px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-sep {
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  line-height: 1;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.68rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  padding: 0.2rem 0.1rem;
  transition: color 0.2s;
  line-height: 1;
}
.lang-btn:hover { color: rgba(255,255,255,0.7); }
.lang-btn.active { color: #fff; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ─── HERO ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,  rgba(10,10,10,1) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 65%, rgba(10,10,10,1) 100%),
    linear-gradient(to right,   rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.2) 55%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 8rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 7rem; }
}

/* Hero badge */
#hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,192,127,0.25);
  background: rgba(0,192,127,0.04);
  border-radius: 100px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  opacity: 0;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Hero title */
#hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
  opacity: 0;
  filter: blur(12px);
  letter-spacing: -0.01em;
}
#hero-title em {
  font-style: normal;
  color: var(--emerald);
}

/* Hero sub */
#hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Hero actions */
#hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

/* btn-primary defined in premium block below */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: rgba(255,255,255,0.80);
  font-size: 0.85rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  box-shadow:
    0 0 0 1.5px rgba(0,192,127,0.30),
    0 0 10px 1px rgba(0,192,127,0.08);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, color 0.2s;
  animation: btn-secondary-breathe 3.2s ease-in-out infinite;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 55%,
    rgba(0, 192, 127, 0.25) 82%,
    rgba(0, 192, 127, 0.55) 100%
  );
  z-index: 0;
  animation: btn-spin-beam 3s linear infinite;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgba(10, 10, 10, 0.92);
  border-radius: 9px;
  z-index: 1;
  transition: background 0.4s ease;
}

.btn-secondary span,
.btn-secondary svg {
  position: relative;
  z-index: 10;
}

.btn-secondary:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1.5px rgba(0,192,127,0.65),
    0 0 18px 4px rgba(0,192,127,0.20);
}

.btn-secondary:hover::after {
  background: linear-gradient(180deg, rgba(0,192,127,0.10), rgba(10,10,10,0.92));
}

@keyframes btn-secondary-breathe {
  0%,100% { box-shadow: 0 0 0 1.5px rgba(0,192,127,0.30), 0 0 10px 1px rgba(0,192,127,0.08); }
  50%      { box-shadow: 0 0 0 1.5px rgba(0,192,127,0.55), 0 0 16px 3px rgba(0,192,127,0.14); }
}

.btn-secondary svg { width: 15px; height: 15px; }

/* Hero stats */
#hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.stat-glass {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, background 0.3s;
}
.stat-glass:hover {
  border-color: rgba(0,192,127,0.2);
  background: rgba(0,192,127,0.03);
}
.stat-icon {
  width: 40px; height: 40px;
  background: rgba(0,192,127,0.08);
  border: 1px solid rgba(0,192,127,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 18px; height: 18px; }
.stat-value {
  font-family: 'Instrument Serif', serif;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
  animation: float-scroll 2.5s ease-in-out infinite;
}
@keyframes float-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}
.scroll-cue-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
}

/* ─── SECTION COMMONS ──────────────────────────────────────────── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-block;
  color: var(--emerald);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
}

/* Centered header variant */
.section-header-center {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ─── REVEAL ANIMATIONS ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.25,0.1,0.25,1), transform 0.75s cubic-bezier(0.25,0.1,0.25,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }
.reveal-delay-5.in-view { transition-delay: 0.40s; }

/* ─── PRODOTTI (BENTO GRID) ────────────────────────────────────── */
#prodotti { padding: 8rem 2rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

/* Border beam wrapper */
.bento-card-wrap {
  position: relative;
  padding: 1.5px;
  background: transparent;
  overflow: hidden;
  background: var(--surface);
}

.bento-card-wrap::before {
  content: '';
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background: conic-gradient(from 0deg, transparent 0% 60%, var(--emerald) 72%, rgba(0,192,127,0.3) 80%, transparent 88% 100%);
  animation: beam-spin 3.5s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.45s;
}
.bento-card-wrap:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes beam-spin { to { transform: rotate(360deg); } }

.bento-card {
  position: relative;
  background: var(--surface);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  height: 100%;
  overflow: hidden;
  transition: background 0.3s;
}
.bento-card-wrap:hover .bento-card {
  background: #0f0f0f;
}

/* Spotlight: radial gradient follows mouse */
.bento-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--sx, -300px) var(--sy, -300px),
    rgba(0,192,127,0.05),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.bento-card-wrap:hover .bento-spotlight { opacity: 1; }

/* Grid sizing */
.bento-large { grid-row: span 2; min-height: 460px; }
.bento-wide  { grid-column: span 2; }

.bento-header { display: flex; justify-content: space-between; align-items: flex-start; }

.bento-badge-live {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--emerald);
  background: rgba(0,192,127,0.07);
  border: 1px solid rgba(0,192,127,0.2);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--emerald);
  animation: pulse-dot 2s ease-in-out infinite;
}
.bento-badge-soon {
  display: inline-flex; align-items: center;
  font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.bento-icon-wrap {
  width: 46px; height: 46px;
  background: rgba(0,192,127,0.07);
  border: 1px solid rgba(0,192,127,0.14);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald);
  flex-shrink: 0;
}
.bento-icon-wrap svg { width: 22px; height: 22px; }

.bento-body { margin-top: auto; padding-top: 2rem; }

.bento-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.bento-sector {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.75rem;
}
.bento-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.bento-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--emerald);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0,192,127,0.25);
  transition: border-color 0.2s;
  width: fit-content;
}
.bento-link:hover { border-color: var(--emerald); }
.bento-link svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-row: span 1; grid-column: span 1; }
}

/* ─── PERCHÉ ────────────────────────────────────────────────────── */
#perche { padding: 8rem 2rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  overflow: hidden;
}

.pillar-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.3s;
}
.pillar-card:hover { background: #0f0f0f; }

.pillar-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(0,192,127,0.35);
  margin-bottom: 1.75rem;
}
.pillar-icon {
  width: 44px; height: 44px;
  background: rgba(0,192,127,0.06);
  border: 1px solid rgba(0,192,127,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 20px; height: 20px; }
.pillar-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  margin: 1.25rem 0 0.75rem;
}
.pillar-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ─── COME FUNZIONA ─────────────────────────────────────────────── */
#come { padding: 8rem 2rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 24px;
  left: calc(16.666% + 8px);
  right: calc(16.666% + 8px);
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0,192,127,0.25) 20%,
    rgba(0,192,127,0.15) 50%,
    rgba(0,192,127,0.25) 80%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
}

.step-item { padding: 0 2rem 0 0; }
.step-item:last-child { padding-right: 0; }

@media (max-width: 768px) {
  .step-item { padding: 0 0 3rem; }
}

.step-badge {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,192,127,0.3);
  background: rgba(0,192,127,0.04);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--emerald);
  margin-bottom: 1.75rem;
}
.step-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.step-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── STATS BENTO CARDS ─────────────────────────────────────────── */
#stats {
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-bento-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 200px;
  background: transparent;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* rotating beam border */
.stat-bento-card::before {
  content: '';
  position: absolute;
  top: -100%; left: -100%;
  width: 300%; height: 300%;
  background: conic-gradient(from 0deg, transparent 75%, rgba(0, 192, 127, 0.65) 100%);
  animation: sbc-spin 6s linear infinite;
  opacity: 0.22;
  transition: opacity 0.4s;
  z-index: 0;
}

.stat-bento-card:hover::before {
  opacity: 0.75;
  animation-duration: 3s;
}

@keyframes sbc-spin {
  to { transform: rotate(360deg); }
}

/* glass inner — stessa trasparenza dei tre pilastri */
.stat-bento-inner {
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  background: rgba(8, 11, 9, 0.62);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.75rem;
}

.stat-bento-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 3.5vw, 4rem);
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255,255,255,0.06);
}

.stat-bento-num.emerald {
  color: var(--emerald);
  text-shadow:
    0 0 28px rgba(0,192,127,0.50),
    0 0 60px rgba(0,192,127,0.18);
}

.stat-bento-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: 16ch;
}

@media (max-width: 768px) {
  .stat-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bento-card { min-height: 160px; }
}

.stat-item-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
}
.stat-item-num.accent { color: var(--emerald); }
.stat-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ─── TESTIMONIALS ──────────────────────────────────────────────── */
#testimonial { padding: 8rem 2rem; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.test-card {
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
}
.test-card:hover {
  border-color: rgba(0,192,127,0.12);
  background: rgba(0,192,127,0.015);
}

.test-stars { color: var(--emerald); font-size: 0.85rem; margin-bottom: 1.25rem; }
.test-quote {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
}
.test-author { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,192,127,0.08);
  border: 1px solid rgba(0,192,127,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald);
  flex-shrink: 0;
}
.test-name { font-size: 0.85rem; font-weight: 500; }
.test-role { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

/* ─── CTA FINALE ────────────────────────────────────────────────── */
#cta {
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,192,127,0.07) 0%, transparent 65%);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.status-node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 2.5rem;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0,192,127,0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(0,192,127,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0,192,127,0); }
  100% { box-shadow: 0 0 0 0   rgba(0,192,127,0); }
}

.cta-quote {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  letter-spacing: 0.01em;
}
.cta-quote-attr {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,192,127,0.5);
  margin-top: 0.65rem;
}
.cta-quote-attr::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(0,192,127,0.35);
  margin: 1.6rem auto 0;
}
.cta-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.cta-title em {
  font-size: 0.72em;
  display: block;
}
.cta-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cta-note {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.05em;
}

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.footer-brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
}
.footer-legal {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  text-align: center;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   NEXORA V2 — PREMIUM VISUAL LAYER
   ═══════════════════════════════════════════════════════════════ */

/* ─── CURSOR GLOW FOLLOWER ────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,192,127,0.06) 0%, rgba(0,192,127,0.02) 45%, transparent 70%);
  pointer-events: none;
  z-index: 9994;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: left 0.14s ease-out, top 0.14s ease-out, opacity 0.6s;
  opacity: 0;
}
#cursor-glow.visible { opacity: 1; }

/* ─── NOISE GRAIN OVERLAY ─────────────────────────────────────── */
#noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── BTN PRIMARY — BEAM ROTANTE INTERNO (tecnica ::before/::after) ── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem 2.4rem;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  box-shadow:
    0 0 0 1.5px rgba(0,192,127,0.55),
    0 0 14px 2px rgba(0,192,127,0.20),
    0 0 36px 5px rgba(0,192,127,0.09);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  animation: btn-glow-breathe 3.2s ease-in-out infinite;
}

/* figura conica rotante — riempie tutto il pulsante */
.btn-primary::before {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 50%,
    rgba(0, 192, 127, 0.4) 80%,
    #00c07f 100%
  );
  z-index: 0;
  animation: btn-spin-beam 3s linear infinite;
}

/* maschera scura interna — crea effetto bordo luminoso */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: linear-gradient(180deg, #141414, #0a0a0a);
  border-radius: 9px;
  z-index: 1;
  transition: background 0.4s ease;
}

/* svg e testo sopra la maschera */
.btn-primary svg,
.btn-primary span {
  position: relative;
  z-index: 10;
}

.btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

@keyframes btn-spin-beam {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg); }
}

@keyframes btn-glow-breathe {
  0%,100% {
    box-shadow:
      0 0 0 1.5px rgba(0,192,127,0.55),
      0 0 14px 2px rgba(0,192,127,0.20),
      0 0 36px 5px rgba(0,192,127,0.09);
  }
  50% {
    box-shadow:
      0 0 0 1.5px rgba(0,192,127,0.85),
      0 0 22px 5px rgba(0,192,127,0.40),
      0 0 55px 10px rgba(0,192,127,0.18);
  }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 1.5px rgba(0,192,127,0.90),
    0 0 28px 7px rgba(0,192,127,0.50),
    0 0 60px 12px rgba(0,192,127,0.22);
}

/* hover: interno diventa leggermente verde (glass effect) */
.btn-primary:hover::after {
  background: linear-gradient(180deg, rgba(0,192,127,0.15), #0a0a0a);
}

.btn-primary:active {
  transform: translateY(0) scale(0.972);
  transition-duration: 0.07s;
}

/* ─── HERO FLOATING ORBS ──────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-orb-1 {
  width: 560px; height: 560px;
  right: 6%;
  top: 12%;
  background: radial-gradient(circle, rgba(0,192,127,0.11) 0%, rgba(0,192,127,0.04) 40%, transparent 70%);
  filter: blur(55px);
  animation: orb-float-a 17s ease-in-out infinite;
}
.hero-orb-2 {
  width: 340px; height: 340px;
  right: 24%;
  bottom: 14%;
  background: radial-gradient(circle, rgba(0,140,95,0.08) 0%, transparent 70%);
  filter: blur(48px);
  animation: orb-float-b 22s ease-in-out infinite;
  animation-delay: -9s;
}
.hero-orb-3 {
  width: 200px; height: 200px;
  left: 40%;
  top: 25%;
  background: radial-gradient(circle, rgba(0,192,127,0.05) 0%, transparent 70%);
  filter: blur(40px);
  animation: orb-float-c 13s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes orb-float-a {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(-28px,-38px) scale(1.06); }
  66%       { transform: translate(22px,18px) scale(0.95); }
}
@keyframes orb-float-b {
  0%, 100% { transform: translate(0,0); }
  40%       { transform: translate(32px,-22px); }
  75%       { transform: translate(-18px,28px); }
}
@keyframes orb-float-c {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(12px,-16px) scale(1.08); }
}

/* ─── HERO STAT GLASS — ENHANCED ─────────────────────────────── */
.stat-glass {
  border-left: 2px solid transparent;
  transition: border-left-color 0.4s, border-color 0.3s, background 0.3s, transform 0.3s;
}
.stat-glass:hover {
  border-left-color: rgba(0,192,127,0.45);
  transform: translateX(4px);
}
.stat-value {
  text-shadow: 0 0 24px rgba(0,192,127,0.25);
}

/* ─── BENTO JUSTICE — HOLOGRAPHIC + ORBIT ────────────────────── */
.bento-large .bento-card {
  overflow: hidden;
}
.bento-large .bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    128deg,
    transparent 0%,
    rgba(0,192,127,0.015) 22%,
    rgba(0,255,160,0.042) 45%,
    rgba(0,192,127,0.018) 68%,
    transparent 100%
  );
  background-size: 200% 200%;
  animation: holo-drift 11s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-drift {
  0%, 100% { background-position: 0%   0%;   opacity: 0.7; }
  50%       { background-position: 100% 100%; opacity: 1;   }
}

/* Orbit rings on Justice icon */
.bento-large .bento-icon-wrap {
  position: relative;
  border-radius: 50%;
  width: 52px; height: 52px;
}
.bento-large .bento-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color:   rgba(0,192,127,0.65);
  border-right-color: rgba(0,192,127,0.22);
  animation: orbit-cw 3s linear infinite;
}
.bento-large .bento-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(0,192,127,0.28);
  border-left-color:   rgba(0,192,127,0.10);
  animation: orbit-cw 5.5s linear infinite reverse;
}

@keyframes orbit-cw { to { transform: rotate(360deg); } }

/* ─── PILLAR CARDS — WATERMARK NUMBER ────────────────────────── */
.pillar-card { position: relative; overflow: hidden; }

.pillar-card::before {
  content: attr(data-num);
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  font-family: 'Instrument Serif', serif;
  font-size: 7rem;
  line-height: 1;
  color: rgba(0,192,127,0.045);
  pointer-events: none;
  transition: color 0.5s;
  user-select: none;
}
.pillar-card:hover::before { color: rgba(0,192,127,0.08); }

/* Left glow accent on hover */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(0,192,127,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.pillar-card:hover::after { opacity: 1; }

/* ─── STEP BADGES — GLOWING RING ON HOVER ────────────────────── */
.step-badge {
  transition: box-shadow 0.35s, background 0.35s;
}
.step-item:hover .step-badge {
  box-shadow:
    0 0 0 4px rgba(0,192,127,0.07),
    0 0 28px rgba(0,192,127,0.22);
  background: rgba(0,192,127,0.1);
}

/* ─── STATS STRIP — GLOW ON NUMBERS ──────────────────────────── */
.stat-item-num {
  text-shadow: 0 0 32px rgba(255,255,255,0.07);
}
.stat-item-num.accent {
  text-shadow:
    0 0 30px rgba(0,192,127,0.35),
    0 0 60px rgba(0,192,127,0.12);
}

/* ─── TESTIMONIAL — QUOTE WATERMARK ──────────────────────────── */
.test-card { position: relative; overflow: hidden; }
.test-card::before {
  content: '\201C';
  position: absolute;
  top: -1.5rem;
  left: 1.2rem;
  font-family: 'Instrument Serif', serif;
  font-size: 9rem;
  line-height: 1;
  color: rgba(0,192,127,0.04);
  pointer-events: none;
  transition: color 0.4s;
}
.test-card:hover::before { color: rgba(0,192,127,0.075); }

/* ─── CTA SECTION — GRID + LAYERED GLOW ──────────────────────── */
#cta-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,192,127,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,192,127,0.038) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 0%, transparent 100%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(68px); }
}

/* Upgraded CTA glow: two nested orbs */
.cta-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.cta-glow::before {
  content: '';
  position: absolute;
  width: 1000px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,192,127,0.1) 0%, rgba(0,192,127,0.04) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: cta-orb-pulse 4.5s ease-in-out infinite;
}
.cta-glow::after {
  content: '';
  position: absolute;
  width: 480px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,192,127,0.2) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  filter: blur(24px);
  animation: cta-orb-pulse 4.5s ease-in-out infinite;
  animation-delay: -2.25s;
}
@keyframes cta-orb-pulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: 1;    transform: translate(-50%,-50%) scale(1.1); }
}

/* CTA button larger */
#cta .btn-primary {
  padding: 1.25rem 2.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* CTA title subtle glow */
.cta-title {
  text-shadow: 0 0 80px rgba(0,192,127,0.07), 0 0 160px rgba(0,192,127,0.03);
}

/* ─── HERO → SEZIONE SUCCESSIVA: TRANSIZIONE SFUMATA ─────────────── */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  background: linear-gradient(
    to bottom,
    transparent          0%,
    rgba(10,10,10,0.45) 40%,
    rgba(10,10,10,0.82) 72%,
    #0a0a0a             100%
  );
  pointer-events: none;
  z-index: 60;
}

/* Dissolve in alto nella sezione prodotti */
#prodotti {
  position: relative;
}
#prodotti::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, #0a0a0a 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ─── BENTO CARDS — VETRO 3D (GLASSMORPHISM) ─────────────────────── */
.bento-card {
  background: rgba(8,11,9,0.58);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border-top:    1px solid rgba(255,255,255,0.09);
  border-left:   1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.55);
  border-right:  1px solid rgba(0,0,0,0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 -1px 0 rgba(0,0,0,0.4) inset,
    0 20px 50px rgba(0,0,0,0.38);
  transition: background 0.38s, box-shadow 0.38s;
}

.bento-card-wrap:hover .bento-card {
  background: rgba(4,14,9,0.66);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 32px 64px rgba(0,0,0,0.5),
    0 0 0 1px rgba(0,192,127,0.16);
}

/* Griglia bento semi-trasparente per far passare l'aurora */
.bento-grid {
  background: rgba(255,255,255,0.015);
  border-color: rgba(0,192,127,0.07);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION DECOMPRESSION — breathing room enterprise
   ═══════════════════════════════════════════════════════════════ */
#prodotti   { padding: 12rem 2rem; }
#perche     { padding: 12rem 2rem; }
#come       { padding: 12rem 2rem; }
#testimonial{ padding: 12rem 2rem; }
#cta        { padding: 10rem 2rem; }

/* ═══════════════════════════════════════════════════════════════
   PERCHÉ — SLIDE 3 LAYOUT  (two-column: cards left, ISO right)
   ═══════════════════════════════════════════════════════════════ */

.pillar-scene {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ── LEFT COLUMN ─────────────────────────────────────────────── */
.pillar-left {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.pillar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: visible;
}

/* Override pillar-card for new vertical stacked style */
.pillar-card-v2 {
  position: relative;
  padding: 1.6rem 1.75rem 1.6rem 1.75rem;
  background: rgba(8,11,9,0.62);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border-radius: 12px;
  border-top:   1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(0,0,0,0.35);
  border-bottom:1px solid rgba(0,0,0,0.5);
  border-left:  2px solid rgba(0,192,127,0.22);
  overflow: visible;
  transition: border-left-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card-v2:hover {
  border-left-color: rgba(0,192,127,0.65);
  transform: translateX(5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,192,127,0.1);
}

.pillar-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Override legacy pillar-num margin inside new card-head flex */
.pillar-card-v2 .pillar-num { margin-bottom: 0; }
/* Override legacy pillar-card:hover that would kill glassmorphism */
#perche .pillar-card:hover  { background: rgba(4,14,9,0.70); }

/* ── CONNECTOR WIRE from card right edge ──────────────────────── */
.pillar-wire {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, rgba(0,192,127,0.45), transparent);
  pointer-events: none;
}
.pillar-wire::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,192,127,0.55);
  border: 1px solid rgba(0,192,127,0.9);
  box-shadow: 0 0 8px rgba(0,192,127,0.5);
}

/* ── RIGHT COLUMN: 3D ISO STACK ──────────────────────────────── */
.pillar-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.iso-perspective {
  perspective: 900px;
  perspective-origin: 58% 35%;
  width: 100%;
  max-width: 460px;
  /* Dark isolation frame — needed for glass depth to read */
  background: rgba(0,0,0,0.72);
  border-radius: 22px;
  border: 1px solid rgba(0,192,127,0.09);
  padding: 36px 24px 42px;
  box-shadow: 0 0 0 1px rgba(0,192,127,0.04), 0 40px 80px rgba(0,0,0,0.6);
}

.iso-stack {
  position: relative;
  transform-style: preserve-3d;
  animation: iso-float 9s ease-in-out infinite;
  /* Proper isometric angle — matches AI-rendered image */
  transform: rotateX(34deg) rotateY(-40deg);
}

@keyframes iso-float {
  0%,100% { transform: rotateX(34deg) rotateY(-40deg) translateY(0);    }
  40%      { transform: rotateX(31deg) rotateY(-37deg) translateY(-14px); }
  70%      { transform: rotateX(36deg) rotateY(-43deg) translateY(-6px);  }
}

/* ── BASE LAYER ───────────────────────────────────────────────── */
.iso-layer {
  position: relative;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
}

/* 3D thickness — front-bottom face visible in perspective */
.iso-layer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 10px;
  background: rgba(0,192,127,0.09);
  border: 1px solid rgba(0,192,127,0.22);
  border-top: none;
  border-radius: 0 0 5px 5px;
  transform: translateY(10px) rotateX(-90deg);
  transform-origin: bottom center;
  pointer-events: none;
}

/* TOP: UI glass panel */
.iso-l-top {
  background: rgba(4,22,13,0.50);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(0,192,127,0.32);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 50px rgba(0,192,127,0.07) inset,
    0 8px 32px rgba(0,0,0,0.5),
    0 0 80px rgba(0,192,127,0.05);
}

/* MID: AI circuit board */
.iso-l-mid {
  background: rgba(0,6,3,0.97);
  border: 1px solid rgba(0,192,127,0.20);
  border-top: 1px solid rgba(0,192,127,0.12);
  box-shadow:
    0 0 35px rgba(0,192,127,0.14) inset,
    0 8px 28px rgba(0,0,0,0.65);
  margin-top: 22px;
}

/* BOT: Security base */
.iso-l-bot {
  background: rgba(0,3,1,0.99);
  border: 1px solid rgba(0,192,127,0.42);
  border-bottom: 2px solid rgba(0,192,127,0.60);
  border-left: 1px solid rgba(0,192,127,0.28);
  box-shadow:
    0 0 32px rgba(0,192,127,0.12) inset,
    0 12px 40px rgba(0,0,0,0.7),
    0 0 60px rgba(0,192,127,0.08);
  margin-top: 22px;
}

/* Connector node on left edge of each layer */
.iso-node {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,192,127,0.80);
  border: 1px solid #00c07f;
  box-shadow: 0 0 14px rgba(0,192,127,0.7);
  z-index: 5;
}

/* Gap pillars between layers */
.iso-gap-space {
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
  height: 24px;
  align-items: stretch;
}
.iso-pillar {
  width: 7px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,192,127,0.45),
    rgba(0,192,127,0.20)
  );
  border: 1px solid rgba(0,192,127,0.30);
  border-radius: 2px;
  box-shadow:
    0 0 10px rgba(0,192,127,0.25),
    inset 0 0 4px rgba(255,255,255,0.06);
}

/* Layer tag label */
.iso-layer-tag {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,192,127,0.45);
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

/* ── LAYER TOP CONTENT: mini dashboard ───────────────────────── */
.iso-ui-content {
  position: absolute;
  inset: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.iso-gauge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(0,192,127,0.28);
  border-top-color: rgba(0,192,127,0.88);
  flex-shrink: 0;
  position: relative;
  animation: gauge-spin 12s linear infinite;
}
.iso-gauge::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(0,192,127,0.2);
  border-top-color: rgba(0,192,127,0.55);
  animation: gauge-spin 6s linear infinite reverse;
}
@keyframes gauge-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.iso-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  flex-shrink: 0;
}
.iso-bars span {
  width: 7px;
  border-radius: 2px 2px 0 0;
  background: rgba(0,192,127,0.42);
  animation: bar-pulse 3s ease-in-out infinite;
}
.iso-bars span:nth-child(1) { height: 55%; animation-delay: 0s; }
.iso-bars span:nth-child(2) { height: 85%; animation-delay: 0.3s; background: rgba(0,192,127,0.72); }
.iso-bars span:nth-child(3) { height: 42%; animation-delay: 0.6s; }
.iso-bars span:nth-child(4) { height: 100%;animation-delay: 0.9s; background: rgba(0,192,127,0.88); }
@keyframes bar-pulse {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1.0; }
}

.iso-linechart {
  flex: 1;
  height: 48px;
  overflow: visible;
}

/* ── LAYER MID CONTENT: circuit board ───────────────────────── */
.iso-circuit-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.iso-traces {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,192,127,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,192,127,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}

.iso-processor {
  width: 42px;
  height: 42px;
  background: rgba(0,192,127,0.06);
  border: 1px solid rgba(0,192,127,0.55);
  border-radius: 4px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 18px rgba(0,192,127,0.18);
}
.iso-proc-inner {
  position: absolute;
  inset: 7px;
  background: rgba(0,192,127,0.1);
  border: 1px solid rgba(0,192,127,0.35);
  border-radius: 2px;
  animation: proc-glow 2.8s ease-in-out infinite;
}
@keyframes proc-glow {
  0%,100% { box-shadow: none; }
  50%      { box-shadow: 0 0 10px rgba(0,192,127,0.4); }
}
.iso-processor::before,
.iso-processor::after {
  content: '';
  position: absolute;
  background: rgba(0,192,127,0.45);
}
.iso-processor::before {
  left: -12px; top: 10px;
  width: 12px; height: 2px;
  box-shadow: 0 8px 0 rgba(0,192,127,0.45), 0 -8px 0 rgba(0,192,127,0.45);
}
.iso-processor::after {
  right: -12px; top: 10px;
  width: 12px; height: 2px;
  box-shadow: 0 8px 0 rgba(0,192,127,0.45), 0 -8px 0 rgba(0,192,127,0.45);
}

.iso-neural {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.iso-neural span {
  width: 28px;
  height: 2px;
  background: rgba(0,192,127,0.35);
  border-radius: 1px;
  animation: neural-blink 2s ease-in-out infinite;
}
.iso-neural span:nth-child(1) { animation-delay:0s;    width:22px; }
.iso-neural span:nth-child(2) { animation-delay:0.4s;  width:28px; background: rgba(0,192,127,0.65); }
.iso-neural span:nth-child(3) { animation-delay:0.8s;  width:18px; }
.iso-neural span:nth-child(4) { animation-delay:1.2s;  width:26px; }
.iso-neural span:nth-child(5) { animation-delay:1.6s;  width:20px; }
@keyframes neural-blink {
  0%,100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ── LAYER BOT CONTENT: security ────────────────────────────── */
.iso-security-content {
  position: absolute;
  inset: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iso-server-rack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.iso-server-rack span {
  display: block;
  width: 52px;
  height: 10px;
  background: rgba(0,192,127,0.08);
  border: 1px solid rgba(0,192,127,0.2);
  border-radius: 2px;
  position: relative;
}
.iso-server-rack span::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,192,127,0.7);
  box-shadow: 0 0 5px rgba(0,192,127,0.5);
  animation: server-blink 2.5s ease-in-out infinite;
}
.iso-server-rack span:nth-child(2)::before { animation-delay: 0.8s; }
.iso-server-rack span:nth-child(3)::before { animation-delay: 1.6s; }
@keyframes server-blink {
  0%,90%,100% { opacity:0.4; }
  50%          { opacity:1; }
}

.iso-locks {
  display: flex;
  gap: 18px;
}
.iso-lock {
  width: 26px;
  height: 30px;
  border: 2px solid rgba(0,192,127,0.7);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 12px rgba(0,192,127,0.28);
}
.iso-lock::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 12px;
  border: 2px solid rgba(0,192,127,0.7);
  border-bottom: none;
  border-radius: 7px 7px 0 0;
}
.iso-lock::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(0,192,127,0.25);
  animation: lock-pulse 3.5s ease-in-out infinite;
}
@keyframes lock-pulse {
  0%,100% { background: rgba(0,192,127,0.25); }
  50%      { background: rgba(0,192,127,0.55); box-shadow: 0 0 6px rgba(0,192,127,0.4); }
}

/* ── CENTRAL LASER BEAM ──────────────────────────────────────── */
.iso-beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,192,127,0.0) 5%,
    rgba(0,192,127,0.9) 20%,
    rgba(0,192,127,0.65) 50%,
    rgba(0,192,127,0.9) 80%,
    rgba(0,192,127,0.0) 95%,
    transparent 100%
  );
  box-shadow: 0 0 16px 3px rgba(0,192,127,0.4);
  pointer-events: none;
  z-index: 10;
  animation: beam-pulse 3.5s ease-in-out infinite;
}

@keyframes beam-pulse {
  0%,100% { opacity:0.65; box-shadow: 0 0 12px 2px rgba(0,192,127,0.35); }
  50%      { opacity:1;    box-shadow: 0 0 28px 6px rgba(0,192,127,0.6);  }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pillar-scene { grid-template-columns: 1fr; gap: 4rem; }
  .pillar-right { order: -1; }
  .iso-perspective { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 640px) {
  #perche { padding: 8rem 1.25rem; }
  .pillar-scene { gap: 3rem; }
  .pillar-wire  { display: none; }
}
