/* =============================================================
   AGHOR — single mobile card
   Compact, semi-transparent so the ring slideshow reads behind.
   Architecture: Tokens → Base → Background → Card → Buttons → Motion
   ============================================================= */


/* --- Design tokens ----------------------------------------- */
:root {
    --wine-deep:    #2A050D;
    --wine:         #3A0A14;
    --wine-mid:     #4A0F1A;
    --wine-warm:    #6F1424;

    --cream:        #F0E4D2;
    --cream-soft:   #E8D9BF;
    --cream-warm:   #F5EBD8;
    --cream-mute:   rgba(240, 228, 210, 0.78);

    --gold:         #C9A876;
    --gold-light:   #E2C99C;
    --gold-dark:    #A8884D;
    --gold-warm:    #D4B883;
    --gold-glow:    rgba(212, 184, 131, 0.35);

    --glass-bg:     rgba(34, 6, 14, 0.32);
    --glass-edge:   rgba(212, 184, 131, 0.38);

    --f-display:    'Cormorant Garamond', 'Georgia', serif;
    --f-wordmark:   'Italiana', 'Cormorant Garamond', serif;
    --f-body:       'Inter', 'Helvetica Neue', sans-serif;

    --ease-lux:     cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-emph:    cubic-bezier(0.16, 1, 0.3, 1);
}


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

body {
    font-family: var(--f-body);
    color: var(--cream);
    background-color: var(--wine-deep);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
}

::selection { background: var(--gold); color: var(--wine-deep); }


/* --- Solid wine backdrop ---------------------------------- */
.bg-fill {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 75% 60% at 50% 30%, rgba(111, 20, 36, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(74, 15, 26, 0.50) 0%, transparent 70%),
        linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
}


/* --- Ambient blurred slideshow behind the card ------------ */
.bg-slideshow {
    position: fixed;
    inset: -10vh -10vw;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* heavy blur so it's a mood layer, not a foreground image */
    filter: blur(60px) saturate(1.1);
    opacity: 0.55;
}
.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.20);
    transform-origin: center;
    transition: opacity 2.5s var(--ease-lux), transform 12s linear;
    will-change: opacity, transform;
    mix-blend-mode: screen;
}
.bg-slide.active { opacity: 1; transform: scale(1.10); }
.bg-slide.zoom-in { transform: scale(1.30); }


/* --- Soft ambient glow + vignette ------------------------- */
.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 30%, rgba(20, 4, 10, 0.55) 100%),
        linear-gradient(180deg, rgba(42, 5, 13, 0.15) 0%, rgba(20, 4, 10, 0.35) 100%);
}
.bg-overlay::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.78  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 220px 220px;
    mix-blend-mode: overlay;
    opacity: 0.10;
}


/* --- Floating gold dust ----------------------------------- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.bg-particles span {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--gold-light);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px var(--gold-glow);
    animation: dust 16s linear infinite;
}
.bg-particles span:nth-child(1)  { left: 8%;  top: 100%; animation-delay: 0s;   animation-duration: 18s; }
.bg-particles span:nth-child(2)  { left: 22%; top: 100%; animation-delay: 2s;   animation-duration: 22s; }
.bg-particles span:nth-child(3)  { left: 36%; top: 100%; animation-delay: 4s;   animation-duration: 20s; width: 3px; height: 3px;}
.bg-particles span:nth-child(4)  { left: 48%; top: 100%; animation-delay: 1s;   animation-duration: 24s; }
.bg-particles span:nth-child(5)  { left: 60%; top: 100%; animation-delay: 3s;   animation-duration: 19s; }
.bg-particles span:nth-child(6)  { left: 72%; top: 100%; animation-delay: 5s;   animation-duration: 21s; }
.bg-particles span:nth-child(7)  { left: 85%; top: 100%; animation-delay: 7s;   animation-duration: 23s; }
.bg-particles span:nth-child(8)  { left: 14%; top: 100%; animation-delay: 2.5s; animation-duration: 26s; width: 3px; height: 3px;}
.bg-particles span:nth-child(9)  { left: 30%; top: 100%; animation-delay: 6s;   animation-duration: 25s; }
.bg-particles span:nth-child(10) { left: 55%; top: 100%; animation-delay: 8s;   animation-duration: 28s; }
.bg-particles span:nth-child(11) { left: 75%; top: 100%; animation-delay: 9s;   animation-duration: 24s; }
.bg-particles span:nth-child(12) { left: 92%; top: 100%; animation-delay: 4.5s; animation-duration: 22s; }
@keyframes dust {
    0%   { transform: translateY(0)    translateX(0); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}


/* --- Card wrapper ----------------------------------------- */
.card-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 20px;
}


/* --- Card (now hosts hero showcase + content) ------------- */
.card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 0 0 20px;
    text-align: center;
    overflow: hidden;

    background: linear-gradient(180deg, rgba(58, 10, 20, 0.55) 0%, rgba(34, 6, 14, 0.85) 60%, rgba(34, 6, 14, 0.92) 100%);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--glass-edge);
    border-radius: 22px;

    box-shadow:
        0 0 0 1px rgba(212, 184, 131, 0.10) inset,
        0 30px 70px -10px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(212, 184, 131, 0.06);

    animation: cardIn 0.9s var(--ease-emph) 0.35s both;
    visibility: visible !important;
}

/* Gold highlight line at top edge */
.card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold-warm), var(--gold-light), transparent);
    border-radius: 1px;
    animation: topLineGlow 3s ease-in-out infinite alternate;
}
@keyframes topLineGlow {
    0%   { opacity: 0.55; filter: blur(0px); }
    100% { opacity: 1;    filter: blur(0.5px); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* Card shimmer sweep */
.card-shimmer {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}
.card-shimmer::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(212, 184, 131, 0.08) 35%,
        rgba(212, 184, 131, 0.22) 50%,
        rgba(212, 184, 131, 0.08) 65%,
        transparent 80%
    );
    animation: shimmerSweep 9s var(--ease-lux) 3s infinite;
}
@keyframes shimmerSweep {
    0%   { left: -120%; }
    22%  { left: 120%; }
    100% { left: 120%; }
}


/* --- Showcase (hero product slideshow — curved + lifted) -- */
.showcase {
    position: relative;
    width: 100%;
    padding: 18px 18px 0;
    margin-bottom: 54px; /* room for logo medallion to float below */
}
.showcase-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;       /* slightly taller than 16:9, still landscape */
    overflow: hidden;
    background: var(--wine-deep);
    border-radius: 18px;
    border: 1px solid rgba(212, 184, 131, 0.30);

    /* Soft lift — looks elevated above the card surface */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 0 1px rgba(212, 184, 131, 0.10) inset,
        0 22px 40px -14px rgba(0, 0, 0, 0.7),
        0 8px 22px -8px rgba(0, 0, 0, 0.55),
        0 0 30px -6px rgba(212, 184, 131, 0.18);
    animation: showcaseLift 1.0s var(--ease-emph) 0.55s both;
}
.showcase-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transform-origin: center;
    transition: opacity 1.6s var(--ease-lux), transform 7s linear;
    will-change: opacity, transform;
}
.showcase-slide.active { opacity: 1; transform: scale(1.0); }
.showcase-slide.zoom-in { transform: scale(1.08); }
.showcase-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(34, 6, 14, 0.35) 100%),
        linear-gradient(180deg, rgba(34, 6, 14, 0.05) 0%, rgba(34, 6, 14, 0.45) 100%);
}

/* Glow underneath the frame — gold halo on the card surface */
.showcase::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    width: 80%;
    height: 18px;
    background: radial-gradient(ellipse, rgba(212, 184, 131, 0.22) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

@keyframes showcaseLift {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Logo (floats below the curved showcase frame) -------- */
.logo-container {
    position: absolute;
    left: 50%;
    bottom: -44px;
    transform: translateX(-50%);
    z-index: 5;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58, 10, 20, 0.98) 35%, rgba(42, 5, 13, 0.95) 100%);
    box-shadow:
        0 0 0 1px rgba(212, 184, 131, 0.45) inset,
        0 0 22px rgba(212, 184, 131, 0.20),
        0 10px 24px rgba(0, 0, 0, 0.55);
    animation: logoIn 0.9s var(--ease-emph) 0.6s both;
    transition: transform 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
    cursor: pointer;
}
.logo-container:hover {
    transform: translateX(-50%) scale(1.06);
    box-shadow:
        0 0 0 1px rgba(212, 184, 131, 0.65) inset,
        0 0 36px var(--gold-glow),
        0 10px 24px rgba(0, 0, 0, 0.55);
}

/* Conic rotating gold ring */
.logo-ring {
    position: absolute; inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(212, 184, 131, 0.55) 60deg,
        transparent 120deg,
        transparent 180deg,
        rgba(212, 184, 131, 0.55) 240deg,
        transparent 300deg
    );
    -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%, #000 100%);
            mask: radial-gradient(circle, transparent 60%, #000 61%, #000 100%);
    animation: ringSpin 16s linear infinite;
    opacity: 0.85;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.logo {
    position: relative;
    z-index: 2;
    width: 76%;
    height: 76%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.7s var(--ease-lux);
}
.logo-container:hover .logo { transform: rotate(8deg) scale(1.04); }

.logo-glow {
    position: absolute; inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 184, 131, 0.20), transparent 65%);
    filter: blur(16px);
    z-index: -1;
    animation: logoGlow 5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.12); }
}

@keyframes logoIn {
    from { opacity: 0; transform: translateX(-50%) scale(0.85) rotate(-8deg); }
    to   { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
}


/* --- Content block (sits below showcase + logo) ----------- */
.card .brand-name,
.card .subtitle,
.card .ornament,
.card .tagline,
.card .buttons {
    padding-left: 24px;
    padding-right: 24px;
}

/* --- Brand name (letter stagger) -------------------------- */
.brand-name {
    position: relative;
    z-index: 1;
    font-family: var(--f-display);
    font-size: 38px;
    font-weight: 600;
    letter-spacing: 0.20em;
    margin: 0 0 4px;
    margin-left: 0.20em;
    color: var(--cream);
    line-height: 1;
    display: inline-flex;
    gap: 0;
    text-shadow:
        0 1px 0 rgba(212, 184, 131, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 8px 24px rgba(0, 0, 0, 0.45);
}
.brand-letter {
    display: inline-block;
    background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 50%, var(--gold-warm) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(16px);
    animation: letterIn 0.8s var(--ease-emph) both;
}
.brand-letter:nth-child(1) { animation-delay: 0.95s; }
.brand-letter:nth-child(2) { animation-delay: 1.02s; }
.brand-letter:nth-child(3) { animation-delay: 1.09s; }
.brand-letter:nth-child(4) { animation-delay: 1.16s; }
.brand-letter:nth-child(5) { animation-delay: 1.23s; }
@keyframes letterIn {
    to { opacity: 1; transform: translateY(0); }
}


/* --- Subtitle --------------------------------------------- */
.subtitle {
    position: relative;
    z-index: 1;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold-light);
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    opacity: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    animation: textRise 0.7s var(--ease-emph) 1.35s forwards;
}


/* --- Ornament divider ------------------------------------- */
.ornament {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 10px;
    color: var(--gold-warm);
    opacity: 0;
    animation: ornamentIn 0.8s var(--ease-emph) 1.45s forwards;
}
.ornament-line {
    width: 44px; height: 1px;
    background: linear-gradient(90deg, transparent, currentColor 50%, transparent);
}
.ornament-diamond {
    width: 5px; height: 5px;
    background: currentColor;
    transform: rotate(45deg);
    box-shadow: 0 0 8px var(--gold-glow);
    animation: diamondPulse 3s ease-in-out 2.5s infinite;
}
.ornament-dot {
    width: 3px; height: 3px;
    background: currentColor;
    border-radius: 50%;
}
@keyframes ornamentIn {
    from { opacity: 0; transform: scaleX(0.6); }
    to   { opacity: 1; transform: scaleX(1); }
}
@keyframes diamondPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(212, 184, 131, 0); }
    50%      { box-shadow: 0 0 10px rgba(212, 184, 131, 0.7); }
}


/* --- Tagline ---------------------------------------------- */
.tagline {
    position: relative;
    z-index: 1;
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cream);
    max-width: 280px;
    margin: 0 auto 16px;
    letter-spacing: 0.02em;
    opacity: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    animation: textRise 0.7s var(--ease-emph) 1.55s forwards;
}

@keyframes textRise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* --- Buttons (compact pill style) ------------------------- */
.buttons {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    min-height: 50px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.45s var(--ease-lux);
    font-family: var(--f-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    animation: btnIn 0.6s var(--ease-emph) forwards;
}
.btn::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.45s var(--ease-lux);
}
.btn-text, .btn-icon, .btn-revueo-logo {
    position: relative;
    z-index: 1;
}
.btn-icon {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-lux);
}

/* Primary — Aghor Jewels (gold outline → fills) */
.btn-primary {
    color: var(--cream);
    border: 1px solid var(--gold-warm);
    background: rgba(212, 184, 131, 0.04);
    animation-delay: 1.65s;
}
.btn-primary::before {
    background: linear-gradient(135deg, var(--gold-warm), var(--gold-dark));
}
.btn-primary:hover {
    color: var(--wine-deep);
    box-shadow: 0 8px 22px rgba(212, 184, 131, 0.22);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover .btn-icon { transform: translateX(4px); }
.btn-primary:active { transform: scale(0.97); }

/* Secondary — Aghor Gems (cream outline → fills cream) */
.btn-secondary {
    color: var(--cream);
    border: 1px solid rgba(240, 228, 210, 0.45);
    background: rgba(240, 228, 210, 0.04);
    animation-delay: 1.75s;
}
.btn-secondary::before {
    background: linear-gradient(135deg, var(--cream), var(--cream-soft));
}
.btn-secondary:hover {
    color: var(--wine-deep);
    border-color: var(--cream);
    box-shadow: 0 8px 22px rgba(240, 228, 210, 0.18);
}
.btn-secondary:hover::before { opacity: 1; }
.btn-secondary:hover .btn-icon { transform: translateX(4px); }
.btn-secondary:active { transform: scale(0.97); }

/* Revueo — subtle wine outline */
.btn-revueo {
    color: var(--cream);
    border: 1px solid rgba(212, 184, 131, 0.32);
    background: rgba(212, 184, 131, 0.05);
    animation-delay: 1.85s;
}
.btn-revueo::before {
    background: linear-gradient(135deg, rgba(212, 184, 131, 0.20), rgba(212, 184, 131, 0.10));
}
.btn-revueo:hover {
    color: var(--gold-light);
    border-color: var(--gold-warm);
    box-shadow: 0 8px 22px rgba(212, 184, 131, 0.15);
}
.btn-revueo:hover::before { opacity: 1; }
.btn-revueo:active { transform: scale(0.97); }

.btn-revueo-logo {
    width: 18px; height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(0.88);
    transition: filter 0.4s var(--ease-lux), transform 0.4s var(--ease-lux);
}
.btn-revueo:hover .btn-revueo-logo {
    filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(8deg) brightness(0.92);
    transform: rotate(10deg) scale(1.05);
}

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


/* --- Responsive ------------------------------------------- */
@media (max-width: 380px) {
    .card { padding: 0 0 20px; max-width: 340px; }
    .brand-name { font-size: 34px; letter-spacing: 0.16em; margin-left: 0.16em; }
    .subtitle { font-size: 13px; }
    .tagline { font-size: 13px; margin-bottom: 16px; }
    .logo-container { width: 80px; height: 80px; bottom: -40px; }
    .btn { font-size: 12px; padding: 14px 18px; min-height: 48px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .card { max-width: 380px; padding: 32px 28px 26px; }
}

@media (min-width: 769px) {
    .card {
        max-width: 400px;
        padding: 0 0 24px;
    }
    .brand-name { font-size: 44px; }
    .subtitle { font-size: 15px; }
    .tagline { font-size: 15px; }
    .logo-container { width: 96px; height: 96px; bottom: -46px; }
    .btn { padding: 16px 26px; font-size: 13px; min-height: 54px; }
    .btn:hover { transform: translateY(-2px); }
}


/* --- Accessibility ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-slide { transition: opacity 0.5s ease !important; }
    .bg-slide.active, .bg-slide.zoom-in { transform: scale(1) !important; }
}

.btn:focus-visible,
.logo-container:focus-visible {
    outline: 2px solid var(--gold-warm);
    outline-offset: 3px;
}
