/* ==========================================================================
   Template: Mobile App Launch — signature design (v2).
   Concept: a cyberpunk product-launch console — animated perspective grid
   floor on canvas, glow orbs, a glassy phone mockup with a live-looking
   dashboard screen and orbiting feature nodes that float, scan-line
   countdown units, mouse-driven 3D phone tilt. Own palette + type trio.
   ========================================================================== */

.nx-page {
  --nx-void: #05060b;
  --nx-panel: #0c1020;
  --nx-panel-2: #10162b;
  --nx-cyan: #4cf3e0;
  --nx-violet: #9c7cff;
  --nx-pink: #ff6fd8;
  --nx-ink: #e9ecfa;
  --nx-ink-dim: #8a90b3;
  --nx-line: rgba(140, 150, 220, 0.16);
  --nx-ink-on-btn: #05060b;

  background: var(--nx-void);
  color: var(--nx-ink);
  font-family: "Inter", var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#nx-grid-canvas { position: fixed; inset: 0; z-index: 0; opacity: 0.55; pointer-events: none; }
.nx-orb { position: fixed; border-radius: 50%; filter: blur(90px); opacity: 0.35; z-index: 0; pointer-events: none; }
.nx-orb-a { width: 480px; height: 480px; background: var(--nx-violet); top: -140px; left: -100px; }
.nx-orb-b { width: 420px; height: 420px; background: var(--nx-cyan); bottom: -160px; right: -100px; }
.nx-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nx-wrap { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 36px 24px 56px; }

.nx-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.nx-logo { font-family: "Space Grotesk", var(--font-body); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.nx-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-cyan); box-shadow: 0 0 12px var(--nx-cyan); flex-shrink: 0; }
.nx-status {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--nx-cyan);
  border: 1px solid rgba(76, 243, 224, 0.3); padding: 6px 12px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; background: rgba(76, 243, 224, 0.06);
  white-space: nowrap;
}
.nx-status .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-cyan); animation: nx-pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.nx-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .nx-hero { grid-template-columns: minmax(0, 1fr); } }
.nx-hero-copy { min-width: 0; }

.nx-eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.15em;
  color: var(--nx-violet); text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.nx-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--nx-violet); flex-shrink: 0; }

.nx-headline {
  font-family: "Space Grotesk", var(--font-body); font-weight: 700;
  font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px;
}
.nx-headline .grad {
  background: linear-gradient(90deg, var(--nx-cyan), var(--nx-violet) 60%, var(--nx-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-sub { color: var(--nx-ink-dim); font-size: 15.5px; line-height: 1.7; max-width: 460px; margin-bottom: 30px; }

/* Countdown with a scanning highlight line ---------------------------------- */

.nx-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 400px; margin-bottom: 28px; }
.nx-unit {
  background: linear-gradient(180deg, var(--nx-panel-2), var(--nx-panel));
  border: 1px solid var(--nx-line); border-radius: 12px;
  padding: 12px 4px; text-align: center; position: relative; overflow: hidden; min-width: 0;
}
.nx-unit::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nx-cyan), transparent);
  animation: nx-scan 3s linear infinite;
}
@keyframes nx-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.nx-num { font-family: "JetBrains Mono", monospace; font-size: clamp(18px, 4vw, 24px); font-weight: 500; color: var(--nx-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.nx-lbl { margin-top: 5px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nx-ink-dim); }
@media (prefers-reduced-motion: reduce) { .nx-unit::before { animation: none; opacity: 0.3; transform: none; } }

/* Store badges --------------------------------------------------------------- */

.nx-badges { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.nx-badge {
  display: flex; align-items: center; gap: 9px;
  background: var(--nx-panel-2); border: 1px solid var(--nx-line); border-radius: 10px;
  padding: 9px 16px; transition: border-color 0.2s ease, transform 0.2s ease;
  color: inherit; text-decoration: none;
}
.nx-badge:hover { border-color: var(--nx-cyan); transform: translateY(-2px); }
.nx-badge svg { width: 18px; height: 18px; fill: var(--nx-ink); flex-shrink: 0; }
.nx-badge-text { line-height: 1.15; text-align: left; }
.nx-badge-text .small { font-size: 8.5px; color: var(--nx-ink-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.nx-badge-text .big { font-family: "Space Grotesk", var(--font-body); font-size: 12.5px; font-weight: 600; }

/* Form ------------------------------------------------------------------------ */

.nx-form { display: flex; max-width: 380px; }
.nx-form .field { flex: 1; min-width: 0; }
.nx-form input {
  width: 100%; min-height: 46px;
  background: var(--nx-panel-2); border: 1px solid var(--nx-line); border-right: none;
  border-radius: 10px 0 0 10px; padding: 0 16px; color: var(--nx-ink); font-size: 13.5px;
  font-family: "Inter", var(--font-body);
}
.nx-form input::placeholder { color: var(--nx-ink-dim); }
.nx-form .btn {
  border: none; border-radius: 0 10px 10px 0; padding: 0 22px; min-height: 46px;
  background: linear-gradient(120deg, var(--nx-cyan), var(--nx-violet));
  color: var(--nx-ink-on-btn); font-weight: 600; font-size: 12.5px;
  font-family: "Space Grotesk", var(--font-body); flex-shrink: 0;
}

/* Phone mockup ---------------------------------------------------------------- */

.nx-phone-stage { display: flex; justify-content: center; perspective: 1200px; min-width: 0; }
.nx-phone {
  width: 240px; height: 480px; border-radius: 34px;
  background: linear-gradient(160deg, #12172c, #080a16);
  border: 2px solid rgba(150, 160, 230, 0.25);
  box-shadow: 0 40px 90px -30px rgba(76, 243, 224, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  position: relative; padding: 8px; transform-style: preserve-3d;
  transition: transform 0.15s ease-out; will-change: transform;
}
.nx-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 78px; height: 18px; background: var(--nx-void); border-radius: 12px; z-index: 3; }
.nx-screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 30% 20%, rgba(156, 124, 255, 0.35), transparent 60%),
              radial-gradient(circle at 70% 80%, rgba(76, 243, 224, 0.3), transparent 55%),
              #0a0e1e;
}
.nx-topbar { padding: 30px 16px 8px; font-family: "Space Grotesk", var(--font-body); font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.nx-avatar { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--nx-cyan), var(--nx-violet)); }
.nx-card { margin: 10px 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.08); }
.nx-card .k { font-size: 9.5px; color: var(--nx-ink-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.nx-card .v { font-family: "JetBrains Mono", monospace; font-size: 18px; color: var(--nx-cyan); }
.nx-bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 8px; }
.nx-bars i { flex: 1; background: linear-gradient(180deg, var(--nx-violet), var(--nx-cyan)); border-radius: 3px; animation: nx-barmove 2.4s ease-in-out infinite; opacity: 0.85; }
.nx-bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.nx-bars i:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.nx-bars i:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.nx-bars i:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.nx-bars i:nth-child(5) { height: 35%; animation-delay: 0.8s; }
.nx-bars i:nth-child(6) { height: 65%; animation-delay: 1s; }
@keyframes nx-barmove { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.25); } }
.nx-row { display: flex; align-items: center; margin: 10px 14px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.nx-row .dotline { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-pink); box-shadow: 0 0 8px var(--nx-pink); flex-shrink: 0; }
.nx-row span { font-size: 10.5px; color: var(--nx-ink-dim); margin-left: 9px; }
@media (prefers-reduced-motion: reduce) { .nx-bars i { animation: none; } }

.nx-orbit-wrap { position: absolute; inset: 0; pointer-events: none; }
.nx-node {
  position: absolute; display: flex; align-items: center; gap: 7px;
  background: rgba(12, 16, 32, 0.85); border: 1px solid var(--nx-line); border-radius: 999px;
  padding: 7px 12px; font-family: "Space Grotesk", var(--font-body); font-size: 10.5px; color: var(--nx-ink);
  animation: nx-orbit-float 4s ease-in-out infinite;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6);
}
.nx-node i { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.nx-n1 { top: -4%; left: -14%; animation-delay: 0s; }
.nx-n1 i { background: var(--nx-cyan); box-shadow: 0 0 8px var(--nx-cyan); }
.nx-n2 { top: 46%; right: -20%; animation-delay: 1.2s; }
.nx-n2 i { background: var(--nx-violet); box-shadow: 0 0 8px var(--nx-violet); }
.nx-n3 { bottom: 8%; left: -16%; animation-delay: 2.4s; }
.nx-n3 i { background: var(--nx-pink); box-shadow: 0 0 8px var(--nx-pink); }
@keyframes nx-orbit-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1024px) { .nx-node { display: none; } }
@media (prefers-reduced-motion: reduce) { .nx-node { animation: none; } }

/* Feature grid ----------------------------------------------------------------- */

.nx-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
@media (max-width: 760px) { .nx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nx-feat { background: var(--nx-panel-2); border: 1px solid var(--nx-line); border-radius: 16px; padding: 20px 16px; transition: transform 0.2s ease, border-color 0.2s ease; }
.nx-feat:hover { transform: translateY(-4px); border-color: var(--nx-cyan); }
.nx-feat .ic {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  background: linear-gradient(135deg, rgba(76, 243, 224, 0.18), rgba(156, 124, 255, 0.18));
  border: 1px solid var(--nx-line);
}
.nx-feat h3 { font-family: "Space Grotesk", var(--font-body); font-size: 14px; margin-bottom: 5px; }
.nx-feat p { font-size: 11.5px; color: var(--nx-ink-dim); line-height: 1.55; }

.nx-footer { text-align: center; margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--nx-line); }
.nx-footer-row { display: flex; justify-content: center; gap: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.nx-footer-row a { color: var(--nx-ink-dim); font-size: 12px; text-decoration: none; }
.nx-footer-row a:hover { color: var(--nx-cyan); }
.nx-copyright { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--nx-ink-dim); }
