/* ═══════════════════════════════════════════════
   MANIFESTO ENGINE — Warm SaaS Theme
   Light, friendly, welcoming for everyday people.
   ═══════════════════════════════════════════════ */

:root {
    --bg-page: hsl(40, 30%, 97%);
    --bg-white: hsl(0, 0%, 100%);
    --bg-warm: hsl(35, 40%, 95%);
    --bg-soft: hsl(30, 20%, 93%);
    --bg-card: hsl(0, 0%, 100%);
    --border: hsl(30, 15%, 88%);
    --border-hover: hsl(30, 20%, 78%);
    --text-0: hsl(220, 20%, 16%);
    --text-1: hsl(220, 10%, 38%);
    --text-2: hsl(220, 8%, 55%);
    --text-3: hsl(220, 6%, 68%);
    --accent: hsl(245, 58%, 56%);
    --accent-light: hsl(245, 58%, 64%);
    --accent-bg: hsl(245, 60%, 96%);
    --accent-border: hsl(245, 50%, 88%);
    --coral: hsl(12, 80%, 62%);
    --coral-bg: hsl(12, 80%, 96%);
    --amber: hsl(38, 92%, 55%);
    --amber-bg: hsl(38, 80%, 95%);
    --teal: hsl(170, 50%, 45%);
    --teal-bg: hsl(170, 50%, 95%);
    --danger: hsl(0, 65%, 55%);
    --danger-bg: hsl(0, 70%, 96%);
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;
    --transition: 200ms ease;
    --shadow-sm: 0 1px 3px hsla(220, 20%, 16%, 0.06);
    --shadow-md: 0 4px 16px hsla(220, 20%, 16%, 0.08);
    --shadow-lg: 0 8px 32px hsla(220, 20%, 16%, 0.1);
    --shadow-btn: 0 2px 8px hsla(245, 58%, 56%, 0.2);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg-page);
    color: var(--text-0);
    min-height: 100vh;
    overflow-x: hidden;
}

.saas-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

.saas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    border-bottom: 1px solid var(--border);
    background: hsla(0, 0%, 100%, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.saas-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.saas-brand .logo {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-0);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.saas-brand .logo .mark {
    color: var(--accent);
}

.saas-brand .badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-bg);
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.saas-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credit-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-1);
    background: var(--bg-white);
}

.credit-badge .count {
    color: var(--accent);
    font-weight: 800;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 40px 80px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-page) 100%);
    overflow: hidden;
}

/* Soft decorative blobs */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: hsla(245, 60%, 56%, 0.06);
    top: -200px;
    right: -150px;
    filter: blur(80px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: hsla(12, 80%, 62%, 0.05);
    bottom: -150px;
    left: -100px;
    filter: blur(80px);
    pointer-events: none;
}

.hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero .pill .emoji {
    font-size: 0.9rem;
}

.hero h1 {
    position: relative;
    font-size: 3.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-0);
    z-index: 1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    position: relative;
    font-size: 1.15rem;
    color: var(--text-1);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 36px;
    z-index: 1;
}

.hero .cta-group {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════ */

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 32px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
}

.trust-item .emoji {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════
   FREE TOOLS
   ═══════════════════════════════════════════════ */

.tools-section {
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-warm);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 250ms ease;
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.tool-info h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 2px;
}

.tool-info p {
    font-size: 0.72rem;
    color: var(--text-2);
    line-height: 1.45;
}

.tool-arrow {
    font-size: 0.9rem;
    color: var(--text-3);
    flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
}

.tool-card:hover .tool-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════ */

.how-section {
    padding: 80px 40px;
    text-align: center;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-0);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    text-align: left;
    transition: all 300ms ease;
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.step-card .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.step-card:nth-child(1) .step-icon {
    background: var(--accent-bg);
}

.step-card:nth-child(2) .step-icon {
    background: var(--amber-bg);
}

.step-card:nth-child(3) .step-icon {
    background: var(--teal-bg);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-0);
}

.step-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-1);
}

/* ═══════════════════════════════════════════════
   WHAT'S INCLUDED
   ═══════════════════════════════════════════════ */

.features-section {
    padding: 80px 40px;
    background: var(--bg-warm);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 300ms ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-card:nth-child(1) .icon-box {
    background: var(--accent-bg);
}

.feature-card:nth-child(2) .icon-box {
    background: var(--coral-bg);
}

.feature-card:nth-child(3) .icon-box {
    background: var(--amber-bg);
}

.feature-card:nth-child(4) .icon-box {
    background: var(--teal-bg);
}

.feature-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-0);
}

.feature-card p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-2);
}

/* ═══════════════════════════════════════════════
   BLUEPRINT TYPES
   ═══════════════════════════════════════════════ */

.types-section {
    padding: 80px 40px;
    text-align: center;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px 24px;
    text-align: left;
    transition: all 300ms ease;
    box-shadow: var(--shadow-sm);
}

.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.type-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.type-card:nth-child(1) .type-icon {
    background: var(--accent-bg);
}

.type-card:nth-child(2) .type-icon {
    background: var(--amber-bg);
}

.type-card:nth-child(3) .type-icon {
    background: var(--teal-bg);
}

.type-card:nth-child(4) .type-icon {
    background: var(--coral-bg);
}

.type-card:nth-child(5) .type-icon {
    background: var(--accent-bg);
}

.type-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-0);
}

.type-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-2);
}

/* Domain Detection Callout */

.domain-callout {
    max-width: 680px;
    margin: 40px auto 0;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    transition: all 300ms ease;
}

.domain-callout:hover {
    box-shadow: var(--shadow-md);
}

.domain-callout-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.domain-callout-icon {
    font-size: 1.2rem;
}

.domain-callout-header strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-0);
}

.domain-callout p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-1);
    margin: 0;
}

/* ═══════════════════════════════════════════════
   SAMPLE PREVIEW
   ═══════════════════════════════════════════════ */

.preview-section {
    padding: 80px 40px;
    text-align: center;
}

.preview-window {
    max-width: 680px;
    margin: 0 auto;
    background: hsl(225, 18%, 12%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: hsl(225, 16%, 16%);
}

.preview-titlebar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-titlebar .dot:nth-child(1) {
    background: hsl(0, 60%, 55%);
}

.preview-titlebar .dot:nth-child(2) {
    background: hsl(40, 80%, 55%);
}

.preview-titlebar .dot:nth-child(3) {
    background: hsl(130, 50%, 48%);
}

.preview-titlebar .title {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: hsl(220, 8%, 50%);
    margin-left: 8px;
}

.preview-body {
    padding: 24px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: hsl(220, 8%, 68%);
    max-height: 300px;
    overflow-y: auto;
}

.preview-body .h1 {
    color: hsl(38, 90%, 65%);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.preview-body .h2 {
    color: hsl(245, 60%, 72%);
    font-weight: 600;
    font-size: 0.82rem;
    margin: 16px 0 8px;
}

.preview-body .dim {
    color: hsl(220, 6%, 45%);
}

.preview-body .hi {
    color: hsl(38, 90%, 65%);
}

.preview-body .acc {
    color: hsl(170, 60%, 55%);
}

.preview-body .table-row {
    display: flex;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px solid hsla(220, 10%, 20%, 0.4);
}

.preview-body .table-row .col {
    flex: 1;
    font-size: 0.74rem;
}

.preview-body .table-row .col:first-child {
    color: hsl(170, 60%, 55%);
    flex: 0 0 130px;
}

/* ═══════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════ */

.pricing-section {
    padding: 80px 40px;
    background: var(--bg-warm);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    transition: all 300ms ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.price-card.featured {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-border);
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: white;
    white-space: nowrap;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-card .tier-name {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
    margin-bottom: 12px;
}

.price-card .price {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text-0);
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.price-card .price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-2);
    vertical-align: super;
}

.price-card .price-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 24px;
}

.price-card .features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.price-card .features-list li {
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card .features-list li::before {
    content: '✓';
    color: var(--teal);
    font-weight: 800;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════════ */

.auth-section {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 32px 80px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 300ms ease;
}

.auth-card:hover {
    box-shadow: var(--shadow-md);
}

.auth-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 16px;
}

.auth-row {
    display: flex;
    gap: 10px;
}

.auth-row:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════
   WORKSPACE
   ═══════════════════════════════════════════════ */

.workspace {
    display: none;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 32px;
    gap: 24px;
    flex-direction: column;
}

.workspace.active {
    display: flex;
}

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

.workspace-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-0);
}

/* ═══════════════════════════════════════════════
   GENERATE PANEL
   ═══════════════════════════════════════════════ */

.gen-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.gen-panel .prompt-area {
    width: 100%;
    min-height: 140px;
    max-height: 320px;
    resize: vertical;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-0);
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.6;
    padding: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.gen-panel .prompt-area:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(245, 58%, 56%, 0.1);
}

.gen-panel .prompt-area::placeholder {
    color: var(--text-3);
}

.gen-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.char-info {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════
   RESULT PANEL
   ═══════════════════════════════════════════════ */

.result-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: none;
    box-shadow: var(--shadow-sm);
    animation: fadeSlideIn 400ms ease;
}

.result-panel.active {
    display: block;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-warm);
}

.result-header span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.result-body {
    padding: 28px;
    max-height: 65vh;
    overflow-y: auto;
}

.result-body h1,
.result-body h2,
.result-body h3 {
    color: var(--accent);
    font-weight: 700;
    margin: 16px 0 8px 0;
}

.result-body h1 {
    font-size: 1.1rem;
}

.result-body h2 {
    font-size: 0.95rem;
}

.result-body h3 {
    font-size: 0.85rem;
}

.result-body strong {
    color: var(--text-0);
}

.result-body em {
    color: var(--coral);
    font-style: italic;
}

.result-body code {
    background: var(--bg-soft);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: var(--mono);
    color: var(--accent);
}

.result-body ul {
    padding-left: 20px;
    margin: 6px 0;
}

.result-body li {
    margin: 4px 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-1);
}

.result-body p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-1);
    margin: 8px 0;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px hsla(245, 58%, 56%, 0.25);
}

.btn-ghost {
    background: var(--bg-white);
    border-color: var(--border);
    color: var(--text-0);
}

.btn-ghost:hover:not(:disabled) {
    border-color: var(--border-hover);
    background: var(--bg-warm);
}

.btn-buy {
    background: linear-gradient(135deg, var(--accent), var(--coral));
    color: white;
    font-weight: 700;
    border: none;
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px hsla(245, 58%, 56%, 0.3);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.88rem;
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════ */

.input {
    width: 100%;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-0);
    font-family: var(--sans);
    font-size: 0.88rem;
    padding: 11px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(245, 58%, 56%, 0.08);
}

.input::placeholder {
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════
   KEY DISPLAY
   ═══════════════════════════════════════════════ */

.key-display {
    display: none;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 14px;
}

.key-value-code {
    display: block;
    background: #1a1816;
    color: #a8d5ba;
    padding: 14px 16px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 0.82rem;
    word-break: break-all;
    line-height: 1.5;
    user-select: all;
    cursor: text;
}

.key-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.key-display .warning {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--coral);
    margin-top: 10px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   BLOCKED MESSAGE
   ═══════════════════════════════════════════════ */

.blocked-msg {
    display: none;
    background: var(--danger-bg);
    border: 1px solid hsl(0, 60%, 85%);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-top: 14px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--danger);
    animation: fadeSlideIn 300ms ease;
}

/* ═══════════════════════════════════════════════
   PROGRESS
   ═══════════════════════════════════════════════ */

.progress-container {
    display: none;
    text-align: center;
    padding: 32px 24px;
}

.progress-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 14px;
}

.progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-soft);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--coral));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.saas-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    font-size: 0.72rem;
    color: var(--text-2);
    margin-top: auto;
}

/* ═══════════════════════════════════════════════
   STATUS DOT
   ═══════════════════════════════════════════════ */

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--text-3);
    transition: background var(--transition);
}

.status-dot.active {
    background: var(--teal);
}

.status-dot.error {
    background: var(--danger);
}

.status-dot.working {
    background: var(--amber);
    animation: pulse 1s ease infinite;
}

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */

.toast {
    position: fixed;
    bottom: 32px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-0);
    background: var(--bg-white);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(10px);
    transition: all 250ms ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    border-color: hsl(0, 60%, 85%);
    background: var(--danger-bg);
    color: var(--danger);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* ═══════════════════════════════════════════════
   TEMPLATE CHIPS
   ═══════════════════════════════════════════════ */

.template-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.template-chip {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-white);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-1);
    cursor: pointer;
    transition: all 200ms ease;
    white-space: nowrap;
}

.template-chip:hover {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   STACK SELECTOR
   ═══════════════════════════════════════════════ */

.stack-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.stack-row label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.stack-select {
    flex: 1;
    max-width: 240px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-0);
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 8px 12px;
    cursor: pointer;
    transition: border-color var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239598a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.stack-select:focus {
    outline: none;
    border-color: var(--accent);
}

.type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.type-row label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}

.domains-badge {
    display: none;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--teal);
    margin-left: 8px;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════
   HISTORY SIDEBAR
   ═══════════════════════════════════════════════ */

.workspace-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.workspace-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-panel {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    max-height: 70vh;
    overflow-y: auto;
}

.history-panel h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-2);
    margin-bottom: 12px;
}

.history-item {
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 200ms ease;
    border: 1px solid transparent;
}

.history-item:hover {
    background: var(--bg-warm);
    border-color: var(--border);
}

.history-item .h-prompt {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.history-item .h-meta {
    font-size: 0.68rem;
    color: var(--text-3);
}

.history-empty {
    font-size: 0.78rem;
    color: var(--text-3);
    text-align: center;
    padding: 20px 0;
}

/* ═══════════════════════════════════════════════
   REFINE INPUT
   ═══════════════════════════════════════════════ */

.refine-row {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-warm);
}

.refine-row input {
    flex: 1;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-0);
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 8px 14px;
    transition: border-color var(--transition);
}

.refine-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.refine-row input::placeholder {
    color: var(--text-3);
}




/* ═══════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-soft);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════
   DEMO SLIDESHOW
   ═══════════════════════════════════════════════ */

.demo-section {
    text-align: center;
    padding: 60px 32px 40px;
}

.demo-slideshow {
    max-width: 780px;
    margin: 0 auto;
}

.demo-slides {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    aspect-ratio: 16 / 10;
    background: var(--bg-soft);
}

.demo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 600ms ease;
}

.demo-slide.active {
    opacity: 1;
}

.demo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.demo-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 250ms ease;
    position: relative;
    overflow: hidden;
    font-family: var(--sans);
}

.demo-step:hover {
    border-color: var(--border-hover);
    background: var(--bg-warm);
}

.demo-step.active {
    border-color: var(--accent-border);
    background: var(--accent-bg);
}

.demo-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-soft);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-2);
    flex-shrink: 0;
    transition: all 250ms ease;
}

.demo-step.active .demo-step-num {
    background: var(--accent);
    color: white;
}

.demo-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap;
}

.demo-step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
}

/* ═══════════════════════════════════════════════
   FEED YOUR AGENTS (comedy section)
   ═══════════════════════════════════════════════ */

.feed-section {
    text-align: center;
    padding: 60px 32px 40px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feed-card {
    display: flex;
    gap: 16px;
    text-align: left;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 250ms ease;
}

.feed-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feed-card.good {
    border-color: hsl(145, 45%, 78%);
    background: linear-gradient(135deg, var(--bg-card), hsl(145, 40%, 96%));
}

.feed-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.feed-body h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 6px;
}

.feed-body p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-2);
}

.feed-punchline {
    margin-top: 28px;
    font-size: 0.92rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text-1);
}

/* ═══════════════════════════════════════════════
   COMMUNITY / DISCORD CTA
   ═══════════════════════════════════════════════ */

.community-section {
    text-align: center;
    padding: 60px 32px 40px;
}

.community-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.community-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: left;
    margin-bottom: 28px;
}

.perk {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.perk-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.perk strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 4px;
}

.perk p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-2);
    margin: 0;
}

.btn-discord {
    background: hsl(235, 86%, 65%);
    color: white;
    border: none;
    font-weight: 700;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 12px hsla(235, 86%, 65%, 0.25);
}

.btn-discord:hover {
    background: hsl(235, 86%, 58%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px hsla(235, 86%, 65%, 0.35);
    color: white;
    text-decoration: none;
}

.community-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.community-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-1);
    text-decoration: none;
    transition: all 200ms ease;
}

.community-socials a:hover {
    border-color: var(--border-hover);
    background: var(--bg-warm);
    transform: translateY(-1px);
    color: var(--text-0);
}

/* Footer social links */
.footer-discord,
.footer-social {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* Nav discord link */
.discord-link {
    color: hsl(235, 86%, 65%) !important;
}


/* ═══ WHAT'S NEW — Update Story Section ═══ */
.update-section {
    padding: 80px 40px;
}

.update-story {
    max-width: 900px;
    margin: 0 auto;
}

.update-card {
    display: flex;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 14px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.update-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.update-card.featured {
    background: linear-gradient(135deg, rgba(64, 224, 160, 0.06), rgba(100, 180, 255, 0.06));
    border-color: rgba(64, 224, 160, 0.2);
    margin-bottom: 32px;
}

.update-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.update-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-0);
    margin-bottom: 8px;
}

.update-body p {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.65;
}

.update-body code {
    background: rgba(64, 224, 160, 0.12);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.update-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-block {
    text-align: center;
    padding: 24px 12px;
    border-radius: 14px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.4;
}

.stat-label small {
    color: var(--text-3);
    font-size: 0.76rem;
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.update-grid .update-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.update-grid .update-icon {
    font-size: 2.4rem;
    margin-bottom: 4px;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤800px)
   ═══════════════════════════════════════════════ */

@media (max-width: 800px) {

    /* Hero */
    .hero {
        padding: 50px 20px 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero .cta-group .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Trust bar */
    .trust-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 24px;
        padding: 24px 20px;
    }

    /* Section padding */
    .tools-section,
    .how-section,
    .features-section,
    .types-section,
    .pricing-section,
    .demo-section,
    .feed-section,
    .community-section,
    .update-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Grids */
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }

    .update-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .community-perks {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .community-socials {
        flex-wrap: wrap;
    }

    /* Demo */
    .demo-slideshow {
        max-width: 100%;
    }

    .demo-steps {
        flex-direction: column;
        gap: 6px;
    }

    /* Auth */
    .auth-section {
        padding: 32px 16px 48px;
        max-width: 100%;
    }

    /* Workspace */
    .workspace {
        padding: 16px;
    }

    .workspace-layout {
        flex-direction: column-reverse;
    }

    .history-panel {
        width: 100%;
        max-height: 200px;
    }

    /* Result panel */
    .result-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        text-align: center;
    }

    /* Outage banner override */
    #outage-banner {
        margin: 8px 16px 0 !important;
        padding: 12px 16px !important;
        font-size: 0.82rem !important;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤480px)
   ═══════════════════════════════════════════════ */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    /* Hero */
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    /* Trust bar — 2×2 grid */
    .trust-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 16px;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    /* Section padding */
    .tools-section,
    .how-section,
    .features-section,
    .types-section,
    .pricing-section,
    .demo-section,
    .feed-section,
    .community-section,
    .update-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Types grid — single column */
    .types-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    /* Pricing — full width */
    .pricing-grid {
        max-width: 100%;
    }

    /* Update stats — single column */
    .update-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* Auth */
    .auth-card {
        padding: 20px;
    }

    .auth-row {
        flex-direction: column;
    }

    .auth-row .btn {
        width: 100%;
    }

    /* Workspace */
    .gen-panel {
        padding: 16px;
    }

    .gen-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .gen-controls .btn {
        width: 100%;
    }

    .type-row,
    .stack-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .stack-select {
        max-width: 100%;
    }

    .refine-row {
        flex-direction: column;
        gap: 8px;
    }

    .refine-row .btn {
        width: 100%;
    }

    /* Result body */
    .result-body {
        padding: 16px;
    }

    .result-header {
        padding: 12px 16px;
    }

    /* Community */
    .community-card {
        padding: 20px;
    }

    /* Feed */
    .feed-card {
        padding: 16px;
    }

    /* Domain callout */
    .domain-callout {
        padding: 18px 20px;
    }

    /* Preview */
    .preview-body {
        padding: 16px;
        font-size: 0.72rem;
    }

    .preview-body .table-row .col:first-child {
        flex: 0 0 100px;
    }
}