@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0e0e10;
    --bg-panel: #16161a;
    --bg-card: #1c1c21;
    --accent: #4cc2ff;
    --accent-hover: #79d6ff;
    --text-main: #e6e6e6;
    --text-muted: #b8b8b8;
    --border: rgba(76, 194, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
}

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

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0a0c 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(22, 22, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* Main Content */
.main-content {
    padding: 120px 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 64px;
}

.pricing-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.pricing-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Grid */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.tier {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: opacity 0.3s;
    opacity: 0;
}

.tier.free::before {
    background: linear-gradient(90deg, var(--green), #34d399);
}

.tier.basic::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.tier.hosting::before {
    background: linear-gradient(90deg, var(--yellow), #fbbf24);
}

.tier.premium::before {
    background: linear-gradient(90deg, var(--red), #f87171);
}

.tier:hover::before {
    opacity: 1;
}

.tier:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(76, 194, 255, 0.2);
}

.tier.popular {
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(76, 194, 255, 0.2);
}

.tier.popular::before {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge {
    display: inline-block;
    background: rgba(76, 194, 255, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    width: fit-content;
}

.tier.free .tier-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
}

.tier.hosting .tier-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--yellow);
}

.tier.premium .tier-badge {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.tier-header {
    margin-bottom: 32px;
}

.tier-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.tier.free .tier-icon {
    background: linear-gradient(135deg, var(--green), #34d399);
}

.tier.hosting .tier-icon {
    background: linear-gradient(135deg, var(--yellow), #fbbf24);
}

.tier.premium .tier-icon {
    background: linear-gradient(135deg, var(--red), #f87171);
}

.tier-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--bg-dark);
    stroke-width: 2;
}

.tier h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
}

.ram {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Features List */
.features {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    padding: 4px 0;
}

.features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.features li.included svg {
    stroke: var(--green);
}

.features li.not-included {
    opacity: 0.4;
}

.features li.not-included svg {
    stroke: var(--text-muted);
}

.features li.highlight {
    background: rgba(76, 194, 255, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 -12px;
    font-weight: 500;
}

.features li span {
    line-height: 1.4;
}

/* Tier Button */
.tier-btn {
    width: 100%;
    padding: 16px 24px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--accent);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tier.free .tier-btn {
    background: linear-gradient(135deg, var(--green), #34d399);
    color: var(--bg-dark);
    border: none;
}

.tier.basic .tier-btn {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.tier.basic .tier-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-dark);
    border-color: transparent;
}

.tier.hosting .tier-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-dark);
    border: none;
}

.tier.premium .tier-btn {
    background: linear-gradient(135deg, var(--red), #f87171);
    color: white;
    border: none;
}

.tier-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 194, 255, 0.3);
}

.tier.free .tier-btn:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.tier.premium .tier-btn:hover {
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(22, 22, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        width: 100%;
        display: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-toggle {
        display: block;
    }

    .pricing-header h1 {
        font-size: 2.25rem;
    }

    .pricing {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 100px 16px 40px;
    }

    .tier {
        padding: 32px 24px;
    }

    .popular-badge {
        top: 16px;
        right: 16px;
    }
}