/* Reset și Variabile globale */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --border-color: #334155;
    --font-sans: 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigație */
header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-main);
}

/* Butoane */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), transparent 50%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-buttons .btn {
    margin: 0 0.5rem;
}

/* Servicii Section */
.services-section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Code Playground Section */
.code-section {
    padding: 5rem 0;
    background-color: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 1.5rem;
    list-style: none;
}

.features-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.code-window {
    background-color: #030712;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.code-header {
    background-color: #111827;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}
.dots span:nth-child(1) { background-color: #ef4444; }
.dots span:nth-child(2) { background-color: #eab308; }
.dots span:nth-child(3) { background-color: #22c55e; }

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    border-radius: 4px;
}

.tab-btn.active {
    background-color: var(--border-color);
    color: var(--text-main);
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
}

pre code {
    font-family: 'Courier New', Courier, monospace;
    color: #38bdf8;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsivitate pentru ecrane mici */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 1rem; }
    nav a { margin: 0 0.5rem; }
    .hero h1 { font-size: 2.3rem; }
    .code-grid { grid-template-columns: 1fr; gap: 2rem; }
}
