:root {
    --pink: #ff5fa2;
    --pink-soft: #ffa6cf;
    --violet: #c79bff;
    --blue: #6aa7ff;
    --ink: #4a3a45;
    --text: #5a4655;
    --muted: #8d7785;
    --paper: #fff6fb;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: var(--paper);
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg > * {
    position: absolute;
    inset: 0;
}

.bg-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.03);
    object-fit: cover;
}

.bg-grade {
    background: linear-gradient(120deg, rgba(255, 95, 162, 0.28), rgba(106, 167, 255, 0.30));
    mix-blend-mode: soft-light;
}

.bg-scrim {
    background:
        linear-gradient(90deg,
            rgba(255, 246, 251, 0.95) 0%,
            rgba(255, 246, 251, 0.80) 40%,
            rgba(255, 246, 251, 0.42) 62%,
            rgba(255, 246, 251, 0.10) 83%,
            rgba(255, 246, 251, 0) 94%),
        radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(74, 58, 69, 0.18) 100%);
}

.bg-grain {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(22px, 4vw, 56px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    color: var(--pink);
    font-size: 18px;
    text-shadow: 0 0 12px rgba(255, 95, 162, 0.5);
}

.brand-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--ink);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    transition: width 0.25s ease;
}

.nav-link:hover { color: var(--pink); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--pink); }
.nav-link.active::after { width: 100%; }
.nav-icon { color: var(--muted); }
.nav-icon::after { display: none; }
.nav-icon:hover { color: var(--pink); }

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 clamp(28px, 9vw, 150px);
}

.eyebrow {
    display: inline-block;
    margin-left: 6px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.hero-title .line {
    display: block;
    width: fit-content;
    font-size: clamp(62px, 13vw, 184px);
    background: linear-gradient(115deg, var(--pink) 0%, var(--violet) 52%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter:
        drop-shadow(0 1px 8px rgba(255, 255, 255, 0.55))
        drop-shadow(0 8px 22px rgba(120, 90, 130, 0.22));
    user-select: none;
}

.hero-title .line-2 { margin-left: clamp(18px, 4.5vw, 84px); margin-top: -0.16em; }

.accent-line {
    display: block;
    width: clamp(90px, 14vw, 175px);
    height: 4px;
    margin: 26px 0 16px 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
}

.hero-subtitle {
    margin-left: 6px;
    color: var(--muted);
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 500;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.footnote {
    position: fixed;
    right: clamp(22px, 4vw, 56px);
    bottom: 34px;
    z-index: 100;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.85;
}

.video-controls {
    position: fixed;
    bottom: 30px;
    left: clamp(22px, 4vw, 56px);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 95, 162, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    color: var(--pink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(180, 120, 150, 0.18);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 26px rgba(255, 95, 162, 0.28);
    transform: translateY(-2px);
}

.control-btn:active { transform: translateY(0); }
.control-btn svg { pointer-events: none; }

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 120% at 50% 28%, #fff6fb 0%, #ffe6f3 48%, #e7ecff 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-name {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(115deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: ld-pulse 1.6s ease-in-out infinite;
}

.loader-bar {
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 120, 170, 0.18);
    overflow: hidden;
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    animation: ld-fill 1.4s ease-in-out forwards;
}

@keyframes ld-fill { to { width: 100%; } }

@keyframes ld-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (max-width: 768px) {
    .topbar { padding: 18px 20px; }
    .navbar { gap: 20px; }
    .footnote { display: none; }
    .video-controls { bottom: 20px; }
    .control-btn { width: 44px; height: 44px; }
}
