/* BASE STYLES: MOBILE FIRST */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-dark: #808080;
    --border-color: rgba(255, 255, 255, 0.1);

    --brand-primary: #9d00ff;
    /* Pop Purple */
    --brand-secondary: #ffd700;
    /* Yellow */
    --brand-tertiary: #2a2a2a;

    --bar-bg: rgba(0, 0, 0, 0.4);
    --state-unchecked: rgba(255, 255, 255, 0.1);
    --state-checked: var(--brand-primary);

    --hero-bg-image: url('../assets/pop/pop-hero.jpeg');
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-highlight {
    color: var(--brand-primary);
    text-shadow: 0 0 15px rgba(157, 0, 255, 0.6);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.hero-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.4);
    transform: translateY(-2px);
}

/* --- EXTRA INFO SECTION --- */
.info-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.info-text .lead {
    font-size: 1.2rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.info-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bullet {
    color: var(--brand-primary);
    font-weight: bold;
}

.pricing-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-primary);
}

.price-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px !important;
}

.price-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

.pricing-link {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--brand-primary);
}

.info-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.metal-accent-box {
    background: linear-gradient(135deg, var(--card-bg), #000);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 40px rgba(157, 0, 255, 0.1) inset;
    padding: 20px;
}

.rock-hands {
    font-size: 50px;
    margin-bottom: 10px;
    color: var(--brand-primary);
    text-shadow: 0 0 10px rgba(157, 0, 255, 0.6);
}

.accent-text {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #fff;
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 20px rgba(157, 0, 255, 0.1);
}

.feature-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    padding: 5px;
    mix-blend-mode: screen;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- VISUALIZER SECTION --- */
.visualizer-section {
    padding: 60px 0 80px;
}

.visualizer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.visualizer-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.metal-accent-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--card-bg), #000);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(157, 0, 255, 0.15) inset;
    transform: rotate(-3deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metal-accent-bg.protection-active {
    background: linear-gradient(135deg, #1e1e1e, #330d00);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9), 0 0 50px rgba(157, 0, 255, 0.35) inset;
    border-color: rgba(157, 0, 255, 0.3);
}

.earplugs-image {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    margin: 0 auto;
    max-width: 700px;
}

.card .header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 60px;
    height: 32px;
    background: linear-gradient(to bottom, #fff 48%, var(--brand-primary) 48.1%);
    -webkit-mask-image: url('../assets/logo-icon.webp');
    mask-image: url('../assets/logo-icon.webp');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    display: inline-block;
    filter: drop-shadow(0 0 6px rgba(157, 0, 255, 0.4));
    flex-shrink: 0;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

select {
    width: 100%;
    appearance: none;
    background-color: var(--brand-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

select:focus {
    border-color: var(--brand-primary);
    outline: none;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(157, 0, 255, 0.2);
    border-color: var(--brand-primary);
}

input:checked+.slider:before {
    transform: translateX(18px);
    background-color: var(--brand-primary);
    box-shadow: 0 0 8px rgba(157, 0, 255, 0.8);
}

.toggle-labels {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toggle-text {
    font-size: 1rem;
    font-weight: 600;
}

.filter-text {
    font-size: 0.85rem;
    color: var(--brand-primary);
    margin-top: 2px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.filter-text.off {
    color: rgba(255, 255, 255, 0.3);
}

.chart-section {
    display: flex;
    height: 250px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
    position: relative;
    padding-bottom: 25px;
}

.axis-label {
    font-size: 0.7rem;
    color: var(--text-dark);
    font-weight: 600;
}

.axis-label.top {
    margin-bottom: 10px;
}

.axis-label.bottom {
    margin-top: 10px;
}

.axis-line {
    width: 1px;
    background-color: var(--border-color);
    flex: 1;
}

.bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    padding-left: 10px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 10%;
}

.bar-track {
    width: 12px;
    flex: 1;
    background-color: var(--bar-bg);
    border-radius: 6px;
    margin-bottom: 12px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-fill {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 6px;
    transition: height 0.4s ease, background-color 0.4s ease;
}

.bar-fill.state-off {
    background-color: var(--state-unchecked);
}

.bar-fill.state-on {
    background-color: var(--state-checked);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.6);
}

.bar-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    height: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand-primary);
    color: #fff;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(157, 0, 255, 0.3);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #050505;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==================================
   TABLET BORDERLINE & DESKTOP (MOBILE FIRST)
   ================================== */
@media (min-width: 768px) {
    .container {
        max-width: 1100px;
        /* Expands container limit */
    }

    .hero-section {
        min-height: 100vh;
    }

    .hero-content h1 {
        font-size: 6rem;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .info-section {
        padding: 100px 0;
    }

    .info-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .info-text {
        flex: 1.3;
    }

    .info-text h2 {
        font-size: 3rem;
    }

    .info-visual {
        flex: 1;
    }

    .metal-accent-box {
        width: 350px;
        height: 350px;
    }

    .rock-hands {
        font-size: 70px;
    }

    .accent-text {
        font-size: 1.5rem;
    }

    .features-section {
        padding: 100px 0;
    }

    .features-section h2 {
        font-size: 3rem;
        margin-bottom: 60px;
    }

    .features-grid {
        flex-direction: row;
        gap: 40px;
    }

    .feature-card {
        flex: 1;
        padding: 40px;
    }

    .feature-icon img {
        width: 120px;
        height: 120px;
    }

    .visualizer-section {
        padding: 100px 0 120px;
    }

    .visualizer-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .visualizer-image-wrapper {
        flex: 1;
    }

    .card {
        flex: 1.2;
        padding: 50px;
        margin: 0;
    }

    .card h2 {
        font-size: 28px;
    }

    .controls {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }

    .select-wrapper {
        width: 300px;
    }

    .chart-section {
        height: 300px;
        padding: 0 20px;
    }

    .bars-container {
        padding-left: 20px;
    }

    .bar-track {
        width: 16px;
    }

    .bar-label {
        font-size: 12px;
    }

    .cta-section {
        padding: 100px 0;
    }

    .cta-section h2 {
        font-size: 3.5rem;
    }

    .cta-section p {
        font-size: 1.3rem;
    }
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--brand-primary);
    width: 100%;
    max-width: 600px;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    width: 44px; /* Optimized for mobile tap */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--brand-primary);
    color: #fff;
}

.modal-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-right: 40px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--brand-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

td {
    font-size: 1rem;
    color: var(--text-primary);
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Modal Lock Body Scroll */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-content h3 {
        font-size: 1.4rem;
    }
    
    td, th {
        padding: 12px;
        font-size: 0.9rem;
    }
}