/* =========================================================================
   LUMINDY LANDING PAGE — BLUEBERRY NIGHTS THEME 2.0
   ========================================================================= */

:root {
    /* ── Blueberry Nights Palette (from React Native app) ── */
    --color-bg-dark: #A793B8;
    /* original background */
    --color-indigo: #9B87AC;
    /* slightly darker surface */
    --color-berry-dark: #8A789A;
    /* even darker for depth */
    --color-berry: #9BA1A6;
    /* tabIconDefault greyish */
    --color-berry-light: #B8A6C9;
    /* slightly lighter purple */
    --color-slate: #9BA1A6;
    /* tabIconDefault */

    --color-accent-berry: #899E6A;
    /* submitButton / quoteBackground */
    --color-accent-berry-light: #9BB27C;
    /* slightly lighter olive green */
    --color-text-white: #F2F6FF;
    /* text / tint / icon */
    /* ── Semantic Tokens ── */
    --color-bg: var(--color-bg-dark);
    --color-bg-secondary: var(--color-indigo);
    --color-surface: var(--color-berry-dark);
    --color-primary: var(--color-berry-light);
    --color-primary-light: rgba(68, 76, 153, 0.25);
    --color-primary-dark: var(--color-berry);
    --color-accent: var(--color-accent-berry);
    --color-accent-light: var(--color-accent-berry-light);
    --color-text: var(--color-text-white);
    --color-text-muted: rgba(238, 242, 255, 0.65);
    --color-border: rgba(68, 76, 153, 0.3);

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 50px -10px rgba(251, 192, 45, 0.25);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Neon ambience haze ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Soft glowing dust/reflection feel (golden/blue glow) */
    background-image:
        radial-gradient(1.5px 1.5px at 15% 8%, rgba(251, 192, 45, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 42% 16%, rgba(68, 76, 153, 0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 29%, rgba(124, 133, 194, 0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 7% 45%, rgba(238, 242, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 62% 68%, rgba(251, 192, 45, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 75%, rgba(68, 76, 153, 0.7) 0%, transparent 100%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn-primary,
.btn-primary-small,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: #080914;
    padding: 16px 32px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(251, 192, 45, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 192, 45, 0.6);
    color: #080914;
    filter: brightness(1.1);
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: #080914;
    padding: 9px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.btn-primary-small:hover {
    filter: brightness(1.1);
    color: #080914;
}

.btn-secondary {
    background: rgba(68, 76, 153, 0.15);
    color: var(--color-text-white);
    padding: 16px 32px;
    font-size: 1.05rem;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(68, 76, 153, 0.3);
    border-color: var(--color-berry-light);
    transform: translateY(-2px);
    color: #fff;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    background: #899E6A;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: #F2F6FF;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-accent-light);
}

/* ── Mobile Hamburger ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    padding-top: 152px;
    padding-bottom: 120px;
    background:
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(68, 76, 153, 0.4) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(43, 51, 102, 0.5) 0%, transparent 70%),
        linear-gradient(180deg, var(--color-bg-dark) 0%, rgba(14, 18, 43, 0.9) 100%);
    overflow: hidden;
}

/* Moody violet haze in hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(251, 192, 45, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseHaze 10s ease-in-out infinite alternate;
}

@keyframes pulseHaze {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

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

.hero-content h1 {
    font-size: 3.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-text-white) 40%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 1;
}

/* Glow ring behind phone */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 192, 45, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    width: 320px;
    height: auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.phone-screen-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

/* Animations */
@keyframes float {

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

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

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

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave {
    fill: var(--color-bg-secondary);
}

/* ── Section Common ── */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 60px;
    -webkit-background-clip: text;
    background-clip: text;
}

/* ── Features Section / Carousel ── */
.features {
    padding: 80px 0 0;
    background: var(--color-bg-secondary);
    position: relative;
    z-index: 1;
}

/* Outer wrapper clips the sliding track */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 72px;
    /* space for dots */
}

/* The sliding rail — one child per slide, side by side */
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.carousel-track:active {
    cursor: grabbing;
}

/* Each slide spans the full viewport width */
.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 72px;
    padding: 40px 60px 48px;
}

/* Phone image side */
.slide-phone {
    flex: 0 0 auto;
    width: 280px;
    filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

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

/* Text side */
.slide-text {
    flex: 0 1 420px;
    text-align: left;
}

.slide-text h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--color-text-white);
}

.slide-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ── Navigation Arrows ── */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: var(--color-text-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--color-accent);
    color: #080914;
    box-shadow: 0 4px 20px rgba(137, 158, 106, 0.5);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* ── Dots ── */
.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-accent);
    width: 28px;
    border-radius: 5px;
}



/* ── How It Works Section ── */
.how-it-works {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: #080914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 12px rgba(251, 192, 45, 0.12), 0 4px 20px rgba(251, 192, 45, 0.3);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-text-white);
}

.step p {
    color: var(--color-text-muted);
}

/* ── Download Section ── */
.download {
    padding: 120px 0;
    background: var(--color-bg-secondary);
    position: relative;
    z-index: 1;
}

.download-container {
    background: linear-gradient(135deg, #899E6A 60%, var(--color-berry-light) 100%);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: var(--color-text);
    box-shadow: 0 20px 60px -10px rgba(43, 51, 102, 0.6);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 192, 45, 0.2);
}

/* Golden swirl overlay on CTA */
.download-container::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(251, 192, 45, 0.12) 0%, transparent 60%);
    border-radius: 50%;
    animation: swirlPulse 12s ease-in-out infinite alternate;
}

@keyframes swirlPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.1) rotate(10deg);
        opacity: 1;
    }
}

.download-container::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(68, 76, 153, 0.25) 0%, transparent 60%);
    border-radius: 50%;
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.download-container h2 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.download-image-wrapper {
    margin: 36px auto;
    max-width: 230px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(251, 192, 45, 0.3);
}

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

.download-container p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.app-store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-white);
    padding: 13px 28px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid rgba(251, 192, 45, 0.3);
    cursor: pointer;
}

.store-badge:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(251, 192, 45, 0.6);
    color: var(--color-accent-light);
    box-shadow: 0 6px 20px rgba(251, 192, 45, 0.25);
}

/* ── Footer ── */
.footer {
    background: var(--color-bg-dark);
    padding: 72px 0 36px;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 56px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li strong {
    font-size: 1rem;
    color: var(--color-accent-light);
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.footer-links ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--color-accent-light);
}

.copyright {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
    padding-top: 28px;
}

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

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-ctas {
        justify-content: center;
        margin-bottom: 60px;
    }

    /* Hide links, show hamburger */
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(8, 9, 20, 0.98);
        backdrop-filter: blur(16px);
        padding: 24px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .download-container h2 {
        font-size: 2.2rem;
    }
}

/* ── Carousel responsive (tablet) ── */
@media (max-width: 860px) {
    .carousel-slide {
        flex-direction: column;
        gap: 32px;
        padding: 32px 24px 48px;
        text-align: center;
    }

    .slide-phone {
        width: 220px;
    }

    .slide-text {
        text-align: center;
    }

    .slide-text h3 {
        font-size: 1.6rem;
    }

    .carousel-arrow {
        display: none;
    }
}

/* ========================================================================= */
/* RESPONSIVE — MOBILE                                                        */
/* ========================================================================= */
@media (max-width: 600px) {
    .container {
        padding: 0 18px;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 15px 24px;
        font-size: 1rem;
    }

    .phone-mockup {
        width: 260px;
    }

    /* Sections */
    .features {
        padding: 72px 0;
    }

    .how-it-works {
        padding: 72px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-image-wrapper {
        height: 360px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Download */
    .download {
        padding: 72px 0;
    }

    .download-container {
        padding: 52px 24px;
        border-radius: var(--radius-md);
    }

    .download-container h2 {
        font-size: 1.9rem;
    }

    .download-container p {
        font-size: 1rem;
    }

    .download-image-wrapper {
        max-width: 180px;
    }

    .store-badge {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 56px 0 28px;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        gap: 36px;
    }
}

/* ========================================================================= */
/* RESPONSIVE — SMALL PHONES (<= 380px)                                       */
/* ========================================================================= */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 220px;
    }
}
