/* ============================================
   BANext Landing Page - Premium Light Theme
   Brand Color: #001a7e
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #001a7e;
    --brand-light: #0026b3;
    --brand-lighter: #e8ecf8;
    --brand-subtle: #f2f4fb;

    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f9faff;

    --border-subtle: rgba(0, 26, 126, 0.08);
    --border-hover: rgba(0, 26, 126, 0.18);

    --text-primary: #0f1729;
    --text-secondary: #4a5568;
    --text-muted: #8896ab;

    --accent-gradient: linear-gradient(135deg, #001a7e, #0040d6);
    --glow-color: rgba(0, 26, 126, 0.06);

    --shadow-sm: 0 1px 3px rgba(0, 26, 126, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 26, 126, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 26, 126, 0.1);

    --section-padding: 60px 0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #fff;
}


/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ============================================
   Layout
   ============================================ */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 1.75rem;
    color: var(--brand);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 70px 0 50px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-bg-glow {
    position: absolute;
    top: -120px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Logo Image */
.logo-img {
    max-width: 220px;
    height: auto;
    display: block;
}

/* Text logo (footer) */
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.logo-ba {
    color: var(--text-primary);
}

.logo-next {
    color: var(--brand);
}

.slogan {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.6;
}

.slogan-highlight {
    color: var(--brand);
    font-weight: 700;
}

/* ============================================
   Brands Section
   ============================================ */
.brands-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.brand-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-logo-img {
    height: 44px;
    max-height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-card:hover .brand-logo-img,
.brand-card:hover .brand-logo-combo {
    transform: scale(1.05);
}

.brand-logo-combo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    transition: transform 0.3s ease;
}

.brand-logo-icon {
    height: 44px;
    max-height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-text {
    font-family: 'Outfit', 'Space Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #102B73;
    line-height: 1;
}

/* ============================================
   References Section
   ============================================ */
.references-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
}

.references-section .section-inner {
    position: sticky;
    top: 10vh;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-height: 780px;
    overflow: hidden;
    padding: 20px 0;
}

.reference-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.reference-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reference-logo-img {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.reference-card:hover .reference-logo-img {
    transform: scale(1.05);
}

/* ============================================
   Contact / Footer Section
   ============================================ */
.contact-section {
    padding: 50px 0 30px;
    background: var(--brand);
    color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-block {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.contact-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.6;
}

.contact-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 16px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.brands-section .section-inner {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.references-section .section-inner {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-section .section-inner {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 50px 0 40px;
    }

    .logo-img {
        max-width: 160px;
    }

    .slogan {
        font-size: 0.9rem;
    }

    .section-inner {
        padding: 0 20px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .reference-card,
    .brand-card {
        padding: 16px 12px;
        min-height: 76px;
    }

    .reference-logo-img {
        max-width: 100%;
        max-height: 48px;
    }

    .brand-logo-img {
        height: 34px;
        max-height: 34px;
        max-width: 100%;
    }

    .brand-logo-combo {
        height: 34px;
        gap: 8px;
    }

    .brand-logo-icon {
        height: 34px;
        max-height: 34px;
    }

    .brand-logo-text {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.4rem;
    }
}