/* style.css */
:root {
    --primary: #4f46e5; /* Indigo 600 */
    --primary-hover: #4338ca;
    --bg-body: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff;
    --text-main: #1e293b; /* Slate 800 */
    --text-muted: #64748b; /* Slate 500 */
    --border: #e2e8f0;
    --success: #10b981;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* MAIN CONTENT */
main {
    flex: 1;
    padding: 3rem 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #0f172a;
}

.hero-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* APP INTERFACE */
.app-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }

textarea, input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }

/* OUTPUT & DOCS */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: monospace;
}

.doc-section h3 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.1rem; }
.doc-section p { margin-bottom: 1rem; font-size: 0.95rem; color: #334155; }

/* SPONSOR / PARTNER AREA */
.partner-area {
    margin-top: 2rem;
    padding: 1rem;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
}
.partner-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; margin-bottom: 0.5rem; display: block; }

/* FOOTER */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .app-grid { grid-template-columns: 1fr; }
    .nav-flex { flex-direction: column; gap: 1rem; }
    .nav-links a { margin: 0 0.5rem; }
}