/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --card: #1a1a1a;
    --border: #2a2a2a;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --text: #f0f0f0;
    --muted: #888888;
    --yes: #22c55e;
    --no: #ef4444;
    --maybe: #f59e0b;
}

body {
    background: var(--black);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: radial-gradient(ellipse at top, #1a1040 0%, var(--black) 60%);
}

.hero-inner {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ============================================================
   INPUT BOX
   ============================================================ */
.input-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.7;
    resize: none;
    margin-bottom: 16px;
}

textarea::placeholder {
    color: var(--muted);
}

button#run-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

button#run-btn:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

button#run-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   EXAMPLE PROMPTS
   ============================================================ */
.example-prompts {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.example-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.example-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.example-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================================
   PROGRESS SECTION
   ============================================================ */
.progress-section {
    padding: 80px 24px;
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.progress-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text);
}

.dots {
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================================================
   AGENT GRID (progress tiles)
   ============================================================ */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.agent-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    transition: all 0.3s;
}

.agent-tile.loading {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.agent-tile.done {
    border-color: var(--border);
    opacity: 0.85;
}

.agent-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.agent-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.agent-type {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.agent-spinner {
    font-size: 0.75rem;
    color: var(--accent);
    animation: blink 1s infinite;
}

/* ============================================================
   SIGNAL BADGES
   ============================================================ */
.signal-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.signal-yes {
    background: rgba(34, 197, 94, 0.15);
    color: var(--yes);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.signal-no {
    background: rgba(239, 68, 68, 0.15);
    color: var(--no);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-maybe {
    background: rgba(245, 158, 11, 0.15);
    color: var(--maybe);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
    padding: 80px 24px;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.results-inner {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   RESULT CARDS
   ============================================================ */
.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.result-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.result-card:hover {
    border-color: #3a3a3a;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.card-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-identity {
    flex: 1;
}

.card-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

.card-reaction {
    padding: 24px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #d0d0d0;
}

.reaction-section {
    margin-top: 16px;
    margin-bottom: 4px;
}

.reaction-icon {
    margin-right: 6px;
}

.reaction-section strong {
    color: var(--text);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .agent-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .card-header {
        flex-wrap: wrap;
    }
}

/* ============================================================
   EXECUTIVE SUMMARY
   ============================================================ */
.summary-box {
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: 0 0 32px var(--accent-glow);
}

.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-row:first-child {
    padding-top: 0;
}

.summary-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
}

.summary-value {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.score-row {
    padding-bottom: 20px;
    margin-bottom: 4px;
}

.summary-score {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

/* Readiness badges */
.readiness-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.readiness-go {
    background: rgba(34, 197, 94, 0.15);
    color: var(--yes);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.readiness-stop {
    background: rgba(239, 68, 68, 0.15);
    color: var(--no);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.readiness-work {
    background: rgba(245, 158, 11, 0.15);
    color: var(--maybe);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.readiness-caution {
    background: rgba(245, 158, 11, 0.15);
    color: var(--maybe);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cards-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   SHARE BUTTON
   ============================================================ */
.share-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.share-btn:hover {
    background: var(--accent);
    color: white;
}

.share-confirm {
    font-size: 0.85rem;
    color: var(--yes);
    margin-top: 8px;
    font-weight: 600;
}

/* ============================================================
   PROOF POINTS
   ============================================================ */
.proof-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
    text-align: left;
}

.proof-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
}

.proof-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.proof-text strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* ============================================================
   PROOF SECTION
   ============================================================ */
.proof-section {
    padding: 80px 24px;
    background: var(--dark);
    border-top: 1px solid var(--border);
}

.proof-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.proof-heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.proof-subheading {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
    text-align: left;
}

.proof-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.proof-result {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.proof-result.fail {
    color: var(--no);
}

.proof-result.success {
    color: var(--yes);
}

.proof-result.data {
    color: var(--maybe);
}

.proof-product {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.proof-detail {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.proof-framework {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    text-align: left;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.framework-item {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
}

.framework-item strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* ============================================================
   LIMIT MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.modal-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-email {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.modal-email:focus {
    border-color: var(--accent);
}

.modal-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: #4f46e5;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px;
}

.modal-close:hover {
    color: var(--text);
}