@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #0f172a;
    --primary-hover: #111827;
    --accent: #5eead4;
    --bg-color: #0b0c10;
    --card-bg: #0f1117;
    --text-main: #f8fafc;
    --text-muted: #d1d5db;
    --border-color: #1f2937;
    --success: #22c55e;
    --error: #ef4444;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.08), transparent 25%), radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.08), transparent 25%), var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

 .container {
    width: 100%;
    max-width: 700px;
    padding: 30px 20px 60px;
}

.hero {
    margin-bottom: 24px;
    padding: 12px;
    text-align: left;
    color: #f8fafc;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--accent);
    margin: 0 0 8px 0;
}

.hero h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #f8fafc;
    letter-spacing: -0.03em;
}

.hero .sub {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.pill-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(94,234,212,0.15);
    color: #bbf7d0;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 auto 12px;
    text-align: center;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f8fafc;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 2.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.04);
}

.hidden {
    display: none;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

input[type="email"],
input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: rgba(15, 17, 23, 0.8);
    color: var(--text-main);
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

button {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-weight: 700;
    padding: 0.95rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
}

button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Steps Animation */
.step {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loader */
#loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(94, 234, 212, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Area */
pre {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 2rem;
}

code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.success-icon {
    width: 48px;
    height: 48px;
    background-color: #d1fae5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon svg {
    width: 24px;
    height: 24px;
}

.hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    background-color: #eff6ff;
    padding: 0.75rem;
    border-radius: 6px;
    color: #1e40af;
}

#error-box {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}
