/* Core Theme Variables & Resets */
:root {
    --bg: #f4f7f9;
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary: #0099cc;
    --secondary: #00b377;
    --text: #0f172a;
    --text-light: #475569;
    --border: rgba(226, 232, 240, 0.9);
    --nav-bg: rgba(244, 247, 249, 0.85);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --radius: 4px; /* Architectural geometric corners */
}

/* Dark Basalt Slate Theme (Core Design Request) */
[data-theme="dark"] {
    --bg: #0a0f14;
    --card-bg: rgba(19, 26, 34, 0.85);
    --primary: #00d2ff;  /* Luminous azure teal */
    --secondary: #10e7a2; /* Celestial mint */
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --border: rgba(31, 42, 56, 0.9);
    --nav-bg: rgba(10, 15, 20, 0.85);
    --shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Offset for fixed header */
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Interactive Topographic Background */
.bg-contour {
    position: fixed;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 60px, rgba(0, 153, 204, 0.04) 61px, transparent 62px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1);
}
[data-theme="dark"] .bg-contour {
    background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 60px, rgba(0, 210, 255, 0.05) 61px, transparent 62px);
}

/* Navigation */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

/* Theme Toggle (Refined & Professional) */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px; /* Matches the squircle look in the image */
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.theme-toggle svg {
    width: 18px; height: 18px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Spring transition */
}

[data-theme="dark"] .icon-sun { opacity: 0; transform: translateY(20px) scale(0.5); }
:root:not([data-theme="dark"]) .icon-moon { opacity: 0; transform: translateY(-20px) scale(0.5); }

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    border-radius: var(--radius); /* Architectural */
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(0, 210, 255, 0.2);
    text-transform: uppercase;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.125rem; }

.btn-outline {
    background-color: transparent;
    color: var(--primary) !important;
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--text);
    letter-spacing: 1px;
}

/* Glowing Step Indicator */
.step-line {
    width: 1px;
    height: 80px;
    margin: 1rem auto;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
    box-shadow: 0 0 12px var(--primary);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.latency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 231, 162, 0.05);
    border: 1px solid rgba(16, 231, 162, 0.2);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 2px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(16, 231, 162, 0.1);
}

.latency-badge .dot {
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}
.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Grids & Staggered Architecture */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

.grid-card {
    --base-y: 0px;
    transform: translateY(var(--base-y));
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

@media (min-width: 769px) {
    .grid-3 .grid-card:nth-child(2) { --base-y: 30px; }
    .grid-3 .grid-card:nth-child(3) { --base-y: 60px; }
    .grid-2 .grid-card:nth-child(2) { --base-y: 40px; }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    transform: translateY(calc(var(--base-y) - 15px));
    box-shadow: 0 15px 40px -10px rgba(0, 210, 255, 0.15);
    border-color: var(--primary);
}

/* Clean Geometric SVGs */
.card-icon {
    width: 50px; height: 50px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.card-icon svg {
    width: 100%; height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card p { color: var(--text-light); flex-grow: 1; }

/* Pricing Table (Authentic) */
.pricing-card {
    text-align: left;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(16, 231, 162, 0.1);
}
.badge {
    position: absolute;
    top: -10px; left: 20px;
    background: var(--secondary);
    color: #000;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin: 1.5rem 0;
    font-family: monospace;
}
.price span {
    font-size: 1rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.pricing-features { margin-bottom: 2.5rem; }
.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}
.pricing-features li svg {
    width: 18px; height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* FAQ */
.faq-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
    max-width: 800px; margin: 0 auto;
}
.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item h4 { font-size: 1.15rem; margin-bottom: 1rem; font-weight: 700; }
.faq-item p { color: var(--text-light); }

/* Reviews */
.review-card { justify-content: space-between; }
.review-text { font-style: italic; margin-bottom: 1.5rem; font-size: 1.05rem; }
.review-author { font-weight: 600; color: var(--text); }
.review-meta { font-size: 0.875rem; color: var(--text-light); font-family: monospace; }

/* Footer */
footer {
    background: var(--nav-bg);
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-links {
    display: flex; justify-content: center; gap: 2.5rem;
    margin-bottom: 2.5rem; flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-light); font-weight: 500; font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--primary); }
.copyright {
    color: var(--text-light); font-size: 0.85rem;
    border-top: 1px solid var(--border); padding-top: 2rem;
    max-width: 800px; margin: 0 auto; font-family: monospace;
}

/* Internal Pages */
.page-container {
    max-width: 800px; padding-top: 120px; min-height: calc(100vh - 200px);
}
.page-container h1 { font-size: 2.5rem; margin-bottom: 2rem; letter-spacing: 1px; }
.page-container h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--primary); }
.page-container p { margin-bottom: 1.25rem; color: var(--text-light); font-size: 1.05rem; }
.page-container ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-light); }
.page-container li { margin-bottom: 0.5rem; }

/* News List */
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-card {
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
}
.news-card:hover { transform: translateY(-5px); }
.news-meta { font-family: monospace; color: var(--primary) !important; margin-bottom: 1rem; font-size: 0.85rem; }

/* Responsive Reset */
@media (max-width: 768px) {
    .nav-container { padding: 1rem; }
    .nav-links {
        width: 100%; justify-content: center; order: 3; margin-top: 1rem;
        gap: 1rem; font-size: 0.85rem; flex-wrap: wrap;
    }
    .hero h1 { font-size: 2.5rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-card { --base-y: 0px !important; }
    .btn { width: 100%; padding: 1rem; text-align: center; }
    .footer-links { flex-direction: column; gap: 1.5rem; }
}
