:root {
  --nx-bg-deep: #05080d;
  --nx-bg-panel: rgba(12, 18, 28, 0.78);
  --nx-bg-elevated: rgba(20, 28, 42, 0.9);
  --nx-border-subtle: rgba(100, 140, 200, 0.12);
  --nx-border-glow: rgba(56, 189, 248, 0.35);
  --nx-text: #e8edf5;
  --nx-text-muted: #8b9cb3;
  --nx-accent: #38bdf8;
  --nx-accent-dim: rgba(56, 189, 248, 0.15);
  --nx-success: #34d399;
  --nx-radius: 16px;
  --nx-radius-sm: 12px;
  --dock-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--nx-text);
  background: var(--nx-bg-deep);
  -webkit-tap-highlight-color: transparent;
}

.nx-bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 70% at 45% -15%, rgba(56, 189, 248, 0.18), transparent 52%),
    radial-gradient(ellipse 70% 55% at 105% 40%, rgba(167, 139, 250, 0.12), transparent 52%),
    radial-gradient(ellipse 60% 48% at 10% 92%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, #05080d 0%, #0a1018 55%, #05080d 100%);
}

.nx-bg-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.85;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px calc(var(--dock-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 8px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.95);
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--nx-accent);
  opacity: 0.85;
}

.lang-nav {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--nx-border-subtle);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--nx-text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn.is-active {
  background: var(--nx-accent-dim);
  color: var(--nx-accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* hero */
.hero {
  padding: 20px 0 28px;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.12);
  color: var(--nx-accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero-title {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--nx-text);
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 14px;
  line-height: 22px;
  color: rgba(184, 198, 214, 0.95);
  margin-bottom: 22px;
}

.hero-hint {
  margin-top: 10px;
  font-size: 11px;
  color: var(--nx-text-muted);
  text-align: center;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: var(--nx-radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #22d3ee 100%);
  color: #041018;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.28);
}

.btn-hero {
  width: 100%;
}

.btn-block {
  width: 100%;
}

/* sections */
.section {
  margin-bottom: 28px;
}

.section-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nx-text-muted);
  margin-bottom: 14px;
}

.feature-grid {
  display: grid;
  gap: 10px;
}

.feature-card {
  padding: 16px;
  border-radius: var(--nx-radius);
  background: var(--nx-bg-panel);
  border: 1px solid var(--nx-border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--nx-radius-sm);
  background: var(--nx-accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--nx-accent);
  font-size: 16px;
  font-weight: 900;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--nx-text);
}

.feature-card p {
  font-size: 12px;
  line-height: 18px;
  color: rgba(184, 198, 214, 0.95);
}

/* stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--nx-accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--nx-text-muted);
  text-align: center;
}

/* feed */
.feed-panel {
  padding: 16px;
  border-radius: var(--nx-radius);
  background: var(--nx-bg-elevated);
  border: 1px solid var(--nx-border-subtle);
}

.feed-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--nx-text-muted);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feed-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--nx-success);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.feed-body p {
  font-size: 13px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  line-height: 20px;
}

.feed-body time {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--nx-text-muted);
}

/* footer */
.footer {
  padding: 8px 0 12px;
  text-align: center;
}

.footer-brand {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 4px;
}

.footer-note {
  font-size: 10px;
  color: var(--nx-text-muted);
}

/* fixed dock CTA */
.dock-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--nx-border-subtle);
  background: rgba(5, 8, 13, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

/* desktop */
@media (min-width: 520px) {
  .page {
    padding-top: 8px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 32px;
  }
}
