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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0b0b0f;
    color: #f5f5f7;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

/* App layout: flex column so footer stays in viewport and at bottom when content is short */
body.layout-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.layout-app .layout-main {
    flex: 1 0 auto;
}

/* Lock body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.preview-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.5rem 1rem;
    background: #1a3a1a;
    color: #e0f0e0;
    font-size: 0.875rem;
    border-bottom: 1px solid #2d5a2d;
    z-index: 1001;
}

.preview-banner-text {
    font-weight: 500;
}

.preview-banner-note {
    opacity: 0.9;
    font-weight: 400;
}

.preview-banner-exit {
    color: #7dd87d;
    font-weight: 600;
    text-decoration: underline;
}

.preview-banner-exit:hover {
    color: #9eea9e;
}

.site-header {
    background: #000000;
    border-bottom: 1px solid #333;
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* When a site uses a custom logo (e.g. with baked-in black background), match header to black so the logo blends in */
.site-header.site-header--custom-logo {
    background: #000000;
}

.site-header .header-inner,
.site-header .container {
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo img {
    height: 60px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: #0a0a0a;
    border: 1px solid #2b2b38;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

.nav-dropdown-menu a {
    display: block;
    white-space: normal;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #f5f5f7;
}

.nav-dropdown-item:hover {
    background: #1f1f2a;
}

.nav-dropdown-item--parent {
    font-weight: 700;
}

.nav-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 12px;
    padding-left: 10px;
    border-left: 1px solid #2b2b38;
}

.nav-dropdown-item--child {
    padding-left: 6px;
    color: #c9c9d4;
}

.nav-dropdown-divider {
    height: 1px;
    background: #2b2b38;
    margin: 6px 0;
}

.nav-dropdown-loading {
    padding: 6px 10px;
    font-size: 12px;
    color: #9fa0ad;
}

.nav-links a {
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00E5FF;
    border-color: #00E5FF;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.nav-links .nav-dropdown-toggle {
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}
.nav-links .nav-dropdown:hover .nav-dropdown-toggle {
    color: #00E5FF;
    border-color: #00E5FF;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.header-icons {
    display: flex;
    gap: 1rem;
    color: #00E5FF;
    font-size: 1.25rem;
}

.header-icons span:hover {
    color: #FFD700;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    background: transparent;
    border: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
    color: #00E5FF;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 85vw);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: #0a0a0a;
    padding: 2rem;
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mobile-menu-section-label {
    display: block;
    padding: 1rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: inherit;
    cursor: default;
}

.mobile-menu-section {
    margin-top: 1rem;
}

.mobile-submenu {
    margin: 0.5rem 0 0.5rem 12px;
    padding-left: 12px;
    border-left: 1px solid #2b2b38;
}

.mobile-submenu-group {
    margin-bottom: 0.5rem;
}

.mobile-submenu-children {
    margin-left: 10px;
    padding-left: 8px;
    border-left: 1px solid #2b2b38;
}

.mobile-submenu a {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #b6b6bf;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1500;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 3rem 2rem;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

footer .container {
    width: 100%;
    max-width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col {
    min-width: 0;
}

.footer-grid p,
.footer-grid a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.footer-grid h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
    font-size: 0.95rem;
    color: #9fa0ad;
    display: block;
    margin-bottom: 0.4rem;
}

.footer-grid a:hover {
    color: #00E5FF;
}

.footer-input,
.footer-newsletter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #00E5FF;
    background: #0a0a0a;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-newsletter-input::placeholder {
    color: #6b7280;
}

.footer-button,
.footer-newsletter-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.footer-newsletter-btn {
    background: #00E5FF;
    color: #000;
}

.footer-newsletter-btn:hover {
    background: #00ffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (min-width: 769px) {
    .footer-links {
        columns: 2;
        column-gap: 2rem;
    }

    .footer-links a {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9fa0ad;
}

.footer-copy {
    order: 1;
}

.footer-powered {
    order: 2;
    font-size: 0.8rem;
    opacity: 0.85;
}

.footer-legal {
    width: 100%;
    order: 3;
    margin: 1rem 0 0;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #6b7280;
    opacity: 0.9;
    max-width: 72ch;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

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

    footer {
        padding: 2rem 1rem;
    }

    footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

header {
    margin-bottom: 0;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
}

.subtitle {
    color: #b6b6bf;
    font-size: 14px;
    margin: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 80px;
    width: auto;
    display: block;
}

.brand-logo.small {
    height: 60px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #2b2b38;
    text-decoration: none;
    color: #f5f5f7;
    font-size: 12px;
    background: #1f1f2a;
    transition: all 0.2s;
}

.btn:hover {
    background: #2b2b38;
    border-color: #3a3a4a;
}

.btn.primary {
    background: #f1c40f;
    color: #161616;
    border-color: transparent;
    font-weight: 700;
}

.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.empty-state {
    padding: 24px;
    border: 1px dashed #2b2b38;
    border-radius: 12px;
    color: #b6b6bf;
}

@media (max-width: 600px) {
    .container {
        padding: 24px 16px 40px;
    }

    h1 {
        font-size: 26px;
    }
}
