﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --nu-purple: #820AD1;
    --nu-purple-dark: #6A0DAD;
    --nu-purple-deeper: #530A8A;
    --nu-purple-light: #9B4DCA;
    --nu-purple-glow: rgba(155,77,202,.35);
    --nu-white: #FFFFFF;
    --nu-gray-100: #F5F5F5;
    --nu-gray-200: #EDEDED;
    --nu-gray-300: #D1D1D1;
    --nu-gray-500: #767676;
    --nu-gray-900: #111111;
    --nu-warm: #1A1A1A;
    --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--nu-white);
    color: var(--nu-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   SPLASH SCREEN
   ═══════════════════════════════════════════════════ */
#splash-screen {
    position: fixed; inset: 0;
    background: var(--nu-purple);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    transition: opacity .65s ease;
}
#splash-screen.fade-out { opacity: 0; pointer-events: none; }
#splash-logo {
    width: 140px; height: auto;
    filter: brightness(0) invert(1);
    animation: nuPulse 2s ease-in-out infinite;
}
@keyframes nuPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: .82; }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 500;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .3s ease;
}
.header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,.08);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 32px;
    max-width: 1200px; margin: 0 auto;
}
.logo-img { height: 28px; }
.logo-nu { height: 32px; width: auto; }
.header-cta {
    display: inline-flex; align-items: center;
    background: var(--nu-purple);
    color: var(--nu-white);
    font-family: inherit;
    font-size: .82rem; font-weight: 600;
    padding: 10px 24px;
    border-radius: 100px;
    border: none; cursor: pointer;
    letter-spacing: .02em;
    transition: all .25s var(--ease);
}
.header-cta:hover {
    background: var(--nu-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(130,10,209,.3);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #820AD1 0%, #6A0DAD 40%, #530A8A 100%);
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -15%; right: -10%;
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(155,77,202,.28) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 12s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -8%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(130,10,209,.2) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBlob 15s ease-in-out infinite reverse;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(.97); }
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 1200px; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 60px;
}
.hero-text {
    max-width: 540px; flex-shrink: 0;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .7rem; font-weight: 700;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(255,255,255,.08);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,.1);
}
.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    color: var(--nu-white);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin-bottom: 22px;
}
.hero-title span {
    background: linear-gradient(135deg, #E0C3FC, #C77DFF, #FFFFFF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.08rem;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 420px;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--nu-white);
    color: var(--nu-purple);
    padding: 16px 40px;
    border-radius: 100px;
    font-family: inherit;
    font-size: .95rem; font-weight: 700;
    border: none; cursor: pointer;
    transition: all .3s var(--ease);
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
    letter-spacing: .01em;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px rgba(0,0,0,.28);
}
.hero-btn:active { transform: translateY(0); }
.hero-btn svg { transition: transform .3s ease; }
.hero-btn:hover svg { transform: translateX(4px); }

/* Hero visual — floating card */
.hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 380px; height: 380px;
    display: flex; align-items: center; justify-content: center;
}

/* ── Nu Business physical card ── */
.nu-business-card {
    position: relative;
    width: 340px; height: 215px;
    background: linear-gradient(160deg, #F0EDE8 0%, #E8E4DE 40%, #DDD9D3 100%);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow:
        0 24px 64px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.25) inset,
        0 1px 0 rgba(255,255,255,.5) inset;
    animation: cardFloat 6s ease-in-out infinite;
    transform: rotate(-4deg);
    overflow: hidden;
}
.nu-business-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.3) 0%, transparent 50%, rgba(0,0,0,.04) 100%);
    pointer-events: none;
    border-radius: 16px;
}

/* Mastercard circles */
.mc-circles {
    position: absolute;
    top: 22px; right: 24px;
    display: flex;
    width: 48px; height: 30px;
}
.mc-circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    position: absolute; top: 0;
}
.mc-red { background: #EB001B; left: 0; }
.mc-yellow { background: #F79E1B; left: 18px; mix-blend-mode: hard-light; opacity: .85; }

/* Chip */
.nu-business-card .card-chip {
    width: 42px; height: 32px;
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 30%, #E8CC6A 50%, #C5A028 70%, #D4AF37 100%);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.12);
    position: relative;
    margin-top: 2px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    padding: 3px;
}
.nu-business-card .card-chip .chip-line {
    border: .5px solid rgba(0,0,0,.12);
    border-radius: 1px;
}

/* Contactless */
.card-contactless {
    position: absolute;
    top: 60px; left: 76px;
}

/* Braille dots */
.card-braille {
    position: absolute;
    top: 102px; left: 28px;
    display: grid;
    grid-template-columns: repeat(6, 6px);
    grid-template-rows: repeat(2, 6px);
    gap: 4px;
}
.card-braille span {
    width: 4px; height: 4px;
    background: rgba(0,0,0,.12);
    border-radius: 50%;
    display: block;
}
.card-braille span:nth-child(3),
.card-braille span:nth-child(5),
.card-braille span:nth-child(8),
.card-braille span:nth-child(10) {
    background: rgba(0,0,0,.2);
}

/* Cardholder name */
.card-holder {
    position: absolute;
    bottom: 52px; left: 28px;
    font-size: .68rem;
    font-weight: 500;
    color: rgba(0,0,0,.42);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Bottom row */
.card-bottom-row {
    position: absolute;
    bottom: 20px; left: 28px; right: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.nu-business-card .card-nu-logo {
    height: 22px; width: auto;
    filter: none;
    opacity: 1;
}
.card-business-label {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(0,0,0,.35);
    letter-spacing: .04em;
}

@keyframes cardFloat {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-12px); }
}

/* Floating approval badge */
.hero-badge {
    position: absolute;
    bottom: 40px; right: -10px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    display: flex; align-items: center; gap: 12px;
    animation: badgeSlide 7s ease-in-out infinite;
}
@keyframes badgeSlide {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.badge-icon {
    width: 36px; height: 36px;
    background: rgba(0,166,80,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.badge-text-group { line-height: 1.3; }
.badge-title { font-size: .72rem; font-weight: 700; color: var(--nu-gray-900); }
.badge-sub { font-size: .62rem; color: var(--nu-gray-500); }

/* Grid pattern overlay */
.hero-grid-overlay {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════ */
.trust-bar {
    background: var(--nu-white);
    border-bottom: 1px solid var(--nu-gray-200);
    padding: 24px 32px;
}
.trust-wrap {
    max-width: 700px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    gap: 40px;
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
}
.trust-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, rgba(130,10,209,.08), rgba(130,10,209,.03));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.trust-label {
    font-size: .82rem; font-weight: 600; color: var(--nu-gray-900);
}
.trust-sub {
    font-size: .68rem; color: var(--nu-gray-500); line-height: 1.3;
}
.trust-divider {
    width: 1px; height: 32px;
    background: var(--nu-gray-200);
}

/* ═══════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════ */
.features-section {
    background: var(--nu-gray-100);
    padding: 64px 32px;
}
.features-wrap {
    max-width: 800px; margin: 0 auto;
}
.features-eyebrow {
    font-size: .68rem; font-weight: 700;
    color: var(--nu-purple);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
    text-align: center;
}
.features-title {
    font-size: 1.5rem; font-weight: 800;
    color: var(--nu-gray-900);
    text-align: center;
    letter-spacing: -.02em;
    margin-bottom: 48px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--nu-white);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid var(--nu-gray-200);
    transition: all .3s var(--ease);
    position: relative; overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nu-purple), var(--nu-purple-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border-color: transparent;
}
.feature-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(130,10,209,.1), rgba(130,10,209,.04));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-name {
    font-size: .95rem; font-weight: 700;
    color: var(--nu-gray-900);
    margin-bottom: 8px;
}
.feature-desc {
    font-size: .82rem; color: var(--nu-gray-500);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════ */
.how-section {
    background: var(--nu-white);
    padding: 64px 32px;
}
.how-wrap {
    max-width: 600px; margin: 0 auto;
}
.how-eyebrow {
    font-size: .68rem; font-weight: 700;
    color: var(--nu-purple);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 32px;
}
.how-row {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--nu-gray-200);
}
.how-row:last-child { border-bottom: none; }
.how-num {
    width: 36px; height: 36px;
    background: var(--nu-purple);
    color: var(--nu-white);
    font-size: .78rem; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.how-text {
    font-size: .92rem; color: var(--nu-gray-500);
    line-height: 1.6;
}
.how-text strong { color: var(--nu-gray-900); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════ */
.faq-section {
    background: var(--nu-white);
    padding: 72px 32px;
}
.faq-wrap {
    max-width: 720px; margin: 0 auto;
}
.faq-title {
    font-size: 1.6rem; font-weight: 800;
    color: var(--nu-gray-900);
    margin-bottom: 10px;
}
.faq-subtitle {
    font-size: .92rem;
    color: var(--nu-gray-500);
    margin-bottom: 40px;
    line-height: 1.6;
}
.faq-accordion {
    display: flex; flex-direction: column;
}
.faq-item {
    border-bottom: 1px solid var(--nu-gray-200);
}
.faq-question {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0;
    background: none; border: none; cursor: pointer;
    font-family: inherit;
    font-size: .95rem; font-weight: 600;
    color: var(--nu-gray-900);
    text-align: left;
    gap: 16px;
}
.faq-question:hover { color: var(--nu-purple); }
.faq-chevron {
    flex-shrink: 0;
    transition: transform .3s var(--ease);
    color: var(--nu-gray-500);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--nu-purple); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease);
    padding: 0 0;
}
.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 0 22px;
}
.faq-answer p {
    font-size: .88rem;
    color: var(--nu-gray-500);
    line-height: 1.7;
    margin-bottom: 12px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
    padding-left: 20px;
    margin: 8px 0 12px;
}
.faq-answer li {
    font-size: .86rem;
    color: var(--nu-gray-500);
    line-height: 1.7;
    margin-bottom: 6px;
}
.faq-link-more {
    display: inline-block;
    margin-top: 28px;
    font-size: .88rem; font-weight: 600;
    color: var(--nu-purple);
    text-decoration: none;
    transition: opacity .2s;
}
.faq-link-more:hover { opacity: .7; }

/* ═══════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(160deg, #820AD1 0%, #530A8A 100%);
    padding: 64px 32px;
    text-align: center;
}
.cta-banner-inner {
    max-width: 600px; margin: 0 auto;
}
.cta-banner-title {
    font-size: 1.5rem; font-weight: 800;
    color: var(--nu-white);
    margin-bottom: 24px;
}
.cta-banner-btn {
    display: inline-flex; align-items: center;
    background: var(--nu-white);
    color: var(--nu-purple);
    padding: 14px 40px;
    border-radius: 100px;
    font-family: inherit;
    font-size: .95rem; font-weight: 700;
    border: none; cursor: pointer;
    transition: all .3s var(--ease);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════
   FOOTER — NUBANK.COM.BR CLONE
   ═══════════════════════════════════════════════════ */
.footer-nu {
    background: var(--nu-warm);
    padding: 56px 32px 32px;
    color: rgba(255,255,255,.55);
    font-size: .82rem;
}
.footer-nu-inner {
    max-width: 960px;
    margin: 0 auto;
}
.footer-nu-logo-row {
    margin-bottom: 40px;
}
.footer-nu-logo {
    height: 26px; width: auto;
    filter: brightness(0) invert(1);
    opacity: .5;
}
.footer-nu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 8px;
}
.footer-nu-col {
    display: flex; flex-direction: column; gap: 8px;
}
.footer-nu-heading {
    font-size: .72rem; font-weight: 700;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.footer-nu a {
    color: rgba(255,255,255,.6);
    text-decoration: none;
    font-size: .82rem;
    transition: color .2s;
    line-height: 1.5;
}
.footer-nu a:hover { color: var(--nu-white); }
.footer-nu-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 24px 0;
}
.footer-nu-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 16px 0 12px;
}
.footer-nu-contact-label {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    margin-bottom: 4px;
    line-height: 1.4;
}
.footer-nu-phone {
    font-size: .95rem; font-weight: 600;
    color: rgba(255,255,255,.7) !important;
}
.footer-nu-email {
    font-size: .88rem; font-weight: 500;
    color: rgba(255,255,255,.6) !important;
}
.footer-nu-extra-links {
    display: flex; flex-direction: column; gap: 4px;
    margin-top: 8px;
}
.footer-nu-extra-links a {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}
.footer-nu-ouvidoria {
    margin-bottom: 0;
}
.footer-nu-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-nu-social {
    display: flex; gap: 16px; align-items: center;
}
.footer-nu-social a {
    color: rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center;
    transition: color .2s;
}
.footer-nu-social a:hover { color: var(--nu-white); }
.footer-nu-legal {
    font-size: .7rem;
    color: rgba(255,255,255,.28);
    line-height: 1.5;
    max-width: 600px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media(max-width:900px){
    .hero-content { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text { max-width: 500px; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-visual { width: 340px; height: 320px; }
    .nu-business-card { width: 300px; height: 190px; padding: 22px 24px; }
    .mc-circles { top: 18px; right: 20px; }
    .card-braille { top: 90px; left: 24px; }
    .card-holder { bottom: 48px; left: 24px; }
    .card-bottom-row { left: 24px; right: 24px; bottom: 18px; }
    .hero-badge { bottom: 20px; right: -5px; }
    .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-nu-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-nu-contact-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media(max-width:640px){
    .header-inner { padding: 12px 20px; }
    .hero { padding: 100px 20px 60px; min-height: 85vh; }
    .hero-title { font-size: 2rem; }
    .hero-visual { width: 280px; height: 280px; }
    .nu-business-card { width: 260px; height: 165px; padding: 18px 20px; }
    .nu-business-card .card-chip { width: 36px; height: 26px; }
    .mc-circles { top: 16px; right: 18px; }
    .mc-circle { width: 24px; height: 24px; }
    .mc-yellow { left: 14px; }
    .card-braille { top: 78px; left: 20px; }
    .card-holder { bottom: 42px; left: 20px; font-size: .6rem; }
    .card-bottom-row { left: 20px; right: 20px; bottom: 14px; }
    .nu-business-card .card-nu-logo { height: 18px; }
    .card-business-label { font-size: .72rem; }
    .hero-badge { display: none; }
    .trust-wrap { flex-direction: column; gap: 16px; }
    .trust-divider { display: none; }
    .features-section { padding: 48px 20px; }
    .how-section { padding: 48px 20px; }
    .faq-section { padding: 48px 20px; }
    .faq-title { font-size: 1.3rem; }
    .cta-banner { padding: 48px 20px; }
    .footer-nu { padding: 40px 20px 24px; }
    .footer-nu-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-nu-contact-grid { grid-template-columns: 1fr; }
    .footer-nu-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
