/* Responsive Viewport & Overflow Shield (Mobile, Tablet, Desktop) */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
}

/* Top Announcement Strip (Optional on pages) */
.global-announcement-bar {
    background: linear-gradient(90deg, #1E3A8A 0%, #2563EB 50%, #1D4ED8 100%);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    text-align: center;
    position: relative;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.2px;
}
.global-announcement-bar a {
    color: #FACC15;
    text-decoration: underline;
    font-weight: 700;
    transition: opacity 0.2s;
}
.global-announcement-bar a:hover {
    opacity: 0.85;
}

/* Main Navigation Header */
.global-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(9, 14, 26, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.global-nav-wrapper.scrolled {
    background: rgba(6, 10, 18, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.global-nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand Logo */
.global-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.global-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.3));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.global-logo:hover .global-logo-img {
    transform: scale(1.08) rotate(-2deg);
}
.global-logo-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    line-height: 1;
}
.global-logo-main {
    color: #FFFFFF;
    font-weight: 800;
}
.global-logo-accent {
    background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* Desktop Navigation Links */
.global-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0 14px 0 0;
    padding: 0;
    flex-shrink: 1;
    min-width: 0;
}

.global-nav-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 4px;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.global-nav-link:hover {
    color: #FFFFFF;
}

.global-nav-link.active {
    color: #FFFFFF;
}

.global-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: linear-gradient(90deg, #38BDF8, #2563EB);
    border-radius: 2px;
}

/* Feature Badge (e.g. for AI Voice or Pro) */
.global-link-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Desktop Nav Actions */
.global-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dedicated Login Non-Rounded Buttons */
.global-btn-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
    border-radius: 0px !important;
    font-size: 12.5px;
    font-weight: 700;
    color: #E2E8F0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}
.global-btn-login:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.global-btn-login-client {
    border-color: rgba(16, 185, 129, 0.35);
    color: #34D399;
    background: rgba(16, 185, 129, 0.08);
}
.global-btn-login-client:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.global-btn-login-agency {
    border-color: rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.08);
}
.global-btn-login-agency:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

/* Legacy/Fallback Phone Pill */
.global-nav-phone {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
    border-radius: 0px !important;
    font-size: 12.5px;
    font-weight: 700;
    color: #E2E8F0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.global-nav-phone:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Super CTA Button (Sharp Non-Rounded) */
.global-btn-trial {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 0px !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.global-btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}
.global-btn-trial:active {
    transform: translateY(0);
}

/* Mobile Hamburger Button */
.global-mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0px !important;
    width: 42px;
    height: 42px;
    padding: 10px 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: background 0.2s ease;
}
.global-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.global-mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 0px !important;
    transition: all 0.25s ease;
}
.global-mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.global-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.global-mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Slide-Out Drawer */
.global-mobile-drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(6, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 24px 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 9998;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.global-mobile-drawer.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.global-mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #E2E8F0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 0px !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.global-mobile-nav-link:hover,
.global-mobile-nav-link:active {
    background: rgba(255, 255, 255, 0.08);
    color: #38BDF8;
}

.global-mobile-nav-link .link-arrow {
    color: #64748B;
    font-size: 18px;
    font-weight: normal;
}

.global-mobile-drawer-cta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Breakpoint Logic (Desktop, Tablet & Mobile) */
@media (max-width: 1360px) {
    .global-nav-container {
        padding: 0 16px !important;
        gap: 10px !important;
    }
    .global-nav-links {
        gap: 10px !important;
    }
    .global-nav-link {
        font-size: 13px !important;
        padding: 6px 2px !important;
    }
    .global-btn-trial {
        padding: 7px 12px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 1300px) {
    /* Below 1300px, tuck desktop login pills into the drawer to guarantee ample breathing room */
    .global-btn-login {
        display: none !important;
    }
    .global-nav-links {
        gap: 10px !important;
    }
    .global-nav-link {
        font-size: 12.5px !important;
    }
}

@media (max-width: 1140px) {
    .global-nav-links {
        display: none !important;
    }
    .global-btn-login {
        display: none !important;
    }
    .global-mobile-menu-btn {
        display: flex !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
    }
}

@media (max-width: 768px) {
    .global-nav-phone,
    .global-btn-login {
        display: none !important;
    }
    .global-nav-container {
        padding: 0 14px !important;
        height: 62px !important;
        gap: 8px !important;
    }
    .global-logo-text {
        font-size: 15px !important;
    }
    .global-logo-img {
        width: 28px !important;
        height: 28px !important;
    }
    .global-btn-trial {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .footer-col {
        width: 100% !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .global-nav-container {
        padding: 0 10px !important;
    }
    .global-logo-text {
        font-size: 13.5px !important;
    }
    .global-logo {
        gap: 6px !important;
    }
    .global-btn-trial {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
    .global-mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 8px 6px !important;
    }
}

/* ==========================================================================
   UNIVERSAL INDUSTRIAL SHARP DESIGN: ZERO ROUNDED CORNERS ON ALL BUTTONS
   ========================================================================== */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-primary,
.btn-secondary,
.btn-super-cta,
.btn-outline,
.btn-action,
.btn-portal-action,
.btn-primary-action,
.btn-pro-action,
.btn-free-action,
.btn-hero,
.btn-hero-primary,
.btn-hero-secondary,
.btn-large-trial,
.btn-pro-nav,
.btn-agency-primary,
.btn-logout,
.btn-sm,
.btn-danger,
.btn-ghost,
.btn-white,
.cta-btn,
.hero-cta,
.pricing-cta,
.tab-btn,
.auth-tab-btn,
.cat-btn,
.filter-btn,
.filter-pill,
.global-btn-trial,
.global-btn-login,
.global-btn-login-client,
.global-btn-login-agency,
.global-nav-phone,
.global-mobile-menu-btn,
.global-mobile-nav-link,
.nav-phone-pill,
.agency-pill,
a.btn,
a.btn-primary,
a.btn-secondary,
a.btn-super-cta,
a.btn-outline,
a.btn-hero,
a.btn-action,
a.btn-portal-action,
a.btn-large-trial,
a.btn-pro-nav,
a.btn-agency-primary,
a.cta-btn,
a.pricing-cta,
a.global-btn-trial,
a.global-btn-login,
[role="button"] {
    border-radius: 0px !important;
}
