/* Modern Dark Theme Design System for Aether Cloud Systems */
:root {
    --bg-dark: #0b0e14;
    --bg-card: #131822;
    --bg-card-hover: #1a202c;
    --border-color: #232d3f;
    --border-highlight: #3b82f6;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-green: #10b981;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    
    --code-bg: #0d1117;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container & Layout */
.nav-container, .hero-container, .stats-container, .section-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: var(--bg-card-hover);
}

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

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-block {
    width: 100%;
}

/* Header & Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-blue);
}

.logo-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
}

/* Hero Section */
.hero {
    padding: 5rem 0 3rem 0;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 2.5rem auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

/* Terminal Widget */
.terminal-widget {
    max-width: 820px;
    margin: 0 auto;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-header {
    background-color: #161b22;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.live-tag {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.terminal-body {
    padding: 1.2rem;
    color: #c9d1d9;
}

.log-line {
    margin-bottom: 0.4rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.log-line .time { color: var(--text-muted); }
.log-line .tag.info { color: var(--accent-blue); }
.log-line .tag.success { color: var(--accent-green); }

.ping-row {
    background: rgba(255,255,255,0.02);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.ping-row .node { color: #58a6ff; }
.ping-row .loc { color: var(--text-muted); }
.ping-row .latency { color: #e3b341; font-weight: 600; }
.badge-ok {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.75rem;
}

/* Stats Bar */
.stats-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(19, 24, 34, 0.5);
    padding: 2rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Sections General */
.solutions, .status-section, .api-section, .compliance-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

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

/* Grid Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.card-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.card-link:hover {
    text-decoration: underline;
}

/* Status Section */
.status-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.status-overall {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-green-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
}

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

.node-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.node-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.node-name {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.node-graph {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.uptime-bar-group {
    display: flex;
    gap: 3px;
}

.uptime-bar {
    width: 8px;
    height: 22px;
    background-color: var(--accent-green);
    border-radius: 2px;
    opacity: 0.9;
}

.uptime-percent {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
}

/* API Code Box */
.api-window {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.api-tabs {
    display: flex;
    background-color: #161b22;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.tab-btn.active {
    color: var(--accent-blue);
    background-color: var(--code-bg);
    border-bottom: 2px solid var(--accent-blue);
}

.api-content {
    display: none;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #e6edf3;
    overflow-x: auto;
}

.api-content.active {
    display: block;
}

.cmd { color: #ff7b72; }
.str { color: #a5d6ff; }
.key { color: #7ee787; }
.keyword { color: #ff7b72; }

/* Compliance Badges */
.compliance-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 10px;
}

.comp-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.comp-icon {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #080b10;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

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

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    .stats-container { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; }
    .footer-links { gap: 2rem; }
}
