/* ============================================
   Nebulaxhub Bento Grid — Common
   ============================================ */
:root {
    --bg: #F5F5F7;
    --card: #FFFFFF;
    --ink: #1D1D1F;
    --secondary: #6E6E73;
    --muted: #86868B;
    --accent: #0071E3;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --tile-radius: 24px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.09);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ---- Bento card ---- */
.bento-card {
    background: var(--card);
    border-radius: var(--tile-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-hover);
}

/* ---- Section label ---- */
.section-label {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 1.2rem;
}

.section-label-light {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary);
    font-size: 1.06rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #0077ED;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.35);
}

.btn-secondary {
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 44px;
    font-size: 1.06rem;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 245, 247, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 30px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.92rem;
    color: var(--secondary);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.045);
}

.nav-link.active {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.06);
}

.nav-link.cta-btn {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    margin-left: 12px;
}

.nav-link.cta-btn:hover {
    background: #0077ED;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.nav-toggle .bar {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Footer ---- */
.footer {
    background: var(--card);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 64px 0 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 320px;
}

.footer-section h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--secondary);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

/* ---- Entrance animation ---- */
.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 16px 24px 24px;
        gap: 4px;
        border-radius: 0 0 24px 24px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .nav-link.cta-btn {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
