:root {
    --matrix-green: #00ff00;
    --matrix-glow: rgba(0, 255, 0, 0.3);
    --dark-bg: #0a0a0a;
    --card-bg: #111;
    --border: #333;
    --text-dim: #888;
}

* { box-sizing: border-box; }
body {
    background-color: var(--dark-bg);
    color: var(--matrix-green);
    font-family: 'Courier New', monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-transform: uppercase;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between; /* Logos on ends, title in middle */
    align-items: center;
    padding: 20px 40px;
    background: #000;
    border-bottom: 2px solid var(--matrix-green);
}

.header-logo {
    height: 60px;
    transition: 0.4s ease;
    filter: grayscale(100%) brightness(0.5); /* Dim by default */
}

.header-logo:hover {
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 10px var(--matrix-green));
    transform: scale(1.05);
}

/* THE SEARCH HUD */
.search-container {
    margin: 20px auto;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

#planSearch {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #333;
    color: var(--matrix-green);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    outline: none;
    transition: 0.3s;
}

#planSearch:focus {
    border-color: var(--matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

nav { margin: 20px 0; }
nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 20px;
    font-size: 0.85em;
    transition: 0.3s;
    border: 1px solid transparent;
    padding: 5px 10px;
}
nav a:hover {
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green);
    box-shadow: 0 0 10px var(--matrix-glow);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 60px 0;
}

.thumb {
    flex: 0 0 calc(20% - 7px);
    height: 60px;
    border: 1px solid #333;
    cursor: pointer;
    object-fit: cover;
    transition: 0.2s;
    opacity: 0.6;
}

.thumb:hover { border-color: var(--matrix-green); opacity: 1; }

.thumb-slider {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding 10px 0;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--matrix-green) #111;
}

.thumb-slider::-webkit-scrollbar {height: 4px; }
.thumb-slider::-webkit-scrollbar-thumb { background: var(--matrix-green); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.card:hover {
    border-color: var(--matrix-green);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px var(--matrix-glow);
}

.buy-btn {
    background: transparent;
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green);
    padding: 15px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
    margin-top: 20px;
    outline: none;
}

.buy-btn:hover {
    background: var(--matrix-green);
    color: #000;
    box-shadow: 0 0 20px var(--matrix-green);
}

.buy-btn:active {
    transform: scale(0.95);
    background: #00cc00;
}

.product-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--matrix-green);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.1);
}

.card:hover .product-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.product-info {
    margin-top: 15px;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #222;
    text-align: left;
}

.product-info h3 {
    margin: 0;
    font-size: 1.1em;
    letter-spacing: 2px;
    color: var(--matrix-green)
}

.product-info p {
    margin: 5px 0 0 0;
    color: var(--gray-text);
    font-size: 0.75em;
    letter-spacing: 1px;
}

.product-info a:hover h3 {
    text-shadwo: 0 0 8px var(--matrix-green);
    color: #fff;
}

.main-viewport {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--matrix-green);
}

.pdp-wrapper {
    display: flex; !important;
    flex-direction: column; !important;
    align-items: center;
    gap: 30px;
    width: 95%;
    max-width: 900px;
    margin: 40px auto;
}

.pdp-data, .pdp-visuals {
    width: 100%; !important;
    flex: none;
}


.pdp-visuals .card {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
    overflow: hidden;
}

.spec-list li {
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #fff;
    letter-spacing: 1px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px;
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 15px;
}

.download-grid .card {
    margin: 0; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

p {
    margin-bottom: 1.5em; /* Creates the gap between paragraphs */
    line-height: 1.6;     /* Professional legibility */
}

/* THE LEGAL CONTAINER */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #111;
    border: 1px solid #333;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--matrix-green);
    font-size: 1.2em;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--matrix-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.legal-text {
    color: var(--gray-text);
    text-transform: none; /* Keeps legal text from being ALL CAPS if your body is set that way */
    font-size: 0.95em;
}

/* THE TACTICAL FOOTER */
footer {
    margin-top: 80px;
    padding: 40px 20px;
    border-top: 1px solid #222;
    text-align: center;
    background: #050505;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.8em;
    margin: 0 15px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--matrix-green);
}

.copyright {
    font-size: 0.7em;
    color: #444;
    letter-spacing: 2px;
}

.physical-btn {
    width: 100%;
    padding: 12px;
    background: #443300; /* Dark Amber/Gold */
    color: #ffcc00;
    border: 1px solid #ffcc00;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.physical-btn:hover {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 15px #ffcc00;
}

.price-tag {
    font-family: 'Courier New', monospace;
    color: var(--matrix-green);
    font-size: 1.4em;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
