/* ================================================================
   ASTRA STUDIO – STYLESHEET
   Colors: --purple #7B5CF0 | --pink #FF2D78 | --cyan #00F5FF
           --yellow #FFD700 | --green #00E5A0
================================================================ */

/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7B5CF0;
  --purple-dark: #5A3ED9;
  --purple-light: #B44FD8;
  --pink: #FF2D78;
  --cyan: #00F5FF;
  --yellow: #FFD700;
  --green: #00E5A0;
  --bg: #07060F;
  --bg2: #0D0B1A;
  --bg3: #120F22;
  --text: #F0EEFF;
  --text-muted: #9B91C7;
  --border: rgba(123,92,240,.25);
  --glow-purple: 0 0 40px rgba(123,92,240,.55), 0 0 80px rgba(123,92,240,.25);
  --glow-pink:   0 0 40px rgba(255,45,120,.55), 0 0 80px rgba(255,45,120,.25);
  --glow-cyan:   0 0 40px rgba(0,245,255,.45),  0 0 80px rgba(0,245,255,.2);
  --font-body: 'Space Grotesk', sans-serif;
  --font-head: 'Syne', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }

::selection { background: var(--purple); color: white; }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── CANVAS (stars) ───────────────────────────────────────────── */
#stars-canvas {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* ── AMBIENT NEBULAS ─────────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.amb-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* Nebula viola — in alto a sinistra, grande */
.amb-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(123,92,240,.13) 0%, rgba(123,92,240,.04) 45%, transparent 70%);
  top: -180px; left: -180px;
  animation: nebulaDrift1 22s ease-in-out infinite alternate;
}

/* Nebula rosa — in basso a destra */
.amb-orb-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,45,120,.11) 0%, rgba(255,45,120,.03) 45%, transparent 70%);
  bottom: 5%; right: -120px;
  animation: nebulaDrift2 19s ease-in-out infinite alternate;
}

/* Nebula cyan — centro-destra */
.amb-orb-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,245,255,.08) 0%, rgba(0,245,255,.02) 45%, transparent 70%);
  top: 38%; right: 8%;
  animation: nebulaDrift3 26s ease-in-out infinite alternate;
}

/* Nebula gialla/oro — centro basso */
.amb-orb-4 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,215,0,.07) 0%, rgba(255,150,0,.02) 45%, transparent 70%);
  bottom: 28%; left: 12%;
  animation: nebulaDrift4 30s ease-in-out infinite alternate;
}

/* Light streak 1 — diagonale viola */
.amb-streak {
  position: absolute;
  will-change: transform, opacity;
  pointer-events: none;
}
.amb-streak-1 {
  width: 3px; height: 320px;
  background: linear-gradient(180deg, transparent, rgba(123,92,240,.35), rgba(180,79,216,.5), rgba(123,92,240,.35), transparent);
  top: 18%; left: 22%;
  transform: rotate(-35deg);
  filter: blur(1.5px);
  animation: streakPulse1 7s ease-in-out infinite;
}
.amb-streak-2 {
  width: 2px; height: 240px;
  background: linear-gradient(180deg, transparent, rgba(0,245,255,.3), rgba(0,245,255,.45), rgba(0,245,255,.3), transparent);
  top: 55%; right: 18%;
  transform: rotate(25deg);
  filter: blur(1px);
  animation: streakPulse2 9s ease-in-out infinite;
}

@keyframes nebulaDrift1 {
  0%   { transform: translate(0, 0)    scale(1);    opacity: .7; }
  33%  { transform: translate(80px, 60px)  scale(1.1);  opacity: 1; }
  66%  { transform: translate(40px, 130px) scale(.95);  opacity: .8; }
  100% { transform: translate(120px, 40px) scale(1.05); opacity: .9; }
}
@keyframes nebulaDrift2 {
  0%   { transform: translate(0, 0)     scale(1);   opacity: .6; }
  40%  { transform: translate(-70px, -50px) scale(1.15); opacity: .95; }
  100% { transform: translate(-30px, -100px) scale(.9); opacity: .7; }
}
@keyframes nebulaDrift3 {
  0%   { transform: translate(0, 0)    scale(1);   opacity: .5; }
  50%  { transform: translate(-40px, -60px) scale(1.2); opacity: .85; }
  100% { transform: translate(30px, 40px)  scale(.88); opacity: .6; }
}
@keyframes nebulaDrift4 {
  0%   { transform: translate(0, 0)   scale(1);    opacity: .4; }
  40%  { transform: translate(50px, -30px) scale(1.18); opacity: .75; }
  100% { transform: translate(-20px, 50px) scale(.92); opacity: .55; }
}
@keyframes streakPulse1 {
  0%,100% { opacity: .25; transform: rotate(-35deg) scaleY(.8); }
  50%     { opacity: .75; transform: rotate(-35deg) scaleY(1.1); }
}
@keyframes streakPulse2 {
  0%,100% { opacity: .2;  transform: rotate(25deg) scaleY(.85); }
  50%     { opacity: .65; transform: rotate(25deg) scaleY(1.15); }
}

/* Disabilita le animazioni pesanti su mobile */
@media (max-width: 768px) {
  .amb-orb-1 { width: 380px; height: 380px; }
  .amb-orb-2 { width: 300px; height: 300px; }
  .amb-orb-3, .amb-orb-4, .amb-streak { display: none; }
}

/* ── CURSOR GLOW (subtle, desktop only) ──────────────────────── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,240,.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ── CONTAINER ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ── GRADIENT TEXT ────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── SECTION TAG ──────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(123,92,240,.12);
  border: 1px solid rgba(123,92,240,.35);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '✦';
  animation: spin 4s linear infinite;
}

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

/* ── SECTION HEADER ───────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 0 60px rgba(123,92,240,.25), 0 0 120px rgba(123,92,240,.1);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  background-size: 200% auto;
  box-shadow: 0 0 30px rgba(123,92,240,.5), 0 0 60px rgba(255,45,120,.25), inset 0 1px 0 rgba(255,255,255,.2);
  transition: background-position .4s, box-shadow .3s, transform .2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  background-size: 300% auto;
  opacity: 0;
  z-index: -1;
  animation: auraRotate 2s linear infinite;
  transition: opacity .3s;
}

.btn-primary:hover::after { opacity: 1; }

.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 0 50px rgba(123,92,240,.7), 0 0 100px rgba(255,45,120,.4);
  transform: translateY(-2px) scale(1.02);
}

@keyframes auraRotate {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  border: 1.5px solid rgba(123,92,240,.5);
  background: rgba(123,92,240,.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .3s, box-shadow .3s, transform .2s, background .3s;
}

.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(123,92,240,.18);
  box-shadow: 0 0 30px rgba(123,92,240,.35);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 48px; font-size: 1.05rem; }
.btn-full  { width: 100%; justify-content: center; }

/* ── REVEAL ANIMATION ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: revealFlash .9s ease forwards;
}

@keyframes revealFlash {
  0%   { filter: brightness(1.25) drop-shadow(0 0 18px rgba(123,92,240,.45)); }
  100% { filter: brightness(1)    drop-shadow(0 0 0px transparent); }
}

/* ═══════════════════════════════════ NAVBAR ════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  gap: 16px;
}

/* ── LOGO NAV ─── */
.nav-logo {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

/* Ambilight: drop-shadow segue il contorno esatto del logo PNG */
.nav-logo-img {
  height: 130px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  filter: none;
  transition: filter 1.2s ease;
}

/* Appare solo quando si scrolla sopra contenuto */
#navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(123,92,240,1)) drop-shadow(0 0 22px rgba(123,92,240,.7)) drop-shadow(0 0 36px rgba(123,92,240,.35));
}
#navbar.scrolled.section-about .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(180,79,216,1)) drop-shadow(0 0 22px rgba(180,79,216,.7)) drop-shadow(0 0 36px rgba(123,92,240,.35));
}
#navbar.scrolled.section-services .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(255,215,0,1)) drop-shadow(0 0 22px rgba(255,215,0,.7)) drop-shadow(0 0 36px rgba(255,150,0,.3));
}
#navbar.scrolled.section-collaborations .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(0,245,255,1)) drop-shadow(0 0 22px rgba(0,245,255,.7)) drop-shadow(0 0 36px rgba(0,229,160,.3));
}
#navbar.scrolled.section-packages .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(255,45,120,1)) drop-shadow(0 0 22px rgba(255,45,120,.7)) drop-shadow(0 0 36px rgba(123,92,240,.3));
}
#navbar.scrolled.section-cta-band .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(255,45,120,1)) drop-shadow(0 0 22px rgba(255,45,120,.7)) drop-shadow(0 0 36px rgba(255,45,120,.3));
}
#navbar.scrolled.section-contact .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(123,92,240,1)) drop-shadow(0 0 22px rgba(255,45,120,.7)) drop-shadow(0 0 36px rgba(123,92,240,.3));
}

/* ── NAV PILL (links + cta) ─── */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(123,92,240,.28);
  border-radius: 50px;
  padding: 6px 8px 6px 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 18px rgba(123,92,240,.1), inset 0 1px 0 rgba(255,255,255,.05);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .25s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 16px rgba(123,92,240,.4);
  transition: box-shadow .3s, transform .2s;
  white-space: nowrap;
  margin-left: 8px;
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(123,92,240,.65), 0 0 60px rgba(255,45,120,.3);
  transform: translateY(-1px);
}

.about-logo-svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.footer-logo {
  height: auto;
  width: 100%;
  max-width: 260px;
  margin-bottom: 20px;
  display: block;
  animation: footerLogoGlow 5s ease-in-out infinite;
}

@keyframes footerLogoGlow {
  0%   { filter: drop-shadow(0 0 8px rgba(123,92,240,1))   drop-shadow(0 0 22px rgba(123,92,240,.7))  drop-shadow(0 0 40px rgba(123,92,240,.4)); }
  25%  { filter: drop-shadow(0 0 8px rgba(180,79,216,1))   drop-shadow(0 0 22px rgba(255,45,120,.8))  drop-shadow(0 0 40px rgba(255,45,120,.4)); }
  50%  { filter: drop-shadow(0 0 8px rgba(255,45,120,1))   drop-shadow(0 0 22px rgba(255,45,120,.7))  drop-shadow(0 0 40px rgba(0,245,255,.35)); }
  75%  { filter: drop-shadow(0 0 8px rgba(0,245,255,.9))   drop-shadow(0 0 22px rgba(0,245,255,.65))  drop-shadow(0 0 40px rgba(123,92,240,.4)); }
  100% { filter: drop-shadow(0 0 8px rgba(123,92,240,1))   drop-shadow(0 0 22px rgba(123,92,240,.7))  drop-shadow(0 0 40px rgba(123,92,240,.4)); }
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu fullscreen overlay ─────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(4,3,12,.97);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
}

/* orbo viola in alto a sinistra */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -15%;
  width: 65%;
  height: 60%;
  background: radial-gradient(circle, rgba(123,92,240,.18) 0%, transparent 65%);
  pointer-events: none;
}

/* orbo rosa in basso a destra */
.mobile-menu::after {
  content: '';
  position: absolute;
  bottom: -5%;
  right: -15%;
  width: 65%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,45,120,.13) 0%, transparent 65%);
  pointer-events: none;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mob-link {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 12px 48px;
  background: none;
  border: none;
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .45s ease, transform .45s ease;
  position: relative;
  z-index: 1;
}

.mobile-menu.open .mob-link:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.mobile-menu.open .mob-link:nth-child(2) { opacity: 1; transform: none; transition-delay: .11s; }
.mobile-menu.open .mob-link:nth-child(3) { opacity: 1; transform: none; transition-delay: .17s; }
.mobile-menu.open .mob-link:nth-child(4) { opacity: 1; transform: none; transition-delay: .23s; }

.mob-link:hover {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════ HERO ══════════════════════ */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 0;
}

/* animated mesh gradient bg */
#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 65% 65% at 20% 30%, rgba(123,92,240,.30) 0%, transparent 70%),
    radial-gradient(ellipse 55% 55% at 80% 70%, rgba(255,45,120,.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 60% 20%, rgba(0,245,255,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 40% 85%, rgba(180,79,216,.14) 0%, transparent 65%);
  animation: meshPulse 10s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes meshPulse {
  0%   { opacity: .7; }
  100% { opacity: 1; }
}

@keyframes sectionPulse {
  0%   { opacity: .5; transform: scale(1)    translateY(0); }
  50%  { opacity: .9; transform: scale(1.12) translateY(-20px); }
  100% { opacity: .6; transform: scale(.95)  translateY(15px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,245,255,.08);
  border: 1px solid rgba(0,245,255,.3);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  position: relative;
}

/* glow via pseudo-element opacity (GPU, non repaint) */
.hero-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  background: rgba(0,245,255,.22);
  filter: blur(8px);
  opacity: .4;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,100% { opacity: .25; }
  50%      { opacity: .7; }
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: dotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes dotPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .7; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(123,92,240,.2);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-stats {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: calc(100% - 48px);
  max-width: 560px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(123,92,240,.07);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 40px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  flex-wrap: nowrap;
}

.stat {
  text-align: center;
  padding: 0 32px;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix { font-size: 1.5rem; font-weight: 800; color: var(--purple); }

.stat p {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: .04em;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* big bg logo */
.hero-logo-bg {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  opacity: .4;
  animation: floatStar 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatStar {
  0%,100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  33%      { transform: translateY(-52%) rotate(4deg) scale(1.02); }
  66%      { transform: translateY(-48%) rotate(-3deg) scale(.98); }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50%      { transform: scaleY(.6); opacity: .5; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════ ABOUT ═════════════════════ */
#about {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 70% at 5%  50%, rgba(123,92,240,.09) 0%, transparent 65%),
    radial-gradient(ellipse 45% 60% at 95% 50%, rgba(255,45,120,.08) 0%, transparent 65%);
}

#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* service cloud (about visual) */
.service-cloud {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.sc-chip {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: chipFloat 6s ease-in-out infinite;
  transition: border-color .3s, box-shadow .3s;
}

.sc-chip:hover {
  border-color: rgba(123,92,240,.4);
  box-shadow: 0 8px 28px rgba(123,92,240,.15);
}

/* staggered float delays + alternate-row vertical offset */
.sc-chip:nth-child(1) { animation-delay: 0s; }
.sc-chip:nth-child(2) { animation-delay: .7s;  margin-top: 22px; }
.sc-chip:nth-child(3) { animation-delay: 1.4s; }
.sc-chip:nth-child(4) { animation-delay: 2.1s; margin-top: 22px; }
.sc-chip:nth-child(5) { animation-delay: 2.8s; }
.sc-chip:nth-child(6) { animation-delay: 3.5s; margin-top: 22px; }

@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.sc-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.sc-icon svg { width: 26px; height: 26px; }

.sc-chip span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(123,92,240,.08);
  transition: border-color .3s, box-shadow .3s, background .3s;
}

.value-chip span { color: var(--purple); animation: spin 6s linear infinite; }

.value-chip:hover {
  border-color: var(--purple);
  background: rgba(123,92,240,.18);
  box-shadow: 0 0 20px rgba(123,92,240,.3);
}

/* ═══════════════════════════════════ SERVICES ══════════════════ */
#services {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(123,92,240,.09) 50%, transparent 100%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(123,92,240,.06) 0%, transparent 70%);
  contain: layout style;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(123,92,240,.6), rgba(255,45,120,.5), transparent);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(123,92,240,.05);
  border: 1px solid rgba(123,92,240,.2);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s, box-shadow .35s, opacity .35s;
  cursor: default;
  box-shadow: 0 4px 24px rgba(0,0,0,.25), 0 0 30px rgba(123,92,240,.08), inset 0 1px 0 rgba(255,255,255,.05);
}

/* ombra via pseudo-elemento: cambia opacity (GPU) non box-shadow (repaint) */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(123,92,240,.25);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

/* aura top-left */
.service-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,92,240,.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(123,92,240,.5);
}

.service-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(255,215,0,.12);
  border: 1px solid rgba(255,215,0,.3);
  padding: 4px 12px;
  border-radius: 50px;
}

.service-tag::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  background: rgba(255,215,0,.25);
  filter: blur(6px);
  opacity: .35;
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c1, #7B5CF0), var(--c2, #FF2D78));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(123,92,240,.35);
  transition: box-shadow .3s, transform .3s;
}

.service-card:hover .service-icon {
  box-shadow: 0 0 36px rgba(123,92,240,.6);
  transform: scale(1.08) rotate(-4deg);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '✦';
  font-size: .6rem;
  color: var(--purple);
  flex-shrink: 0;
}

/* ═══════════════════════════════ COLLABORATIONS ════════════════ */
#collaborations {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
#collaborations::after {
  content: '';
  position: absolute;
  top: 10%; right: -10%;
  width: 55%; height: 80%;
  background: radial-gradient(ellipse, rgba(0,245,255,.06) 0%, transparent 65%);
  pointer-events: none;
  animation: sectionPulse 8s ease-in-out infinite alternate;
}

/* ticker */
.collab-ticker-wrap {
  overflow: hidden;
  margin-bottom: 72px;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.collab-ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 25s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.collab-item {
  flex-shrink: 0;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color .3s;
}

.collab-item:hover { color: var(--purple); }

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

.testimonial-card {
  background: rgba(123,92,240,.05);
  border: 1px solid rgba(123,92,240,.18);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2), 0 0 25px rgba(123,92,240,.07), inset 0 1px 0 rgba(255,255,255,.04);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 28px rgba(123,92,240,.18);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.testimonial-card:hover::before { opacity: 1; }

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123,92,240,.4);
}

/* decorative quote mark */
.testimonial-card::after {
  content: '"';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--purple);
  opacity: .1;
  line-height: 1;
  pointer-events: none;
}

.stars {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(255,215,0,.5);
}

.testimonial-card > p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(123,92,240,.35);
}

.testimonial-author strong {
  display: block;
  font-weight: 700;
  font-size: .9rem;
}

.testimonial-author span {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════ CTA BAND ══════════════════ */
#cta-band {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(135deg, rgba(123,92,240,.18), rgba(255,45,120,.12));
  border: 1px solid rgba(123,92,240,.4);
  border-radius: 32px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(123,92,240,.18),
    0 0 120px rgba(255,45,120,.1),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  background-size: 300% auto;
  opacity: .28;
  animation: ctaBorder 5s linear infinite;
  z-index: -1;
}

@keyframes ctaBorder {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-inner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ═══════════════════════════════════ CONTACT ═══════════════════ */
#contact {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
#contact::before {
  content: '';
  position: absolute;
  top: -5%; left: -5%;
  width: 60%; height: 70%;
  background: radial-gradient(ellipse, rgba(123,92,240,.08) 0%, transparent 65%);
  pointer-events: none;
  animation: sectionPulse 11s ease-in-out infinite alternate;
}
#contact::after {
  content: '';
  position: absolute;
  bottom: -5%; right: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(ellipse, rgba(255,45,120,.07) 0%, transparent 65%);
  pointer-events: none;
  animation: sectionPulse 9s ease-in-out infinite alternate-reverse;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(123,92,240,.05);
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .3s, box-shadow .3s, background .3s, transform .2s;
}

.contact-item:hover {
  border-color: var(--purple);
  background: rgba(123,92,240,.12);
  box-shadow: 0 0 25px rgba(123,92,240,.25);
  transform: translateX(6px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(123,92,240,.4);
}

.contact-icon svg { width: 20px; height: 20px; color: white; }

/* form */
.contact-form {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(123,92,240,.06);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(155,145,199,.5); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(123,92,240,.3);
  background: rgba(123,92,240,.1);
}

.form-group select option { background: var(--bg3); color: var(--text); }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,229,160,.1);
  border: 1px solid rgba(0,229,160,.35);
  color: var(--green);
  font-weight: 600;
  text-align: center;
  animation: successPulse .5s ease;
}

.form-success.show { display: block; }

@keyframes successPulse {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.btn-icon { width: 18px; height: 18px; }

/* ═══════════════════════════════════ FOOTER ════════════════════ */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  background: rgba(0,0,0,.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
  align-items: start;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: .78rem;
  max-width: 300px;
  line-height: 1.55;
  margin-top: 8px;
}

.footer-links h4 {
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color .25s, transform .2s;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════ MONITOR MOCKUP ════════════ */
.device-scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monitor-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: monitorFloat 6s ease-in-out infinite;
  filter:
    drop-shadow(0 22px 52px rgba(123,92,240,.6))
    drop-shadow(0 6px 18px rgba(255,45,120,.22))
    drop-shadow(0 -2px 18px rgba(0,245,255,.1));
}

.monitor-svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes monitorFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}

/* Notification chips */
.ph-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12,10,24,.88);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50px;
  padding: 7px 14px 7px 7px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  z-index: 4;
  animation: chipBounce 4.5s ease-in-out infinite;
  white-space: nowrap;
}

.ph-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-chip-text {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  line-height: 1;
}

.ph-chip-text strong {
  color: white;
  font-weight: 700;
}

.ph-chip-1 {
  top: 24px;
  right: -8px;
  animation-delay: 0s;
  box-shadow: 0 4px 20px rgba(253,29,29,.18);
}

.ph-chip-2 {
  bottom: 110px;
  left: -8px;
  animation-delay: .9s;
  box-shadow: 0 4px 20px rgba(255,45,120,.18);
}

.ph-chip-3 {
  bottom: 54px;
  right: -8px;
  animation-delay: 1.8s;
  box-shadow: 0 4px 20px rgba(123,92,240,.22);
}

@keyframes chipBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ═══════════════════════════════════ TEAM VISUAL (legacy) ══════ */
.team-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

.team-tile {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: chipFloat 6s ease-in-out infinite;
  transition: border-color .3s, box-shadow .3s;
}

.team-tile:hover {
  border-color: rgba(123,92,240,.4);
  box-shadow: 0 8px 28px rgba(123,92,240,.15);
}

.team-tile:nth-child(2) { margin-top: 24px; animation-delay: .8s; }
.team-tile:nth-child(3) { animation-delay: 1.6s; }
.team-tile:nth-child(4) { margin-top: 24px; animation-delay: 2.4s; }

.team-tile-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.team-tile-icon svg { width: 52px; height: 52px; }

.team-tile span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ═══════════════════════════════════ PACKAGES ══════════════════ */
#packages {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}
#packages::before {
  content: '';
  position: absolute;
  top: 5%; left: -8%;
  width: 50%; height: 90%;
  background: radial-gradient(ellipse, rgba(255,45,120,.07) 0%, transparent 65%);
  pointer-events: none;
  animation: sectionPulse 10s ease-in-out infinite alternate-reverse;
}
#packages::after {
  content: '';
  position: absolute;
  bottom: 5%; right: -8%;
  width: 45%; height: 70%;
  background: radial-gradient(ellipse, rgba(123,92,240,.07) 0%, transparent 65%);
  pointer-events: none;
  animation: sectionPulse 12s ease-in-out infinite alternate;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  align-items: start;
}

.pkg-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .35s cubic-bezier(.4,0,.2,1), border-color .35s, box-shadow .35s;
}

.pkg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123,92,240,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 40px rgba(123,92,240,.15);
}

/* Carta featured: bordo pulsante + glow che attira l'attenzione */
.pkg-featured {
  border-color: rgba(255,45,120,.55);
  background: rgba(255,45,120,.05);
  box-shadow:
    0 0 0 1px rgba(255,45,120,.3),
    0 0 40px rgba(255,45,120,.18),
    0 0 80px rgba(123,92,240,.1);
  animation: featuredGlow 3s ease-in-out infinite;
}

@keyframes featuredGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255,45,120,.3), 0 0 35px rgba(255,45,120,.15), 0 0 70px rgba(123,92,240,.08);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255,45,120,.6), 0 0 60px rgba(255,45,120,.3), 0 0 120px rgba(255,45,120,.15), 0 0 40px rgba(123,92,240,.2);
  }
}

.pkg-featured:hover {
  border-color: rgba(255,45,120,.8);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 80px rgba(255,45,120,.35), 0 0 40px rgba(123,92,240,.2);
  animation: none;
}

.pkg-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(255,45,120,.45);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,45,120,.4); transform: translateX(-50%) scale(1); }
  50%       { box-shadow: 0 0 32px rgba(255,45,120,.7), 0 0 60px rgba(255,45,120,.3); transform: translateX(-50%) scale(1.05); }
}

.pkg-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,.3);
  flex-shrink: 0;
}
.pkg-icon svg { width: 28px; height: 28px; }

.pkg-card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.pkg-desc {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}

.pkg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pkg-list li {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pkg-list li::before {
  content: '✦';
  font-size: .6rem;
  color: var(--purple);
  flex-shrink: 0;
}

.pkg-featured .pkg-list li::before { color: var(--pink); }

.pkg-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pkg-cta p {
  color: var(--text-muted);
  font-size: 1rem;
}

.pkg-cta strong { color: var(--text); }

/* Nasconde overlay menu su desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* ═══════════════════════════════════ RESPONSIVE ════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-cloud { margin: 0 auto; }
  .about-text { text-align: center; }
  .about-values { justify-content: center; }
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 56px; }

  /* Hero fits in one screen on tablet portrait */
  #hero { padding: 76px 24px 24px; }
  .hero-title {
    font-size: clamp(1.85rem, 3.8vw, 2.8rem);
    line-height: 1.06;
    margin-bottom: 12px;
  }
  .hero-sub { margin-bottom: 18px; font-size: .88rem; }
  .hero-actions { gap: 12px; }
  .hero-stats { padding: 12px 20px; margin-bottom: 28px; }
  .stat-num { font-size: 1.55rem; }
  .stat { padding: 0 12px; }
}

/* Landscape tablet / short viewport */
@media (max-height: 820px) and (min-width: 600px) {
  #hero { padding: 68px 24px 20px; }
  .hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-bottom: 10px;
  }
  .hero-sub { margin-bottom: 14px; }
  .hero-stats { padding: 10px 16px; margin-bottom: 20px; }
  .stat-num { font-size: 1.4rem; }
}

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

  /* Logo mobile + ambilight ridotto (no riga) */
  #navbar .nav-logo-img {
    height: 90px;
    transition: filter .8s ease;
  }
  #navbar.scrolled .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(123,92,240,.9)) drop-shadow(0 0 14px rgba(123,92,240,.45)) !important;
  }
  #navbar.scrolled.section-services .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(255,215,0,.9)) drop-shadow(0 0 14px rgba(255,150,0,.45)) !important;
  }
  #navbar.scrolled.section-about .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(180,79,216,.9)) drop-shadow(0 0 14px rgba(123,92,240,.45)) !important;
  }
  #navbar.scrolled.section-collaborations .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(0,245,255,.9)) drop-shadow(0 0 14px rgba(0,229,160,.45)) !important;
  }
  #navbar.scrolled.section-packages .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(255,45,120,.9)) drop-shadow(0 0 14px rgba(123,92,240,.45)) !important;
  }
  #navbar.scrolled.section-contact .nav-logo-img {
    filter: drop-shadow(0 0 6px rgba(123,92,240,.9)) drop-shadow(0 0 14px rgba(255,45,120,.45)) !important;
  }

  /* Hero: tutto il contenuto compatto e centrato insieme */
  #hero { padding: 118px 24px 28px; justify-content: center; gap: 20px; }
  .hero-content { flex: none; justify-content: flex-start; }

  /* Titolo compatto su mobile — max 2-3 righe */
  .hero-title { font-size: 1.7rem; line-height: 1.1; margin-bottom: 14px; }
  .hero-badge { font-size: .7rem; padding: 6px 14px; margin-bottom: 18px; }
  .hero-sub { font-size: .82rem; line-height: 1.55; margin-bottom: 22px; }

  /* Stats compatte subito dopo i bottoni */
  .hero-stats { padding: 10px 12px; margin: 0 auto; width: calc(100% - 32px); }
  .stat { padding: 0 8px; }
  .stat-num { font-size: 1.2rem; }
  .stat-divider { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  /* Clip pseudo-element glows that extend beyond section bounds */
  #collaborations, #packages, #contact { overflow: hidden; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info,
  .contact-info h2,
  .contact-info > p { text-align: center !important; }
  .contact-info .section-tag { margin-left: auto; margin-right: auto; }
  .contact-info > p { max-width: 340px; margin-left: auto !important; margin-right: auto !important; }
  .contact-items { align-items: stretch; max-width: 400px; margin: 0 auto; }
  .contact-item { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-logo { display: none !important; }
  .footer-brand p { margin: 0 auto; font-size: .75rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

  .hero-logo-bg { display: none; }

  .cta-inner { padding: 48px 28px; }
  .team-visual { max-width: 300px; }

  .device-scene { max-width: 340px; height: 300px; }
  .ph-chip { display: none; }
}

@media (max-width: 480px) {
  .service-cloud { max-width: 300px; }
  .contact-form { padding: 28px 20px; }
}

/* ── GPU hints for animated elements ─────────────────────────── */
.hero-logo-bg,
.sc-chip,
.gradient-text {
  will-change: transform;
}

/* ── Disable heavy animations on reduced-motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  #stars-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── iOS Safari safe area + scroll fix ───────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}

/* ── Better tap highlight on mobile ──────────────────────────── */
a, button { -webkit-tap-highlight-color: rgba(123,92,240,.2); }
