:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #111622;
    --bg-tertiary: #192132;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-glow: rgba(239, 68, 68, 0.25);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-highlight: #334155;
    --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-badge {
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    margin-left: 4px;
    box-shadow: 0 0 8px #10b981;
}

.btn-nav {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-highlight);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-primary) !important;
}

.btn-nav:hover {
    border-color: var(--accent);
    background: #1f293d;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.12) 0%, transparent 65%);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge {
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

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

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.section {
    padding: 90px 0;
}

.bg-darker {
    background-color: #07090e;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.section-badge {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

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

/* Terminal Preview */
.terminal-preview {
    max-width: 800px;
    margin: 0 auto;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #161b22;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 12px;
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.term-line {
    margin-bottom: 8px;
    color: #e6edf3;
}

.term-prompt {
    color: var(--accent);
    font-weight: 700;
}

.term-line.success {
    color: #3fb950;
}

.term-line.info {
    color: #58a6ff;
}

.term-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Status Box */
.status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 24px 36px;
    border-radius: var(--radius);
    max-width: 800px;
    margin: 0 auto;
}

.status-indicator {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
}

.pulse-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.6); opacity: 0; }
}

.status-info h3 {
    font-size: 1.1rem;
}

.status-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-uptime {
    text-align: right;
}

.status-uptime strong {
    font-size: 1.4rem;
    color: #10b981;
    display: block;
}

.status-uptime span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-header {
    text-align: center;
    margin-bottom: 28px;
}

.contact-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

input, textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
}

.form-success {
    margin-top: 20px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    background: #07090e;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    max-width: 320px;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.link-group a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-title { font-size: 2.4rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
}
