/* ========================================
   Carbonated Audio — Shared Styles
   Used across all pages for consistent branding
   ======================================== */

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

:root {
    --bg-primary: #0d0a1a;
    --bg-secondary: #151025;
    --bg-card: #1a1430;
    --bg-card-darker: #120e22;
    --orange: #ff6b2b;
    --orange-light: #ff8c42;
    --red: #e63946;
    --pink: #ff3366;
    --magenta: #cc33ff;
    --yellow: #ffd700;
    --cyan: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #a09bb5;
    --text-muted: #6b6580;
    --border: #2a2440;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

a, button, input[type="submit"] {
    touch-action: manipulation;
}

/* Gradient text clipping fix */
[style*="background-clip"] {
    padding-left: 0.05em;
    padding-right: 0.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Silk WebGL background */
#silk-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

/* ========================================
   Navigation
   ======================================== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    transition: filter 0.3s;
}
.nav-logo-img:hover {
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

/* Products dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-top: 2px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 20, 48, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(20px);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary) !important;
}

.nav-dropdown-menu .dropdown-label {
    font-weight: 600;
}

.nav-dropdown-menu .dropdown-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-nav {
    padding: 10px 20px;
    min-height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
    background: rgba(13, 10, 26, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 80px 32px 32px;
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
    width: 100%;
    max-width: 300px;
    text-align: center;
}
.mobile-menu a:hover, .mobile-menu a:active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* ========================================
   Common Section Styles
   ======================================== */
section {
    padding: 80px 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

.section-title .accent {
    background: linear-gradient(135deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    nav {
        padding: 12px 20px;
    }
    section {
        padding: 60px 20px;
    }
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .site-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 30px 20px 80px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 40px 16px;
    }
}
