/* 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-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.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-primary {
    background: var(--npl-white);
    color: var(--npl-dark-blue);
    border-color: var(--npl-white);
}

.hero-cta-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

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

@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: 6rem 2rem 7rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.apps-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(110, 177, 216, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #eef4fa 0%, var(--npl-bg-light) 40%, #eef4fa 100%);
}

.apps-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(0, 65, 118, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 65, 118, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header-light .section-eyebrow {
    color: var(--npl-light-blue);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--npl-light-blue);
    margin-bottom: 0.75rem;
    padding: 0.35rem 1rem;
    background: rgba(110, 177, 216, 0.15);
    border-radius: 50px;
}

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

.section-subtitle {
    text-align: center;
    color: var(--npl-text-muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.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: 2rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(0, 65, 118, 0.08);
    position: relative;
    overflow: hidden;
}

.app-card .app-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--npl-light-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.app-card[data-app="pantrypics"] .app-card-inner::before { background: #b5ae4f; }
.app-card[data-app="polar-pounce"] .app-card-inner::before { background: #5DADE2; }
.app-card[data-app="panic-gift"] .app-card-inner::before { background: #59A6EB; }
.app-card[data-app="christmas-ambience-4k"] .app-card-inner::before { background: #c0392b; }

.app-card:hover .app-card-inner::before {
    opacity: 1;
}

.app-card:hover .app-card-inner {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 65, 118, 0.12);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

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

.app-platform {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--npl-dark-blue);
    background: rgba(0, 65, 118, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.app-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--npl-bg-light);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 65, 118, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.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 {
    display: none;
}

.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;
}

/* Services Section */
.services {
    position: relative;
    padding: 6rem 2rem 7rem;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--npl-dark-blue) 0%, #003560 45%, var(--npl-bg-dark) 100%);
}

.services-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(110, 177, 216, 0.15) 0%, transparent 70%);
}

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

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

.section-header-light .section-eyebrow {
    background: rgba(255, 255, 255, 0.1);
    color: var(--npl-light-blue);
}

.section-title-light {
    color: var(--npl-white);
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.75);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

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

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

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px);
}

.service-card.visible:hover {
    transform: translateY(-4px);
}

.service-number {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.25);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(110, 177, 216, 0.3) 0%, rgba(110, 177, 216, 0.1) 100%);
    border: 1px solid rgba(110, 177, 216, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--npl-light-blue);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--npl-white);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    padding: 3.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(110, 177, 216, 0.4), transparent 50%, rgba(110, 177, 216, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.services-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--npl-white);
    margin-bottom: 0.5rem;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: var(--npl-white);
    color: var(--npl-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.2s;
}

.services-cta-btn:hover {
    background: var(--npl-light-blue);
    color: var(--npl-white);
    transform: translateY(-2px);
}

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

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

.contact-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(110, 177, 216, 0.3), transparent);
}

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

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--npl-light-blue);
}

.footer-contact-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 2.5rem;
}

.footer-contact-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.footer-contact-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}

.footer-email-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.75rem;
    background: var(--npl-light-blue);
    color: var(--npl-dark-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.2s;
    white-space: nowrap;
}

.footer-email-btn:hover {
    background: var(--npl-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(110, 177, 216, 0.3);
}

.footer-bottom {
    text-align: center;
}

.dba-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.55;
}

/* 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;
    }

    .hero-ctas {
        justify-content: center;
    }

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

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

    .services-cta {
        padding: 2.5rem 1.5rem;
    }

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

    .section-header {
        margin-bottom: 2.5rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
    }

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

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

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

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
        margin: 0 auto;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .footer-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.5rem;
    }

    .footer-email-btn {
        width: 100%;
        justify-content: center;
    }
}
