:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --text: #1f2937;
    --gray-light: #f3f4f6;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
}

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

/* Header Styles */
header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.cta-button {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, #f0f9ff, #ffffff);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
}

.calculator-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

input, select {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

select[multiple] {
    height: auto;
    min-height: 120px;
}

.calculate-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Results Section */
.results-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.results-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-box {
    margin-top: 1.5rem;
}

#income-result {
    font-size: 3rem;
    font-weight: 700;
    color: var(--success);
    display: block;
    margin: 1rem 0;
}

.result-note {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Hosting Card */
.hosting-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hosting-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.hosting-card.hidden {
    display: none;
}

.discount-badge {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.hosting-features ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.hosting-features li {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.hosting-cta {
    display: block;
    background: white;
    color: var(--primary);
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.hosting-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--gray-light);
}

.faq-section h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
    font-size: 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--gray-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    padding-right: 2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

/* Exit Popup */
.exit-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup-content {
    position: relative;
    background: white;
    max-width: 500px;
    width: 90%;
    margin: 50px auto;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--primary);
}

.popup-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.popup-body {
    text-align: center;
}

.popup-timer {
    background: var(--gray-light);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.popup-timer span {
    color: var(--primary);
    font-weight: bold;
}

.popup-cta {
    display: block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .subtitle {
        padding: 0 1rem;
        font-size: 1.1rem;
    }
    
    .calculator-container {
        padding: 1.5rem;
    }
    
    .results-wrapper {
        grid-template-columns: 1fr;
    }
    
    .popup-content {
        margin: 30px auto;
        padding: 1.5rem;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
}

/* Footer */
footer {
    background: var(--gray-light);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    color: #6b7280;
}
