/* ============================================================
   AtomBank — Brand Design System (UK) · v2 "Midnight"
   Dark-first / immersive. Shared across Home, About, Contact, Login.
   ============================================================ */

:root {
  /* Surfaces */
  --bg:      #06081A;   /* near-black navy page */
  --bg-2:    #0A0E24;   /* elevated band */
  --bg-3:    #04050F;   /* footer / deepest */
  --text:    #ECEEF8;   /* primary light text */
  --text-2:  #AEB6D6;   /* secondary */
  --text-mut:#7C84A8;   /* muted */
  --glass:   rgba(255,255,255,.045);
  --glass-2: rgba(255,255,255,.075);
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.16);

  /* Brand spectrum (brightened for dark) */
  --brand:   #7C5CFF;
  --brand-2: #A98BFF;
  --pink:    #FF5C8A;
  --orange:  #FF9F45;
  --teal:    #1FE0B6;
  --amber:   #FFC24B;

  --brand-12: rgba(124,92,255,.14);
  --brand-20: rgba(124,92,255,.22);
  --teal-12:  rgba(31,224,182,.14);
  --pink-12:  rgba(255,92,138,.14);

  --spectrum:  linear-gradient(120deg, #7C5CFF 0%, #B14BFF 42%, #FF5C8A 78%, #FF9F45 112%);
  --grad-text: linear-gradient(120deg, #B7A0FF 0%, #FF82AC 58%, #FFB877 100%);
  --glow:      0 0 44px rgba(124,92,255,.45);
  --glow-pink: 0 0 44px rgba(255,92,138,.40);
  --radius:    20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
/* Immersive aurora + grid behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(920px 620px at 10% -8%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(820px 600px at 102% 4%, rgba(255,92,138,.15), transparent 55%),
    radial-gradient(760px 760px at 50% 116%, rgba(31,224,182,.12), transparent 58%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 110% 80% at 50% -5%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% -5%, #000 25%, transparent 80%);
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }
.s    { padding: 110px 0; position: relative; }
.s-sm { padding: 72px 0; position: relative; }
.band { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
::selection { background: rgba(124,92,255,.35); color: #fff; }

/* ---------- Glass + glow utilities ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.glass-hover { transition: transform .25s, border-color .25s, box-shadow .25s, background .25s; }
.glass-hover:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--glass-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 28px 60px rgba(0,0,0,.5); }
.glow-ring { position: relative; }
.glow-ring::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--spectrum); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.glow-ring:hover::after { opacity: .9; }

/* Atmosphere */
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: atom-drift 13s ease-in-out infinite alternate; }
.blob-v { background: rgba(124,92,255,.30); }
.blob-p { background: rgba(255,92,138,.20); }
.blob-t { background: rgba(31,224,182,.16); }
@keyframes atom-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(34px,22px) scale(1.08); } }

/* ---------- Brand wordmark ---------- */
.atom-logo { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.atom-logo .mark { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 1.02rem; background: var(--spectrum); box-shadow: var(--glow); }
.atom-logo .mark i { animation: atom-spin 9s linear infinite; }
@keyframes atom-spin { to { transform: rotate(360deg); } }
.atom-logo .word { font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.atom-logo .word .b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.atom-logo:hover .mark { transform: translateY(-1px); transition: transform .2s; }

/* ---------- Buttons ---------- */
.atom-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .92rem; letter-spacing: -.01em; padding: 13px 26px; border-radius: 40px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; font-family: inherit; }
.atom-btn-sm { padding: 9px 20px; font-size: .86rem; }
.atom-btn-lg { padding: 16px 32px; font-size: .98rem; }
.atom-btn-spectrum { background: var(--spectrum); color: #fff; box-shadow: 0 10px 30px rgba(124,92,255,.45); }
.atom-btn-spectrum:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 46px rgba(255,92,138,.5); }
.atom-btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(124,92,255,.45); }
.atom-btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124,92,255,.6); }
.atom-btn-glass { background: var(--glass); color: #fff; border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.atom-btn-glass:hover { color: #fff; background: var(--glass-2); border-color: rgba(255,255,255,.32); transform: translateY(-2px); }
.atom-btn-light { background: #fff; color: #0A0E24; }
.atom-btn-light:hover { color: #0A0E24; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,255,255,.22); }

/* ---------- Eyebrows & headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 40px; margin-bottom: 16px; border: 1px solid transparent; }
.eyebrow-light, .eyebrow-dark { background: var(--brand-12); color: var(--brand-2); border-color: rgba(124,92,255,.28); }
.eyebrow-teal { background: var(--teal-12); color: var(--teal); border-color: rgba(31,224,182,.28); }
.eyebrow-pink { background: var(--pink-12); color: #ff9ab8; border-color: rgba(255,92,138,.28); }
.sec-h { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 800; color: #fff; letter-spacing: -.025em; line-height: 1.14; margin: 0; }
.sec-h-light { color: #fff; }
.sec-p { color: var(--text-2); font-size: 1rem; line-height: 1.78; max-width: 540px; margin: 0; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 3D bank card (reusable) ---------- */
.card3d-stage { perspective: 1300px; display: grid; place-items: center; }
.card3d { position: relative; width: min(360px, 84vw); aspect-ratio: 1.586; border-radius: 22px; transform-style: preserve-3d; transform: rotateX(14deg) rotateY(-18deg) rotateZ(2deg); animation: card-float 7s ease-in-out infinite alternate; }
@keyframes card-float { from { transform: rotateX(14deg) rotateY(-18deg) rotateZ(2deg) translateY(0); } to { transform: rotateX(8deg) rotateY(-11deg) rotateZ(1deg) translateY(-18px); } }
.card3d .face { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; padding: 26px; color: #fff; box-shadow: 0 40px 70px rgba(124,92,255,.4), inset 0 1px 0 rgba(255,255,255,.35); }
.card3d .front { background: linear-gradient(135deg, #7C5CFF 0%, #B14BFF 46%, #FF5C8A 100%); }
.card3d .sheen { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.35) 0%, transparent 32%); mix-blend-mode: overlay; pointer-events: none; }
.card3d .behind { position: absolute; inset: 0; border-radius: 22px; background: linear-gradient(135deg, #1a1f44, #2a1d52); border: 1px solid rgba(255,255,255,.12); transform: translateZ(-60px) translate(34px, 38px) rotate(-6deg); opacity: .85; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; }
.cc-brand .d { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: .7rem; }
.cc-chip { width: 44px; height: 33px; border-radius: 7px; margin: 30px 0 18px; background: linear-gradient(135deg, #FFE39A, #E0B24A); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cc-chip::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(0,0,0,.18); border-radius: 3px; }
.cc-num { font-size: 1.12rem; font-weight: 600; letter-spacing: .14em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.cc-name { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.cc-sub { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 3px; }
.cc-wave { font-size: 1.2rem; opacity: .9; }

/* Floating glass chip (stats over visuals) */
.fchip { position: absolute; padding: 12px 18px; border-radius: 15px; z-index: 3; background: rgba(10,14,36,.66); border: 1px solid var(--line-2); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.fchip .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-mut); margin-bottom: 3px; }
.fchip .v { font-size: 1rem; font-weight: 800; color: var(--teal); }
.fchip .v.pink { color: #ff9ab8; }

/* ============================================================
   NAVBAR
   ============================================================ */
.atom-nav { position: fixed; inset: 0 0 auto; z-index: 1000; padding: 22px 0; transition: padding .35s, background .35s, backdrop-filter .35s, border-color .35s; border-bottom: 1px solid transparent; }
.atom-nav.stuck { padding: 12px 0; background: rgba(6,8,26,.72); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-color: var(--line); }
.atom-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.atom-nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.atom-nav-links a { color: var(--text-2); font-size: .92rem; font-weight: 500; letter-spacing: -.01em; transition: color .2s; position: relative; }
.atom-nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--spectrum); border-radius: 2px; transition: width .25s; }
.atom-nav-links a:hover, .atom-nav-links a.active { color: #fff; }
.atom-nav-links a:hover::after, .atom-nav-links a.active::after { width: 100%; }
.atom-nav-right { display: flex; align-items: center; gap: 12px; }
.atom-ham { display: none; background: var(--glass); border: 1px solid var(--line-2); color: #fff; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; }
@media (max-width: 991px) { .atom-nav-links { display: none; } .atom-ham { display: inline-flex; } }

.atom-drawer { position: fixed; inset: 0; z-index: 1100; background: rgba(4,5,15,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; padding: 26px 28px; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); visibility: hidden; }
.atom-drawer.open { transform: translateX(0); visibility: visible; }
.atom-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.atom-drawer-close { background: var(--glass); border: 1px solid var(--line-2); color: #fff; width: 42px; height: 42px; border-radius: 12px; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.atom-drawer-links { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.atom-drawer-links a { display: flex; align-items: center; justify-content: space-between; color: rgba(255,255,255,.88); font-size: 1.25rem; font-weight: 600; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.atom-drawer-links a i { color: var(--brand-2); font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.atom-footer { background: var(--bg-3); padding: 80px 0 0; position: relative; border-top: 1px solid var(--line); }
.fct { display: flex; align-items: flex-start; gap: 14px; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; height: 100%; transition: border-color .2s, transform .2s; }
.fct:hover { border-color: rgba(124,92,255,.45); transform: translateY(-3px); }
.fct-ico { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; background: var(--brand-12); display: grid; place-items: center; color: var(--brand-2); font-size: .95rem; }
.fct-tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mut); margin: 0 0 3px; }
.fct a, .fct p { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; }
.fct a:hover { color: var(--teal); }
.f-blurb { color: var(--text-2); font-size: .87rem; line-height: 1.74; max-width: 250px; margin: 16px 0 22px; }
.f-h { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mut); font-weight: 700; margin: 0 0 18px; }
.f-list { list-style: none; padding: 0; margin: 0; }
.f-list li { margin-bottom: 11px; }
.f-list a { color: var(--text-2); font-size: .88rem; transition: color .2s, padding .2s; }
.f-list a:hover { color: #fff; padding-left: 4px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); font-size: .92rem; transition: all .22s; }
.f-social a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--glow); }
.nl-input { width: 100%; background: var(--glass); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: #fff; font-size: .88rem; font-family: inherit; outline: none; margin-bottom: 10px; transition: border-color .2s, box-shadow .2s; }
.nl-input::placeholder { color: var(--text-mut); }
.nl-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.nl-btn { width: 100%; background: var(--spectrum); border: none; border-radius: 12px; padding: 12px; color: #fff; font-weight: 600; font-size: .88rem; font-family: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s; box-shadow: 0 8px 22px rgba(124,92,255,.4); }
.nl-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255,92,138,.4); }
.f-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.f-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; color: var(--text-2); background: var(--glass); border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; }
.f-badge i { color: var(--teal); }
.f-bottom { border-top: 1px solid var(--line); padding: 22px 0; margin-top: 56px; }
.f-copy { color: var(--text-mut); font-size: .82rem; margin: 0; }
.f-legal a { color: var(--text-mut); font-size: .82rem; margin-left: 22px; transition: color .2s; }
.f-legal a:hover { color: #fff; }
.f-disclaimer { color: rgba(255,255,255,.3); font-size: .73rem; line-height: 1.7; margin: 18px 0 0; max-width: 760px; }

/* ---------- Back to top ---------- */
.btt { position: fixed; bottom: 26px; right: 26px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--spectrum); color: #fff; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 6px 24px rgba(124,92,255,.6); transition: transform .2s, opacity .25s; opacity: 0; pointer-events: none; border: none; cursor: pointer; }
.btt.show { opacity: 1; pointer-events: auto; }
.btt:hover { transform: translateY(-3px); color: #fff; }

.no-wow .wow { visibility: visible !important; }
