:root {
    --primary-color: #1a56db;
    --primary-hover: #1e40af;
    --dark-bg: #0b1121;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
}

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

/* Navbar */
.navbar {
    display: flex; justify-content: flex-start; align-items: center; gap: 3rem;
    padding: 1.2rem max(5%, calc(50vw - 650px)); background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.nav-actions { margin-left: auto; display: flex; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--primary-color); }
.logo i { color: var(--primary-color); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-item { position: relative; }
.nav-link { font-size: 0.95rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 0.3rem; transition: color 0.2s;}
.nav-link:hover { color: var(--primary-color); }

.btn { padding: 0.6rem 1.2rem; border-radius: 0.4rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; border: none; display: inline-flex; align-items: center; gap: 0.5rem;}
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-outline { background-color: #f3f4f6; color: var(--text-dark); }
.btn-outline:hover { background-color: #e5e7eb; }

/* Dropdown */
.dropdown-menu {
    position: absolute; top: 150%; left: 0; background: var(--white);
    border: 1px solid var(--border-color); border-radius: 0.5rem;
    padding: 1rem; min-width: 300px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); top: 100%; }
.dropdown-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem; border-radius: 0.4rem; }
.dropdown-item:hover { background-color: var(--gray-100); }
.dropdown-icon { font-size: 1.2rem; color: var(--primary-color); background: #eff6ff; padding: 0.8rem; border-radius: 0.5rem; }
.dropdown-text h4 { font-size: 0.95rem; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.5rem; }
.dropdown-text p { font-size: 0.8rem; color: var(--text-light); }
.badge-sm { background: var(--primary-color); color: white; font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 1rem; font-weight: 700;}

/* Hero */
.hero {
    background-color: var(--dark-bg); color: var(--white);
    padding: 6rem 5% 0 5%;
    position: relative; overflow: hidden;
}
.hero-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; width: 100%; z-index: 1; position: relative; gap: 2rem;
}
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-width: 100%; width: 450px; animation: float 6s ease-in-out infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.hero-content { flex: 1; max-width: 600px; z-index: 1; padding-bottom: 4rem; }
.badge { display: inline-block; padding: 0.3rem 0.8rem; background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 2rem; font-size: 0.85rem; margin-bottom: 1.5rem; }
.badge i { color: #10b981; margin-right: 0.3rem; }
.hero-title { font-size: 3.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-title span { color: var(--primary-color); }
.hero-desc { font-size: 1.1rem; color: #9ca3af; margin-bottom: 2.5rem; line-height: 1.6; }
.hero-buttons { display: flex; gap: 1rem; }
.btn-hero-primary { background-color: var(--primary-color); color: white; padding: 0.8rem 1.8rem; border-radius: 0.4rem; font-weight: 600; font-size: 1rem; }
.btn-hero-secondary { background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 0.8rem 1.8rem; border-radius: 0.4rem; font-weight: 600; }
.btn-hero-secondary:hover { background-color: rgba(255,255,255,0.1); }

.hero-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem; max-width: 1200px; margin: 0 auto;}
.hero-feature-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 0.5rem; text-align: center; color: white; }
.hero-feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 700; }
.hero-feature-card p { font-size: 0.85rem; color: #9ca3af; }

/* Pricing */
.pricing-section { padding: 0 5% 5rem; background-color: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.pricing-card { background: var(--white); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 2.5rem 2rem; position: relative; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.pricing-card.popular { border: 2px solid var(--primary-color); box-shadow: 0 10px 25px -5px rgba(26,86,219,0.15); transform: translateY(-5px); }
.popular-badge { position: absolute; top: 0; right: 0; background: var(--primary-color); color: white; padding: 0.4rem 1.5rem; font-size: 0.8rem; font-weight: 700; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0.3rem;}
.out-of-stock-badge { position: absolute; top: 0; right: 0; background: #ef4444; color: white; padding: 0.4rem 1.5rem; font-size: 0.8rem; font-weight: 700; border-bottom-left-radius: 0.5rem; border-top-right-radius: 0.3rem; z-index: 2; display: flex; align-items: center; gap: 0.35rem;}
.btn-block.btn-disabled, button.btn-block:disabled { background: #94a3b8 !important; color: white !important; cursor: not-allowed !important; border: none; box-shadow: none !important; opacity: 0.85; }
.pricing-card.is-out-of-stock { opacity: 0.9; }
.plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1.5rem; }
.plan-price .price-val { font-size: 2.5rem; color: var(--text-dark); font-weight: 800; }
.plan-price span:not(.price-val) { font-size: 1rem; color: var(--text-light); font-weight: 500; margin-left: 0.2rem; display: inline-block;}
.plan-features { list-style: none; margin-bottom: 2.5rem; }
.plan-features li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; font-size: 0.95rem; font-weight: 500;}
.feature-icon { color: #10b981; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; text-align: center; padding: 1rem; background: #0b1121; color: white; border-radius: 0.4rem; font-weight: 700; transition: background 0.2s;}
.pricing-card.popular .btn-block { background: var(--primary-color); }
.pricing-card.popular .btn-block:hover { background: var(--primary-hover); }
.pricing-card:not(.popular) .btn-block:hover { background: #1f2937; }

/* Features grid */
.feature-box { background: white; border: 1px solid var(--border-color); padding: 2rem; border-radius: 0.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.feature-box-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: #eff6ff; color: var(--primary-color); border-radius: 0.5rem; font-size: 1.25rem; margin-bottom: 1.5rem; }
.feature-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-box p { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }

/* FAQ */
.faq-section { padding: 5rem 5%; max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-color); border-radius: 0.5rem; margin-bottom: 1rem; background: var(--white); }
.faq-question { padding: 1.5rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.05rem; }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-light); line-height: 1.6; }
.faq-item.active .faq-answer { padding-bottom: 1.5rem; max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); transition: transform 0.3s; }
.faq-question i { transition: transform 0.3s; color: var(--primary-color); }

/* Tabs */
.tabs-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn { padding: 0.8rem 1.5rem; background: var(--white); border: 1px solid var(--border-color); border-radius: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--text-dark); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.tab-btn:hover { background: var(--gray-100); }
.tab-btn.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: grid; animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Speedi-Heberg Unique Premium Hero */
.subpage-hero {
    background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
    color: var(--white);
    padding: 6rem 5% 8rem 5%;
    position: relative; overflow: hidden;
}
.subpage-hero::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    top: -200px; right: -100px; border-radius: 50%; pointer-events: none;
}
.subpage-hero::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -100px; left: -100px; border-radius: 50%; pointer-events: none;
}

.subpage-hero-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; z-index: 2; position: relative; gap: 4rem; }
.subpage-hero-content { flex: 1; max-width: 600px; }
.subpage-badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.3); border-radius: 2rem; font-size: 0.85rem; font-weight: 600; color: #60a5fa; margin-bottom: 1.5rem; letter-spacing: 0.5px; }
.subpage-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.1; letter-spacing: -1px; }
.subpage-desc { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 2.5rem; line-height: 1.6; font-weight: 300; }
.subpage-actions { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap;}
.btn-hero-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); border: none; color: white; padding: 0.8rem 1.8rem; border-radius: 0.4rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: inline-block;}
.btn-hero-primary:hover { box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); transform: translateY(-2px); color: white;}
.price-start { font-size: 0.95rem; color: #94a3b8; }
.price-start strong { color: white; font-weight: 800; font-size: 1.5rem; margin-right: 0.3rem;}

/* Overlapping Stats Box */
.subpage-stats-wrapper {
    max-width: 1000px; margin: -4rem auto 4rem auto; position: relative; z-index: 10;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    border-radius: 1rem; box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    display: flex; justify-content: space-around; padding: 2rem; border: 1px solid var(--border-color); flex-wrap: wrap; gap: 1rem;
}
.stat-item { text-align: center; padding: 0 1rem;}
.stat-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 1px; }
.stat-value { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; justify-content: center; gap: 0.5rem;}
.stat-value i { color: var(--primary-color); font-size: 1.1rem; }

/* Console UI Component */
.hero-console {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.2);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.4s ease;
    margin: 0 auto;
}
.hero-console:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.console-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.console-dot { width: 12px; height: 12px; border-radius: 50%; }
.console-dot.red { background: #ef4444; }
.console-dot.yellow { background: #f59e0b; }
.console-dot.green { background: #10b981; }
.console-title { margin-left: 1rem; font-size: 0.85rem; color: #94a3b8; font-family: monospace; }
.console-body {
    padding: 1.5rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
    text-align: left;
}
.console-prompt { color: #10b981; margin-right: 0.5rem; font-weight: 700; }
.console-success { color: #3b82f6; font-weight: 700; }
.console-warning { color: #f59e0b; font-weight: 700; }
.console-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Billing Toggle */
.billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}
.billing-toggle {
    display: inline-flex;
    background: #e2e8f0;
    border-radius: 9999px;
    padding: 0.25rem;
    position: relative;
}
.toggle-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
    z-index: 2;
}
.toggle-btn.active {
    color: var(--white);
}
.toggle-btn .discount-badge {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
    font-weight: 700;
}
.toggle-slider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background: var(--primary-color);
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* Footer */
footer { background: var(--white); color: var(--text-light); padding: 2rem 5%; text-align: center; border-top: 1px solid var(--border-color); font-size: 0.9rem; }

/* Mobile menu icon */
.mobile-menu-btn { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); margin-left: auto; }

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-container, .subpage-hero-container { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-image, .hero-image img { width: 100%; max-width: 350px; margin: 0 auto;}
    .hero-features { grid-template-columns: repeat(2, 1fr); }
    .subpage-actions { justify-content: center; }
    .subpage-title { font-size: 2.5rem; }
    .hero-title { font-size: 2.8rem; }
    .nav-actions { display: none; }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { 
        display: none; flex-direction: column; width: 100%; position: absolute; 
        top: 100%; left: 0; background: var(--white); padding: 1rem 5%; 
        border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    }
    .nav-links.active { display: flex; }
    .nav-item { width: 100%; padding: 0.5rem 0; border-bottom: 1px solid #f3f4f6;}
    .dropdown-menu { position: static; box-shadow: none; border: none; padding: 0.5rem 0 0 1rem; opacity: 1; visibility: visible; transform: none; display: none;}
    .nav-item:hover .dropdown-menu { display: block; }
    .dropdown-item { padding: 0.5rem; }
    
    .hero { padding: 4rem 5% 0 5%; }
    .subpage-hero { padding: 4rem 5% 8rem 5%; }
    
    .hero-features { grid-template-columns: 1fr; }
    .subpage-stats-wrapper { margin: -2rem 5% 3rem 5%; flex-direction: column; gap: 1rem; padding: 1.5rem; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .feature-box { text-align: center; }
}
