:root {
    --bg: #0e1117;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #8b5cf6;
    --accent-2: #06b6d4;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.14), transparent 25%),
                radial-gradient(circle at 90% 10%, rgba(45, 212, 191, 0.12), transparent 25%),
                radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.1), transparent 30%),
                var(--bg);
    min-height: 100vh;
    padding: 32px;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.3), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero {
    text-align: center;
}

.eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 8px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero .gradient {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lede {
    margin: 0 auto;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.6;
}

.card {
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.05), transparent 35%),
                radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.12), transparent 40%),
                var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.inputBox {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    padding: 14px 16px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

.inputBox:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.options {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background-color: rgba(139, 92, 246, 0.08);
}

.option input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.option span {
    font-weight: 600;
}

.option small {
    display: block;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 4px;
}

.label-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hint {
    color: var(--muted);
    font-size: 14px;
}

.output-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.output-row textarea {
    flex: 1;
    min-height: 140px;
}

.copy-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.ghost-btn {
    align-self: stretch;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border: none;
    color: white;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.ghost-btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.ghost-btn:active {
    transform: translateY(0);
}

.copy-status {
    min-height: 20px;
    font-size: 13px;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.copy-status.success {
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.35);
}

.copy-status.error {
    color: #fecdd3;
    border-color: rgba(248, 113, 113, 0.35);
}

.note {
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

.note a {
    color: var(--text);
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
    body {
        padding: 20px 16px;
    }

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

    .copy-actions {
        flex-direction: row;
        align-items: center;
    }

    .ghost-btn {
        width: auto;
    }

    .copy-status {
        flex: 1;
    }
}
