/* =============================================
   simai.bar — McBling Pastel Cocktail Bar
   ============================================= */

/* --- Custom Properties / Palette --- */
:root {
    --vanilla-cream: #FFF8F0;
    --butter-blush: #FDEBD0;
    --cocoa-ink: #2C1B0E;
    --deep-espresso: #1A0F00;
    --warm-slate: #4A3F35;
    --shimmer-rose: #F4A7B9;
    --iridescent-lilac: #D4B8E0;
    --pearl-mint: #B8E0D2;
    --blush-copper: #C07A5E;
    --gold-flicker: #E8C97D;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-slab: 'Roboto Slab', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
    --section-bg: var(--vanilla-cream);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--vanilla-cream);
    color: var(--cocoa-ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px clamp(24px, 6vw, 120px);
}

.section--hero {
    background-color: var(--vanilla-cream);
    justify-content: flex-start;
    align-items: center;
}

.section--features {
    background-color: var(--butter-blush);
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.section--showcase {
    background-color: var(--vanilla-cream);
    justify-content: space-between;
    align-items: center;
}

.section--closing {
    background-color: var(--butter-blush);
    justify-content: flex-start;
    align-items: center;
}

/* --- Hero Section --- */
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 60%;
    flex-shrink: 0;
}

.hero__headline-wrap {
    position: relative;
}

.hero__headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(64px, 9vw, 120px);
    color: var(--cocoa-ink);
    line-height: 1.05;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-snap), transform 0.8s var(--ease-snap);
    will-change: transform, opacity;
}

.hero__headline.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero__domain-name {
    display: block;
    position: relative;
    padding-bottom: 8px;
}

/* Underline draw element */
.hero__underline {
    display: block;
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--shimmer-rose), var(--gold-flicker));
    border-radius: 2px;
    transition: width 0.6s var(--ease-snap);
    will-change: width;
}

.hero__underline.is-drawn {
    width: 100%;
}

.hero__sub {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--warm-slate);
    max-width: 480px;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s var(--ease-snap) 0.5s, transform 0.6s var(--ease-snap) 0.5s;
    will-change: transform, opacity;
}

.hero__sub.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero blob cluster */
.hero__blob-cluster {
    position: absolute;
    top: 0;
    right: -5%;
    width: 50%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s var(--ease-snap) 0.6s, transform 0.7s var(--ease-snap) 0.6s;
    will-change: transform, opacity;
}

.hero__blob-cluster.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Blobs --- */
.blob {
    position: absolute;
    will-change: transform;
}

/* Shimmer Blobs */
.blob--shimmer {
    background: conic-gradient(from 0deg, var(--shimmer-rose) 0%, var(--iridescent-lilac) 40%, var(--pearl-mint) 70%, var(--shimmer-rose) 100%);
    mix-blend-mode: multiply;
}

/* Outline Blobs */
.blob--outline {
    background: transparent;
    border: 2px solid var(--gold-flicker);
    animation: blobDrift 3s ease-in-out infinite alternate;
}

/* Tech/Circuit Blobs */
.blob--tech {
    background: conic-gradient(from 90deg, var(--iridescent-lilac) 0%, var(--pearl-mint) 50%, var(--shimmer-rose) 100%);
    box-shadow: 0 0 20px var(--iridescent-lilac);
    mix-blend-mode: multiply;
}

/* Hero blob shapes */
.blob--hero-1 {
    width: clamp(200px, 28vw, 420px);
    height: clamp(200px, 28vw, 420px);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    top: 10%;
    right: 5%;
    animation: shimmerSpin 20s linear infinite;
}

.blob--hero-2 {
    width: clamp(140px, 18vw, 280px);
    height: clamp(140px, 18vw, 280px);
    border-radius: 42% 58% 70% 30% / 45% 55% 45% 55%;
    top: 45%;
    right: 30%;
    animation: blobDrift 3s ease-in-out infinite alternate;
}

.blob--hero-3 {
    width: clamp(100px, 14vw, 220px);
    height: clamp(100px, 14vw, 220px);
    border-radius: 70% 30% 40% 60% / 60% 40% 60% 40%;
    bottom: 10%;
    right: 8%;
    animation: shimmerSpin 15s linear infinite reverse;
}

/* Feature blob shapes */
.blob--feature-1 {
    width: 160px;
    height: 160px;
    border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: shimmerSpin 12s linear infinite;
    position: absolute;
}

.blob--feature-2 {
    width: 160px;
    height: 160px;
    border-radius: 40% 60% 45% 55% / 55% 45% 55% 45%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    animation: shimmerSpin 18s linear infinite reverse;
}

.blob--feature-3 {
    width: 160px;
    height: 160px;
    border-radius: 65% 35% 50% 50% / 45% 60% 40% 55%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    animation: blobDrift 3s ease-in-out infinite alternate;
}

/* Closing blob */
.blob--closing {
    width: clamp(300px, 45vw, 600px);
    height: clamp(300px, 45vw, 600px);
    border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
    animation: shimmerSpin 25s linear infinite;
}

.closing__blob-wrap {
    position: absolute;
    right: -10%;
    bottom: -15%;
    z-index: 0;
    opacity: 0.55;
    pointer-events: none;
}

/* Blob animations */
@keyframes shimmerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes blobDrift {
    0% { transform: rotate(-2deg) scale(0.98); }
    100% { transform: rotate(2deg) scale(1.02); }
}

/* --- Rhinestones --- */
.rhinestone {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--gold-flicker);
    transform: rotate(45deg);
    position: absolute;
    pointer-events: none;
}

.rhinestone--1 { top: 18%; left: 58%; opacity: 0.85; }
.rhinestone--2 { top: 72%; left: 12%; opacity: 0.7; }
.rhinestone--3 { top: 42%; left: 85%; opacity: 0.9; }
.rhinestone--4 { top: 22%; right: 20%; opacity: 0.8; }
.rhinestone--5 { bottom: 25%; left: 45%; opacity: 0.75; }

/* Rhinestone heading decoration via pseudo-elements */
.rhinestone-heading {
    position: relative;
}

.rhinestone-heading::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--gold-flicker);
    transform: rotate(45deg);
    position: absolute;
    top: -6px;
    left: -12px;
}

.rhinestone-heading::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--shimmer-rose);
    transform: rotate(45deg);
    position: absolute;
    bottom: -4px;
    right: -10px;
}

/* --- Section heading styles --- */
.section__heading {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 52px);
    color: var(--deep-espresso);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Underline draw for section headings */
.section-underline {
    display: block;
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--shimmer-rose), var(--gold-flicker));
    border-radius: 2px;
    transition: width 0.4s var(--ease-snap);
    will-change: width;
}

.section-underline.is-drawn {
    width: 100%;
}

/* Hover underline draw for any heading with section-underline */
.section__heading:hover .section-underline {
    width: 100%;
}

/* --- Features Section --- */
.features__headline-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.features__heading {
    text-align: right;
}

.features__blobs {
    display: flex;
    gap: clamp(24px, 4vw, 60px);
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Feature blob cards */
.feature-blob {
    position: relative;
    width: clamp(200px, 28vw, 280px);
    height: clamp(220px, 30vw, 300px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    text-align: center;
    cursor: default;
    will-change: transform;
    transition: transform 0.5s var(--ease-snap);
}

.feature-blob:hover {
    transform: scale(1.04) rotate(2deg);
}

/* Off-screen initial positions for animation */
#featureBlob1 {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.6s var(--ease-snap), transform 0.6s var(--ease-snap);
}

#featureBlob2 {
    opacity: 0;
    transform: translate(60px, 60px);
    transition: opacity 0.6s var(--ease-snap) 0.15s, transform 0.6s var(--ease-snap) 0.15s;
}

#featureBlob3 {
    opacity: 0;
    transform: translate(60px, -60px);
    transition: opacity 0.6s var(--ease-snap) 0.3s, transform 0.6s var(--ease-snap) 0.3s;
}

#featureBlob1.is-visible,
#featureBlob2.is-visible,
#featureBlob3.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

#featureBlob2.is-visible:hover,
#featureBlob3.is-visible:hover {
    transform: scale(1.04) rotate(2deg);
}

.feature-blob__label {
    font-family: var(--font-slab);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blush-copper);
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
}

.feature-blob__text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--warm-slate);
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Circuit trace SVG positioning */
.circuit-trace {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.circuit-trace--hero {
    bottom: 8%;
    left: 0;
    width: clamp(120px, 20vw, 260px);
    height: auto;
}

.circuit-trace--features {
    top: 15%;
    left: 0;
    width: clamp(200px, 40vw, 400px);
    height: auto;
}

.circuit-trace--showcase {
    bottom: 12%;
    right: 0;
    width: clamp(200px, 50vw, 500px);
    height: auto;
}

/* --- Showcase Section --- */
.showcase__quote-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(120px, 18vw, 200px);
    color: var(--shimmer-rose);
    opacity: 0.15;
    position: absolute;
    top: 15%;
    left: 4%;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.showcase__left {
    position: relative;
    z-index: 2;
    flex: 0 0 45%;
}

.showcase__heading {
    font-size: clamp(32px, 4.5vw, 56px);
}

.showcase__phrases {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.slab-phrase {
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 42px);
    color: var(--deep-espresso);
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.6s var(--ease-snap), transform 0.6s var(--ease-snap);
    will-change: transform, opacity;
    line-height: 1.2;
}

#slabPhrase1 { transition-delay: 0ms; }
#slabPhrase2 { transition-delay: 100ms; }
#slabPhrase3 { transition-delay: 200ms; }

.slab-phrase.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Closing Section --- */
.closing__content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}

.closing__tagline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 72px);
    color: var(--cocoa-ink);
    line-height: 1.1;
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}

.closing__tagline-text {
    display: block;
    position: relative;
    padding-bottom: 8px;
}

.closing__body {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--warm-slate);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.closing__cta {
    display: inline-block;
    font-family: var(--font-slab);
    font-weight: 700;
    font-size: 16px;
    color: var(--vanilla-cream);
    background-color: var(--blush-copper);
    padding: 14px 36px;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background-color 0.3s var(--ease-snap), transform 0.3s var(--ease-snap);
    position: relative;
    z-index: 2;
}

.closing__cta:hover {
    background-color: var(--cocoa-ink);
    transform: scale(1.03);
}

/* --- Floating Nav Pill --- */
.nav-pill {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0;
    background: rgba(253, 235, 208, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 10px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-snap);
    border: 1px solid rgba(232, 201, 125, 0.3);
}

.nav-pill.is-visible {
    opacity: 1;
    pointer-events: all;
}

.nav-pill__link {
    font-family: var(--font-slab);
    font-weight: 500;
    font-size: 13px;
    color: var(--cocoa-ink);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    transition: background-color 0.25s var(--ease-snap), color 0.25s var(--ease-snap);
}

.nav-pill__link:hover {
    background-color: var(--shimmer-rose);
    color: var(--deep-espresso);
}

/* =============================================
   Responsive adjustments
   ============================================= */
@media (max-width: 768px) {
    .section--features {
        align-items: center;
        padding: 60px 24px;
    }

    .features__headline-wrap {
        justify-content: center;
        margin-bottom: 40px;
    }

    .features__blobs {
        flex-direction: column;
        align-items: center;
    }

    .feature-blob {
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 220px;
    }

    .section--showcase {
        flex-direction: column;
        gap: 40px;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .showcase__left {
        flex: unset;
        width: 100%;
    }

    .showcase__phrases {
        flex: unset;
        width: 100%;
    }

    .closing__content {
        max-width: 100%;
    }

    .hero__content {
        max-width: 100%;
    }
}
