/* ============================================
   DEEP SLEEP PROTOCOL — Design System
   Calm Night Theme | Deep Indigo & Soft Lavender
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Palette — Deep Sleep Night Theme */
    --bg-primary: #0B0E1A;
    --bg-secondary: #101425;
    --bg-card: #151930;
    --bg-card-hover: #1A1F3A;
    --text-primary: #E8E6F0;
    --text-secondary: #9B97B0;
    --text-muted: #6E6A85;
    --accent-emerald: #7B68EE;
    --accent-blue: #5B8DEF;
    --accent-emerald-glow: rgba(123, 104, 238, 0.22);
    --accent-blue-glow: rgba(91, 141, 239, 0.15);
    --border-subtle: rgba(123, 104, 238, 0.1);
    --glass-bg: rgba(21, 25, 48, 0.75);
    --glass-border: rgba(123, 104, 238, 0.12);

    /* Sleep accent extras */
    --moon-gold: #F5C842;
    --sleep-lavender: #A594F9;
    --deep-navy: #080B16;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fs-hero: clamp(2.8rem, 6vw, 5.5rem);
    --fs-h2: clamp(1.8rem, 3.5vw, 3rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.6rem);
    --fs-body: 1.05rem;
    --fs-small: 0.875rem;
    --lh-tight: 1.1;
    --lh-normal: 1.6;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px);
    --container-max: 1100px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.6s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* ---------- Utilities ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-pad);
    position: relative;
}

/* ---------- Site Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(11, 14, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 80px);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-header__logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.site-header__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: var(--fs-small);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-header__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-emerald-glow);
}

.text-gradient {
    background: linear-gradient(135deg, var(--sleep-lavender) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: var(--fs-small);
    font-weight: 500;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.badge svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-emerald);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration) var(--ease-out),
        transform var(--duration) var(--ease-out);
}

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

/* Stagger children */
.stagger>.reveal:nth-child(1) {
    transition-delay: 0s;
}

.stagger>.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger>.reveal:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger>.reveal:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger>.reveal:nth-child(5) {
    transition-delay: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(100px, 12vw, 160px) clamp(20px, 5vw, 80px) clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
}

/* Background glow orbs — dreamy night sky */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 104, 238, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 141, 239, 0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sleep-lavender);
}

.hero__eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--sleep-lavender);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -2px;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* Primary CTA Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-emerald-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary .arrow {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-icons span {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.payment-icons img,
.payment-icons svg {
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.payment-icons .payment-visa {
    height: 20px;
}

.payment-icons .payment-mc {
    height: 28px;
}

.payment-icons .payment-pp {
    height: 22px;
}

.payment-icons img:hover,
.payment-icons svg:hover {
    opacity: 1;
}

/* Hero 3D Book Mockup */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-scene {
    perspective: 1200px;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    animation: heroFloat 6s ease-in-out infinite;
}

/* Bright glow behind book */
.book-scene::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(165, 148, 249, 0.35) 0%, rgba(123, 104, 238, 0.18) 35%, rgba(91, 141, 239, 0.08) 55%, transparent 75%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.book-3d {
    position: relative;
    width: 320px;
    height: 450px;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(4deg);
    z-index: 1;
}

/* Front Cover */
.book-cover {
    position: absolute;
    inset: 0;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(165deg, #3B1A7E 0%, #2A1065 25%, #1E0A4A 55%, #251260 100%);
    box-shadow:
        8px 8px 30px rgba(0, 0, 0, 0.6),
        -2px -2px 20px rgba(123, 104, 238, 0.08),
        inset 0 0 60px rgba(123, 104, 238, 0.1);
    transform: translateZ(15px);
    overflow: hidden;
}

/* Subtle sheen on cover */
.book-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
    z-index: 2;
    pointer-events: none;
}

.cover-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    z-index: 1;
}

/* Gold accent border inside cover */
.cover-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(213, 175, 90, 0.2);
    border-radius: 2px;
    pointer-events: none;
}

.cover-accent-line {
    width: 60px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #D4A437, transparent);
}

.cover-accent-line.top {
    margin-bottom: 16px;
}

.cover-accent-line.bottom {
    margin-top: 16px;
}

/* Moon icon */
.cover-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    filter: drop-shadow(0 0 12px rgba(213, 164, 55, 0.3));
}

.cover-icon svg {
    width: 100%;
    height: 100%;
}

/* Cover title */
.cover-title {
    font-family: var(--font-family);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 5px;
    line-height: 1.15;
    text-align: center;
    color: #F5F0E8;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 215, 110, 0.08);
}

.cover-divider {
    width: 48px;
    height: 1.5px;
    margin: 12px 0;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

.cover-subtitle {
    font-family: var(--font-family);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.7);
    text-align: center;
}

/* Spine */
.book-spine {
    position: absolute;
    left: -30px;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, #120628, #1E0A4A, #2A1060);
    transform: rotateY(90deg) translateZ(0px);
    transform-origin: right center;
    border-radius: 6px 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.3);
}

.spine-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-family);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(201, 168, 76, 0.5);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Page Edges */
.book-pages {
    position: absolute;
    right: -3px;
    top: 4px;
    width: 6px;
    height: calc(100% - 8px);
    background: repeating-linear-gradient(to bottom,
            #E8E0D0,
            #E8E0D0 1px,
            #D4CFC2 1px,
            #D4CFC2 2px);
    transform: translateZ(8px);
    border-radius: 0 2px 2px 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.15);
}

/* Book bottom edge */
.book-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #120628, #1A0C42);
    transform: rotateX(90deg) translateZ(0px);
    transform-origin: top center;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

/* ============================================
   AUTHORITY BAR
   ============================================ */
.authority-bar {
    padding: 40px clamp(20px, 5vw, 80px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.authority-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    flex-wrap: wrap;
}

.authority-bar .badge {
    white-space: nowrap;
}

.authority-bar .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* ============================================
   STATS / SOCIAL PROOF
   ============================================ */
.stats-section {
    padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px);
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(123, 104, 238, 0.12);
}

.stat-card__number {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    display: inline;
}

.stat-card__suffix {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    display: inline;
    color: var(--accent-emerald);
    margin-left: 2px;
}

.stat-card__label {
    margin-top: 12px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   PROBLEM / SOLUTION
   ============================================ */
.problem-solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.ps-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.ps-card--problem {
    background: linear-gradient(145deg, rgba(220, 50, 50, 0.06) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(220, 80, 80, 0.12);
}

.ps-card--solution {
    background: linear-gradient(145deg, rgba(123, 104, 238, 0.08) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(123, 104, 238, 0.15);
}

.ps-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.ps-card--problem .ps-card__icon {
    background: rgba(220, 80, 80, 0.1);
}

.ps-card--solution .ps-card__icon {
    background: rgba(123, 104, 238, 0.1);
}

.ps-card__label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ps-card--problem .ps-card__label {
    color: #E05555;
}

.ps-card--solution .ps-card__label {
    color: var(--sleep-lavender);
}

.ps-card__title {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.ps-card__text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    text-align: center;
    overflow: hidden;
}

.video-section .section-header {
    margin-bottom: 48px;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(145deg, #1B1440 0%, #0D0B20 100%);
    cursor: pointer;
    box-shadow: 0 20px 60px rgba(11, 14, 26, 0.4);
    transition: box-shadow 0.4s, transform 0.4s var(--ease-out);
}

.video-container:hover {
    box-shadow: 0 30px 80px rgba(123, 104, 238, 0.15);
    transform: translateY(-4px);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-container video.active {
    display: block;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(145deg, rgba(123, 104, 238, 0.05) 0%, rgba(91, 141, 239, 0.05) 100%);
}

.video-placeholder__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px var(--accent-emerald-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

.video-placeholder__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-small);
    font-weight: 500;
}

.video-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: var(--fs-small);
    color: var(--text-muted);
    font-weight: 500;
}

.video-caption svg {
    color: var(--sleep-lavender);
    flex-shrink: 0;
}

/* ============================================
   WHAT'S INSIDE — CURIOSITY BULLETS
   ============================================ */
.whats-inside {
    text-align: center;
}

.whats-inside .section-header {
    margin-bottom: 64px;
}

.section-header__eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sleep-lavender);
    margin-bottom: 16px;
}

.section-header__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header__subtitle {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.bullets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    text-align: left;
}

.bullet-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.4s, transform 0.4s var(--ease-out), background 0.4s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bullet-card:hover {
    border-color: rgba(123, 104, 238, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.bullet-card__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
}

.bullet-card__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.bullet-card__desc {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.6;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    text-align: center;
    background: var(--bg-secondary);
}

.testimonials-section .section-header {
    margin-bottom: 56px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    text-align: left;
}

.testimonial-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(123, 104, 238, 0.1);
}

.testimonial-card__stars {
    color: var(--moon-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   VALUE STACK — BONUS SECTION
   ============================================ */
.value-stack {
    text-align: center;
}

.value-stack .section-header {
    margin-bottom: 56px;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.bonus-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.bonus-card:hover {
    border-color: rgba(123, 104, 238, 0.25);
    transform: translateY(-4px);
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.4s;
}

.bonus-card:hover::before {
    opacity: 1;
}

.bonus-card__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(123, 104, 238, 0.12);
    color: var(--sleep-lavender);
    margin-bottom: 20px;
}

.bonus-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bonus-card__desc {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.7;
}

.bonus-card__value {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.bonus-card__value strong {
    color: var(--text-primary);
}

/* Value totals */
.value-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.value-total__old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.value-total__new {
    font-size: 2.4rem;
    font-weight: 800;
}

.value-total__label {
    color: var(--text-secondary);
    font-size: var(--fs-small);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(123, 104, 238, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta__box {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 40px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.final-cta__title {
    font-size: var(--fs-h2);
    font-weight: 800;
    letter-spacing: -1px;
}

.final-cta__subtitle {
    color: var(--text-secondary);
    max-width: 440px;
}

/* Guarantee badge */
.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    background: rgba(123, 104, 238, 0.08);
    border: 1px solid rgba(123, 104, 238, 0.18);
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-top: 8px;
}

.guarantee-badge svg {
    color: var(--sleep-lavender);
    flex-shrink: 0;
}

/* ============================================
   STICKY FOOTER
   ============================================ */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px clamp(20px, 5vw, 40px);
    background: rgba(11, 14, 26, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-subtle);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-footer.visible {
    transform: translateY(0);
}

.sticky-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-footer__text {
    font-weight: 600;
    font-size: 0.95rem;
}

.sticky-footer__text span {
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px;
    font-size: var(--fs-small);
}

.btn-sticky {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-blue));
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-sticky:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-emerald-glow);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 40px clamp(20px, 5vw, 80px) 100px;
    border-top: 1px solid var(--border-subtle);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__brand {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: var(--fs-small);
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

/* ============================================
   EMAIL POPUP MODAL
   ============================================ */
.email-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 11, 22, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
    padding: 20px;
}

.email-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-popup {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(8, 11, 22, 0.5);
    overflow: hidden;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s var(--ease-out);
}

.email-popup-overlay.active .email-popup {
    transform: translateY(0) scale(1);
}

/* Decorative top gradient bar */
.email-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-emerald), var(--accent-blue));
}

.email-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.email-popup__close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.email-popup__content {
    padding: 48px 40px 40px;
    text-align: center;
}

.email-popup__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: bounceIn 0.6s var(--ease-out);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.email-popup__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.email-popup__subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

.email-popup__subtitle strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.email-popup__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-popup__input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.email-popup__input:focus {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 4px var(--accent-emerald-glow);
}

.email-popup__input::placeholder {
    color: var(--text-muted);
}

.email-popup__submit {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
}

.email-popup__privacy {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Success state */
.email-popup__success {
    display: none;
    text-align: center;
}

.email-popup__success.active {
    display: block;
    animation: fadeInUp 0.5s var(--ease-out);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.email-popup__success-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.email-popup__success h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(123, 104, 238, 0.08);
    border: 2px dashed rgba(123, 104, 238, 0.3);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.promo-code {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--sleep-lavender);
}

.promo-code-copy {
    padding: 6px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: var(--fs-small);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.promo-code-copy:hover {
    background: var(--accent-emerald);
    color: white;
    border-color: var(--accent-emerald);
}

.email-popup__success-text {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        align-items: center;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__cta-group {
        align-items: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__mockup {
        max-width: 340px;
    }

    .problem-solution .container {
        grid-template-columns: 1fr;
    }

    .bullets-grid {
        grid-template-columns: 1fr;
    }

    .bonus-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero__title {
        letter-spacing: -1px;
    }

    .authority-bar .container {
        flex-direction: column;
        gap: 16px;
    }

    .ps-card {
        padding: 32px;
    }

    .final-cta__box {
        padding: 40px 24px;
    }

    .sticky-footer .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .email-popup__content {
        padding: 40px 24px 32px;
    }

    .email-popup__title {
        font-size: 1.3rem;
    }

    .video-container {
        border-radius: var(--radius);
    }
}

/* ============================================
   MICRO-ANIMATION UTILITIES
   ============================================ */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--accent-emerald-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--accent-emerald-glow);
    }
}

.glow-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Subtle star particles background */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}