:root {
    --navy: #101826;
    --navy-2: #1b2733;
    --blue: #0a6fd1;
    --blue-light-accent: #2f93ec;
    --blue-dark: #04366b;
    --blue-tint: #eaf3fd;
    --text: #1b2733;
    --muted: #64748b;
    --border: #e6ebf1;
    --bg: #f6f8fb;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --error: #dc2626;
    --error-bg: #fee2e2;
    --info: #0a6fd1;
    --info-bg: #eaf3fd;
    --warn: #b45309;
    --warn-bg: #fef3c7;
    --shadow: 0 1px 2px rgba(16, 24, 38, 0.04), 0 4px 16px rgba(16, 24, 38, 0.06);
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 72px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
    color: var(--navy-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.btn, .main-nav a.btn:hover { color: white; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-light-accent), var(--blue-dark));
    color: white;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(10, 111, 209, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(10, 111, 209, 0.35); opacity: 0.97; }
.btn-small { padding: 8px 16px; font-size: 0.88rem; box-shadow: none; }
.btn-secondary {
    background: white;
    color: var(--navy-2);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-secondary:hover { background: var(--bg); border-color: var(--blue); color: var(--blue); transform: none; }

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: 90px 20px 70px;
    margin: -1px -24px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 147, 236, 0.35), transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(10, 111, 209, 0.25), transparent 40%),
        linear-gradient(160deg, var(--navy) 0%, var(--blue-dark) 100%);
    color: white;
    border-radius: 0 0 28px 28px;
}
.hero h1 { font-size: 2.75rem; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { color: #cbd8ea; max-width: 620px; margin: 0 auto 32px; font-size: 1.15rem; }
.hero .btn { font-size: 1.05rem; padding: 14px 32px; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 56px;
}
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16, 24, 38, 0.1); }
.feature-card h3 { margin: 0 0 10px; color: var(--navy-2); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-tint);
    color: var(--blue);
    margin-bottom: 16px;
}

.pricing-teaser { text-align: center; margin-top: 64px; padding: 8px 20px 0; }
.pricing-teaser h2 { color: var(--navy-2); margin-bottom: 6px; }

/* ---------- Forms / cards ---------- */
.page { padding: 44px 24px 90px; min-height: 60vh; }

.auth-form {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.auth-form h1 { margin-top: 0; color: var(--navy-2); }
.auth-form h2 { color: var(--navy-2); font-size: 1.15rem; margin: 28px 0 6px; }
.auth-form h2:first-of-type { margin-top: 20px; }
.auth-form h3 { color: var(--navy-2); font-size: 1rem; margin: 16px 0 6px; }
.auth-form form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--navy-2); }
.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password],
.auth-form input[type=file],
.auth-form select,
.auth-form textarea {
    font-weight: normal;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 1rem;
    font-family: inherit;
    background: #fbfcfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 111, 209, 0.15);
    background: white;
}
.auth-form p { color: var(--muted); }
.auth-form p a { color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-form p a:hover { text-decoration: underline; }

fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
fieldset legend { font-weight: 700; margin-bottom: 6px; padding: 0; color: var(--navy-2); }

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    font-weight: normal;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.option-card:hover { border-color: var(--blue-light-accent); }
.option-card input { margin-top: 4px; accent-color: var(--blue); }
.option-card:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-heading h1 { color: var(--navy-2); margin: 0; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--blue-tint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue-dark); font-weight: 700; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table a { color: var(--blue); text-decoration: none; font-weight: 600; }
.data-table a:hover { text-decoration: underline; }

/* ---------- Badges / flash ---------- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--info-bg);
    color: var(--info);
}
.badge-live { background: var(--success-bg); color: var(--success); }
.badge-submitted { background: var(--info-bg); color: var(--info); }
.badge-in_progress { background: var(--warn-bg); color: var(--warn); }
.badge-awaiting_files, .badge-awaiting_env, .badge-awaiting_db { background: #f1f5f9; color: var(--muted); }

.flash {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.flash ul { margin: 0; padding-left: 20px; }
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--error-bg); color: var(--error); }
.flash-info { background: var(--info-bg); color: var(--blue-dark); }

.detail-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.detail-card h2 { margin-top: 0; font-size: 1.1rem; color: var(--navy-2); }
.detail-card dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 16px; margin: 0; }
.detail-card dt { color: var(--muted); }
.detail-card dd { margin: 0; }

.file-list, .note-list { list-style: none; padding: 0; margin: 0; }
.file-list li, .note-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.file-list li:last-child, .note-list li:last-child { border-bottom: none; }
.muted { color: var(--muted); font-size: 0.9rem; }

.env-row { display: flex; gap: 10px; margin-bottom: 10px; }
.env-row input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 9px; }
.form-actions { margin-top: 16px; }

.ns-list { list-style: none; padding: 0; }
.ns-list li { padding: 6px 0; }
.ns-list code { background: var(--blue-tint); color: var(--blue-dark); padding: 5px 12px; border-radius: 7px; font-weight: 600; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-bar a {
    text-decoration: none;
    color: var(--muted);
    background: white;
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease;
}
.filter-bar a:hover { border-color: var(--blue-light-accent); color: var(--blue); }
.filter-bar a.active { background: var(--navy-2); color: white; border-color: var(--navy-2); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: #94a3b8;
    text-align: center;
    padding: 28px;
    font-size: 0.88rem;
}

code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    .page { padding: 0; }
    .detail-card { box-shadow: none; border: 1px solid #ccc; }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .detail-card dl { grid-template-columns: 1fr; }
}
