/* ============================================================
   QJoe landing — styles.css
   Dark theme, centered, no external dependencies.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg:           #0a0c10;
    --bg-elev:      #11141b;
    --border:       #1e242f;
    --text:         #e6e9ef;
    --text-muted:   #8b93a5;
    --accent:       #00d68f;
    --accent-dim:   #00d68f22;
    --accent-hover: #1fe6a1;

    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
                 "Liberation Mono", monospace;

    --container: 900px;
    --radius:    6px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-elev);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 2rem 0 0;
}

/* ---------- Hero ---------- */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
}

.brand-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg);
    background: var(--accent);
    border-radius: var(--radius);
}

.brand-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.cta-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.cta-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--bg);
}

.cta-secondary {
    background: transparent;
    color: var(--text);
}

.cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- Problem ---------- */
.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

.problem-list li {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text-muted);
}

.problem-list strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* ---------- Solution / flow ---------- */
.flow {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin: 1rem 0 0;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1 1 0;
    min-width: 180px;
    padding: 1.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.flow-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.flow-desc {
    color: var(--text);
    font-size: 0.95rem;
}

.flow-arrow {
    align-self: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1.25rem;
}

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
}

.feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
}

.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Example / code block ---------- */
.code-block {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.code-block code { background: none; border: none; padding: 0; }
.code-prompt  { color: var(--accent); }
.code-comment { color: var(--text-muted); }
.code-output  { color: var(--text); }

/* ---------- Email capture ---------- */
.email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    flex-wrap: wrap;
}

.email-form input {
    flex: 1 1 220px;
    padding: 0.75rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.email-form button {
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease;
}

.email-form button:hover { background: var(--accent-hover); }

.form-note {
    margin: 1rem 0 0;
    min-height: 1.5em;
    color: var(--accent);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.form-note.error { color: #ff6b6b; }

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    margin: 0;
    font-family: var(--font-mono);
}

.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .hero { padding: 4rem 0 3rem; }
    .brand-name { font-size: 1.75rem; }
    .tagline    { font-size: 1.35rem; }

    .section { padding: 3rem 0; }

    .flow { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }

    .feature-grid { grid-template-columns: 1fr; }

    .email-form { flex-direction: column; }
    .email-form button { width: 100%; }
}
