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

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: #f9fafb;
}

/* Page shells */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page--dark {
    background-color: #020617;
}

.page--light {
    background-color: #f3f4f6;
    color: #111827;
}

.page--lead {
    background: radial-gradient(circle at 20% 15%, rgba(34, 197, 94, 0.16), transparent 36%),
                radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.18), transparent 32%),
                radial-gradient(circle at 50% 120%, rgba(34, 197, 94, 0.24), transparent 40%),
                #020617;
    color: #e5e7eb;
}

.page--admin {
    background: radial-gradient(circle at 14% 10%, rgba(34, 197, 94, 0.22), transparent 34%),
                radial-gradient(circle at 86% 12%, rgba(56, 189, 248, 0.2), transparent 32%),
                radial-gradient(circle at 50% 110%, rgba(34, 197, 94, 0.16), transparent 40%),
                #020617;
    color: #e5e7eb;
}

/* Top bar */

.top-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.05rem 3rem;
    background: linear-gradient(110deg, #060b1a 0%, #0c1428 42%, #0b1222 100%);
    color: #f9fafb;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 18px 50px rgba(3, 7, 18, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.top-bar--light {
    background: linear-gradient(110deg, #ffffff 0%, #f8fafc 40%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow:
        0 14px 40px rgba(15, 23, 42, 0.12),
        inset 0 -1px 0 rgba(148, 163, 184, 0.22);
}

.top-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(34, 197, 94, 0.18),
        rgba(14, 165, 233, 0.16),
        rgba(34, 197, 94, 0.08));
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: screen;
}

.top-bar__center {
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.top-bar__left,
.top-bar__right {
    min-width: 140px;
    display: flex;
    align-items: center;
}

.top-bar__left {
    justify-content: flex-start;
}

.top-bar__right {
    justify-content: flex-end;
}

.top-bar__right--nav {
    gap: 0.9rem;
}

.top-filler {
    opacity: 0.65;
}

/* Header links & nav */

.top-link {
    position: relative;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 0.15rem;
    transition: color 0.2s ease;
}

.top-link--brand {
    letter-spacing: 0.18em;
    font-weight: 600;
}

.top-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}

.top-link:hover::after,
.top-link:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-link {
    position: relative;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    color: inherit;
    opacity: 0.7;
    padding-bottom: 0.2rem;
    transition: opacity 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link--active {
    opacity: 1;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0.65;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link--active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Hero */

.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}

.hero--landing {
    position: relative;
    overflow: hidden;
}

/* Background image */
.hero--landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.02);
}

.hero__overlay--image {
    position: relative;
    z-index: 1;
    max-width: 980px;
    width: 100%;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    padding: 3.5rem 1.5rem;
}

.hero__content--center {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: #e5e7eb;
    margin-bottom: 2rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(34, 197, 94, 0.60);
    background: linear-gradient(135deg, #4ade80, #16a34a);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.55);
}

.btn-full {
    width: 100%;
}

/* Page main content */

.page-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 3rem 1.25rem 4rem;
}

/* Form card */

.form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.admin-shell {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2.5rem 1.25rem 3rem;
}

.admin-panel {
    width: 100%;
    max-width: 1180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.65);
    padding: 2rem 2.25rem 2.25rem;
    color: #e5e7eb;
}

.admin-panel__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.admin-panel__title {
    font-size: 1.35rem;
    margin: 0;
    color: #f8fafc;
}

.admin-panel__subtitle {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.98rem;
}

.admin-panel__section {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    padding: 1.5rem 1.4rem;
}

.admin-panel__section + .admin-panel__section {
    margin-top: 1rem;
}

.admin-panel__section h2 {
    margin: 0 0 0.75rem;
    color: #f8fafc;
}

.admin-panel__section p {
    color: #cbd5e1;
}

.form-wrapper--split {
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.form-wrapper--single {
    gap: 0;
}

.admin-flex {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.admin-flex--single {
    grid-template-columns: 1fr;
}

.form-card {
    flex: 1 1 520px;
    max-width: 900px;
    width: 100%;
    padding: 2.5rem 2.75rem 3rem;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #020617, #020617 55%, #020617 100%);
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(15, 23, 42, 0.6);
    color: #f9fafb;
}

.form-card--glow {
    position: relative;
    overflow: hidden;
}

.form-card--glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.16), transparent 36%),
                radial-gradient(circle at 82% 12%, rgba(56, 189, 248, 0.22), transparent 34%);
    pointer-events: none;
}

.page--light .form-card {
    background: radial-gradient(circle at top left, #020617, #020617 50%, #020617 100%);
    color: #f9fafb;
}

.form-card--admin {
    max-width: 480px;
}

.admin-panel .form-card--admin {
    max-width: 100%;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

.form-card__title {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
}

.form-card__copy {
    font-size: 0.98rem;
    color: #e5e7eb;
    margin-bottom: 0.9rem;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #bbf7d0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.benefit__icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f9fafb;
    font-weight: 700;
    font-size: 0.85rem;
}

.benefit__title {
    margin: 0;
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.98rem;
}

.benefit__copy {
    margin: 0.1rem 0 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.form-card__note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1rem;
}

.form-aside {
    flex: 1 1 320px;
    display: flex;
    min-width: 0;
}

.aside-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    padding: 1.5rem 1.6rem 1.6rem;
    color: #e2e8f0;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.6);
}

.aside-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    margin: 0 0 0.5rem;
}

.aside-title {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: #f8fafc;
    line-height: 1.4;
}

.aside-list {
    padding-left: 1.2rem;
    margin: 0 0 0.9rem;
    color: #cbd5e1;
    line-height: 1.55;
}

.aside-list li {
    margin-bottom: 0.35rem;
}

.aside-footer {
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

.insight-block {
    margin-top: 1.75rem;
    padding: 1rem 0.25rem 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

/* Fields */

.lead-form {
    margin-top: 1.5rem;
}

.field-group {
    margin-bottom: 1rem;
    width: 100%;
}

.field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.field-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
    color: #9ca3af;
}

.field-group input,
.editor-textarea,
textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background-color: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    color: #f9fafb;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.page--light .field-group input,
.page--light .editor-textarea {
    background-color: #0b1120;
    color: #f9fafb;
}

.field-group input::placeholder {
    color: #6b7280;
}

.field-group input:focus,
.editor-textarea:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5);
}

/* Alerts */

.alert {
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert--error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert--success {
    background-color: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Resources */

.resources .container {
    background-color: #ffffff;
    border-radius: 22px;
    padding: 2.75rem 2.4rem 3.25rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    max-width: 1200px;
    width: 100%;
}

.resources__content h1,
.resources__content h2,
.resources__content h3 {
    color: #111827;
}

.resources__content h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.resources__content h2 {
    font-size: 1.4rem;
    margin-top: 1.6rem;
    margin-bottom: 0.4rem;
}

.resources__content p {
    margin-bottom: 0.85rem;
}

.resources__content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.85rem;
}

.resources__content li {
    margin-bottom: 0.4rem;
}

.resources__content img,
.resources__content figure {
    max-width: 100%;
    height: auto;
    display: block;
}

.resources__content figure {
    margin: 1rem 0;
}

.resources__content img {
    border-radius: 12px;
}

.admin-panel .alert {
    border-radius: 10px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #0f172a;
}

.empty-state__icon {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.empty-state__title {
    margin: 0 0 0.6rem;
    font-size: 1.6rem;
    color: #111827;
}

.empty-state__copy {
    margin: 0.25rem 0;
    color: #374151;
}

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

.container--narrow {
    max-width: 1200px;
}

.container--wide {
    max-width: 1100px;
}

/* Admin editor */

.admin-editor .editor-textarea {
    min-height: 420px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background-color: #0b1120;
}

/* Footer */

.site-footer {
    position: relative;
    padding: 1.4rem 3rem 1.75rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    background:
        radial-gradient(circle at 12% 25%, rgba(34, 197, 94, 0.14), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.14), transparent 28%),
        #050a16;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 -18px 50px rgba(5, 12, 26, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.site-footer--light {
    background:
        radial-gradient(circle at 14% 20%, rgba(34, 197, 94, 0.12), transparent 30%),
        radial-gradient(circle at 86% 14%, rgba(56, 189, 248, 0.16), transparent 32%),
        #0b1224;
    color: #e2e8f0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow:
        0 -16px 40px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-inner--center {
    justify-content: center;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 64%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, #38bdf8, transparent);
    transform: translateX(-50%);
    opacity: 0.7;
}

/* Links */

a.link {
    color: #22c55e;
    text-decoration: none;
}

a.link:hover {
    text-decoration: underline;
}

/* Utility */

.settings-heading {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.container--narrow code {
    font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 900px) {
    .top-bar {
        padding: 0.6rem 1.25rem;
        flex-wrap: wrap;
        row-gap: 0.4rem;
    }

    .top-bar__left,
    .top-bar__right {
        min-width: auto;
    }

    .top-bar__center {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 0.2rem;
    }

    .top-bar__right--nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero__overlay--image {
        padding: 2.8rem 1.2rem;
    }

    .form-card {
        padding: 2rem 1.5rem 2.5rem;
    }

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

    .form-wrapper--split {
        flex-direction: column;
    }

    .site-footer {
        padding-inline: 1.5rem;
    }

    .admin-flex {
        grid-template-columns: 1fr;
    }

    .admin-panel {
        padding: 1.5rem 1.25rem 1.75rem;
    }
}
