/* ═══════════════════════════════════════════════════════
   NEXUS BANK — Public Website Stylesheet
   Premium dark-navy banking aesthetic
═══════════════════════════════════════════════════════ */

/* ── Google Fonts (loaded via link tag) ── */
:root {
    --nb-bg: #060B18;
    --nb-bg2: #0C1428;
    --nb-bg3: #111827;
    --nb-card: rgba(255, 255, 255, 0.04);
    --nb-border: rgba(255, 255, 255, 0.08);
    --nb-gold: #F59E0B;
    --nb-gold2: #FBBF24;
    --nb-blue: #3B82F6;
    --nb-blue2: #60A5FA;
    --nb-cyan: #06B6D4;
    --nb-green: #10B981;
    --nb-text: #F9FAFB;
    --nb-muted: #9CA3AF;
    --nb-dim: #6B7280;
    --nb-grad: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #0EA5E9 100%);
    --nb-glow: 0 0 60px rgba(59, 130, 246, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body.public-page {
    font-family: 'Inter', sans-serif;
    background: var(--nb-bg);
    color: var(--nb-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.pub-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 11, 24, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nb-border);
    transition: background 0.3s;
}

.pub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.pub-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.pub-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--nb-grad);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
}

.pub-logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nb-text);
    letter-spacing: 0.5px;
}

.pub-logo-text span {
    color: var(--nb-gold);
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.pub-nav-links a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--nb-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.pub-nav-links a:hover,
.pub-nav-links a.active {
    color: var(--nb-text);
    background: rgba(255, 255, 255, 0.06);
}

.mob-action {
    display: none;
}

.pub-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.pub-btn-ghost {
    padding: 0.5rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nb-text);
    border: 1px solid var(--nb-border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.pub-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.pub-btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.pub-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

/* Mobile menu */
.pub-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pub-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--nb-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.pub-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.pub-hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop */
.pub-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    animation: pubFadeIn 0.3s ease;
}

.pub-nav-backdrop.show {
    display: block;
}

@keyframes pubFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── PAGE WRAPPER ── */
.pub-page {
    padding-top: 72px;
}

/* ── SECTION BASE ── */
.pub-section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pub-section-full {
    padding: 100px 0;
}

.pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nb-blue2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pub-h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--nb-text);
}

.pub-h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nb-text);
}

.pub-h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nb-text);
}

.pub-lead {
    font-size: 1.1rem;
    color: var(--nb-muted);
    line-height: 1.7;
    max-width: 580px;
}

.grad-text {
    background: linear-gradient(135deg, #60A5FA, #06B6D4, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-text {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── CARDS ── */
.pub-card {
    background: var(--nb-card);
    border: 1px solid var(--nb-border);
    border-radius: 20px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pub-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pub-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.15);
}

.icon-gold {
    background: rgba(245, 158, 11, 0.15);
}

.icon-green {
    background: rgba(16, 185, 129, 0.15);
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.15);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.15);
}

.icon-red {
    background: rgba(239, 68, 68, 0.15);
}

/* ── GRID LAYOUTS ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ── DIVIDER ── */
.pub-divider {
    border: none;
    border-top: 1px solid var(--nb-border);
    margin: 0;
}

/* ── STAT NUMBER ── */
.stat-num {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--nb-muted);
    font-weight: 500;
}

/* ── STEP ── */
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB, #0EA5E9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

/* ── TESTIMONIAL ── */
.testimonial-card {
    background: var(--nb-card);
    border: 1px solid var(--nb-border);
    border-radius: 20px;
    padding: 2rem;
}

.testimonial-stars {
    color: var(--nb-gold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--nb-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nb-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.88rem;
    font-weight: 700;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--nb-muted);
}

/* ── CTA BAND ── */
.pub-cta-band {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 60%, #0C4A6E 100%);
    padding: 80px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pub-cta-band::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.pub-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.pub-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    border: none;
    cursor: pointer;
}

.pub-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.55);
}

.pub-btn-large-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
}

.pub-btn-large-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── FOOTER ── */
.pub-footer {
    background: var(--nb-bg2);
    border-top: 1px solid var(--nb-border);
    padding: 60px 2rem 30px;
}

.pub-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.pub-footer-brand p {
    font-size: 0.88rem;
    color: var(--nb-muted);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.pub-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nb-dim);
    margin-bottom: 1.25rem;
}

.pub-footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--nb-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.pub-footer-col a:hover {
    color: var(--nb-text);
}

.pub-footer-bottom {
    border-top: 1px solid var(--nb-border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--nb-dim);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub-footer-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pub-footer-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nb-border);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--nb-muted);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    padding: 80px 2rem 60px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.12) 0%, transparent 100%);
    border-bottom: 1px solid var(--nb-border);
    margin-bottom: 0;
}

.page-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

/* ── ACCORDION ── */
.accordion-item {
    border: 1px solid var(--nb-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--nb-card);
}

.accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--nb-text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.accordion-btn .acc-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: var(--nb-muted);
    flex-shrink: 0;
}

.accordion-item.open .acc-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--nb-muted);
    line-height: 1.7;
}

.accordion-item.open .accordion-body {
    display: block;
}

/* ── CONTACT FORM ── */
.pub-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--nb-border);
    border-radius: 12px;
    padding: 0.875rem 1.125rem;
    color: var(--nb-text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pub-input::placeholder {
    color: var(--nb-dim);
}

.pub-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea.pub-input {
    resize: vertical;
    min-height: 140px;
}

.pub-input-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nb-muted);
    margin-bottom: 0.5rem;
}

/* ── GLOW ORBS (background decorations) ── */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.18;
}

.orb-blue {
    background: #3B82F6;
}

.orb-cyan {
    background: #06B6D4;
}

.orb-gold {
    background: #F59E0B;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.35s;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pub-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    .pub-nav-links,
    .pub-nav-actions {
        display: none;
    }

    .pub-hamburger {
        display: flex;
    }

    .pub-nav-links.mob-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 11, 24, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem 2rem 2rem;
        border-bottom: 1px solid var(--nb-border);
        gap: 0.25rem;
    }

    .mob-action {
        display: block;
        margin-bottom: 0.5rem;
    }

    .mob-action a {
        font-size: 1.05rem !important;
        padding: 0.875rem 1.25rem !important;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--nb-border);
        border-radius: 10px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .pub-section {
        padding: 60px 1.25rem;
    }

    .pub-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pub-cta-band {
        padding: 60px 1.25rem;
    }

    .pub-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════
   HOME PAGE — MOBILE RESPONSIVE OVERRIDES
   Targets inline-styled grids via added classes
═══════════════════════════════════════════════ */

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Stats band */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

/* Savings calculator */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

/* App download */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* World map container */
.map-container {
    position: relative;
    border: 1px solid var(--nb-border);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(6, 11, 24, 0.95);
    height: 600px;
}

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-grid .pub-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-grid>div:first-child>div[style*="display:flex"] {
        justify-content: center;
    }

    .hero-grid .animate-up:last-child {
        display: none;
        /* hide dashboard mockup on tablet/mobile */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .app-phone-mockup {
        display: none;
        /* hide phone mockup on mobile */
    }

    section[style*="padding:100px"] {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    section.hero-section {
        padding: 100px 1.25rem 60px !important;
        min-height: auto !important;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-num {
        font-size: 1.75rem;
    }

    /* Calculator */
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* App */
    .app-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* World map — grow height on mobile to fit both map and feed */
    .map-container {
        height: 480px !important;
    }

    #activity-feed {
        position: absolute !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 240px !important;
        margin-top: 0 !important;
        background: rgba(6, 11, 24, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 0 24px 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        overflow-y: hidden !important;
        z-index: 20 !important;
        padding: 12px 16px !important;
    }

    #world-map {
        height: 240px !important;
        /* Limit map height on mobile to leave room for feed */
        margin-top: 20px;
    }

    #activity-feed+div {
        /* Target the legend div */
        display: none !important;
        /* Hide legend on small screens to save space */
    }

    .feed-item {
        background: transparent !important;
        border-left: 1px solid var(--nb-blue2) !important;
    }

    /* Reduce section padding globally */
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Ticker */
    #ticker-track {
        gap: 1.5rem !important;
    }

    /* Comparison table already has overflow-x:auto — just ensure font is readable */
    table {
        font-size: 0.8rem !important;
    }

    /* Buttons full-width on mobile for CTA sections */
    .pub-btn-large,
    .pub-btn-large-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Trust row in hero */
    .hero-trust-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem !important;
    }

    /* Reduce pub-section padding */
    .pub-section {
        padding: 50px 1.25rem;
    }

    /* Page hero inner pages */
    .page-hero {
        padding: 60px 1.25rem 40px;
    }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pub-h1 {
        font-size: 2.2rem;
    }

    .pub-h2 {
        font-size: 1.6rem;
    }

    .pub-btn-large,
    .pub-btn-large-outline {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .map-container {
        height: 480px !important;
    }
}