/* NEXVEL Landing — production PHP */
:root {
  --nx-black: #030508;
  --nx-navy: #0a1224;
  --nx-deep: #0c1630;
  --nx-electric: #2563eb;
  --nx-blue: #3b82f6;
  --nx-cyan: #22d3ee;
  --nx-text: #e2e8f0;
  --nx-muted: #94a3b8;
  --nx-border: rgba(255, 255, 255, 0.08);
  --nx-font: 'Inter', system-ui, sans-serif;
  --nx-mono: 'JetBrains Mono', ui-monospace, monospace;
  --nx-max: 80rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nx-landing {
  margin: 0;
  font-family: var(--nx-font);
  background: var(--nx-black);
  color: var(--nx-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.nx-container { width: 100%; max-width: var(--nx-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .nx-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nx-container { padding: 0 2rem; } }

.nx-logo {
  font-family: var(--nx-mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: #fff;
  text-decoration: none;
}
.nx-logo span { color: var(--nx-cyan); }

.nx-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.nx-header.is-scrolled {
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nx-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: var(--nx-max); margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 1024px) { .nx-header-inner { padding: 0 2rem; } }

.nx-nav { display: none; gap: 2rem; }
@media (min-width: 1024px) { .nx-nav { display: flex; } }
.nx-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--nx-muted);
  text-decoration: none; transition: color 0.2s;
}
.nx-nav a:hover { color: #fff; }

.nx-header-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .nx-header-actions { display: flex; } }

.nx-lang { display: flex; gap: 0.25rem; font-size: 0.75rem; font-family: var(--nx-mono); }
.nx-lang a {
  padding: 0.35rem 0.5rem; border-radius: 0.375rem; color: var(--nx-muted);
  text-decoration: none; border: 1px solid transparent;
}
.nx-lang a.is-active { color: var(--nx-cyan); border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.08); }

.nx-btn-primary, .nx-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: none; transition: all 0.3s;
}
.nx-btn-primary {
  background: linear-gradient(90deg, var(--nx-electric), var(--nx-blue));
  color: #fff; box-shadow: 0 0 24px rgba(59, 130, 246, 0.25);
}
.nx-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 0 40px rgba(34, 211, 238, 0.2); }
.nx-btn-outline {
  background: rgba(255, 255, 255, 0.05); color: var(--nx-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.nx-btn-outline:hover { border-color: rgba(34, 211, 238, 0.4); background: rgba(255, 255, 255, 0.1); }

.nx-menu-btn {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; cursor: pointer;
}
@media (min-width: 1024px) { .nx-menu-btn { display: none; } }
.nx-menu-btn span { display: block; width: 1.25rem; height: 2px; background: #fff; margin: 0 auto; transition: transform 0.2s, opacity 0.2s; }
.nx-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nx-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.nx-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nx-mobile-nav {
  display: none; border-top: 1px solid var(--nx-border);
  background: rgba(3, 5, 8, 0.95); backdrop-filter: blur(16px); padding: 1rem;
}
.nx-mobile-nav.is-open { display: block; }
.nx-mobile-nav a {
  display: block; padding: 0.65rem 0.75rem; border-radius: 0.5rem;
  color: #cbd5e1; text-decoration: none; font-size: 0.875rem;
}
.nx-mobile-nav a:hover { background: rgba(255, 255, 255, 0.05); }
.nx-mobile-nav .nx-mobile-auth { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--nx-border); display: flex; flex-direction: column; gap: 0.5rem; }

.nx-glass {
  border-radius: 1rem; border: 1px solid var(--nx-border);
  background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nx-glass-strong {
  border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 22, 48, 0.8); backdrop-filter: blur(24px);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.08);
}

.nx-label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; color: rgba(34, 211, 238, 0.8); margin-bottom: 0.75rem;
}
html[lang="en"] .nx-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.nx-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; margin: 0 0 1rem; }
.nx-subtitle { color: var(--nx-muted); max-width: 42rem; margin: 0 auto 3rem; line-height: 1.6; text-align: center; }
.nx-gradient { background: linear-gradient(90deg, var(--nx-cyan), var(--nx-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nx-hero {
  position: relative;
  min-height: auto;
  padding: 5.5rem 0 2.5rem;
  overflow: hidden;
}
.nx-hero-bg {
  pointer-events: none; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.nx-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 211, 238, 0.08), transparent);
}
.nx-hero-grid {
  position: relative; display: grid; gap: 2rem; align-items: center;
  padding: 0; max-width: var(--nx-max); margin: 0 auto;
}
@media (min-width: 1024px) {
  .nx-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 0 2rem; }
}
.nx-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.02em; color: #fff; margin: 0 0 1.5rem;
}
.nx-hero-lead { font-size: 1.0625rem; color: var(--nx-muted); line-height: 1.75; margin: 0 0 2rem; max-width: 32rem; }
.nx-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.nx-panel { padding: 1.25rem; animation: nx-float 6s ease-in-out infinite; }
@keyframes nx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.nx-panel-live {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.625rem; border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1);
  font-size: 0.625rem; font-weight: 500; color: #34d399;
}
.nx-panel-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  animation: nx-pulse 2s infinite;
}
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.nx-mono { font-family: var(--nx-mono); }
.nx-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0; }
.nx-panel-cell {
  padding: 0.75rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.03);
}
.nx-panel-cell label { display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 0.25rem; }
.nx-panel-price { font-size: 1.25rem; font-weight: 600; color: #fff; }
.nx-panel-timer { font-size: 1.25rem; font-weight: 600; color: var(--nx-cyan); }
.nx-trade-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0; }
.nx-btn-high, .nx-btn-low {
  padding: 0.75rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.875rem; cursor: default;
}
.nx-btn-high { border: 1px solid rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.15); color: #34d399; }
.nx-btn-low { border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: #94a3b8; }
.nx-payout-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.2); background: rgba(34, 211, 238, 0.05); margin-bottom: 1rem;
}
.nx-ai-box {
  padding: 0.75rem; border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}
.nx-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); overflow: hidden; margin-top: 0.25rem; }
.nx-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--nx-electric), var(--nx-cyan)); }
.nx-ai-note { font-size: 0.5625rem; color: #475569; line-height: 1.5; margin-top: 0.5rem; }

.nx-stats {
  border-top: 1px solid var(--nx-border); border-bottom: 1px solid var(--nx-border);
  background: rgba(10, 18, 36, 0.5); padding: 2.5rem 0;
}
.nx-stats-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .nx-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nx-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.nx-stat-card { padding: 1.5rem; transition: border-color 0.3s, box-shadow 0.3s; }
.nx-stat-card:hover { border-color: rgba(34, 211, 238, 0.2); box-shadow: 0 0 24px rgba(59, 130, 246, 0.2); }
.nx-stat-value { font-family: var(--nx-mono); font-size: 1.875rem; font-weight: 700; margin: 0; }
.nx-stat-label { font-size: 0.875rem; font-weight: 600; color: #fff; margin: 0.5rem 0 0.25rem; }
.nx-stat-desc { font-size: 0.75rem; color: #64748b; margin: 0; }

.nx-section { padding: 6rem 0; }
.nx-section-alt { background: rgba(10, 18, 36, 0.3); border-top: 1px solid var(--nx-border); }
.nx-section-head { text-align: center; margin-bottom: 3.5rem; }
.nx-features { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .nx-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nx-features { grid-template-columns: repeat(4, 1fr); } }
.nx-feature { padding: 1.5rem; transition: transform 0.3s; }
.nx-feature:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, 0.3); }
.nx-feature-icon {
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.05); color: var(--nx-cyan); margin-bottom: 1rem;
}
.nx-feature h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: #fff; }
.nx-feature p { font-size: 0.875rem; color: #64748b; line-height: 1.6; margin: 0; }

.nx-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .nx-split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.nx-split ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.nx-split li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--nx-muted); margin-bottom: 0.75rem; }
.nx-split li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--nx-cyan); margin-top: 0.5rem; flex-shrink: 0; }

.nx-terminal { overflow: hidden; }
.nx-terminal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 1rem; border-bottom: 1px solid var(--nx-border); background: rgba(0, 0, 0, 0.3);
}
.nx-dots { display: flex; gap: 0.375rem; }
.nx-dots span { width: 10px; height: 10px; border-radius: 50%; }
.nx-dots span:nth-child(1) { background: rgba(239, 68, 68, 0.6); }
.nx-dots span:nth-child(2) { background: rgba(245, 158, 11, 0.6); }
.nx-dots span:nth-child(3) { background: rgba(16, 185, 129, 0.6); }
.nx-terminal-body { display: grid; }
@media (min-width: 1024px) { .nx-terminal-body { grid-template-columns: 2fr 1fr; } }
.nx-chart-area { padding: 1rem; border-bottom: 1px solid var(--nx-border); }
@media (min-width: 1024px) { .nx-chart-area { border-bottom: none; border-right: 1px solid var(--nx-border); } }
.nx-chart-svg { width: 100%; height: 10rem; }
.nx-order-panel { padding: 1rem; }
.nx-terminal-footer { display: grid; border-top: 1px solid var(--nx-border); }
@media (min-width: 640px) { .nx-terminal-footer { grid-template-columns: 1fr 1fr; } }
.nx-terminal-footer > div { padding: 0.75rem; border-bottom: 1px solid var(--nx-border); }
@media (min-width: 640px) {
  .nx-terminal-footer > div:first-child { border-right: 1px solid var(--nx-border); border-bottom: none; }
  .nx-terminal-footer > div:last-child { border-bottom: none; }
}
.nx-row-mini { display: flex; justify-content: space-between; font-size: 0.625rem; padding: 0.35rem 0.5rem; background: rgba(255,255,255,0.03); border-radius: 0.25rem; margin-bottom: 0.35rem; }

.nx-ticker-wrap { overflow: hidden; padding: 2rem 0; position: relative; }
.nx-ticker-fade-l, .nx-ticker-fade-r {
  position: absolute; top: 0; bottom: 0; width: 4rem; z-index: 2; pointer-events: none;
}
.nx-ticker-fade-l { left: 0; background: linear-gradient(90deg, var(--nx-black), transparent); }
.nx-ticker-fade-r { right: 0; background: linear-gradient(270deg, var(--nx-black), transparent); }
.nx-ticker { display: flex; gap: 1rem; width: max-content; animation: nx-ticker 40s linear infinite; }
.nx-ticker:hover { animation-play-state: paused; }
@keyframes nx-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.nx-asset {
  display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
  padding: 0.75rem 1.25rem; border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.03);
}
.nx-asset-icon {
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; background: rgba(37, 99, 235, 0.2);
  font-family: var(--nx-mono); font-size: 0.6875rem; font-weight: 700; color: var(--nx-cyan);
}

.nx-security { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .nx-security { grid-template-columns: repeat(2, 1fr); } }
.nx-security-item { display: flex; gap: 1rem; padding: 1.5rem; }
.nx-check {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.05);
  display: flex; align-items: center; justify-content: center; color: var(--nx-cyan);
}

.nx-faq { max-width: 48rem; margin: 0 auto; }
.nx-faq details { padding: 1.25rem; margin-bottom: 1rem; }
.nx-faq summary { cursor: pointer; font-weight: 600; font-size: 0.875rem; list-style: none; display: flex; justify-content: space-between; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq p { font-size: 0.875rem; color: #64748b; line-height: 1.6; margin: 0.75rem 0 0; }

.nx-cta {
  position: relative; padding: 6rem 0; text-align: center; overflow: hidden;
}
.nx-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(37, 99, 235, 0.15), transparent);
}
.nx-cta .nx-container { position: relative; }
.nx-cta-note { font-size: 0.75rem; color: #475569; margin-top: 1.5rem; }

.nx-footer {
  border-top: 1px solid var(--nx-border); padding: 3rem 0; background: var(--nx-black);
}
.nx-footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
@media (min-width: 768px) {
  .nx-footer-inner { flex-direction: row; justify-content: space-between; }
}
.nx-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.nx-footer-links a { font-size: 0.875rem; color: #64748b; text-decoration: none; }
.nx-footer-links a:hover { color: #cbd5e1; }
.nx-footer-copy { font-size: 0.75rem; color: #475569; text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--nx-border); }

/* Auth modal */
.nx-modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 1rem;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(4px);
}
.nx-modal-overlay.is-open { display: flex; }
.nx-modal {
  width: 100%; max-width: 28rem; max-height: 90vh; overflow-y: auto;
  border-radius: 1rem; border: 1px solid var(--nx-border);
  background: var(--nx-deep); box-shadow: 0 0 60px rgba(34, 211, 238, 0.1);
}
.nx-modal-tabs { display: flex; border-bottom: 1px solid var(--nx-border); }
.nx-modal-tabs button {
  flex: 1; padding: 1rem; border: none; background: transparent;
  color: var(--nx-muted); font-weight: 600; cursor: pointer;
}
.nx-modal-tabs button.is-active { color: var(--nx-cyan); border-bottom: 2px solid var(--nx-cyan); }
.nx-modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem;
  border: none; background: rgba(255,255,255,0.05); color: #fff; border-radius: 0.375rem; cursor: pointer;
}
.nx-modal-body { padding: 1.5rem; position: relative; }
.nx-form-group { margin-bottom: 1rem; }
.nx-form-group label { display: block; font-size: 0.875rem; margin-bottom: 0.35rem; color: #cbd5e1; }
.nx-form-group input {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35);
  color: #fff; font-size: 1rem;
}
.nx-form-group input:focus { outline: none; border-color: var(--nx-cyan); }
.nx-alert { padding: 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; margin-bottom: 1rem; display: none; }
.nx-alert.is-error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.nx-alert.is-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.nx-auth-panel { display: none; }
.nx-auth-panel.is-active { display: block; }
.nx-form-footer { text-align: center; margin-top: 1rem; font-size: 0.875rem; }
.nx-form-footer a { color: var(--nx-cyan); }
.nx-terms-note { font-size: 0.75rem; color: #64748b; text-align: center; margin-top: 1rem; }
.nx-terms-note a { color: var(--nx-cyan); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
