/* ═══════════════════════════════════════════════
   NEWBANK — Premium Landing Page Styles
   Theme: Off-white · Dark Navy · QFS Quantum
═══════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────── */
:root {
  --bg:          #edeef0;
  --bg-card:     #f5f6f8;
  --bg-dark:     #1a1e2e;
  --bg-dark-2:   #22273a;
  --text-primary:#1a1e2e;
  --text-muted:  #7a8099;
  --text-faint:  #adb5cc;
  --accent-green:#2ecc71;
  --border:      rgba(30,35,50,.10);
  --border-dark: rgba(255,255,255,.08);
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --shadow-sm:   0 2px 12px rgba(30,35,50,.06);
  --shadow-md:   0 8px 40px rgba(30,35,50,.12);
  --shadow-lg:   0 24px 80px rgba(30,35,50,.18);
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --transition:  .35s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
svg { display: block; }

/* ─── Noise canvas ───────────────────────────── */
.noise-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  mix-blend-mode: overlay;
}

/* ─── Grid background ────────────────────────── */
.grid-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30,35,50,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,35,50,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
}

/* ─── Loader ─────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader--out { opacity: 0; visibility: hidden; }

.loader-orbit {
  position: relative;
  width: 120px; height: 120px;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}
.loader-ring--outer {
  border-color: rgba(30,35,50,.18);
  border-top-color: rgba(30,35,50,.55);
  animation: spin 1.6s linear infinite;
}
.loader-ring--inner {
  inset: 16px;
  border-color: rgba(30,35,50,.10);
  border-bottom-color: rgba(30,35,50,.40);
  animation: spin 1.1s linear infinite reverse;
}
.loader-core {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: rgba(30,35,50,.09);
}
.loader-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
}
.loader-dot--1 {
  top: 12px; right: 8px;
  animation: dotpulse 1.6s ease-in-out infinite;
}
.loader-dot--2 {
  bottom: 8px; right: 16px;
  animation: dotpulse 1.6s ease-in-out .8s infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dotpulse {
  0%,100% { opacity:.4; transform: scale(.7); }
  50% { opacity:1; transform: scale(1); }
}

.loader-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}
.loader-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: -16px;
}

/* ─── Nav ────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav--scrolled {
  background: rgba(237,238,240,.85);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 800;
  display: grid; place-items: center;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .12em;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link--cta {
  background: var(--text-primary);
  color: #fff !important;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-link--cta:hover { opacity: .85; transform: translateY(-1px); }

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px clamp(20px,5vw,60px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ─── Left column ────────────────────────────── */
.hero-left { display: flex; flex-direction: column; gap: 32px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px 6px 10px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 6px var(--accent-green); }
  50% { box-shadow: 0 0 14px var(--accent-green), 0 0 24px rgba(46,204,113,.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.hero-title em {
  font-style: normal;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(.95rem, 1.2vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

.hero-stats {
  display: flex; align-items: center; gap: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-icon--right { width: 16px; height: 16px; }

.btn--dark {
  background: var(--text-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(30,35,50,.25);
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30,35,50,.3);
}
.btn--dark:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(30,35,50,.25);
}
.btn--outline:hover {
  background: var(--bg-card);
  border-color: rgba(30,35,50,.5);
  transform: translateY(-2px);
}

/* ─── Reveal animation ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal--delay1 { transition-delay: .1s; }
.reveal--delay2 { transition-delay: .2s; }
.reveal--delay3 { transition-delay: .35s; }
.reveal--delay4 { transition-delay: .5s; }
.revealed { opacity: 1; transform: translateY(0); }

/* ─── Phone scene ────────────────────────────── */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.phone-scene {
  position: relative;
  width: 300px;
  transition: transform .08s ease;
  transform-style: preserve-3d;
}

.phone-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  animation: glow-drift 7s ease-in-out infinite alternate;
}
.phone-glow--1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(46,204,113,.12), transparent 70%);
  top: -40px; left: -60px;
}
.phone-glow--2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(30,35,50,.08), transparent 70%);
  bottom: -20px; right: -50px;
  animation-delay: 3.5s;
}
@keyframes glow-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(12px,16px) scale(1.08); }
}

.phone {
  position: relative;
  width: 300px;
  border-radius: 42px;
  background: #f0f1f4;
  box-shadow:
    0 0 0 1px rgba(30,35,50,.08),
    0 30px 90px rgba(30,35,50,.22),
    inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.phone-notch {
  width: 100px; height: 28px;
  background: #e4e5e8;
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
}

.phone-screen {
  background: #edeef0;
  padding: 10px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Screen: top bar ── */
.screen-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
}
.screen-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.screen-avatar svg { width: 18px; height: 18px; color: var(--text-muted); }
.screen-welcome {
  flex: 1;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}
.screen-wallet-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.screen-wallet-icon svg { width: 16px; height: 16px; color: var(--text-muted); }

/* ── Portfolio block ── */
.screen-portfolio { text-align: center; padding: 4px 0 2px; }
.screen-portfolio-label {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.screen-portfolio-value {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.screen-big-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.04em;
}
.screen-currency {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: .06em;
}
.screen-badges {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px;
}
.screen-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.screen-badge--tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.screen-badge--active {
  background: rgba(46,204,113,.12);
  color: #18a355;
  display: flex; align-items: center; gap: 4px;
}
.active-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-green 2s ease-in-out infinite;
}

/* ── Action row ── */
.screen-actions {
  display: flex; align-items: center;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 5px;
  border: 1px solid var(--border);
}
.screen-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 4px;
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-md);
}
.screen-btn svg { width: 14px; height: 14px; }
.screen-btn-plus {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.screen-btn-plus svg { width: 16px; height: 16px; color: var(--text-primary); }

/* ── QFS Swap ── */
.screen-swap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.swap-icon {
  width: 30px; height: 30px;
  background: var(--bg);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.swap-icon svg { width: 14px; height: 14px; color: var(--text-muted); }
.swap-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.swap-label { font-size: .65rem; font-weight: 600; color: var(--text-muted); }
.swap-desc  { font-size: .68rem; font-weight: 600; color: var(--text-primary); }
.swap-clock { width: 16px; height: 16px; color: var(--text-faint); }

/* ── Assets ── */
.screen-section-label {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 0 2px;
}
.screen-asset {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.asset-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--text-primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.asset-info { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.asset-name   { font-size: .72rem; font-weight: 700; color: var(--text-primary); }
.asset-ticker { font-size: .6rem; color: var(--text-muted); font-weight: 500; }
.asset-value  { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.asset-amount { font-size: .78rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-display); }
.asset-rate   { font-size: .57rem; color: var(--text-muted); }

/* ── Node graph ── */
.screen-nodes {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.nodes-svg { width: 100%; height: 55px; }
.nodes-label { font-size: .55rem; color: var(--text-faint); font-weight: 500; text-align: center; }

/* ── Bottom nav ── */
.screen-nav {
  display: flex; justify-content: space-around;
  padding: 8px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.snav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: .52rem;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
  transition: color var(--transition);
}
.snav-item svg { width: 16px; height: 16px; }
.snav-item--active {
  color: var(--text-primary);
  background: rgba(30,35,50,.06);
}

/* ─── Floating badges ────────────────────────── */
.float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px 7px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 10;
}
.fb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-green 2s ease-in-out infinite;
}
.fb-icon { font-size: .85rem; }
.fb-label { font-size: .7rem; color: var(--text-muted); font-weight: 600; }

.float-badge--1 { top: 60px; right: -30px; animation: badge-float 4s ease-in-out infinite; }
.float-badge--2 { bottom: 120px; right: -40px; animation: badge-float 5s ease-in-out .8s infinite; }
.float-badge--3 { bottom: 40px; left: -30px; animation: badge-float 4.5s ease-in-out 1.5s infinite; }

@keyframes badge-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px clamp(20px,5vw,60px);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-size: .8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: .8rem; color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: center;
    gap: 60px;
  }
  .hero-badge, .hero-stats, .hero-cta { margin: 0 auto; }
  .hero-sub { margin: 0 auto; }
  .hero-right { justify-content: center; }
  .float-badge--1 { right: 0; top: 20px; }
  .float-badge--2 { right: -10px; }
  .float-badge--3 { left: -10px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .phone { width: 270px; }
  .phone-scene { width: 270px; }
  .float-badge { display: none; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}