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

:root {
    --primary-color: #E30B5C; /* Raspberry Red */
    --primary-hover: #ff1c77;
    --gold: #FFD700; /* Motherboard Gold */
    --text-dark: #0F111A; 
    --text-light: #8892B0;
    --bg-dark: #0F111A;
    --white: #E6EDF3;
    --border-color: rgba(227, 11, 92, 0.3);
    --border-radius: 4px; /* More blocky/geeky */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Add subtle grid background */
    background-image: 
        linear-gradient(rgba(227, 11, 92, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 11, 92, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}

#pcb-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#terminal-logs {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 300px;
    height: 200px;
    overflow: hidden;
    font-size: 0.8rem;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    mask-image: linear-gradient(to top, black, transparent);
    -webkit-mask-image: linear-gradient(to top, black, transparent);
}
.log-line {
    margin-bottom: 5px;
    white-space: nowrap;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(227, 11, 92, 0.4);
    text-transform: uppercase;
}
.section-title::before { content: "> "; }
.section-title::after { content: " _"; animation: blink 1s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    animation: blink 1s infinite;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(227, 11, 92, 0.2) inset;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 20px rgba(227, 11, 92, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(227, 11, 92, 0.2);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(227, 11, 92, 0.5);
}
.logo a {
    color: inherit;
}

nav a {
    margin: 0 15px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

/* Layout Utilities */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: transparent;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Cards (Acrylic Geek Style) */
.card {
    background: rgba(20, 24, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.2); /* Gold border tint */
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 215, 0, 0.15) 1px, transparent 0);
    background-size: 14px 14px;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(227, 11, 92, 0.4);
    transform: translateY(-5px) scale(1.02);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    background: transparent;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(227, 11, 92, 0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Features */
.features .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.features h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.features p {
    color: var(--text-light);
}

/* Streaming & AI */
.support-card {
    text-align: left;
}

.support-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    background: rgba(227, 11, 92, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 500;
}

/* Pricing - 360 Carousel Effect applied to grid */
#pricing .grid-3 {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.price-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s;
}

#pricing .grid-3:hover .price-card:nth-child(1) {
    transform: rotateY(15deg) translateZ(-50px);
}
#pricing .grid-3:hover .price-card:nth-child(2) {
    transform: translateZ(50px);
    box-shadow: 0 0 30px rgba(227, 11, 92, 0.5);
}
#pricing .grid-3:hover .price-card:nth-child(3) {
    transform: rotateY(-15deg) translateZ(-50px);
}
#pricing .grid-3 .price-card:hover {
    transform: rotateY(0deg) translateZ(80px) !important;
    z-index: 10;
}


.price-card.popular {
    border: 1px solid var(--gold);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--white);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.features-list {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Reviews - Terminal log styling */
.review-card {
    border-left: 4px solid #00ff00;
}
.review-card .stars {
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: var(--gold);
}

.review-card p {
    font-style: normal;
    color: #00ff00; /* Terminal Green */
    margin-bottom: 20px;
}
.review-card p::before {
    content: "$ ";
}

.review-card .author {
    font-style: italic;
    color: var(--text-light);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gold);
}
.faq-item h4::before {
    content: "? ";
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
}

/* Subpages Container */
.page-header {
    padding: 150px 0 60px;
    background: transparent;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.page-content {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.page-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--gold);
}

.page-content p, .page-content ul {
    margin-bottom: 20px;
    color: var(--text-light);
}
.page-content ul li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: rgba(10, 12, 18, 0.95);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    color: #555;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    #pricing .grid-3 {
        perspective: none;
        transform-style: flat;
    }
    #pricing .grid-3:hover .price-card {
        transform: none !important;
    }
    .faq-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 15px 0;
    }
    .logo {
        margin-bottom: 10px;
    }
    nav {
        margin: 10px 0 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    nav a {
        margin: 0;
        font-size: 0.95rem;
    }
    .hero {
        padding: 200px 0 80px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    .hero-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    .btn-large {
        width: 100%;
        padding: 16px;
    }
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 0;
    }
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    .page-header {
        padding: 180px 0 50px;
    }
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* Accessibility: Focus */
:focus-visible {
    outline: 2px dashed var(--gold);
    outline-offset: 4px;
}

/* Scroll margin for fixed header */
h1, h2, h3, h4, h5, h6, section, [id] {
    scroll-margin-top: 80px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Details/Summary FAQ Styling */
details.faq-item {
    background: rgba(20, 24, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
details.faq-item summary {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: bold;
    list-style: none;
}
details.faq-item summary::-webkit-details-marker {
    display: none;
}
details.faq-item summary::before {
    content: "▶ ";
    color: var(--primary-color);
    font-size: 0.9em;
}
details.faq-item[open] summary::before {
    content: "▼ ";
}
details.faq-item p {
    margin-top: 15px;
    color: var(--text-light);
}

/* Pricing Table */
.pricing-table-container {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
    padding-bottom: 20px;
}
.pricing-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    text-align: center;
}
.pricing-table caption {
    caption-side: top;
    margin-bottom: 20px;
    color: var(--text-light);
}
.pricing-table th, .pricing-table td {
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}
.pricing-table th {
    background: rgba(20, 24, 36, 0.8);
    color: var(--primary-color);
    font-size: 1.2rem;
}
.pricing-table td.price-cell {
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    background: rgba(20, 24, 36, 0.4);
}
.pricing-table ul {
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}
