:root {
    --pri-bg: #07080b;
    --pri-bg-deep: #0d1014;
    --pri-surface: rgba(19, 22, 29, 0.94);
    --pri-surface-soft: rgba(24, 28, 36, 0.88);
    --pri-surface-elevated: rgba(32, 36, 46, 0.92);
    --pri-surface-muted: rgba(43, 48, 59, 0.72);
    --pri-text: #f4ebdd;
    --pri-text-soft: #b0a594;
    --pri-text-faint: #8f8576;
    --pri-line: rgba(255, 244, 226, 0.10);
    --pri-line-strong: rgba(201, 161, 105, 0.26);
    --pri-accent: #c9a169;
    --pri-accent-strong: #e0bf8d;
    --pri-accent-deep: #7d6039;
    --pri-plum: rgba(86, 59, 89, 0.22);
    --pri-olive: rgba(88, 98, 72, 0.18);
    --pri-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --pri-shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html {
    background: #07080b;
}

body {
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 161, 105, 0.12), transparent 26%),
        radial-gradient(circle at 84% 12%, rgba(86, 59, 89, 0.18), transparent 22%),
        radial-gradient(circle at 56% 84%, rgba(88, 98, 72, 0.14), transparent 28%),
        linear-gradient(180deg, #060709 0%, #0d1014 48%, #07080b 100%);
    color: var(--pri-text);
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.42;
    animation: auraDrift 18s ease-in-out infinite alternate;
}

body::before {
    top: -7rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(201, 161, 105, 0.32) 0%, rgba(201, 161, 105, 0) 68%);
}

body::after {
    bottom: -8rem;
    left: -7rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(circle, rgba(86, 59, 89, 0.28) 0%, rgba(86, 59, 89, 0) 68%);
    animation-delay: -9s;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--pri-text);
    letter-spacing: -0.035em;
}

body,
.text-on-surface,
.text-slate-900 {
    color: var(--pri-text) !important;
}

.text-on-surface-variant,
.text-slate-600,
.text-slate-500 {
    color: var(--pri-text-soft) !important;
}

.text-primary,
.text-blue-600 {
    color: var(--pri-accent-strong) !important;
}

.text-on-secondary-container {
    color: #e7c995 !important;
}

.text-on-primary {
    color: #fbf4ea !important;
}

.text-on-primary-container {
    color: #fbf1df !important;
}

.text-white {
    color: #f8f2e8 !important;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.site-shell > * {
    position: relative;
    z-index: 1;
}

#navbar-placeholder,
#navbar-placeholder nav {
    z-index: 220 !important;
}

.bg-surface {
    background: transparent !important;
}

.bg-surface-container-low {
    background:
        linear-gradient(180deg, rgba(16, 19, 25, 0.88), rgba(23, 27, 35, 0.92)) !important;
}

.bg-surface-container-lowest,
.bg-white {
    background:
        linear-gradient(180deg, rgba(21, 25, 32, 0.95), rgba(28, 32, 41, 0.94)) !important;
}

.bg-surface-container-highest,
.bg-surface-container-high,
.bg-slate-100,
.bg-slate-200,
.bg-slate-300 {
    background:
        linear-gradient(180deg, rgba(32, 36, 46, 0.88), rgba(22, 26, 34, 0.92)) !important;
}

.bg-secondary-container {
    background:
        linear-gradient(135deg, rgba(201, 161, 105, 0.12), rgba(86, 59, 89, 0.16)) !important;
}

.bg-primary-container {
    background:
        linear-gradient(135deg, rgba(201, 161, 105, 0.18), rgba(125, 96, 57, 0.20)) !important;
}

.bg-primary,
.bg-on-primary-fixed {
    background:
        linear-gradient(135deg, #7a5d39 0%, #b08852 45%, #d1aa74 100%) !important;
}

.bg-primary-dim {
    background: #8c6940 !important;
}

.bg-slate-900 {
    background:
        linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(16, 18, 24, 0.98)) !important;
}

[class*="bg-white/10"] {
    background-color: rgba(255, 244, 226, 0.08) !important;
}

[class*="bg-white/15"] {
    background-color: rgba(255, 244, 226, 0.12) !important;
}

[class*="bg-white/20"] {
    background-color: rgba(255, 244, 226, 0.16) !important;
}

[class*="bg-white/80"] {
    background-color: rgba(16, 19, 26, 0.84) !important;
}

.border-slate-100,
.border-slate-200,
.border-slate-300,
.border-blue-600,
.border-outline-variant,
[class*="border-outline-variant"] {
    border-color: var(--pri-line) !important;
}

.shadow-sm,
.shadow-lg,
.shadow-xl,
.shadow-2xl,
[class*="shadow-["] {
    box-shadow: var(--pri-shadow) !important;
}

main > section {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

main > section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.05), transparent 22%),
        radial-gradient(circle at 86% 18%, rgba(201, 161, 105, 0.06), transparent 20%);
}

main > section > * {
    position: relative;
    z-index: 1;
}

body.home-page main > section:first-of-type::after,
body.services-page main > section:first-of-type::after,
body.ecommerce-page main > section:first-of-type::after,
body.support-page main > section:first-of-type::after,
body.about-page main > section:first-of-type::after,
body.blog-page main > section:first-of-type::after,
body.contact-page main > section:first-of-type::after,
body.faq-page main > section:first-of-type::after,
body.login-page main > section:first-of-type::after,
body.portal-page main > section:first-of-type::after {
    content: "";
    position: absolute;
    right: clamp(-5rem, -2vw, -1rem);
    top: clamp(2rem, 5vw, 4rem);
    width: clamp(15rem, 30vw, 23rem);
    height: clamp(18rem, 34vw, 26rem);
    border-radius: 2.25rem;
    border: 1px solid rgba(255, 244, 226, 0.08);
    box-shadow: var(--pri-shadow);
    opacity: 0.16;
    transform: rotate(8deg);
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 0;
    animation: floatPanel 14s ease-in-out infinite;
}

body.home-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=80");
}

body.services-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80");
}

body.ecommerce-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1556740749-887f6717d7e4?auto=format&fit=crop&w=900&q=80");
}

body.support-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=900&q=80");
}

body.about-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80");
}

body.blog-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=900&q=80");
}

body.contact-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=900&q=80");
}

body.faq-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=900&q=80");
}

body.login-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=900&q=80");
}

body.portal-page main > section:first-of-type::after {
    background-image:
        linear-gradient(180deg, rgba(7, 9, 13, 0.65), rgba(7, 9, 13, 0.30)),
        url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=900&q=80");
}

nav {
    background: rgba(8, 10, 14, 0.84) !important;
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 244, 226, 0.06);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.30);
}

nav::after {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 161, 105, 0.28), transparent);
}

nav .text-xl {
    position: relative;
    padding-left: 1.6rem;
    color: var(--pri-text) !important;
}

nav .text-xl::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e2c08d, #7d6039);
    box-shadow: 0 0 0 5px rgba(201, 161, 105, 0.10);
}

nav .nav-link {
    color: var(--pri-text-soft) !important;
    position: relative;
}

nav .nav-link:hover {
    color: var(--pri-accent-strong) !important;
}

nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pri-accent), #f0d6ac);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}

nav .nav-link:hover::after,
nav .text-blue-600::after {
    transform: scaleX(1);
}

nav .text-blue-600,
nav .font-bold.nav-link {
    color: var(--pri-accent-strong) !important;
}

nav .border-b-2 {
    border-bottom-color: rgba(201, 161, 105, 0.42) !important;
}

#mobile-menu {
    background: rgba(8, 10, 14, 0.96) !important;
    border-top: 1px solid rgba(255, 244, 226, 0.06) !important;
}

footer {
    background:
        radial-gradient(circle at top right, rgba(201, 161, 105, 0.18), transparent 28%),
        linear-gradient(180deg, #0b0d12 0%, #07080b 100%) !important;
    border-top: 1px solid rgba(255, 244, 226, 0.08);
}

footer .text-slate-900,
footer .text-slate-500,
footer .text-slate-600,
footer .text-white {
    color: var(--pri-text-soft) !important;
}

footer a {
    color: var(--pri-text-soft) !important;
}

footer a:hover,
footer h4,
footer span {
    color: var(--pri-text) !important;
}

footer .border-t {
    border-color: rgba(255, 244, 226, 0.08) !important;
}

footer .material-symbols-outlined {
    color: var(--pri-accent-strong);
}

.signature-gradient,
.bg-gradient-to-br.from-primary.to-primary-container {
    background:
        linear-gradient(135deg, #2b2217 0%, #6f5430 36%, #c9a169 74%, #e3c89c 100%) !important;
    background-size: 180% 180% !important;
    animation: premiumFlow 14s ease infinite;
}

.signature-gradient h2,
.signature-gradient p {
    color: #fff6e8 !important;
}

.rounded-xl,
.rounded-2xl,
.rounded-3xl {
    border: 1px solid rgba(255, 244, 226, 0.06);
}

.bg-surface-container-low,
.bg-surface-container-lowest,
.bg-surface-container-highest,
.bg-white,
.bg-slate-100,
.bg-slate-200,
.bg-slate-300 {
    backdrop-filter: blur(18px);
}

a,
button,
input,
textarea {
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease,
        border-color 0.24s ease,
        color 0.24s ease,
        opacity 0.24s ease;
}

a[href].bg-primary,
a[href].bg-on-primary-fixed,
button.bg-primary,
button.bg-on-primary-fixed,
button[type="submit"] {
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 244, 226, 0.22) !important;
}

a[href].bg-primary:hover,
a[href].bg-on-primary-fixed:hover,
button.bg-primary:hover,
button.bg-on-primary-fixed:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow:
        0 24px 44px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 244, 226, 0.28) !important;
}

main .rounded-2xl,
main .rounded-3xl,
main .rounded-\[2rem\] {
    border: 1px solid rgba(255, 244, 226, 0.08);
}

main article.rounded-3xl,
main .group.rounded-2xl,
main .group.rounded-3xl,
main .review-card,
main .rounded-\[2rem\].bg-gradient-to-br {
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

main article.rounded-3xl:hover,
main .group.rounded-2xl:hover,
main .group.rounded-3xl:hover,
main .review-card:hover,
main .rounded-\[2rem\].bg-gradient-to-br:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 161, 105, 0.18);
    box-shadow:
        0 26px 54px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 244, 226, 0.04) !important;
}

main img {
    filter: saturate(0.92) contrast(1.04);
}

main img.grayscale {
    filter: grayscale(0.92) contrast(1.06) brightness(0.92);
}

main img.grayscale:hover {
    filter: grayscale(0.12) saturate(0.94) contrast(1.08) brightness(0.98);
}

a:hover,
button:hover {
    transform: translateY(-2px);
}

img {
    box-shadow: var(--pri-shadow-soft);
}

input,
textarea {
    background: rgba(12, 15, 21, 0.88) !important;
    border: 1px solid rgba(255, 244, 226, 0.08) !important;
    color: var(--pri-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: rgba(176, 165, 148, 0.72) !important;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 161, 105, 0.12) !important;
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.review-card {
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.review-card.is-transitioning {
    opacity: 0.55;
    transform: translateY(8px);
}

.review-rating-star {
    color: var(--pri-accent-strong);
    font-size: 1.3rem;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.review-rating-star.is-empty {
    color: rgba(255, 244, 226, 0.16);
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.review-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 244, 226, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.review-indicator.is-active {
    background: var(--pri-accent);
    transform: scale(1.15);
}

.form-status {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.form-status--pending {
    background: rgba(48, 43, 34, 0.82);
    color: #eed9b9;
    border-color: rgba(201, 161, 105, 0.16);
    position: relative;
}

.form-status--pending::after {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.75rem;
    border: 2px solid rgba(238, 217, 185, 0.28);
    border-top-color: #eed9b9;
    border-radius: 999px;
    display: inline-block;
    vertical-align: middle;
    animation: formSpin 0.8s linear infinite;
}

.form-status--success {
    background: rgba(28, 51, 43, 0.82);
    color: #cfe6d6;
    border-color: rgba(114, 170, 139, 0.18);
}

.form-status--error {
    background: rgba(63, 28, 35, 0.84);
    color: #f4c5cf;
    border-color: rgba(204, 96, 120, 0.18);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-submit.is-loading {
    opacity: 0.92;
    cursor: wait;
}

.form-submit.is-loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.30);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: formSpin 0.8s linear infinite;
}

[data-portal-logout] {
    background: rgba(255, 244, 226, 0.10) !important;
    color: #fff6e8 !important;
    border: 1px solid rgba(255, 244, 226, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    min-width: 6.8rem;
}

[data-portal-logout]:hover {
    background: rgba(255, 244, 226, 0.16) !important;
    border-color: rgba(255, 244, 226, 0.28) !important;
    transform: translateY(-1px);
}

[data-portal-logout].is-loading::after {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
}

.form-field-error {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #f0b7c3;
    font-weight: 600;
}

input.is-invalid,
textarea.is-invalid {
    box-shadow: 0 0 0 2px rgba(204, 96, 120, 0.20) !important;
    border-color: rgba(204, 96, 120, 0.8) !important;
}

input.is-valid,
textarea.is-valid {
    box-shadow: 0 0 0 2px rgba(113, 170, 139, 0.20) !important;
    border-color: rgba(113, 170, 139, 0.8) !important;
}

.form-label-error {
    color: #f0b7c3 !important;
}

.service-choice {
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.service-choice:hover {
    transform: translateY(-1px);
}

.service-choice.is-invalid-choice {
    box-shadow: 0 0 0 2px rgba(204, 96, 120, 0.18);
}

.service-choice.is-valid-choice {
    box-shadow: 0 0 0 2px rgba(113, 170, 139, 0.18);
}

.is-invalid-group,
.is-valid-group {
    border-radius: 1rem;
    padding: 0.25rem;
    transition: box-shadow 0.2s ease;
}

.is-invalid-group {
    box-shadow: 0 0 0 2px rgba(204, 96, 120, 0.14);
}

.is-valid-group {
    box-shadow: 0 0 0 2px rgba(113, 170, 139, 0.14);
}

@supports (selector(.reveal.active)) {
    .reveal:not(.active) {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.8s ease-out;
    }
}

@keyframes premiumFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes auraDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(1.5rem, -1rem, 0) scale(1.08);
    }
}

@keyframes floatPanel {
    0%,
    100% {
        transform: translateY(0) rotate(8deg);
    }
    50% {
        transform: translateY(-1rem) rotate(6deg);
    }
}

@keyframes formSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    body.home-page main > section:first-of-type::after,
    body.services-page main > section:first-of-type::after,
    body.ecommerce-page main > section:first-of-type::after,
    body.support-page main > section:first-of-type::after,
    body.about-page main > section:first-of-type::after,
    body.blog-page main > section:first-of-type::after,
    body.contact-page main > section:first-of-type::after,
    body.faq-page main > section:first-of-type::after,
    body.login-page main > section:first-of-type::after,
    body.portal-page main > section:first-of-type::after {
        width: 12rem;
        height: 14rem;
        right: -2.5rem;
        top: 1.5rem;
        opacity: 0.10;
    }
}

@media (max-width: 768px) {
    body::before,
    body::after {
        opacity: 0.26;
    }

    nav .text-xl::before {
        width: 0.7rem;
        height: 0.7rem;
    }

    main > section::before {
        background:
            radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.04), transparent 22%),
            radial-gradient(circle at 86% 16%, rgba(201, 161, 105, 0.05), transparent 18%);
    }
}
