/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Color Palette - Fresh Green to Cyan */
    --primary: #00d2ff;       /* Cyan */
    --primary-light: #80e5ff; 
    --primary-dark: #0099cc;
    --secondary: #38ef7d;     /* Green */
    --secondary-light: #8bf5b2;
    --tertiary: #00c6ff;      /* Light Blue */
    
    --bg-light: #F4F7FE;
    --bg-white: #FFFFFF;
    
    --text-main: #2B3674;
    --text-muted: #A3AED0;
    
    --success: #05CD99;
    --warning: #FFCE20;
    --danger: #EE5D50;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 18px 40px rgba(112, 144, 176, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--tertiary));
    color: #fff;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(124, 77, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(196, 113, 237, 0.1); /* Primary color low opacity */
    transform: translateY(-2px);
}

.hero .btn-outline {
    color: #ffffff;
    border-color: #ffffff;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* ==========================================================================
   Layouts
   ========================================================================== */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card-solid {
    background: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card-solid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(112, 144, 176, 0.2);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #38ef7d 0%, #00d2ff 50%, #00c6ff 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: rgba(18, 194, 233, 0.3); /* Cyan */
    top: -100px;
    left: -100px;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: rgba(246, 79, 89, 0.25); /* Pink */
    bottom: -150px;
    right: -100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-white);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.latency-card {
    width: 100%;
    max-width: 450px;
    padding: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.status-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.node-info {
    display: flex;
    flex-direction: column;
}

.node-info strong {
    color: var(--text-main);
    margin-bottom: 4px;
}

.node-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.node-ping {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ping-good {
    background: rgba(5, 205, 153, 0.1);
    color: var(--success);
}

.ping-ok {
    background: rgba(255, 206, 32, 0.1);
    color: #E5B300; /* Darker yellow */
}

/* ==========================================================================
   Features
   ========================================================================== */
.feature-card {
    padding: 40px 30px;
    text-align: center;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(18, 194, 233, 0.1), rgba(196, 113, 237, 0.1));
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--tertiary));
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.pricing-header h3 {
    color: var(--text-main);
    margin-bottom: 15px;
}

.price {
    color: var(--primary);
    font-weight: 800;
}

.price .currency { font-size: 1.5rem; vertical-align: top; }
.price .amount { font-size: 3.5rem; line-height: 1; }
.price .period { font-size: 1rem; color: var(--text-muted); font-weight: normal; }

.pricing-features {
    margin-bottom: 40px;
}

.pricing-features li {
    margin-bottom: 15px;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li i {
    margin-top: 4px;
}

.pricing-features li.warning {
    font-size: 0.85rem;
    color: var(--danger);
    background: rgba(238, 93, 80, 0.05);
    padding: 10px;
    border-radius: 8px;
}

.btn-buy {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.btn-buy:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   Tutorials
   ========================================================================== */
.tutorial-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tutorial-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.tutorial-card h3 {
    margin-bottom: 10px;
}

.tutorial-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Knowledge Base
   ========================================================================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.article-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.article-item:hover {
    box-shadow: var(--glass-shadow);
    transform: translateY(-3px);
}

.article-date {
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary);
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
}

.article-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.article-info h3 a {
    color: var(--text-main);
    transition: var(--transition);
}

.article-info h3 a:hover {
    color: var(--primary);
}

.article-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-card {
    padding: 30px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    font-size: 40px;
    color: var(--text-muted);
}

.stars {
    color: var(--warning);
    font-size: 0.9rem;
    margin-top: 5px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--bg-white);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 400px;
}

.footer-about h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-about p {
    color: var(--text-muted);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .article-list {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
