/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #1E1E2E;
    --bg-card: #282840;
    --bg-card-hover: #32325A;
    --bg-disabled: #23233A;
    --text-primary: #E8E8F0;
    --text-secondary: #9898B0;
    --text-muted: #606080;
    --accent: #7C83FD;
    --accent-glow: rgba(124, 131, 253, 0.25);
    --green: #4ADE80;
    --red: #F87171;
    --border: #35355A;
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 15px; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.connection-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    transition: background 0.3s;
}

.connection-dot.offline {
    background: var(--red);
}

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

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

/* ===== MAIN ===== */
main {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    width: 100%;
}

.logo-area {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-placeholder {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.app-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ===== PIPELINE GRID ===== */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card.active {
    cursor: pointer;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.card.active:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.card.disabled {
    opacity: 0.45;
    cursor: default;
}

.card-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.card.active .card-number {
    background: var(--accent);
    color: #fff;
}

.card.disabled .card-number {
    background: var(--bg-disabled);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.card-content {
    flex: 1;
    min-width: 0;
}

.card-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.card.disabled .card-content h3 {
    color: var(--text-muted);
}

.card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.coming-soon {
    font-style: italic;
    color: var(--text-muted) !important;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--accent);
    align-self: center;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-company {
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-company a {
    color: var(--accent);
    text-decoration: none;
}

.footer-company a:hover {
    text-decoration: underline;
}

.footer-rgpd {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .pipeline-grid { grid-template-columns: 1fr; }
    main { padding: 1.5rem 1rem; }
    header { padding: 0.75rem 1rem; }
    .app-title { font-size: 1.5rem; }
}
