/* =========================================
   CSS Variables & Resets
   ========================================= */
:root {
    --bg-base: #0a0e17;
    --bg-surface: #121826;
    --bg-surface-light: #1e293b;
    --primary-color: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.4);
    --secondary-color: #3a86ff;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* =========================================
   Top Announcement Bar
   ========================================= */
.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.glow-effect {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(58, 134, 255, 0.3);
    bottom: -50px;
    left: -50px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =========================================
   Features Grid
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-muted);
}

/* =========================================
   Metrics Section
   ========================================= */
.metrics {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
    gap: 30px;
}

.metric-item .counter, .metric-item .unit {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.metric-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   Pricing Plans
   ========================================= */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.plan-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.plan-card:hover {
    border-color: var(--text-muted);
}

.plan-card.popular {
    background-color: var(--bg-surface-light);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-base);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.plan-features {
    margin-bottom: 30px;
    text-align: right;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features strong {
    color: var(--text-main);
}

.plan-card .btn {
    width: 100%;
}

/* =========================================
   Why Us Section
   ========================================= */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.why-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.why-list li {
    position: relative;
    padding-inline-start: 25px;
    margin-bottom: 15px;
}

.why-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.server-rack-abstract {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rack-slot {
    height: 40px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
}

.rack-slot.active::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =========================================
   Testimonials
   ========================================= */
.testimonial-slider {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.testimonial-slide h4 {
    color: var(--primary-color);
}

.testimonial-slide span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-slider-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* =========================================
   FAQ
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* =========================================
   Final CTA & Footer
   ========================================= */
.final-cta {
    background: linear-gradient(0deg, var(--bg-surface), var(--bg-base));
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.footer {
    background-color: var(--bg-surface-light);
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Responsive Media Queries
   ========================================= */
@media (max-width: 992px) {
    .plan-card.popular {
        transform: none;
    }
    .why-us-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}