:root {
    --bg: #ffffff;
    --text: #0b0b0b;
    --muted: #666666;
    --accent: #EFBF04;
    --accent-hover: #d4a903;
    --border: #e5e5e5;
    --nav-h: 96px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth !important;
    overflow-y: auto;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Scrollbar */
html::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.18);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,.35);
}

/* Intro Header */
#intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    transition: background .25s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    border-bottom: 1px solid transparent;
}

#logo {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text);
    display: flex;
    align-items: center;
    transform-origin: center;
    will-change: transform;
}

.dot-color {
    color: var(--accent) !important;
}

/* Fixed Nav Sides */
.nav-left.fixed,
.nav-right.fixed {
    position: fixed;
    top: 0;
    z-index: 1001;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left.fixed { left: 40px; }
.nav-right.fixed { right: 40px; }

/* ===== SIMPLE MENU ICON (as requested) ===== */
#hamburger {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--text);
    transition: background .2s ease;
}

#hamburger:hover {
    background: rgba(0,0,0,.05);
}

#hamburger .fa-times { display: none; }
#hamburger.open .fa-bars { display: none; }
#hamburger.open .fa-times { display: block; }

/* Fullscreen Menu */
#menuFull {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 850;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 12vw;
    gap: 28px;
    overflow: auto;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-list a {
    font-size: clamp(40px, 8vw, 72px);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -1px;
    transition: var(--transition);
}

.menu-list a:hover {
    color: var(--text);
    transform: translateX(15px);
}

/* ===== ARLO-STYLE FOOTER ===== */
.arlo-footer-wrapper {
    width: 100%;
    padding: 100px 20px 40px 20px;
    background-color: #fcfcfc;
    box-sizing: border-box;
}

.arlo-container {
    max-width: 1440px;
    margin: 0 auto;
    border: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.footer-top {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.footer-top-left {
    flex: 1;
    padding: 80px 60px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-top-right {
    flex: 1.5;
    padding: 80px 60px;
    display: flex;
    align-items: center;
}

.footer-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.footer-avatars .gray-circle {
    width: 48px;
    height: 48px;
    background-color: #e5e7eb;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-left: -14px;
    box-shadow: var(--shadow-sm);
}

.footer-avatars .gray-circle:first-child { margin-left: 0; }

.footer-top-left h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
    color: #000;
    letter-spacing: -0.03em;
}

.footer-top-left h2 i { color: var(--accent); font-style: italic; }

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
}

.footer-links-grid a {
    color: #000;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.footer-links-grid a:hover {
    color: var(--accent);
    transform: translateX(6px);
}

.link-arrow {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.2s;
}

.footer-links-grid a:hover .link-arrow {
    transform: translateX(4px);
}

.footer-bottom {
    position: relative;
    padding: 120px 60px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
}

.footer-brand-huge {
    font-size: clamp(64px, 14vw, 260px);
    font-weight: 800;
    line-height: 0.75;
    letter-spacing: -0.05em;
    color: #000;
    margin: 0 auto;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    padding: 0 20px;
    overflow-wrap: break-word;
}

.footer-socials {
    position: absolute;
    top: 60px;
    right: 60px;
    display: flex;
    gap: 16px;
    z-index: 10;
}

.footer-socials a {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

.footer-copyright {
    align-self: center;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #aaa;
    text-transform: uppercase;
    margin-top: 20px;
}

.footer-legal-disclaimer {
    margin-top: 32px;
    font-size: 10px;
    color: #bbb;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SMART NAVBAR HIDE ===== */
.header-hidden #intro,
.header-hidden .nav-left.fixed,
.header-hidden .nav-right.fixed {
    transform: translateY(-100%);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-left.fixed { left: 20px; }
    .nav-right.fixed { right: 20px; }
}

@media (max-width: 850px) {
    .footer-top { flex-direction: column; }
    .footer-top-left { border-right: none; border-bottom: 1px solid var(--border); padding: 60px 40px; }
    .footer-top-right { padding: 60px 40px; }
    .footer-bottom { min-height: 420px; padding: 90px 30px 50px; }
}

@media (max-width: 600px) {
    .footer-links-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand-huge {
        font-size: clamp(52px, 18vw, 172px);
        padding: 0 12px;
        white-space: normal;
        line-height: 1.1;
    }
    .footer-socials { position: static; margin: 30px auto; }
    .footer-bottom { padding: 100px 20px 50px; }
}

/* ===== SMALL DEVICE STYLES (max-width: 780px - matches isSmallScreen breakpoint) ===== */
@media (max-width: 780px) {
    /* Intro header becomes a compact navbar with right-aligned logo */
    #intro {
        height: 70px;
        justify-content: flex-end;
        padding: 0 24px;
        pointer-events: auto;
        border-bottom: 1px solid var(--border);
    }

    /* Logo scaled down and aligned right */
    #logo {
        font-size: 28px;
        letter-spacing: -0.5px;
        margin-right: 0;
    }

    /* Fixed nav left (hamburger) - repositioned for smaller screen */
    .nav-left.fixed {
        left: 16px;
        height: 70px;
    }

    /* Ensure hamburger is properly sized */
    #hamburger {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    /* Adjust fullscreen menu padding for small screens */
    #menuFull {
        padding: 80px 8vw;
    }

    .menu-list a {
        font-size: clamp(32px, 10vw, 56px);
    }
}