:root {
    --ink: #0f172a;
    --night: #111827;
    --sand: #f3efe7;
    --gold: #f4b63d;
    --accent: #2f6b62;
    --coral: #ef7f5a;
    --sky: #80c7d9;
    --panel: rgba(17, 24, 39, 0.72);
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f7f3ea 0%, #fffdf9 42%, #f8fafc 100%);
    color: var(--ink);
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: "Space Grotesk", "Manrope", sans-serif;
}

.site-header {
    background: linear-gradient(135deg, #09111f, #1f2937 72%, #2f6b62);
    box-shadow: 0 18px 48px rgba(9, 17, 31, 0.2);
}

.navbar {
    min-height: 76px;
}

.hero-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(128, 199, 217, 0.22), transparent 20%),
        radial-gradient(circle at 86% 14%, rgba(244, 182, 61, 0.24), transparent 24%),
        linear-gradient(128deg, #07101c 0%, #13263f 42%, #204047 74%, #2f6b62 100%);
    color: #fff;
}

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

.hero-home::after {
    content: "";
    position: absolute;
    inset: auto -10% -18% auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(239, 127, 90, 0.16), transparent 66%);
    pointer-events: none;
}

.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(9, 17, 31, 0.12), transparent 44%),
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.1), transparent 26%),
        radial-gradient(circle at 78% 68%, rgba(128, 199, 217, 0.14), transparent 22%);
    opacity: 1;
    pointer-events: none;
}

.hero-home .container {
    z-index: 1;
}

.hero-home .row {
    position: relative;
    z-index: 1;
}

.py-lg-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.eyebrow {
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hero-copy {
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.hero-value-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-value-strip span {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-metric-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    box-shadow: 0 14px 34px rgba(7, 12, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-metric-card strong,
.hero-mini-stat strong {
    display: block;
    color: #fff;
}

.hero-metric-card span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
}

.hero-console {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(10, 18, 32, 0.76), rgba(16, 26, 43, 0.62));
    box-shadow: 0 34px 90px rgba(7, 12, 24, 0.4);
    overflow: hidden;
}

.hero-console-top {
    display: flex;
    gap: 0.45rem;
    padding: 1rem 1.1rem 0;
}

.hero-console-top span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.hero-console-body {
    padding: 1.1rem;
}

.hero-console-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
}

.hero-console-label {
    margin-bottom: 0.85rem;
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 182, 61, 0.92);
}

.hero-console-headline {
    margin-bottom: 0.7rem;
}

.hero-console-headline strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fff;
    font-size: 1.02rem;
}

.hero-console-headline span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}

.hero-news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-news-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.hero-news-item strong {
    display: block;
    color: #fff;
}

.hero-news-item span {
    display: block;
    margin-top: 0.22rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
}

.hero-news-dot {
    width: 0.72rem;
    height: 0.72rem;
    margin-top: 0.3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #fff3bd);
    flex-shrink: 0;
}

.hero-console-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.95rem;
}

.showcase-ribbon {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.showcase-ribbon-track {
    display: flex;
    gap: 1.9rem;
    padding: 0.95rem 1.4rem;
    white-space: nowrap;
    color: #334155;
}

.showcase-ribbon-track span {
    position: relative;
    padding-right: 1.8rem;
    font-weight: 600;
}

.showcase-ribbon-track span::after {
    content: "•";
    position: absolute;
    right: 0.6rem;
    color: var(--gold);
}

.hero-mini-stat {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
}

.hero-mini-stat span {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.glass-panel,
.app-card,
.contact-panel,
.filter-panel,
.metric-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.5rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.08);
}

.app-card,
.contact-panel,
.filter-panel,
.metric-card {
    background: rgba(255, 255, 255, 0.9);
}

.contact-panel,
.filter-panel,
.metric-card {
    padding: 1.5rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
}

.home-section-head h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
}

.home-app-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

[data-reveal-card] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal-card].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    border-color: rgba(47, 107, 98, 0.18);
}

.home-app-card-premium,
.app-card-premium {
    position: relative;
    overflow: hidden;
}

.home-app-card-premium::before,
.app-card-premium::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--coral), var(--sky), var(--accent));
}

.btn {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-warning {
    color: #0f172a;
    border: 0;
    background: linear-gradient(135deg, #ffd25b, #f5b93f 46%, #ef7f5a 100%);
    box-shadow: 0 20px 44px rgba(244, 182, 61, 0.34);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #0f172a;
    background: linear-gradient(135deg, #ffe07b, #f8c14a 52%, #f08d65 100%);
    box-shadow: 0 26px 48px rgba(244, 182, 61, 0.42);
}

.btn-dark {
    border-color: transparent;
    background: linear-gradient(135deg, #0e1724, #1a2740 44%, #2f6b62 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.26);
}

.btn-dark:hover,
.btn-dark:focus {
    background: linear-gradient(135deg, #162033, #213049 54%, #2a6058);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.3);
}

.btn-outline-dark {
    border-color: rgba(15, 23, 42, 0.22);
    background: rgba(255, 255, 255, 0.68);
    color: #172133;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    border-color: rgba(47, 107, 98, 0.42);
    background: rgba(47, 107, 98, 0.08);
    color: #102230;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.btn-hero-primary {
    padding-inline: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-hero-secondary {
    padding-inline: 1.7rem;
    font-weight: 600;
}

.btn-catalog-access {
    background: linear-gradient(135deg, #0e1724, #203454 52%, #2f6b62 100%);
}

.btn-catalog-sso {
    background: linear-gradient(135deg, #ffe07b, #f4b63d 44%, #ef7f5a 100%);
}

.home-app-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-app-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(47, 107, 98, 0.08));
    color: #243447;
    font-size: 0.8rem;
    font-weight: 700;
}

.home-app-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.rich-editor {
    border: 1px solid #ced4da;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.rich-editor-surface {
    min-height: 220px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: auto;
}

.rich-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: #6b7280;
    pointer-events: none;
}

.rich-editor-surface:focus {
    box-shadow: none;
    outline: 0;
}

.rich-editor-public .rich-editor-surface {
    min-height: 170px;
}

.rich-content p:last-child,
.rich-content ul:last-child,
.rich-content ol:last-child,
.rich-content blockquote:last-child {
    margin-bottom: 0;
}

.rich-content blockquote {
    border-left: 4px solid #d1d5db;
    padding-left: 1rem;
    color: #475569;
}

.rich-content h2,
.rich-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.page-header {
    background:
        radial-gradient(circle at left top, rgba(244, 182, 61, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(243, 239, 231, 0.78));
}

.platform-strip {
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top left, rgba(244, 182, 61, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

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

.platform-item {
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.74);
}

.platform-item strong {
    display: block;
    margin-bottom: 0.45rem;
}

.platform-item span {
    color: #5b667a;
}

.commerce-card {
    height: 100%;
    padding: 1.65rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top left, rgba(244, 182, 61, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
}

.commerce-card h3 {
    margin-top: 0.55rem;
    margin-bottom: 0.75rem;
    font-size: 1.45rem;
}

.commerce-card p {
    margin-bottom: 0;
    color: #5b667a;
}

.contact-side-note {
    padding: 1.1rem 1.2rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(47, 107, 98, 0.07));
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-side-note strong {
    display: block;
    margin-bottom: 0.4rem;
}

.home-contact-panel {
    border-radius: 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.site-footer {
    background: var(--night);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(244, 182, 61, 0.18), transparent 22%),
        radial-gradient(circle at bottom left, rgba(47, 107, 98, 0.22), transparent 28%);
    pointer-events: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.admin-body {
    background: #f8fafc;
}

.auth-body {
    background:
        radial-gradient(circle at top left, rgba(244, 182, 61, 0.18), transparent 24%),
        linear-gradient(135deg, #09111f 0%, #16263d 55%, #214d47 100%);
}

.auth-shell {
    color: var(--ink);
}

.admin-sidebar {
    background: linear-gradient(180deg, #0f172a, #1d3557);
}

.metric-card .progress {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
}

.metric-card .progress-bar {
    background: linear-gradient(90deg, #d97706, #2f6b62);
}

.settings-save-card {
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
    background:
        radial-gradient(circle at top left, rgba(244, 182, 61, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.94));
}

.settings-save-card .list-group-item {
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #334155;
    font-weight: 600;
}

.settings-save-card .list-group-item:last-child {
    border-bottom: 0;
}

.settings-section-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.settings-section-card .form-label {
    font-weight: 600;
}

.settings-section-card .form-control {
    border-radius: 0.95rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.news-inline-item:last-child,
.version-item:last-child {
    border-bottom: 0 !important;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.update-badge-minor,
.update-badge-normal {
    background: rgba(47, 107, 98, 0.12);
    color: #1f5c54;
}

.update-badge-important {
    background: rgba(244, 182, 61, 0.2);
    color: #8a5b00;
}

.update-badge-critical {
    background: rgba(215, 76, 76, 0.14);
    color: #a52828;
}

.update-badge-security {
    background: rgba(22, 101, 52, 0.14);
    color: #166534;
}

.update-badge-new {
    background: rgba(128, 199, 217, 0.2);
    color: #17566a;
}

.update-app-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, rgba(244, 182, 61, 0.22), rgba(47, 107, 98, 0.16));
    color: #183046;
    font-weight: 800;
}

.update-timeline {
    position: relative;
}

.update-note-card {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 1.1rem;
    background: rgba(248, 250, 252, 0.85);
}

.update-preview-card {
    top: 1.5rem;
}

.update-preview-section {
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: left;
    }

    body {
        background-position: center top;
    }

    .settings-save-card {
        position: static;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: none;
    }

    .update-preview-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .hero-console-grid {
        grid-template-columns: 1fr 1fr;
    }

    .platform-strip {
        padding: 1.5rem;
    }
}

.jsb-signature {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
    opacity: 0.55;
}
