:root {
    --text-font: "Montserrat", sans-serif;
    --head-font: "Roboto Condensed", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.montserrat-regular, .montserrat-400  {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.roboto-condensed-regular, .roboto-condensed-400 {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: var(--text-font), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #f5f5ff;
    background: #07070d;
    overflow: hidden;
    min-height: 100vh;
}

/* ---------- animated background ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 10%, #1a0b3a 0%, transparent 55%),
        radial-gradient(ellipse at 80% 90%, #0b2447 0%, transparent 60%),
        linear-gradient(135deg, #05060f 0%, #0a0414 50%, #050810 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
    mix-blend-mode: screen;
    will-change: transform;
}

.blob--1 {
    width: 55vmax;
    height: 55vmax;
    top: -15vmax;
    left: -10vmax;
    background: radial-gradient(circle, #ff3df0 0%, transparent 70%);
    animation: drift1 18s ease-in-out infinite alternate;
}

.blob--2 {
    width: 50vmax;
    height: 50vmax;
    bottom: -15vmax;
    right: -10vmax;
    background: radial-gradient(circle, #3d8bff 0%, transparent 70%);
    animation: drift2 22s ease-in-out infinite alternate;
}

.blob--3 {
    width: 40vmax;
    height: 40vmax;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, #00e5d1 0%, transparent 70%);
    opacity: 0.45;
    animation: drift3 26s ease-in-out infinite alternate;
}

.blob--4 {
    width: 35vmax;
    height: 35vmax;
    top: 60%;
    left: 20%;
    background: radial-gradient(circle, #7a3dff 0%, transparent 70%);
    opacity: 0.55;
    animation: drift4 20s ease-in-out infinite alternate;
}

@keyframes drift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15vmax, 10vmax) scale(1.15); }
}
@keyframes drift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-12vmax, -8vmax) scale(1.1); }
}
@keyframes drift3 {
    0%   { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-35%, -65%) scale(1.2); }
}
@keyframes drift4 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vmax, -12vmax) scale(0.9); }
}

.grain {
    position: absolute;
    inset: -50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
    animation: grain 8s steps(6) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    20%      { transform: translate(-3%, 2%); }
    40%      { transform: translate(2%, -3%); }
    60%      { transform: translate(-2%, -2%); }
    80%      { transform: translate(3%, 1%); }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    gap: 1.25rem;
}

.hero__title {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(120deg, #ffffff 0%, #c9c2ff 40%, #79e6ff 70%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite, fadeUp 1s ease-out both;
    text-shadow: 0 0 60px rgba(122, 61, 255, 0.25);
}

.hero__dot {
    color: #ff3df0;
    -webkit-text-fill-color: #ff3df0;
}

@keyframes shine {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.hero__subtitle {
    margin: 0;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: rgba(245, 245, 255, 0.65);
    letter-spacing: 0.02em;
    animation: fadeUp 1s 0.15s ease-out both;
}

.hero__btn {
    --bg: linear-gradient(135deg, #7a3dff 0%, #ff3df0 100%);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    border-radius: 999px;
    background: var(--bg);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow:
        0 10px 30px -10px rgba(255, 61, 240, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 1s 0.3s ease-out both, pulse 3s ease-in-out 1.3s infinite;
    position: relative;
    overflow: hidden;
}

.hero__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff3df0 0%, #7a3dff 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.hero__btn > * {
    position: relative;
    z-index: 1;
}

.hero__btn svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.25s ease;
}

.hero__btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px -10px rgba(255, 61, 240, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero__btn:hover::before {
    opacity: 1;
}

.hero__btn:hover svg {
    transform: translateX(4px);
}

.hero__btn:active {
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 10px 30px -10px rgba(255, 61, 240, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }
    50%      { box-shadow: 0 10px 40px -5px rgba(255, 61, 240, 0.85),  0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
}

@media (prefers-reduced-motion: reduce) {
    .blob, .grain, .hero__title, .hero__btn { animation: none !important; }
}