/* --- VARIABLES --- */
:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-muted: #666666;
    --accent: #00f0ff; /* Electric Cyan */
    --accent-dim: rgba(0, 240, 255, 0.1);
    --font-ui: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

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

/* --- BACKGROUND FX --- */
canvas#neural-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Subtelne paski skanujące jak w monitorze */
.scanline {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 1px,
        rgba(255,255,255,0.02) 2px,
        rgba(255,255,255,0.02) 3px
    );
    pointer-events: none;
    z-index: 999;
}

/* --- LAYOUT --- */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
}
.brand .highlight { color: var(--accent); }

.system-status {
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent-dim);
    padding: 5px 10px;
    border-radius: 2px;
}
.blink { animation: blinker 2s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- HERO --- */
.hero {
    padding: 120px 0 80px 0;
    max-width: 800px;
}

.terminal-badge {
    font-family: var(--font-code);
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255,255,255,0.03);
    padding: 4px 8px;
}

h1 {
    font-size: 4rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 50px;
    border-left: 2px solid var(--accent);
    padding-left: 20px;
}

/* --- BUTTONS --- */
.cta-group { display: flex; gap: 20px; }

.btn {
    text-decoration: none;
    font-family: var(--font-code);
    font-size: 0.9rem;
    padding: 15px 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.bracket { color: var(--text-muted); margin: 0 5px; transition: color 0.3s; }

.btn.primary {
    background: var(--text-main);
    color: var(--bg-color);
    font-weight: 700;
}
.btn.primary:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-dim);
}

.btn.ghost {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
}
.btn.ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn.ghost:hover .bracket { color: var(--accent); }

/* --- GRID SPECS --- */
.grid-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 60px;
}

.card {
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.04);
    border-color: var(--accent-dim);
}

.card .icon {
    font-family: var(--font-code);
    color: var(--accent);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
    opacity: 0.7;
}

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

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.mono { font-family: var(--font-code); color: var(--text-main); }

.glass-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-code);
    opacity: 0.5;
    transition: opacity 0.3s;
}
.glass-link:hover { opacity: 1; color: var(--accent); }

/* MOBILE */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 80px 0; }
    .cta-group { flex-direction: column; }
    footer { flex-direction: column; gap: 20px; }
}
/* --- FORM TERMINAL STYLE --- */
.form-container {
    max-width: 600px;
    margin: 60px auto;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group label {
    display: block;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Wygląd inputów jak w terminalu */
.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: var(--font-code);
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
    transition: border-color 0.3s;
}

.terminal-input:focus {
    border-bottom-color: var(--accent);
}

.terminal-input::placeholder {
    color: #444;
}

/* Status wiadomości */
.status-msg {
    font-family: var(--font-code);
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: none;
    padding: 10px;
    border: 1px solid;
}
.status-msg.success { color: var(--accent); border-color: var(--accent); }
.status-msg.error { color: #ff0055; border-color: #ff0055; }

/* --- LEGAL PAGE TYPOGRAPHY --- */
.legal-content h2 {
    font-family: var(--font-code);
    color: var(--text-main);
    font-size: 1.1rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.legal-content p { font-size: 0.9rem; color: #888; margin-bottom: 15px; }
/* --- SPECS PAGE ADDITIONS --- */

.specs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0;
}

.spec-block {
    margin-bottom: 80px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 30px;
    position: relative;
}

.spec-block::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 30px;
    width: 1px;
    background: var(--accent);
}

.spec-title {
    font-family: var(--font-code);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-header {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Wygląd kodu / terminala w treści */
.code-window {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #a9b7c6;
    overflow-x: auto;
    margin: 30px 0;
    position: relative;
}
.code-window::before {
    content: 'JSON // API RESPONSE';
    position: absolute;
    top: 0; right: 0;
    background: #222;
    color: #666;
    font-size: 0.6rem;
    padding: 2px 8px;
}

.key { color: #9876aa; }
.string { color: #6a8759; }
.number { color: #6897bb; }
.bool { color: #cc7832; }

/* Tabela parametrów */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--font-code);
    font-size: 0.85rem;
}
.tech-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.tech-table td { padding: 15px 0; color: var(--text-muted); }
.tech-table td:first-child { color: var(--text-main); width: 40%; }
.tech-table tr:last-child { border: none; }

.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent);
}