/*
   Bellagio 2026 Silicon Desert Playbook
   Theme: Noir Luxe — Pure Black + Gold Editorial
   Mobile-First Responsive Design
   
   PREMIUM POLISH — Every pixel optimized for luxury.
*/

/* ─── Design Tokens ─── */
:root {
    --black: #000000;
    --black-light: #0a0a0a;
    --gold: #C9A96E;
    --gold-light: #DBC186;
    --gold-warm: #D4B87A;
    --gold-muted: rgba(201, 169, 110, 0.15);
    --gold-glow: rgba(201, 169, 110, 0.25);
    --white: #FAFAF9;
    --white-soft: rgba(250, 250, 249, 0.85);
    --white-muted: rgba(250, 250, 249, 0.65);
    --white-dim: rgba(250, 250, 249, 0.45);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --cta: #C9A96E;
    --cta-hover: #DBC186;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --radius: 16px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

/* ─── Background ─── */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--black);
}

.bg-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0.12;
    filter: brightness(0.4) contrast(1.3) saturate(0.7);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite alternate;
}

.bg-glow--1 {
    top: -20%;
    left: 15%;
    width: 70vw;
    height: 70vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.18), transparent 70%);
}

.bg-glow--2 {
    bottom: -30%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08), transparent 70%);
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 20px) scale(1.1);
    }
}

#gold-dust {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ─── Layout ─── */
.container {
    width: 90%;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* ─── Header ─── */
.site-header {
    text-align: center;
    padding: 32px 20px 0;
    position: relative;
    z-index: 10;
}

.logo-img {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6));
}

/* ─── Hero Section ─── */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 90px 0 60px;
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Eyebrow ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 36px;
    padding: 10px 22px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 0;
    background: rgba(201, 169, 110, 0.04);
}

.eyebrow__diamond {
    font-size: 0.5rem;
    opacity: 0.7;
}

/* ── Headlines ── */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.6rem, 9vw, 5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    padding: 0 8px;
}

.hero-sub {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 6vw, 2.8rem);
    font-weight: 400;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 36px;
    letter-spacing: -0.01em;
}

.hero-sub em {
    font-style: italic;
}

/* ── Sub-headline ── */
.sub-headline {
    font-size: 1rem;
    color: var(--white-soft);
    max-width: 420px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.85;
    padding: 0 8px;
}

.sub-headline strong {
    color: var(--white);
    font-weight: 600;
}

/* ─── Book Cover ─── */
.book-cover-container {
    margin: 0 auto 56px;
    max-width: 200px;
    width: 50%;
    position: relative;
}

.book-cover-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(201, 169, 110, 0.2), transparent 70%);
    filter: blur(10px);
}

.book-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 2px 6px 6px 2px;
    mix-blend-mode: lighten;
    box-shadow: none;
    transition: transform 0.6s var(--ease-spring);
}

.book-mockup-img:hover {
    transform: scale(1.06);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse-down 2.5s ease-in-out infinite;
}

@keyframes pulse-down {

    0%,
    100% {
        opacity: 0.25;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(8px);
    }
}

/* ─── Cinematic Divider ─── */
.cinematic-divider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    z-index: 5;
}

.cinematic-divider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: brightness(0.5) contrast(1.15) saturate(0.9);
}

.cinematic-divider__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, var(--black) 0%, transparent 30%, transparent 70%, var(--black) 100%),
        linear-gradient(to right, var(--black) 0%, transparent 20%, transparent 80%, var(--black) 100%);
}

/* ─── Quiz Section ─── */
.quiz-section {
    padding: 40px 0 70px;
    position: relative;
    z-index: 5;
}

.quiz-container {
    background: rgba(12, 12, 12, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px 24px;
    min-height: 420px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(201, 169, 110, 0.05);
}

.progress-container {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 36px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 33%;
    transition: width 0.6s var(--ease-out);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(201, 169, 110, 0.3);
}

/* ── Quiz Steps ── */
.quiz-step {
    display: none;
    animation: fade-in-up 0.5s forwards;
}

.quiz-step.active {
    display: block;
}

.quiz-step h2 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    text-align: center;
    color: var(--white);
    margin-bottom: 32px;
    line-height: 1.5;
    padding: 0 4px;
}

/* ── Quiz Buttons ── */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px;
    border-radius: var(--radius-sm);
    color: var(--white);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

.quiz-btn::after {
    content: '\2192';
    position: absolute;
    right: 16px;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s;
    color: var(--gold);
    font-size: 1.1rem;
}

.quiz-btn:hover,
.quiz-btn:active {
    background: var(--gold-muted);
    border-color: rgba(201, 169, 110, 0.3);
    transform: translateX(3px);
}

.quiz-btn:hover::after,
.quiz-btn:active::after {
    opacity: 1;
    transform: translateX(0);
}

.quiz-btn__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 110, 0.1);
}

.quiz-btn__text {
    flex: 1;
    padding-right: 24px;
}

.quiz-btn__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-left: 6px;
    opacity: 0.85;
}

/* ── Form Inputs ── */
input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s;
    margin-bottom: 14px;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: var(--white-dim);
    font-weight: 300;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.06);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.input-note {
    display: block;
    color: var(--white-muted);
    font-size: 0.78rem;
    margin-top: -6px;
    margin-bottom: 16px;
    padding-left: 4px;
    font-weight: 300;
}

/* ── CTA Button ── */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-warm));
    color: var(--black);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.2);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(201, 169, 110, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.loading {
    opacity: 0.7;
    cursor: wait;
}

.cta-button__arrow {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.cta-button:hover .cta-button__arrow {
    transform: translateX(4px);
}

.privacy-text {
    text-align: center;
    color: var(--white-muted);
    font-size: 0.75rem;
    margin-top: 18px;
    letter-spacing: 0.3px;
    font-weight: 300;
}

/* ─── Floating Back Button ─── */
.btn-floating-back {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(201, 169, 110, 0.25);
    color: var(--gold);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: all 0.4s var(--ease-spring);
    opacity: 0;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-floating-back.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.btn-floating-back:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-floating-back svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* ═══════════════════════════════════════
   FEATURES SECTION — Premium Cards
   ═══════════════════════════════════════ */
.features-section {
    padding: 70px 0 90px;
    position: relative;
    z-index: 5;
}

.section-label {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 14px;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 48px;
    line-height: 1.3;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
    z-index: 1;
}

.feature-card:hover {
    background: rgba(201, 169, 110, 0.04);
    border-color: rgba(201, 169, 110, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    filter: brightness(0.55) contrast(1.15) saturate(0.85);
    transition: filter 0.5s, transform 0.5s;
}

.feature-card:hover .feature-card__img {
    filter: brightness(0.7) contrast(1.05);
    transform: scale(1.04);
}

.feature-card__body {
    padding: 24px;
}

.feature-card__number {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.feature-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.35;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--white-soft);
    line-height: 1.75;
    font-weight: 300;
}

/* ─── Footer ─── */
footer {
    text-align: center;
    padding: 30px 0 110px;
    color: var(--white-dim);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.footer-rule {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
    margin: 0 auto 24px;
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.72rem;
    opacity: 0.5;
}

/* ─── Sticky CTA ─── */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 380px;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 169, 110, 0.05);
    z-index: 100;
    transition: transform 0.4s var(--ease-spring);
}

.sticky-cta.hidden {
    transform: translateX(-50%) translateY(150%);
}

.sticky-btn {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-warm));
    color: var(--black);
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 12px rgba(201, 169, 110, 0.15);
}

.sticky-btn:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-warm));
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

/* ─── Animations ─── */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   RESPONSIVE: Tablets & Small Laptops
   ═══════════════════════════════════════ */
@media (min-width: 600px) {
    .container {
        max-width: 580px;
    }

    .logo-img {
        max-width: 220px;
    }

    h1 {
        font-size: clamp(3.4rem, 8vw, 5.5rem);
    }

    .hero-sub {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .sub-headline {
        font-size: 1.05rem;
    }

    .book-cover-container {
        max-width: 240px;
        width: 40%;
    }

    .cinematic-divider {
        height: 320px;
    }

    .quiz-container {
        padding: 44px 36px;
        border-radius: 20px;
    }

    .quiz-step h2 {
        font-size: 1.55rem;
    }

    .quiz-btn {
        font-size: 1rem;
        padding: 20px 18px;
    }

    .feature-card__img {
        height: 220px;
    }

    .feature-card h4 {
        font-size: 1.3rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE: Large Screens
   ═══════════════════════════════════════ */
@media (min-width: 900px) {
    .container {
        max-width: 680px;
    }

    .hero {
        padding: 120px 0 100px;
    }

    .eyebrow {
        font-size: 0.78rem;
        letter-spacing: 5px;
        padding: 12px 32px;
    }

    .sub-headline {
        font-size: 1.1rem;
        max-width: 500px;
    }

    .book-cover-container {
        max-width: 260px;
        margin-bottom: 80px;
    }

    .cinematic-divider {
        height: 400px;
    }

    .feature-grid {
        gap: 22px;
    }

    .feature-card__body {
        padding: 30px;
    }

    .feature-card__number {
        font-size: 0.85rem;
    }

    .feature-card h4 {
        font-size: 1.4rem;
    }

    .feature-card p {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════
   SAFE AREAS (Notch / Home indicator)
   ═══════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
    .sticky-cta {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    footer {
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
    }

    .btn-floating-back {
        bottom: calc(30px + env(safe-area-inset-bottom));
    }
}

/* ═══════════════════════════════════════
   REDUCED MOTION (Accessibility)
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}