:root {
    --bg: #fafaf8;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --text: #111111;
    --muted: #5b6470;
    --border: #e5e7eb;
    --border-strong: #d8dce3;
    --accent: #0f172a;
    --accent-soft: #f3f5f8;
    --success: #0f766e;
    --warning: #9a6700;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.04);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.04), transparent 32%),
        linear-gradient(180deg, #fcfcfb 0%, #f8f8f6 100%);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.ambient-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.55), transparent 92%);
    opacity: 0.4;
}

.site-shell,
.admin-shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.hero-grid,
.form-grid {
    display: grid;
    gap: 24px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    margin-bottom: 28px;
}

.hero-card,
.form-card,
.status-card,
.admin-table-card {
    padding: 36px;
}

.hero-sidebar,
.sidebar-stack {
    display: grid;
    gap: 24px;
}

.metric-card,
.sidebar-card,
.bento-card,
.summary-card {
    padding: 28px;
}

.hero-copy h1,
.status-card h1,
.admin-header h1,
.admin-login-card h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero-copy .lede,
.status-card .lede,
.admin-header p,
.admin-login-card p,
.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22c55e, #15803d);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16), 0 0 18px rgba(34, 197, 94, 0.45);
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16), 0 0 18px rgba(34, 197, 94, 0.45);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.92);
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08), 0 0 10px rgba(34, 197, 94, 0.2);
    }
}

.hero-points,
.feature-list,
.status-meta,
.admin-summary {
    display: grid;
    gap: 12px;
}

.hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
}

.info-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.metric-card strong,
.pricing-card h3,
.summary-card strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    margin-top: 12px;
}

.metric-card p,
.bento-card p,
.sidebar-card p,
.summary-card span {
    color: var(--muted);
    line-height: 1.7;
}

.accent-card {
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.accent-card .metric-label,
.accent-card p {
    color: rgba(255, 255, 255, 0.74);
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

.icon-wrap {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}

.icon-wrap svg {
    width: 20px;
    height: 20px;
}

.bento-card h2,
.section-heading h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.form-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.72fr);
    align-items: start;
}

.section-heading {
    margin-bottom: 28px;
}

.stack-form {
    display: grid;
    gap: 22px;
}

.field-grid {
    display: grid;
    gap: 18px;
}

.field-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
.choice-group {
    display: grid;
    gap: 10px;
}

.field span,
.choice-group legend {
    font-size: 0.96rem;
    font-weight: 700;
    padding: 0;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    padding: 15px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(15, 23, 42, 0.28);
    box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.choice-group {
    margin: 0;
    border: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
    padding: 18px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-card span {
    display: block;
    color: var(--text);
    font-weight: 500;
    line-height: 1.55;
}

.choice-card:has(input:checked) {
    border-color: rgba(15, 23, 42, 0.4);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.other-field {
    display: none;
}

.field-error {
    color: var(--danger);
    font-size: 0.88rem;
}

.submit-bar {
    display: grid;
    gap: 12px;
    padding-top: 6px;
}

.submit-bar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 15px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    border-color: var(--border);
}

.feature-list {
    padding-left: 18px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.notice {
    border-radius: var(--radius-md);
    padding: 16px 18px;
    border: 1px solid var(--border);
    line-height: 1.65;
}

.notice-success {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.18);
}

.notice-danger {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.18);
}

.notice-warning {
    background: rgba(154, 103, 0, 0.08);
    border-color: rgba(154, 103, 0, 0.16);
}

.status-shell,
.admin-login-shell {
    width: min(760px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.status-card {
    text-align: center;
}

.status-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 24px;
    display: grid;
    place-items: center;
}

.status-icon svg {
    width: 34px;
    height: 34px;
}

.status-success {
    background: rgba(15, 118, 110, 0.1);
    color: var(--success);
}

.status-failed,
.status-error {
    background: rgba(180, 35, 24, 0.1);
    color: var(--danger);
}

.status-pending {
    background: rgba(154, 103, 0, 0.1);
    color: var(--warning);
}

.status-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
}

.status-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-meta strong {
    font-size: 1rem;
}

.status-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-login-card {
    padding: 36px;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.admin-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.summary-card strong {
    font-size: 2rem;
}

.admin-table-card {
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.admin-table th,
.admin-table td {
    padding: 18px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.02);
}

.subtle-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 4px;
}

.clamp-text {
    max-width: 240px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-success {
    background: rgba(15, 118, 110, 0.1);
    color: var(--success);
}

.badge-danger {
    background: rgba(180, 35, 24, 0.1);
    color: var(--danger);
}

.badge-warning {
    background: rgba(154, 103, 0, 0.1);
    color: var(--warning);
}

.badge-muted {
    background: rgba(15, 23, 42, 0.08);
    color: var(--muted);
}

.empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 40px 16px;
}

@media (max-width: 980px) {
    .hero-grid,
    .form-grid,
    .bento-grid,
    .admin-summary {
        grid-template-columns: 1fr;
    }

    .hero-points,
    .field-grid.two-up,
    .choice-grid,
    .choice-grid.compact,
    .status-meta {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .site-shell,
    .admin-shell,
    .status-shell,
    .admin-login-shell {
        width: min(100vw - 20px, 100%);
    }

    .hero-card,
    .form-card,
    .status-card,
    .admin-table-card,
    .metric-card,
    .sidebar-card,
    .bento-card,
    .summary-card,
    .admin-login-card {
        padding: 24px;
        border-radius: 22px;
    }

    .hero-copy h1,
    .status-card h1,
    .admin-header h1,
    .admin-login-card h1 {
        font-size: 2.4rem;
    }
}
