:root {
    --brand-ink: #0f172a;
    --brand-muted: #546174;
    --brand-accent: #4f6ef7;
    --brand-accent-2: #2fb5b0;
    --brand-accent-3: #ff7a59;
    --brand-surface: rgba(255, 255, 255, 0.88);
    --brand-surface-strong: rgba(255, 255, 255, 0.96);
    --brand-border: rgba(15, 23, 42, 0.1);
    --brand-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    --brand-shadow-lg: 0 30px 72px rgba(15, 23, 42, 0.18);
    --brand-gradient: linear-gradient(135deg, #0d47a1 0%, #2563eb 48%, #0dcaf0 100%);
    --brand-gradient-dark: linear-gradient(135deg, #091022 0%, #14367f 56%, #1497d4 100%);
    --brand-gradient-warm: linear-gradient(135deg, #091022 0%, #8f5d11 54%, #ffb347 100%);
    --brand-gradient-mint: linear-gradient(135deg, #091022 0%, #115e59 54%, #2fb5b0 100%);
}

.brand-public-page,
.brand-app-page {
    position: relative;
}

.brand-public-page {
    color: var(--brand-ink);
    background:
        radial-gradient(120% 80% at 8% 10%, rgba(255, 122, 89, 0.14), transparent 58%),
        radial-gradient(120% 70% at 90% 0%, rgba(79, 110, 247, 0.16), transparent 55%),
        linear-gradient(160deg, #f7f9fc 0%, #eef3f9 44%, #f6f8fc 100%);
    min-height: 100vh;
    overflow: hidden;
}

.brand-public-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.22;
    pointer-events: none;
}

.brand-public-page > *,
.brand-app-page > * {
    position: relative;
    z-index: 1;
}

.brand-public-page .hero-section-small,
.brand-app-page .hero-section-small {
    padding: 72px 0 54px;
    position: relative;
    overflow: hidden;
}

.brand-public-page .hero-section-small::before,
.brand-app-page .hero-section-small::before {
    background:
        linear-gradient(135deg, rgba(9, 16, 34, 0.24), rgba(15, 118, 190, 0.08)),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16), transparent 32%),
        radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.14), transparent 32%);
}

.brand-hero--about,
.brand-hero--pricing,
.brand-hero--stories {
    background: var(--brand-gradient-dark);
}

.brand-hero--warm {
    background: var(--brand-gradient-warm);
}

.brand-hero--cool,
.brand-hero--steps {
    background: var(--brand-gradient-mint);
}

.brand-public-page .hero-section-small .lead,
.brand-app-page .hero-section-small .lead {
    color: rgba(255, 255, 255, 0.84);
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(9, 16, 34, 0.14);
    backdrop-filter: blur(10px);
}

.brand-hero-stats {
    margin-top: 2rem;
}

.brand-hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 36px rgba(9, 16, 34, 0.16);
    backdrop-filter: blur(12px);
}

.brand-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.brand-hero-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.brand-breadcrumb {
    background: rgba(255, 255, 255, 0.72) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.brand-breadcrumb .breadcrumb-item,
.brand-breadcrumb .breadcrumb-item.active {
    color: var(--brand-muted);
    font-weight: 500;
}

.brand-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(84, 97, 116, 0.6);
}

.brand-breadcrumb a {
    color: #0d47a1;
    font-weight: 700;
    text-decoration: none;
}

.brand-breadcrumb a:hover {
    color: #2563eb;
}

.brand-public-page .bg-light,
.brand-app-page .bg-light {
    background-color: rgba(255, 255, 255, 0.62) !important;
    backdrop-filter: blur(10px);
}

.brand-public-page .card,
.brand-public-page .accordion-item,
.brand-public-page .table,
.brand-public-page .table-responsive {
    border: 1px solid var(--brand-border);
    border-radius: 24px;
    background: var(--brand-surface);
    box-shadow: var(--brand-shadow);
}

.brand-public-page .card {
    backdrop-filter: blur(14px);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.brand-public-page .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-shadow-lg);
}

.brand-public-page .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    background: var(--brand-gradient);
    color: #ffffff;
}

.brand-public-page .card-header.bg-warning,
.brand-public-page .card-header.text-dark {
    background: linear-gradient(135deg, #ffcb63 0%, #ff8a5c 100%);
    color: #0f172a !important;
}

.brand-public-page .card-header.bg-info {
    background: linear-gradient(135deg, #14367f 0%, #1497d4 100%);
}

.brand-public-page .card-header.bg-primary {
    background: linear-gradient(135deg, #0d47a1 0%, #2563eb 100%);
}

.brand-public-page .card-header.bg-success {
    background: linear-gradient(135deg, #0f766e 0%, #2fb5b0 100%);
}

.brand-public-page .card-header.bg-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.95));
    color: var(--brand-ink);
}

.brand-public-page .btn-primary,
.brand-public-page .bg-primary {
    background: var(--brand-gradient) !important;
    border-color: transparent !important;
}

.brand-public-page .btn-primary:hover,
.brand-public-page .btn-primary:focus {
    box-shadow: 0 16px 32px rgba(79, 110, 247, 0.24);
}

.brand-public-page .btn-outline-primary {
    border-color: rgba(79, 110, 247, 0.3);
    color: #12337c;
}

.brand-public-page .btn-outline-primary:hover,
.brand-public-page .btn-outline-primary.active,
.brand-public-page .btn-outline-primary:focus {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #ffffff;
}

.brand-public-page .progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
}

.brand-public-page .progress-bar {
    border-radius: 999px;
}

.brand-public-page .table {
    overflow: hidden;
}

.brand-public-page .table thead th {
    background: rgba(13, 71, 161, 0.06);
    color: var(--brand-ink);
    font-weight: 700;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.brand-public-page .table tbody tr:hover td {
    background: rgba(79, 110, 247, 0.04);
}

.brand-public-page .accordion-button {
    font-weight: 700;
    color: var(--brand-ink);
    border-radius: 20px !important;
    box-shadow: none;
}

.brand-public-page .accordion-button:not(.collapsed) {
    color: #12337c;
    background: rgba(79, 110, 247, 0.08);
}

.brand-public-page .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 110, 247, 0.14);
}

.calculator-page .score-type-btn {
    border-radius: 18px;
    min-height: 74px;
    font-weight: 700;
}

.pricing-page .billing-toggle {
    min-height: auto;
}

.pricing-page .table-responsive {
    background: transparent;
}

.pricing-page .table {
    margin-bottom: 0;
}

.how-page .step-card,
.how-page .feature-card {
    background: var(--brand-surface-strong);
}

.site-footer .footer-list a[href="pricing.php"],
.site-footer .footer-list a[href="study-materials.php"] {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .brand-public-page .hero-section-small,
    .brand-app-page .hero-section-small {
        padding: 56px 0 42px;
    }

    .brand-hero-stats {
        row-gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .brand-chip {
        width: 100%;
    }

    .brand-hero-stat {
        text-align: center;
    }

    .brand-public-page .card,
    .brand-public-page .accordion-item,
    .brand-public-page .table,
    .brand-public-page .table-responsive {
        border-radius: 20px;
    }
}
