/* North Peak Labs — Enhanced Brand Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --npl-dark-blue: #004176;
    --npl-light-blue: #6EB1D8;
    --npl-gray: #A0AAB5;
    --npl-white: #FFFFFF;
    --npl-text-dark: #1a1a1a;
    --npl-text-muted: #555;
    --npl-bg-light: #f5f8fc;
    --npl-bg-dark: #002a4d;
    --shadow: 0 10px 40px rgba(0, 65, 118, 0.12);
    --shadow-hover: 0 20px 50px rgba(0, 65, 118, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--npl-text-dark);
    background-color: var(--npl-white);
    overflow-x: hidden;
}

/* Circuit pattern - subtle background */
.circuit-pattern {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(110, 177, 216, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(110, 177, 216, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.header:not(.header-scrolled) nav a {
    color: rgba(255, 255, 255, 0.95);
}

.header:not(.header-scrolled) nav a:hover {
    color: var(--npl-white);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-scrolled nav a {
    color: var(--npl-text-dark);
}

.header-scrolled nav a:hover {
    color: var(--npl-dark-blue);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    height: 44px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--npl-white);
    padding: 6rem 2rem 8rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 65, 118, 0.5) 0%, rgba(0, 42, 77, 0.55) 50%, rgba(0, 26, 46, 0.6) 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/hero.jpeg') center center / cover no-repeat;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--npl-light-blue);
    top: -150px;
    right: -100px;
    animation: glow-pulse 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 300px;
    height: 300px;
    background: var(--npl-light-blue);
    bottom: -50px;
    left: -50px;
    opacity: 0.2;
    animation: glow-pulse 10s ease-in-out infinite reverse;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
}

.hero-logo-wrap {
    flex-shrink: 0;
}

.hero-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--npl-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-cta svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Apps Section */
.apps {
    padding: 5rem 2rem 7rem;
    background: var(--npl-bg-light);
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--npl-text-dark);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--npl-text-muted);
    margin-bottom: 4rem;
    font-size: 1.05rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.app-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:nth-child(1) { transition-delay: 0.1s; }
.app-card:nth-child(2) { transition-delay: 0.2s; }
.app-card:nth-child(3) { transition-delay: 0.3s; }
.app-card:nth-child(4) { transition-delay: 0.4s; }

.app-card .app-card-inner {
    background: var(--npl-white);
    border-radius: 24px;
    padding: 2.25rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 65, 118, 0.06);
}

.app-card:hover .app-card-inner {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.app-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--npl-bg-light);
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--npl-light-blue);
}

.app-icon-fallback svg {
    width: 36px;
    height: 36px;
}

.app-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--npl-dark-blue);
    margin-bottom: 0.75rem;
}

.app-card p {
    color: var(--npl-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.app-btn-primary {
    background: var(--npl-dark-blue);
    color: var(--npl-white);
}

.app-btn-primary:hover {
    background: var(--npl-bg-dark);
    transform: translateY(-1px);
}

.app-btn-store {
    background: var(--npl-bg-light);
    color: var(--npl-text-dark);
    border: 1px solid rgba(0, 65, 118, 0.15);
}

.app-btn-store:hover {
    background: var(--npl-light-blue);
    color: var(--npl-white);
    border-color: transparent;
}

/* Contact / Footer */
.contact {
    position: relative;
    background: var(--npl-dark-blue);
    color: var(--npl-white);
    padding: 4rem 2rem;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--npl-dark-blue) 0%, var(--npl-bg-dark) 100%);
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(110, 177, 216, 0.08) 0%, transparent 70%);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.contact-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-main a {
    color: var(--npl-light-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.contact-main a:hover {
    color: var(--npl-white);
}

.dba-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.contact-links a:hover {
    color: var(--npl-white);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.75;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.25rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 6rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-logo {
        width: 220px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.05rem;
    }

    .apps {
        padding: 4rem 1.5rem 5rem;
    }

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

    .section-subtitle {
        margin-bottom: 3rem;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-card-inner {
        padding: 1.75rem;
    }

    .app-ctas {
        flex-direction: column;
    }

    .app-btn {
        justify-content: center;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-links {
        justify-content: center;
    }
}
