/* CSS Variables */
:root {
    --bg: #080c0a;
    --panel: #0e150f;
    --accent: #43e08a;
    --text: #e0e0e0;
    --text-muted: #888888;
    --border: rgba(67, 224, 138, 0.25);
    --font: 'Fira Code', 'Consolas', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Animations */
.bg-glow {
    position: fixed;
    top: -20vh; left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 80vh;
    background: radial-gradient(ellipse at center, rgba(67, 224, 138, 0.08) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: moveGrid 25s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); } /* Shifts exactly one grid cell down */
}

/* Core Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* Header */
header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(14, 21, 15, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(67, 224, 138, 0.4);
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switch span {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.lang-switch span:hover { color: var(--text); }
.lang-switch span.active { color: var(--accent); font-weight: bold; text-shadow: 0 0 5px var(--accent); }
.lang-switch span.divider { cursor: default; margin: 0 5px; color: var(--border); }

.btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 18px;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 15px rgba(67, 224, 138, 0.4);
}

.btn-primary { background: var(--accent); color: var(--bg); font-weight: bold; }
.btn-primary:hover { background: transparent; color: var(--accent); }

/* Hero Section */
.hero {
    text-align: center;
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    text-shadow: 0 0 25px rgba(67, 224, 138, 0.3);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
}

.hero-btns .btn { padding: 12px 30px; font-size: 1rem; }

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--panel);
    padding: 20px 30px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    min-width: 200px;
    text-align: left;
}

.stat-item span.val { color: var(--accent); font-weight: bold; font-size: 1.8rem; display: block; }
.stat-item span.lbl { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.terminal-panel {
    background: var(--panel);
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
}

.terminal-panel::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 15px; height: 15px;
    border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}

.terminal-panel::after {
    content: '';
    position: absolute; bottom: 0; right: 0; width: 15px; height: 15px;
    border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
}

.terminal-panel h2 { color: var(--accent); margin-bottom: 20px; font-size: 1.6rem; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }

.locations ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.locations li::before { content: '>$ '; color: var(--accent); }

.contact-info { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--border); }
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Features Section */
.section-title { text-align: center; font-size: 2.2rem; color: var(--accent); margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--panel);
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
    background: var(--accent); transition: left 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(67, 224, 138, 0.1);
}

.feature-card:hover::before { left: 0; }
.feature-card h3 { color: var(--text); margin-bottom: 15px; font-size: 1.2rem; }
.feature-card:hover h3 { color: var(--accent); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.price-card {
    background: var(--panel);
    padding: 40px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.price-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(67,224,138,0.15);
    transform: scale(1.02);
}

.price-card h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 15px; text-transform: uppercase; }
.price-card .vol { color: var(--accent); font-size: 2.2rem; font-weight: bold; margin-bottom: 10px; }
.price-card .cost { color: var(--text-muted); margin-bottom: 25px; font-size: 1.1rem; }

/* Status Section */
.status-table { background: var(--panel); border: 1px solid var(--border); }
.status-row {
    display: flex; justify-content: space-between; padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}
.status-row:hover { background: rgba(67, 224, 138, 0.05); }
.status-row:last-child { border-bottom: none; }

.status-name { color: var(--text); font-weight: bold; }
.status-indicator { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; }

.dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; box-shadow: 0 0 0 var(--accent); }
    50% { opacity: 1; box-shadow: 0 0 10px var(--accent); }
    100% { opacity: 0.4; box-shadow: 0 0 0 var(--accent); }
}

/* Footer */
footer {
    padding: 50px 0 30px;
    background: #040605;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap;
}

.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; text-transform: uppercase; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact a { color: var(--accent); text-decoration: none; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--panel); border: 1px solid var(--accent);
    padding: 40px; width: 100%; max-width: 420px;
    position: relative; box-shadow: 0 0 40px rgba(67, 224, 138, 0.15);
    transform: translateY(-30px); transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.close-btn {
    position: absolute; top: 15px; right: 20px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1;
}

.close-btn:hover { color: var(--accent); transform: scale(1.1); box-shadow: none; background: transparent; }

.modal-content h2 { color: var(--accent); margin-bottom: 25px; text-transform: uppercase; text-align: center; letter-spacing: 1px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; }
.form-group input {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid var(--border);
    color: var(--text); font-family: var(--font); outline: none; transition: all 0.3s;
}

.form-group input:focus { border-color: var(--accent); box-shadow: inset 0 0 5px rgba(67,224,138,0.2); }

.form-btn { width: 100%; padding: 14px; margin-top: 10px; font-size: 1rem; }

.error-msg {
    display: none; margin-top: 20px; padding: 12px;
    background: rgba(220, 53, 69, 0.1); border-left: 3px solid #ff4d4d;
    color: #ff4d4d; font-size: 0.85rem; text-align: left;
}

.loader {
    display: none; margin: 20px auto 0; width: 28px; height: 28px;
    border: 3px solid var(--border); border-top: 3px solid var(--accent);
    border-radius: 50%; animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsive */
@media(max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { flex-direction: column; padding: 0 20px; }
    .stats { flex-direction: column; align-items: center; }
    .stat-item { width: 100%; text-align: center; }
    .locations ul { grid-template-columns: 1fr; }
    .status-row { flex-direction: column; gap: 10px; align-items: flex-start; }
}