@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Original host-zentrum.de */
    --primary: #6ab344;
    --primary-dark: #569638;
    --primary-glow: rgba(106, 179, 68, 0.3);
    --bg-dark: #121415;
    --bg-card: #212529;
    --bg-header: rgba(18, 20, 21, 0.95);
    --text-main: #ffffff;
    --text-light: #f8f9fa;
    --text-muted: #888888;
    --border: #2e3439;
    --card-hover: #212529;

    /* Typography - Standard Sans-Serif */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Borders */
    --radius-md: 4px;
    --radius-lg: 8px;
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(91, 176, 71, 0.05);
    transform: translateY(-2px);
}

.btn-portal {
    background-color: #5bb047;
    /* Green from screenshot */
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.btn-portal:hover {
    background-color: #4a9139;
    transform: translateY(-1px);
}

/* Layout Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: var(--bg-header);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-only {
    display: none;
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 200px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-weight: 500;
    text-transform: none;
    /* Override uppercase from nav-links */
    letter-spacing: normal;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: rgba(91, 176, 71, 0.1);
    /* Subtle primary tint */
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h6 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Force 6-line wrap to match screenshot proportions */
.footer-col:first-child p {
    max-width: 320px;
    line-height: 1.6;
    text-align: justify;
    color: var(--text-muted);
}

.footer-col .logo {
    color: var(--primary);
    display: flex;
    align-items: center;
    font-weight: 800;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 255, 102, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.product-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.product-price span {
    color: var(--primary);
}

.product-cta {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-cta svg {
    transition: var(--transition);
}

.product-card:hover .product-cta svg {
    transform: translateX(4px);
}

/* Pricing Table */
.pricing-header {
    text-align: center;
    padding: 120px 0 60px;
    background: linear-gradient(to bottom, var(--bg-card), var(--bg-dark));
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

/* Center the hardware card on desktop */
@media (min-width: 1201px) {
    .pricing-grid {
        justify-content: center;
        /* Helper for centering if items don't fill the row */
    }

    .hardware-card {
        grid-column: 2 / 3;
        /* Places it in the middle column of a 3-column grid */
    }
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.1);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-dark);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 2px;
}

.plan-features {
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.plan-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
}

/* Responsive Header & Navigation */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        gap: 32px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-only {
        display: block;
    }

    .mobile-menu-toggle {
        display: block !important;
        cursor: pointer;
        z-index: 2000;
        /* Extremely high to ensure clickability */
        color: var(--text-main);
        padding: 10px;
        margin: -10px;
    }

    nav>.btn-portal {
        display: none;
        /* Hide in header on small screens */
    }

    .logo img { height: 28px; } nav > .logo { max-width: 65vw; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-col:first-child p {
        max-width: 100%;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1d20;
    /* Slightly lighter than bg-dark for contrast */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

#storageKvmModal .modal-content {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--text-light);
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Waitlist Form Styles */
.waitlist-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-top: 10px;
}

#waitlistEmail:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.waitlist-form .btn {
    white-space: nowrap;
}