@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    /* Obsidian Slate Theme Variables */
    --bg-main: #090D16;
    --bg-surface: #121826;
    --bg-alt: #1A2235;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #F6821F; /* Technical Amber-Orange */
    --primary-hover: #fb923c;
    --status-green: #10B981; /* Active Telemetry Green */
    --status-red: #ef4444;
    
    --border: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(255, 255, 255, 0.04);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 15px rgba(246, 130, 31, 0.15);
    
    --radius: 8px; /* Enterprise angular look */
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme='light'] {
    /* Refined Light Mode complementing Enterprise vibe */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #F6821F;
    --primary-hover: #ea580c;
    --border: rgba(0, 0, 0, 0.1);
    --grid-color: rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(246, 130, 31, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center top;
}

a { text-decoration: none; color: inherit; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.alt-bg { background-color: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mono-text { font-family: var(--font-mono); }
.status-green { color: var(--status-green); }
.float-right { float: right; }

/* Header & Nav */
header {
    background-color: rgba(18, 24, 38, 0.85); /* Slightly transparent surface */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
[data-theme='light'] header { background-color: rgba(255, 255, 255, 0.85); }

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
}

nav { display: flex; gap: 2rem; align-items: center; }
nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.2s; color: var(--text-muted); }
nav a:hover, nav a.nav-highlight { color: var(--primary); }
nav a.nav-highlight { font-weight: 600; text-shadow: 0 0 8px rgba(246, 130, 31, 0.3); }
nav .btn-login {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: all 0.2s;
}
nav .btn-login:hover { border-color: var(--primary); color: var(--primary); background: transparent; }

.theme-btn {
    background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--text-main);
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    border-radius: 4px; transition: all 0.2s;
}
.theme-btn:hover { border-color: var(--text-muted); }
.theme-btn svg { width: 18px; height: 18px; }
.icon-sun { display: none; }
[data-theme='light'] .icon-sun { display: block; }
[data-theme='light'] .icon-moon { display: none; }

/* Split Hero Section */
.hero { position: relative; padding: 6rem 0; overflow: hidden; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.topology-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0.3;
}
.topology-line { stroke-dasharray: 10; animation: flow 2s linear infinite; }
.topology-line-active { stroke-dasharray: 10; animation: flow 1s linear infinite reverse; }

.hero-left h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1px; }
.hero-left h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-left p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 4px; font-weight: 600;
    text-align: center; transition: all 0.2s; cursor: pointer; font-family: var(--font-sans);
}
.btn-primary {
    background-color: var(--primary); color: #090D16 !important; border: 1px solid var(--primary);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline {
    background-color: rgba(246, 130, 31, 0.1); border: 1px solid var(--primary);
    color: var(--primary) !important;
}
.btn-outline:hover { background-color: var(--primary); color: #090D16 !important; }

/* Protocol Selector */
.protocol-wrapper { margin-top: 1rem; }
.protocol-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.protocol-selector {
    position: relative; display: inline-flex; background: var(--bg-alt);
    border-radius: 4px; padding: 4px; border: 1px solid var(--border);
}
.protocol-selector button {
    background: transparent; border: none; color: var(--text-muted); padding: 8px 16px;
    font-family: var(--font-mono); font-size: 0.85rem; cursor: pointer; z-index: 1; transition: color 0.3s;
}
.protocol-selector button.active { color: var(--text-main); font-weight: 700; }
.protocol-selector .indicator {
    position: absolute; top: 4px; bottom: 4px; background: var(--bg-surface);
    border: 1px solid var(--primary); border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 0;
}

/* Telemetry Console (Hero Right) */
.telemetry-console {
    background-color: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.console-header { font-size: 0.85rem; margin-bottom: 2rem; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.pulse-badge {
    width: 8px; height: 8px; border-radius: 50%; background-color: var(--status-green);
    box-shadow: 0 0 10px var(--status-green); animation: pulse 2s infinite;
}
.console-section { margin-bottom: 2rem; }
.console-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Uptime HUD */
.hud-bars { display: flex; gap: 2px; height: 35px; align-items: flex-end; }
.hud-bar {
    flex: 1; background-color: var(--status-green); border-radius: 1px; min-width: 2px;
    height: 100%; opacity: 0.6; cursor: pointer; transition: all 0.2s;
}
.hud-bar:hover { opacity: 1; transform: scaleY(1.2); }
#hud-tooltip {
    position: absolute; background: var(--bg-main); border: 1px solid var(--primary);
    padding: 6px 10px; font-family: var(--font-mono); font-size: 0.75rem; border-radius: 4px;
    pointer-events: none; opacity: 0; transition: opacity 0.2s; box-shadow: var(--shadow-glow);
    z-index: 100; color: var(--primary);
}

/* BGP Simulator */
.slider-wrapper { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.styled-slider {
    -webkit-appearance: none; flex: 1; height: 4px; background: var(--bg-alt);
    border-radius: 2px; outline: none; border: 1px solid var(--border);
}
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
    border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: var(--shadow-glow);
}
.routing-visual { background: var(--bg-alt); border-radius: 4px; padding: 1rem; border: 1px solid var(--border); margin-bottom: 1rem; }
.console-status { font-size: 0.8rem; text-align: center; background: rgba(0,0,0,0.2); padding: 8px; border-radius: 4px; }
.flowing-line { stroke-dasharray: 10; animation: flow 1s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(16,185,129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129, 0); } }

/* Shared Sections */
section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.25rem; font-weight: 700; margin-bottom: 3.5rem; letter-spacing: -0.5px; }

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

/* Cards */
.card {
    background-color: var(--bg-surface); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(246, 130, 31, 0.4); }

.icon-card { padding: 2.5rem 2rem; text-align: center; }
.card-icon {
    width: 56px; height: 56px; background-color: rgba(246, 130, 31, 0.1); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    border: 1px solid rgba(246, 130, 31, 0.2);
}
.card-icon svg { width: 28px; height: 28px; }
.icon-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.icon-card p { color: var(--text-muted); font-size: 0.95rem; }

.image-card { display: flex; flex-direction: column; }
.card-image { height: 180px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.media-bg { background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(159, 18, 57, 0.1) 100%); }
.ai-bg { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(4, 120, 87, 0.1) 100%); }
.card-image svg { width: 56px; height: 56px; opacity: 0.8; }
.card-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.card-content p { color: var(--text-muted); margin-bottom: 2rem; flex-grow: 1; }

/* Pricing Toggle */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 3.5rem; }
.switch { position: relative; display: inline-block; width: 56px; height: 32px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-alt); border: 1px solid var(--border); transition: .4s; border-radius: 34px;
}
.switch .slider:before {
    position: absolute; content: ""; height: 24px; width: 24px; left: 3px; bottom: 3px;
    background-color: var(--primary); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border-radius: 50%;
}
.switch input:checked + .slider:before { transform: translateX(24px); }
.discount-badge { background: rgba(16, 185, 129, 0.2); color: var(--status-green); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; margin-left: 6px; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Pricing Cards */
.price-card { padding: 2.5rem 2rem; text-align: center; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border-color: var(--primary); transform: scale(1.02); box-shadow: var(--shadow-glow); }
.price-card.popular:hover { transform: scale(1.02) translateY(-4px); }
.badge { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); background-color: var(--primary); color: #090D16; padding: 0.3rem 1rem; border-radius: 12px; font-size: 0.8rem; font-weight: 700; }
.price-card h3 { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 1rem; }
.price { font-size: 3.5rem; font-weight: 800; margin-bottom: 2rem; color: var(--text-main); font-family: var(--font-mono); }
.price .period { font-size: 1rem; font-weight: normal; color: var(--text-muted); font-family: var(--font-sans); }

.features-list { list-style: none; margin-bottom: 2.5rem; text-align: left; flex-grow: 1; }
.features-list li { margin-bottom: 1rem; padding-left: 1.8rem; position: relative; font-size: 0.95rem; }
.features-list li::before {
    content: '›'; position: absolute; left: 0; color: var(--primary); font-weight: bold;
    font-size: 1.2rem; line-height: 1; top: -1px;
}

/* Custom Bandwidth Section for Enterprise Card */
.custom-bw-section { background: var(--bg-alt); padding: 1rem; border-radius: 4px; border: 1px solid var(--border); text-align: left; margin-bottom: 1rem; }
.bw-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.bw-marks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Reviews */
.review-card { padding: 2rem; display: flex; flex-direction: column; }
.stars { color: var(--primary); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }
.author { font-size: 0.85rem; color: var(--status-green); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.faq-item summary { padding: 1.5rem; font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '↓'; font-family: var(--font-mono); color: var(--primary); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1.5rem; font-size: 0.95rem; }

/* Subpages Content */
.page-header { text-align: center; padding: 4rem 0 3rem; background-color: var(--bg-alt); border-bottom: 1px solid var(--border); margin-bottom: 3rem; }
.page-header h1 { font-size: 2.25rem; font-weight: 700; }
.page-content { max-width: 800px; margin: 0 auto; min-height: 50vh; padding-bottom: 5rem; }
.page-content h2 { margin: 2.5rem 0 1.25rem; font-size: 1.5rem; color: var(--primary); }
.page-content p { margin-bottom: 1.25rem; color: var(--text-muted); }
.page-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }
.page-content li { margin-bottom: 0.5rem; }

/* News specific */
.news-list article { padding: 1.5rem; margin-bottom: 1.5rem; }
.news-list h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.news-date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--status-green); display: block; margin-bottom: 1rem; }

/* Footer */
footer { background-color: var(--bg-surface); padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.copyright { color: var(--text-muted); margin-top: 0.5rem; font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; }
    .telemetry-console { margin-top: 2rem; }
    .hero-left h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    header .container { flex-wrap: wrap; gap: 1rem; }
    nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .price-card.popular { transform: none; }
    .price-card.popular:hover { transform: translateY(-4px); }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .btn { width: 100%; padding: 1rem; }
}
