:root {
    --primary: #ff3a3a;
    --secondary: #1f1f1f;
    --text: #f0f0f0;
    --background: #121212;
    --card-bg: #1a1a1a;
    --status-online: #4caf50;
    --status-maintenance: #ffc107;
    --status-offline: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--secondary);
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--primary);
}

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

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

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('')  center/cover;
    border-radius: 8px;
    margin-top: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #ff5252;
}

/* Section Title */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2.2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

/* Products Section */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
    height: 100%; /* Flexible height */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.product-card.dropdown-active {
    z-index: 1001;
}

.product-img {
    height: 200px;
    background-color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.product-desc {
    margin-bottom: 1rem;
    color: #b0b0b0;
    flex-shrink: 0;
}

.features {
    list-style: none;
    margin-bottom: auto; /* Pushes pricing section to the bottom */
    flex-grow: 1;
}

.features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.features li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.purchase-options {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.subscription-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
    border: 1px solid #333;
}

.subscription-option {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.subscription-option:last-child {
    border-bottom: none;
}

.subscription-option:hover {
    background: #333;
}

.sub-name {
    font-weight: 600;
}

.sub-price {
    color: var(--primary);
    font-weight: 700;
}

/* Status Section */
.status-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #2a2a2a;
}

.status-content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-updated {
    text-align: right;
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--secondary);
    border-radius: 6px;
    border-left: 4px solid var(--status-online);
}

.system-status.maintenance {
    border-left-color: var(--status-maintenance);
}

.system-status.offline {
    border-left-color: var(--status-offline);
}

.status-indicator {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--status-online);
    margin-right: 8px;
}

.status-dot.maintenance {
    background-color: var(--status-maintenance);
}

.status-dot.offline {
    background-color: var(--status-offline);
}

.status-text {
    font-weight: 600;
}

.status-text.online {
    color: var(--status-online);
}

.status-text.maintenance {
    color: var(--status-maintenance);
}

.status-text.offline {
    color: var(--status-offline);
}

.status-details {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 3px solid var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.footer-links a {
    color: var(--text);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-icons {
    margin: 1rem 0;
}

.social-icons a {
    display: inline-block;
    color: var(--text);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-card {
        height: auto; /* Allow flexible height on mobile */
        min-height: 550px;
    }

    .system-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-indicator {
        margin-bottom: 0.5rem;
    }
}