:root {
    --bg: #0f172a;
    --card: #0b1120;
    --card-alt: #020617;
    --accent: #22c55e;
    --accent-soft: rgba(34, 197, 94, 0.12);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #1f2937;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #1d283a, #020617 55%);
    color: var(--text-main);
}

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

.shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.badge {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: conic-gradient(from 180deg, #22c55e, #06b6d4, #4f46e5, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(34, 197, 94, 0.5);
}

.badge span {
    font-size: 22px;
    font-weight: 700;
    color: #020617;
}

h1 {
    font-size: 1.6rem;
    margin: 0;
}

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

.cta-area {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #021015;
    font-weight: 600;
    box-shadow: 0 16px 35px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.btn-ghost {
    border-color: var(--border);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
}

/* Hero */
.hero {
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%);
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 1.4rem 1.4rem 1.7rem;
    margin-bottom: 2rem;
}

.hero h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}

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

.hero-list {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-pill {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.85);
}

.hero-pill strong {
    color: var(--accent);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-area {
        justify-content: flex-start;
    }
}

/* Cards */
.card {
    background: linear-gradient(145deg, var(--card), var(--card-alt));
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.5);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.card small {
    color: var(--text-muted);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

th, td {
    padding: 0.35rem 0.35rem;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
}

tbody tr:hover {
    background: rgba(15, 23, 42, 0.8);
}

.muted {
    color: var(--text-muted);
}

.pill {
    display: inline-flex;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #bbf7d0;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}
/* ========== Page layouts for forms (register / confirm) ========== */

.page-narrow {
    max-width: 640px;
    margin: 0 auto 3rem;
}

.page-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.page-intro {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Alerts */

.alert {
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.65);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: #bbf7d0;
}

/* Form card */

.form-card {
    margin-top: 1.1rem;
    padding: 1.1rem 1.1rem 1.3rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #1f2937;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.6);
}

.form-card label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="url"] {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.form-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

/* Panels & API key box */

.panel {
    margin-top: 1.2rem;
    padding: 1.25rem 1.25rem 1.4rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #1f2937;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.6);
}

.api-key-box {
    margin-top: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px dashed var(--accent);
    background: rgba(15, 23, 42, 0.9);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

/* Back link */

.back-link {
    margin-top: 1.2rem;
    font-size: 0.85rem;
}

.docs .docs-section {
    margin-top: 1.5rem;
}

.docs .docs-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.code-block {
    margin: 0.4rem 0 0.8rem;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #1f2937;
    padding: 0.6rem 0.7rem;
    overflow-x: auto;
    font-size: 0.8rem;
}

.code-block pre {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.wf-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wf-hero-copy {
    max-width: 720px;
}

.wf-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wf-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.wf-cta-row-center {
    justify-content: center;
}

.wf-cta-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.wf-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.wf-btn-primary:hover {
    background: #1d4ed8;
}

.wf-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.wf-btn-secondary:hover {
    background: #d1d5db;
}

.wf-btn-outline {
    background: transparent;
    color: #2563eb;
    border-color: #2563eb;
}

.wf-btn-outline:hover {
    background: #eff6ff;
}

/* Steps / diagram */
.wf-steps {
    gap: 1.5rem;
}

.wf-step-card {
    text-align: left;
    position: relative;
    padding-top: 2.5rem;
}

.wf-step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(15, 23, 42, 0.12);
}

/* Timeline */
.wf-timeline {
    position: relative;
    margin: 2rem 0 1.5rem;
    padding-left: 1.75rem;
}

.wf-timeline::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
}

.wf-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.wf-timeline-dot {
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 2px solid #2563eb;
    background: #ffffff;
}

.wf-timeline-content {
    margin-left: 1.75rem;
}

.sfs-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #0057ff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.25s;
    border: 1px solid #0044cc;
}

.sfs-btn:hover {
    background: #0044cc;
}

.sfs-btn-secondary {
    background: #e5e7eb;
    color: #111 !important;
    border: 1px solid #d0d3d8;
}

.sfs-btn-secondary:hover {
    background: #d7dadf;
}
