:root {
    --black: #050208;
    --night: #08030f;
    --panel: rgba(13, 7, 22, 0.88);
    --panel-strong: #12091e;
    --purple: #7c3cff;
    --violet: #b66cff;
    --lavender: #dfc8ff;
    --white: #fbf8ff;
    --gray: rgba(251, 248, 255, 0.68);
    --line: rgba(182, 108, 255, 0.28);
    --line-strong: rgba(223, 200, 255, 0.5);
    --shadow: rgba(0, 0, 0, 0.52);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    color: var(--white);
    background:
        radial-gradient(circle at 22% 4%, rgba(124, 60, 255, 0.36), transparent 18rem),
        radial-gradient(circle at 92% 28%, rgba(182, 108, 255, 0.18), transparent 15rem),
        radial-gradient(circle at 48% 102%, rgba(110, 64, 180, 0.24), transparent 22rem),
        linear-gradient(180deg, #010104 0%, var(--black) 42%, #0b0312 100%);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: radial-gradient(circle, rgba(251, 248, 255, 0.5) 0 0.8px, transparent 1px);
    background-size: 4px 4px;
    mix-blend-mode: soft-light;
    animation: grainFloat 7s steps(6) infinite;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: -18%;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 18%, rgba(124, 60, 255, 0.2), transparent 18rem),
        radial-gradient(circle at 70% 52%, rgba(182, 108, 255, 0.14), transparent 20rem),
        radial-gradient(circle at 50% 88%, rgba(223, 200, 255, 0.08), transparent 16rem);
    filter: blur(8px);
    opacity: 0.72;
    animation: ambientDrift 14s ease-in-out infinite alternate;
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 12px 28px;
}

.profile-card {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 46px);
    padding: 22px 14px 18px;
    border: 1px solid rgba(223, 200, 255, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        var(--panel);
    box-shadow: 0 28px 80px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.99);
}

.profile-card::before,
.profile-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.profile-card::before {
    width: 210px;
    height: 210px;
    top: -132px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(124, 60, 255, 0.4), transparent 68%);
    animation: haloPulse 6s ease-in-out infinite;
}

.profile-card::after {
    width: 280px;
    height: 280px;
    right: -190px;
    bottom: 16%;
    background: radial-gradient(circle, rgba(182, 108, 255, 0.18), transparent 70%);
}

body.is-loaded .profile-card {
    animation: fadeInPage 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.profile-header,
.offer-list,
.footer-text {
    position: relative;
    z-index: 1;
}

.profile-header {
    display: grid;
    justify-items: center;
    text-align: center;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    padding: 4px;
    border: 1px solid rgba(223, 200, 255, 0.58);
    background: linear-gradient(135deg, var(--purple), var(--violet), var(--lavender));
    box-shadow: 0 0 34px rgba(124, 60, 255, 0.36), 0 10px 30px rgba(0, 0, 0, 0.38);
}

.name-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
}

h1 {
    font-size: clamp(1.25rem, 4.9vw, 1.68rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.name-row i {
    color: var(--violet);
    font-size: 0.84rem;
    filter: drop-shadow(0 0 9px rgba(182, 108, 255, 0.7));
}

.role-line {
    max-width: 310px;
    margin-top: 7px;
    color: rgba(251, 248, 255, 0.56);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.intro-copy {
    width: 100%;
    margin-top: 24px;
    text-align: left;
}

.intro-title {
    color: var(--white);
    font-size: clamp(1.75rem, 8vw, 2.55rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.intro-copy p:last-child {
    max-width: 350px;
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.91rem;
    line-height: 1.48;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 20px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--lavender);
    text-decoration: none;
    border: 1px solid rgba(223, 200, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--white);
    border-color: rgba(223, 200, 255, 0.7);
    background: rgba(124, 60, 255, 0.3);
    box-shadow: 0 0 22px rgba(182, 108, 255, 0.44);
    transform: translateY(-2px) scale(1.04);
    outline: none;
}

.offer-list {
    display: grid;
    gap: 14px;
}

.offer-card {
    min-height: 132px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding: 20px;
    color: var(--white);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)), var(--panel-strong);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease, background 210ms ease;
}

.offer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.68;
    background:
        linear-gradient(135deg, rgba(124, 60, 255, 0.2), transparent 50%),
        radial-gradient(circle at 78% 16%, rgba(223, 200, 255, 0.2), transparent 26%);
}

.offer-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.14;
    background-image: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.6) 48%, transparent 58%);
    transform: translateX(-62%);
    transition: transform 400ms ease, opacity 210ms ease;
}

.card-glow {
    position: absolute;
    right: -64px;
    top: -74px;
    z-index: -1;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(182, 108, 255, 0.34), transparent 68%);
}

.offer-card-two::before {
    background:
        linear-gradient(145deg, rgba(223, 200, 255, 0.22), transparent 48%),
        radial-gradient(circle at 82% 10%, rgba(182, 108, 255, 0.26), transparent 28%);
}

.offer-card-three::before {
    background:
        linear-gradient(135deg, rgba(98, 42, 220, 0.28), transparent 46%),
        radial-gradient(circle at 82% 14%, rgba(124, 60, 255, 0.42), transparent 30%);
}

.offer-card-four::before {
    background:
        linear-gradient(145deg, rgba(182, 108, 255, 0.16), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(223, 200, 255, 0.22), transparent 30%);
}

.card-content {
    display: grid;
    gap: 6px;
}

.card-label {
    color: var(--lavender);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.offer-card strong {
    font-size: 1.02rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.offer-card small {
    max-width: 300px;
    color: var(--gray);
    font-size: 0.79rem;
    line-height: 1.38;
}

.offer-card > i {
    color: var(--lavender);
    font-size: 0.92rem;
    align-self: center;
    transition: transform 210ms ease, color 210ms ease;
}

.offer-card:hover,
.offer-card:focus-visible {
    border-color: var(--line-strong);
    background: linear-gradient(145deg, rgba(124, 60, 255, 0.18), rgba(255, 255, 255, 0.035)), var(--panel-strong);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42), 0 0 34px rgba(124, 60, 255, 0.26);
    transform: translateY(-4px) scale(1.01);
    outline: none;
}

.offer-card:hover::after,
.offer-card:focus-visible::after {
    opacity: 0.22;
    transform: translateX(58%);
}

.offer-card:hover > i,
.offer-card:focus-visible > i {
    color: var(--white);
    transform: translateX(4px);
}

.footer-text {
    margin-top: 22px;
    color: rgba(251, 248, 255, 0.52);
    font-size: 0.74rem;
    line-height: 1.45;
    text-align: center;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ambientDrift {
    from {
        transform: translate3d(-18px, -10px, 0) scale(1);
    }

    to {
        transform: translate3d(22px, 18px, 0) scale(1.06);
    }
}

@keyframes grainFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-10px, 8px, 0);
    }
}

@keyframes haloPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.12);
    }
}

@media (max-width: 370px) {
    .page-shell {
        padding-inline: 8px;
    }

    .profile-card {
        padding: 20px 12px 16px;
    }

    .offer-card {
        min-height: 124px;
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
