/* style.css */
/* Core Smooth Scroll for Anchors */
html { 
    scroll-behavior: smooth; 
}

:root {
    /* Light Mode (Clean & Refined) */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-color: #0ea5e9;
    --secondary-color: #10b981;
    --card-bg: rgba(255, 255, 255, 0.65);
    --nav-bg: rgba(248, 250, 252, 0.75);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* UI Prompt: Charcoal navy matte background, Ethereal glassmorphism */
[data-theme="dark"] {
    --bg-color: #0c1017;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --primary-color: #6ee7b7; /* Muted celadon green */
    --secondary-color: #7dd3fc; /* Frosted ice cyan */
    --card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(12, 16, 23, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
}

/* Fluid mist ambient background for hero */
body::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%; right: -10%; height: 120vh;
    background: radial-gradient(circle at 30% 20%, rgba(110, 231, 183, 0.08), transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(125, 211, 252, 0.06), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: var(--glass-border);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Theme Toggle */
#theme-toggle {
    background: var(--card-bg);
    border: var(--glass-border);
    cursor: pointer;
    padding: 8px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
    backdrop-filter: blur(4px);
}

#theme-toggle:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0c1017 !important;
    padding: 14px 36px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    min-height: 52px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 231, 183, 0.25);
    border: none;
    cursor: pointer;
}

.cta-btn-outline {
    background: transparent;
    color: var(--text-color) !important;
    border: var(--glass-border);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.cta-btn-outline:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(110, 231, 183, 0.1);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.4rem;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 140px 0 100px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Frosted Glass Cards */
.card {
    background-color: var(--card-bg);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px var(--shadow-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 231, 183, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.1), rgba(125, 211, 252, 0.1));
    color: var(--primary-color);
    border: var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Pricing */
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 45px 35px;
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    border-color: rgba(110, 231, 183, 0.4);
    box-shadow: 0 12px 40px rgba(110, 231, 183, 0.15);
}

/* Animated pill highlight */
.popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #0c1017;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    animation: pill-glow 2.5s infinite alternate;
}

@keyframes pill-glow {
    0% { box-shadow: 0 0 10px rgba(110, 231, 183, 0.2); }
    100% { box-shadow: 0 0 20px rgba(125, 211, 252, 0.5); }
}

/* Live animated latency pulse indicator */
.latency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(110, 231, 183, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: var(--glass-border);
    margin-top: 15px;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: latency-pulse 1.5s infinite;
}

@keyframes latency-pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0); }
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 20px 0;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 0 0 35px 0;
    padding: 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

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

.faq-item {
    border: var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    transition: transform 0.2s;
}

.faq-item:hover {
    transform: translateX(4px);
    border-color: rgba(110, 231, 183, 0.2);
}

.faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.faq-answer {
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: var(--glass-border);
    padding: 50px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Page content for secondary pages */
.page-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; padding: 0 20px; }
    .nav-links { 
        display: flex;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        max-width: 60vw;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .section-header h2 { font-size: 2rem; }
    section { padding: 70px 0; }
}
