/* =============================================
   NEO CONNECT ULTRA — PREMIUM ANIMATIONS
   ============================================= */

/* Reveal on scroll */
.u-reveal { opacity:0; transform:translateY(40px); transition:opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.u-reveal.visible { opacity:1; transform:translateY(0); }
.u-reveal.d1 { transition-delay:.1s }
.u-reveal.d2 { transition-delay:.2s }
.u-reveal.d3 { transition-delay:.3s }
.u-reveal.d4 { transition-delay:.4s }
.u-reveal.d5 { transition-delay:.5s }

/* Hero */
.u-hero { min-height:100vh; display:flex; align-items:center; position:relative; overflow:hidden; background:#060810; }
.u-hero-bg { position:absolute; inset:0; z-index:0; }
.u-hero-grid { position:absolute; inset:0; background-image: linear-gradient(rgba(139,92,246,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,0.07) 1px, transparent 1px); background-size:60px 60px; animation:gridMove 20s linear infinite; }
@keyframes gridMove { 0%{background-position:0 0} 100%{background-position:60px 60px} }
.u-orb { position:absolute; border-radius:50%; filter:blur(120px); pointer-events:none; }
.u-orb-1 { width:600px; height:600px; background:radial-gradient(circle, rgba(139,92,246,0.4) 0%, transparent 70%); top:-20%; right:-10%; animation:orbFloat1 8s ease-in-out infinite alternate; }
.u-orb-2 { width:400px; height:400px; background:radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%); bottom:-10%; left:5%; animation:orbFloat2 10s ease-in-out infinite alternate; }
@keyframes orbFloat1 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-40px,30px) scale(1.1)} }
@keyframes orbFloat2 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(30px,-40px) scale(1.15)} }

.u-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(139,92,246,0.12); border:1px solid rgba(139,92,246,0.3); padding:8px 18px; border-radius:100px; font-size:.8rem; font-weight:600; letter-spacing:.05em; color:rgba(255,255,255,.8); margin-bottom:24px; backdrop-filter:blur(10px); }
.u-badge-dot { width:7px; height:7px; border-radius:50%; background:#8b5cf6; box-shadow:0 0 10px #8b5cf6; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 6px #8b5cf6} 50%{box-shadow:0 0 20px #8b5cf6, 0 0 40px rgba(139,92,246,0.5)} }

.u-h1 { font-family:var(--fd); font-size:clamp(3rem,7vw,5.5rem); font-weight:900; line-height:1.05; letter-spacing:-3px; color:#fff; margin-bottom:24px; }
.u-h1 .line2 { background:linear-gradient(135deg,#8b5cf6,#3b82f6,#06b6d4); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

.u-hero-stats { display:flex; gap:32px; flex-wrap:wrap; margin-top:40px; }
.u-stat { display:flex; flex-direction:column; }
.u-stat-val { font-family:var(--fd); font-size:2.2rem; font-weight:900; color:#fff; line-height:1; }
.u-stat-val span { font-size:1rem; font-weight:600; color:#8b5cf6; }
.u-stat-label { font-size:.75rem; color:rgba(255,255,255,.5); margin-top:4px; font-weight:500; letter-spacing:.05em; text-transform:uppercase; }

/* Floating device */
.u-device-wrap { position:relative; flex:0 0 auto; }
.u-device-float { animation:deviceFloat 5s ease-in-out infinite alternate; filter:drop-shadow(0 40px 80px rgba(139,92,246,0.5)); max-width:360px; position:relative; z-index:2; }
@keyframes deviceFloat { 0%{transform:translateY(0) rotate(-2deg)} 100%{transform:translateY(-30px) rotate(2deg)} }
.u-device-ring { position:absolute; border-radius:50%; border:1px solid; top:50%; left:50%; transform:translate(-50%,-50%); animation:ringPulse 3s ease-in-out infinite; pointer-events:none; }
.u-ring-1 { width:420px; height:420px; border-color:rgba(139,92,246,0.15); animation-delay:0s; }
.u-ring-2 { width:560px; height:560px; border-color:rgba(139,92,246,0.08); animation-delay:.5s; }
.u-ring-3 { width:700px; height:700px; border-color:rgba(139,92,246,0.04); animation-delay:1s; }
@keyframes ringPulse { 0%,100%{transform:translate(-50%,-50%) scale(1); opacity:1} 50%{transform:translate(-50%,-50%) scale(1.05); opacity:.5} }

/* Section titles */
.u-section-label { font-size:.7rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:#8b5cf6; margin-bottom:12px; }
.u-section-title { font-family:var(--fd); font-size:clamp(2rem,4vw,3rem); font-weight:900; line-height:1.1; letter-spacing:-1.5px; margin-bottom:16px; }
.u-section-sub { color:var(--text-m); font-size:1rem; max-width:600px; margin:0 auto; }

/* Product cards */
.u-product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(380px,1fr)); gap:2px; margin-top:60px; }
.u-product-card { position:relative; background:var(--bg-elevated); border:1px solid var(--border); border-radius:24px; overflow:hidden; cursor:default; transition:transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease; }
.u-product-card:hover { transform:translateY(-8px); box-shadow:0 40px 80px rgba(0,0,0,0.35); }
.u-product-card.prism { border-color:rgba(139,92,246,0.25); }
.u-product-card.prime { border-color:rgba(59,130,246,0.25); }
.u-product-card.prism:hover { box-shadow:0 40px 80px rgba(139,92,246,0.2); border-color:rgba(139,92,246,0.5); }
.u-product-card.prime:hover { box-shadow:0 40px 80px rgba(59,130,246,0.2); border-color:rgba(59,130,246,0.5); }
.u-product-top-bar { height:3px; width:100%; }
.u-product-card.prism .u-product-top-bar { background:linear-gradient(90deg,#8b5cf6,#6366f1,#3b82f6); }
.u-product-card.prime .u-product-top-bar { background:linear-gradient(90deg,#3b82f6,#06b6d4); }

.u-product-img-wrap { height:280px; display:flex; align-items:flex-end; justify-content:center; padding:20px; position:relative; overflow:hidden; }
.u-product-card.prism .u-product-img-wrap { background:radial-gradient(ellipse at 50% 100%, rgba(139,92,246,0.15) 0%, transparent 70%); }
.u-product-card.prime .u-product-img-wrap { background:radial-gradient(ellipse at 50% 100%, rgba(59,130,246,0.15) 0%, transparent 70%); }
.u-product-img { max-height:240px; position:relative; z-index:2; filter:drop-shadow(0 30px 50px rgba(0,0,0,0.4)); transition:transform .6s cubic-bezier(.16,1,.3,1); }
.u-product-card:hover .u-product-img { transform:translateY(-16px) scale(1.04); }
.u-product-img-glow { position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:200px; height:80px; border-radius:50%; filter:blur(30px); }
.u-product-card.prism .u-product-img-glow { background:#8b5cf6; opacity:0.3; }
.u-product-card.prime .u-product-img-glow { background:#3b82f6; opacity:0.3; }

.u-product-body { padding:28px 32px 32px; }
.u-product-tag { display:inline-block; font-size:.65rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; padding:4px 12px; border-radius:100px; margin-bottom:12px; }
.u-product-card.prism .u-product-tag { background:rgba(139,92,246,0.12); color:#a78bfa; border:1px solid rgba(139,92,246,0.25); }
.u-product-card.prime .u-product-tag { background:rgba(59,130,246,0.12); color:#60a5fa; border:1px solid rgba(59,130,246,0.25); }
.u-product-name { font-family:var(--fd); font-size:1.6rem; font-weight:900; letter-spacing:-.5px; margin-bottom:8px; }
.u-product-desc { color:var(--text-m); font-size:.9rem; line-height:1.65; margin-bottom:24px; }

/* Spec bars */
.u-specs { display:flex; flex-direction:column; gap:14px; margin-bottom:28px; }
.u-spec-row { display:flex; flex-direction:column; gap:6px; }
.u-spec-top { display:flex; justify-content:space-between; align-items:center; }
.u-spec-name { font-size:.78rem; font-weight:600; color:var(--text-s); }
.u-spec-val { font-size:.78rem; font-weight:700; }
.u-product-card.prism .u-spec-val { color:#a78bfa; }
.u-product-card.prime .u-spec-val { color:#60a5fa; }
.u-spec-bar-track { height:4px; background:var(--surface); border-radius:99px; overflow:hidden; }
.u-spec-bar-fill { height:100%; border-radius:99px; width:0%; transition:width 1.2s cubic-bezier(.16,1,.3,1); }
.u-product-card.prism .u-spec-bar-fill { background:linear-gradient(90deg,#8b5cf6,#3b82f6); }
.u-product-card.prime .u-spec-bar-fill { background:linear-gradient(90deg,#3b82f6,#06b6d4); }

/* Feature chips */
.u-features { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.u-feature-chip { display:flex; align-items:center; gap:6px; font-size:.75rem; font-weight:600; padding:6px 14px; border-radius:100px; border:1px solid var(--border); color:var(--text-s); transition:all .2s; background:var(--surface); }
.u-feature-chip:hover { border-color:rgba(139,92,246,0.4); color:var(--text); }
.u-feature-chip .icon { font-size:1rem; }

/* Port grid */
.u-ports { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:28px; }
.u-port { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.u-port-label { font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--text-m); margin-bottom:2px; }
.u-port-val { font-size:.8rem; font-weight:600; color:var(--text); }
.u-port.neon { border-color:rgba(59,130,246,0.4); background:rgba(59,130,246,0.05); }
.u-port.neon .u-port-val { color:#60a5fa; }

/* Sigai section */
.u-sigai { position:relative; overflow:hidden; background:#060810; padding:100px 0; }
.u-sigai-bg { position:absolute; inset:0; background:radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.15) 0%, transparent 60%), radial-gradient(ellipse at 70% 60%, rgba(59,130,246,0.1) 0%, transparent 60%); }
.u-sigai-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; position:relative; z-index:2; }
.u-sigai-cases { display:flex; flex-direction:column; gap:16px; }
.u-case-card { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:16px; padding:24px; position:relative; overflow:hidden; transition:all .3s ease; }
.u-case-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,#8b5cf6,#3b82f6); transform:scaleX(0); transform-origin:left; transition:transform .4s ease; }
.u-case-card:hover { background:rgba(255,255,255,0.05); border-color:rgba(139,92,246,0.3); }
.u-case-card:hover::before { transform:scaleX(1); }
.u-case-num { font-family:var(--fd); font-size:2.5rem; font-weight:900; color:rgba(139,92,246,0.15); line-height:1; margin-bottom:8px; }
.u-case-title { font-size:1rem; font-weight:700; color:#fff; margin-bottom:6px; }
.u-case-desc { font-size:.85rem; color:rgba(255,255,255,.5); line-height:1.6; }

/* Compare table revamped */
.u-compare { margin-top:60px; border:1px solid var(--border); border-radius:20px; overflow:hidden; background:var(--bg-elevated); }
.u-compare-head { display:grid; grid-template-columns:2fr 1.5fr 1fr 1fr; gap:0; background:var(--surface); }
.u-compare-cell { padding:18px 20px; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-m); }
.u-compare-cell.neo { color:#8b5cf6; background:rgba(139,92,246,0.08); border-left:1px solid rgba(139,92,246,0.2); border-right:1px solid rgba(139,92,246,0.2); }
.u-compare-row { display:grid; grid-template-columns:2fr 1.5fr 1fr 1fr; border-top:1px solid var(--border); transition:background .2s; }
.u-compare-row:hover { background:var(--surface); }
.u-compare-data { padding:18px 20px; font-size:.88rem; color:var(--text-s); display:flex; align-items:center; gap:10px; line-height:1.4; }
.u-compare-data.neo { background:rgba(139,92,246,0.04); border-left:1px solid rgba(139,92,246,0.1); border-right:1px solid rgba(139,92,246,0.1); color:var(--text); font-weight:500; }
.u-check { color:#10b981; font-size:1rem; }
.u-cross { color:#ef4444; font-size:1rem; }

/* Spec sheet popup style */
.u-spec-table { width:100%; border-collapse:collapse; margin-top:16px; }
.u-spec-table tr { border-bottom:1px solid var(--border); }
.u-spec-table tr:last-child { border:none; }
.u-spec-table td { padding:12px 4px; font-size:.85rem; }
.u-spec-table td:first-child { color:var(--text-m); font-weight:500; width:45%; }
.u-spec-table td:last-child { font-weight:600; color:var(--text); text-align:right; }

@media(max-width:768px) {
  .u-hero { min-height:auto; padding:100px 24px 60px; }
  .u-device-wrap { display:none; }
  .u-sigai-grid { grid-template-columns:1fr; gap:32px; }
  .u-product-grid { grid-template-columns:1fr; }
  .u-compare-head, .u-compare-row { grid-template-columns:1fr 1.2fr; }
  .u-compare-cell:nth-child(3), .u-compare-cell:nth-child(4), .u-compare-data:nth-child(3), .u-compare-data:nth-child(4) { display:none; }
  .unbox-grid { grid-template-columns:1fr !important; }
}

/* UNBOX CARDS */
.unbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.unbox-card {
  cursor: pointer;
}
.unbox-img-wrap {
  border-radius: 24px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}
.unbox-glow-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.unbox-img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  position: relative;
}
.unbox-card:hover .unbox-img-wrap {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
}
.unbox-card:hover .unbox-glow-bg {
  opacity: 1;
}
.unbox-card:hover .unbox-img {
  transform: scale(1.1) translateY(-10px);
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.25));
}
.unbox-card:hover .unbox-img[style*="scale(1.15)"] {
  transform: scale(1.25) translateY(-10px) !important;
}
.unbox-card:hover .unbox-img[style*="scale(1.1)"] {
  transform: scale(1.2) translateY(-10px) !important;
}
.unbox-title {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  padding: 0 8px;
  transition: color 0.3s ease;
}
.unbox-card:hover .unbox-title {
  color: #10b981;
}
