:root {
    --bg-dark: #11111f;
    --bg-darker: #11111f;
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --accent: #F59E0B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    min-height: 800px;
    background-image: url('https://images.weserv.nl/?url=i.ibb.co/xKcKqG8y/beach-after-sundown.png&w=1920&output=webp&q=80');
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('https://images.weserv.nl/?url=i.ibb.co/xKcKqG8y/beach-after-sundown.png&w=800&output=webp&q=80');
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(17, 17, 31, 0.3) 0%,
            rgba(17, 17, 31, 0.5) 70%,
            var(--bg-dark) 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    color: white;
    text-decoration: none;
}

.nav-btn {
    background: #007AFF;
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    background: #0062cc;
    transform: scale(1.05);
}

@keyframes float-vertical {

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

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

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    position: relative;
    overflow: visible;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    backdrop-filter: blur(10px);
}

.badge span {
    color: #FCD34D;
}

h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 500;
    max-width: 480px;
    line-height: 1.5;
    opacity: 0.9;
}



/* App Store Button */
.app-btn {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.app-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.app-btn img {
    height: 56px;
    width: auto;
    display: block;
}

/* 3D Phone Mockup */
.hero-visual {
    position: relative;
    perspective: 2000px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #11111f;
    border-radius: 45px;
    position: relative;
    transform: rotateY(-20deg) rotateX(10deg) rotateZ(-2deg);
    box-shadow:
        0 0 0 4px #1e1e2e,
        /* Inner Bezel */
        0 0 0 8px #11111f,
        /* Outer Frame */
        40px 50px 80px -20px rgba(0, 0, 0, 0.6),
        /* Deep Shadow */
        -20px -20px 60px rgba(255, 255, 255, 0.05) inset;
    /* Inner Light */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.phone-mockup:hover {
    transform: rotateY(-10deg) rotateX(5deg) translateY(-20px);
}

.phone-screen {
    position: absolute;
    inset: 4px;
    background: url('https://images.weserv.nl/?url=i.ibb.co/4wPTmKpc/stories-unlocked.png&w=600&output=webp&q=80') top center/100% 100% no-repeat;
    border-radius: 41px;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Screen Overlay Gradient */
.phone-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 40%, rgba(0, 0, 0, 0.6));
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #11111f;
    border-radius: 100px;
    z-index: 10;
}

/* Floating Widgets */
.float-card {
    position: absolute;
    background: rgba(13, 13, 18, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: float-vertical 6s infinite ease-in-out;
    z-index: 3;
    min-width: auto;
}

.float-1 {
    top: 120px;
    right: -60px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 140px;
    left: -60px;
    animation-delay: -3s;
}

.float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.float-content p {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

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

    h1 {
        font-size: 48px;
    }

    .hero-visual {
        transform: scale(0.9);
    }

    .phone-mockup {
        transform: rotateY(0) rotateX(0);
    }

    .float-1 {
        right: -20px;
    }

    .float-2 {
        left: -20px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 42px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .phone-mockup {
        width: 300px;
        height: auto;
        aspect-ratio: 280/580;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-visual {
        transform: scale(1);
        margin-top: 20px;
    }

    .phone-mockup {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 280/580;
    }

    .float-card {
        display: none;
    }

    .container {
        padding: 0 20px;
    }
}




/* Sleep Graph Section */
.sleep-graph-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
    position: relative;
}

.graph-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.graph-header {
    margin-bottom: 40px;
}

.graph-header h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.graph-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.graph-header .productivity-warning {
    color: #ffffff;
    font-weight: 500;
    margin-top: 16px;
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.graph-header .productivity-warning.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.canvas-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
    .sleep-graph-section .container {
        padding: 0 12px;
    }

    .canvas-container {
        padding: 12px 8px;
    }
}

#sleepGraph {
    width: 100%;
    height: 100%;
}

.graph-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.need {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dot.actual {
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 768px) {
    .canvas-container {
        height: 300px;
        padding: 12px;
    }

    .graph-header h3 {
        font-size: 24px;
    }
}

/* Sound Library Preview */
.sound-preview {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.sound-pills {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.pill:hover {
    border-color: var(--primary);
    color: white;
    background: rgba(99, 102, 241, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}



/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 48px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

/* Responsive */


/* Hollywood Sound Grid */
.sound-grid-section {
    padding: 120px 0;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.sound-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 2000px;
    /* Deep perspective for realism */
}

.sound-card {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.sound-card:hover {
    z-index: 10;
    /* Bring to front on hover */
}

.sound-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Interactive lift on hover for non-flipped cards */
.sound-card:not(.flipped):hover .sound-card-inner {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.sound-card.flipped .sound-card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    /* Deep shadow when flipped */
}

.sound-card-front,
.sound-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.sound-card-front {
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Glass Sheen on Front */
.sound-card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.05) 60%,
            rgba(255, 255, 255, 0) 100%);
    opacity: 0.7;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.sound-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6));
}

.sound-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #1a1a2e, #11111f);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Elegant Logo/Icon on Back */
.sound-card-back::after {
    content: attr(data-name);
    font-family: 'Pacifico', cursive;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    padding: 0 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
    transform: translateZ(20px);
    /* Parallax text */
}

/* Subtle shimmer on back */
.sound-card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
}

/* Mobile Grid Fix */
@media (max-width: 480px) {
    .sound-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0;
    }

    .sound-card:nth-child(n+9) {
        display: none;
    }

    .sound-card-back::after {
        font-size: 14px;
    }

    .section-title {
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .section-title h2 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .section-title p {
        font-size: 15px;
        line-height: 1.4;
    }
}

/* Upsell Section */
.upsell-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
    text-align: center;
}

.upsell-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.upsell-content h2 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.upsell-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .upsell-content h2 {
        font-size: 32px;
    }

    .upsell-content p {
        font-size: 16px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.faq-question {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.faq-icon {
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.9);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 16px;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 16px;
        padding: 20px;
    }

    .faq-answer-content {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}