/* ============================================
   SLEEPABLE.AI LANDING PAGE - COMPLETE CSS
   Matching React Preview Exactly
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* CSS Variables / Design Tokens */
:root {
    /* Colors - Dark Mode (Default) */
    --background: hsl(222, 47%, 7%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 10%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(292, 84%, 61%);
    --primary-foreground: hsl(210, 40%, 98%);
    --secondary: hsl(32, 95%, 54%);
    --secondary-foreground: hsl(222, 47%, 7%);
    --muted: hsl(222, 30%, 15%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(270, 95%, 75%);
    --border: hsl(222, 30%, 18%);
    --border-light: hsl(222, 30%, 25%);
    --magenta: hsl(322, 80%, 60%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(292, 84%, 61%), hsl(322, 80%, 60%));
    --gradient-secondary: linear-gradient(135deg, hsl(322, 80%, 60%), hsl(32, 95%, 54%));
    --gradient-full: linear-gradient(90deg, hsl(292, 84%, 61%) 0%, hsl(322, 80%, 60%) 50%, hsl(32, 95%, 54%) 100%);
    
    /* Shadows */
    --shadow-glow-sm: 0 0 20px hsla(292, 84%, 61%, 0.3);
    --shadow-glow-md: 0 0 40px hsla(292, 84%, 61%, 0.4);
    --shadow-glow-lg: 0 0 80px hsla(292, 84%, 61%, 0.5);
    
    /* Typography */
    --font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --letter-spacing: -0.013em;
    
    /* Spacing */
    --radius: 0.75rem;
    
    /* Star colors */
    --star-color: white;
    --star-opacity: 0.5;
}

/* Clean slider appearance: remove heavy shadows/reflections for a cleaner look
   Applies to both dark and light themes; includes mobile adjustments. */
.carousel-slide img,
.showcase-phone .phone-frame,
.showcase-phone.phone-left img,
.showcase-phone.phone-right img {
    box-shadow: none !important;
    filter: none !important;
}

.phone-mockup::after {
    display: none !important; /* remove reflection */
}

.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
    background: transparent !important; /* remove gradient fade edges for cleaner look */
}

.carousel-btn,
.carousel-btn:hover {
    box-shadow: none !important;
    border-color: rgba(255,255,255,0.06) !important;
    transform: none !important;
}

.carousel-dot.active {
    box-shadow: none !important;
}

@media (max-width: 768px) {
    /* Tighten carousel spacing and remove any residual overlay on mobile */
    .carousel-container,
    .carousel {
        background: transparent !important;
        padding: 0 !important;
    }

    .carousel-track-wrapper {
        padding: 0 8px !important;
    }

    .carousel-slide {
        padding: 0.25rem 0.25rem !important;
    }

    .showcase-phone .phone-frame {
        border: none !important;
        background: transparent !important;
    }
}

/* Extra mobile fix: remove any thin vertical edge/line from the carousel
   that can appear from pseudo-elements or gradient fades */
@media (max-width: 768px) {
    .carousel-track-wrapper::before,
    .carousel-track-wrapper::after,
    .carousel-container::before,
    .carousel-container::after {
        display: none !important;
        background: transparent !important;
        width: 0 !important;
        pointer-events: none !important;
    }

    /* Ensure slides don't show a vertical crop margin */
    .carousel-track {
        padding-left: 0 !important;
    }

    .carousel-slide img,
    .showcase-phone img {
        margin-left: 0 !important;
    }
}

.content-page {
    min-height: 100%;
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-family);
    padding: 2.5rem 1.5rem 1.5rem;
}

.content-page .section-container {
    max-width: 980px;
    margin: 2rem auto;
    background: rgba(14, 29, 48, 0.9);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.content-page h1,
.content-page h2 {
    color: var(--foreground);
    margin-top: 1.5rem;
}

.content-page h1 {
    margin-bottom: 1rem;
}

.content-page p,
.content-page li,
.content-page address {
    line-height: 1.75;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.content-page ul {
    margin-left: 1.25rem;
    margin-bottom: 1rem;
}

.content-page a {
    color: var(--primary);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

/* Light mode content styling */
[data-theme="light"] .content-page .section-container {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(36, 41, 52, 0.08);
}

[data-theme="light"] .content-page p,
[data-theme="light"] .content-page li,
[data-theme="light"] .content-page address {
    color: rgba(20, 25, 40, 0.95);
}

[data-theme="light"] .content-page h1,
[data-theme="light"] .content-page h2 {
    color: #111;
}
        transform: none !important;
    }

    .showcase-phone {
        overflow: hidden !important;
    }
}

/* Light Mode Theme */
[data-theme="light"] {
    --background: hsl(220, 20%, 97%);
    --foreground: hsl(0, 0%, 0%); /* stronger black for readability */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 0%);
    --muted: hsl(220, 14%, 96%);
    --muted-foreground: hsl(0, 0%, 28%); /* darker muted copy */
    --border: hsl(220, 13%, 87%);
    --border-light: hsl(220, 13%, 80%);
    --shadow-glow-sm: 0 0 20px hsla(292, 84%, 61%, 0.15);
    --shadow-glow-md: 0 0 40px hsla(292, 84%, 61%, 0.2);
    --shadow-glow-lg: 0 0 80px hsla(292, 84%, 61%, 0.25);
    --star-color: hsl(292, 84%, 61%);
    --star-opacity: 0.12;
}

/* Ensure readable black text across common content in light mode */
[data-theme="light"] body,
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-description,
[data-theme="light"] .hero-subtext,
[data-theme="light"] .hero-badge,
[data-theme="light"] .section-title,
[data-theme="light"] .section-description,
[data-theme="light"] .feature-title,
[data-theme="light"] .feature-description,
[data-theme="light"] .subscribe-title,
[data-theme="light"] .subscribe-form input,
[data-theme="light"] .qr-text,
[data-theme="light"] .qr-title,
[data-theme="light"] .qr-subtitle,
[data-theme="light"] .footer-tagline,
[data-theme="light"] .showcase-description,
[data-theme="light"] .stat-label,
[data-theme="light"] .stat-value,
[data-theme="light"] .step-title,
[data-theme="light"] .step-description,
[data-theme="light"] .cta-description,
[data-theme="light"] .mobile-nav-link,
[data-theme="light"] .nav-link,
[data-theme="light"] .section-badge,
[data-theme="light"] .subscribe-section p,
[data-theme="light"] .carousel-dots {
    color: var(--foreground) !important;
}

/* Force all content-page text to be readable in light theme */
[data-theme="light"] .content-page,
[data-theme="light"] .content-page * {
    color: #000 !important;
}

/* Keep inputs/buttons readable too */
[data-theme="light"] .content-page input,
[data-theme="light"] .content-page textarea,
[data-theme="light"] .content-page button,
[data-theme="light"] .content-page label {
    color: #000 !important;
}

/* Improve input placeholder and form text contrast in light theme */
[data-theme="light"] .subscribe-form input::placeholder {
    color: var(--muted-foreground) !important;
}

/* Keep stat card text white on dark stat panels when in light theme */
[data-theme="light"] .stat-card .stat-value,
[data-theme="light"] .stat-card .stat-label {
    color: #ffffff !important;
}

/* If stat values used gradient text, fall back to solid white for readability */
[data-theme="light"] .stat-card .gradient-text-primary,
[data-theme="light"] .stat-card .gradient-text-secondary,
[data-theme="light"] .stat-card .gradient-text-full {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* Ensure placeholder is light on the dark input */
[data-theme="light"] .subscribe-form input::placeholder {
    color: rgba(255,255,255,0.75) !important;
}

/* Target common icons/SVGs so inline stroke/fill colors remain readable in light mode */
[data-theme="light"] .social-link svg,
[data-theme="light"] .header .theme-icon,
[data-theme="light"] .nav-link svg,
[data-theme="light"] .mobile-nav-link svg,
[data-theme="light"] .subscribe-section svg,
[data-theme="light"] .qr-inner svg {
    stroke: var(--foreground) !important;
    fill: var(--foreground) !important;
    color: var(--foreground) !important;
}

/* Light theme readability overrides */
[data-theme="light"] .nav-link,
[data-theme="light"] .mobile-nav-link {
    color: var(--muted-foreground);
}

[data-theme="light"] .nav-link {
    color: var(--muted-foreground);
}

[data-theme="light"] .nav-link:hover {
    color: var(--foreground);
}

[data-theme="light"] .hero-title {
    color: var(--foreground);
}

[data-theme="light"] .hero-description,
[data-theme="light"] .hero-subtext,
[data-theme="light"] .hero-badge {
    color: #000000 !important; /* black for light theme */
}

[data-theme="light"] .hero-description * {
    color: #000000 !important;
}

[data-theme="light"] .hero-subtext * {
    color: #000000 !important;
}

[data-theme="light"] .hero-badge {
    background: hsla(222, 30%, 95%, 0.6);
    border-color: var(--border);
}

[data-theme="light"] .header {
    background: transparent;
}

[data-theme="light"] .theme-toggle {
    background: var(--card);
    border-color: var(--border);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    letter-spacing: var(--letter-spacing);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.gradient-text {
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-full {
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Effect */
.glass {
    background: hsla(222, 47%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 25%, 0.5);
}

/* ============================================
   STARS BACKGROUND
   ============================================ */

.stars-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    border-radius: 50%;
    opacity: var(--star-opacity);
    animation: twinkle 3s ease-in-out infinite;
}

/* Light mode adjustments */
[data-theme="light"] .stars-container {
    opacity: 0.6;
}

[data-theme="light"] .header.scrolled {
    background: hsla(0, 0%, 100%, 0.9);
}

[data-theme="light"] .mobile-menu {
    background: hsla(0, 0%, 100%, 0.95);
}

[data-theme="light"] .glass {
    background: hsla(0, 0%, 100%, 0.8);
}

[data-theme="light"] .hero-glow {
    opacity: 0.3;
}

[data-theme="light"] .feature-card {
    background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(220, 14%, 96%) 100%);
    box-shadow: 0 4px 20px hsla(222, 47%, 11%, 0.08);
}

[data-theme="light"] .phone-frame {
    background: linear-gradient(180deg, hsl(220, 14%, 96%) 0%, hsl(0, 0%, 100%) 100%);
    box-shadow: 0 20px 60px hsla(222, 47%, 11%, 0.15);
}

[data-theme="light"] .step-card {
    background: hsl(0, 0%, 100%);
    box-shadow: 0 4px 20px hsla(222, 47%, 11%, 0.08);
}

[data-theme="light"] .cta-card {
    background: linear-gradient(180deg, hsl(0, 0%, 100%) 0%, hsl(220, 14%, 96%) 100%);
    box-shadow: 0 20px 60px hsla(222, 47%, 11%, 0.12);
}

[data-theme="light"] .footer {
    background: hsl(220, 14%, 96%);
    border-top-color: var(--border);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: hsla(292, 84%, 61%, 0.6);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: relative; /* changed from fixed to make header non-fixed */
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: hsla(222, 47%, 10%, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 80px; /* reduced to fit header (was 90px) */
    height: auto;
    border-radius: 0.75rem;
    object-fit: contain;
    transition: width 0.25s ease, transform 0.25s ease;
}

/* Alternate logo element used only for light theme to ensure good contrast
   Default: hide the alt image. When light theme is active, swap images. */
.logo-img--alt {
    display: none;
}

/* When light theme is active, hide the default (dark) logo and show the alt */
[data-theme="light"] .logo-img {
    display: none !important;
}
[data-theme="light"] .cta-app-info img {
    display: inline-block ! IMPORTANT;
}

[data-theme="light"] .logo-img--alt {
    display: inline-block !important;
    width: 48px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-dot {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 16px;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-md);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--muted);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--border-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
    transform: scale(1.05);
}

.theme-icon {
    position: absolute;
    color: var(--foreground);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark mode (default) - show sun, hide moon */
.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Light mode - show moon, hide sun */
[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle {
    background: hsl(0, 0%, 100%);
    border-color: var(--border);
}

[data-theme="light"] .theme-toggle:hover {
    background: var(--muted);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--foreground);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: hsla(222, 47%, 10%, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 1rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--foreground);
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .nav, .header-download {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    /* Slightly smaller logo on mobile to keep header compact */
    .logo-img {
        width: 80px;
    }

    .content-page {
        padding: 1.25rem 0.75rem 1.5rem;
    }

    .content-page .section-container {
        margin: 1rem auto;
        padding: 1.5rem;
        border-radius: 0.85rem;
    }

    .footer {
        padding: 2.25rem 0 1.5rem;
    }

    .footer-container {
        padding: 0 0.75rem;
    }

    .footer-links {
        gap: 1.25rem;
    }

    .footer-column h4 {
        font-size: 0.82rem;
    }

    .footer-column a {
        font-size: 0.82rem;
    }
}

/* Fixes for light (white) mobile view
   - ensure breadcrumb/badge icon and text are visible
   - hide header download button on mobile in light theme
   - make theme-toggle button black with white icon in light theme
*/

[data-theme="light"] .hero-badge,
[data-theme="light"] .hero-badge svg,
[data-theme="light"] .hero-description,
[data-theme="light"] .hero-description *,
[data-theme="light"] .hero-subtext,
[data-theme="light"] .hero-subtext * {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

@media (max-width: 768px) {
    .download-btn.header-download {
        display: none !important;
    }
}

[data-theme="light"] .theme-toggle {
    background: #0b0b0b !important;
    border-color: rgba(0,0,0,0.12) !important;
}

[data-theme="light"] .theme-toggle .theme-icon,
[data-theme="light"] .theme-toggle svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Stronger overrides to ensure visibility in case of later rules
   Force breadcrumb / mobile menu text to dark in light theme */
body[data-theme="light"] .hero-badge,
body[data-theme="light"] .hero-badge * {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

body[data-theme="light"] .hero-description,
body[data-theme="light"] .hero-description * {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

body[data-theme="light"] .hero-subtext,
body[data-theme="light"] .hero-subtext * {
    color: #000000 !important;
    fill: #000000 !important;
    stroke: #000000 !important;
}

body[data-theme="light"] .mobile-nav-link,
body[data-theme="light"] .mobile-nav-link * {
    color: #1f2937 !important;
    fill: #1f2937 !important;
    stroke: #1f2937 !important;
}

/* Header download button is visible on desktop; hidden on mobile via media query above */

/* Small subtitle under hero title */
.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: var(--foreground);
    margin: 0.6rem 0 0 0;
    font-weight: 600;
    line-height: 1;
    position: relative;
    display: inline-block; /* keep pseudo lines attached to the text */
    text-align: left;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    width: 56px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12));
    border-radius: 2px;
    opacity: 0.85;
}

.hero-subtitle::before { right: 100%; margin-right: 14px; }
.hero-subtitle::after  { left: 100%;  margin-left: 14px; }

@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 0.95rem;
        display: inline-block;
    }
    .hero-subtitle::before,
    .hero-subtitle::after {
        width: 40px;
        margin: 0 8px;
    }
}

.tagline{
    display:flex;
    align-items:center;
    gap:18px;
    width:100%;
    margin:25px 0;
    margin-top: 5px;
}

/* center content */
.tagline-content{
    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
}

.text{
    font-size:clamp(20px,2vw,36px);
    color:#fff;
    font-weight:500;
}
span.text {
    font-size: 28px;
}

/* smaller decorative lines */
.line{
    flex:1;
    max-width:90px;
    height:2px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );
}

.tagline-content{
    display:flex;
    align-items:center;
    gap:6px;   /* reduce spacing */
    white-space:nowrap;
}

.moon {
    width: 30px;
    height: 30px;
    margin-left: 0px;
    transform: translateY(4px);
}

/* cutout to create crescent */
.moon::after{
    content:"";
    position:absolute;
    width:18px;
    height:18px;
    background:#0b0f2c; /* match your background */
    border-radius:50%;
    left:6px;
    top:0;
}

/* Light theme override for tagline */
[data-theme="light"] .tagline {
    /* container stays unchanged since children handle colors */
}
[data-theme="light"] .tagline-content svg.moon path {
    fill: #000 ! IMPORTANT;
}
[data-theme="light"] .tagline .text {
    color: #000000 !important;
}
[data-theme="light"] .tagline .line {
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.35),
        transparent
    ) !important;
}

/* ensure the crescent cutout contrasts on light background */
[data-theme="light"] .tagline .moon::after {
    background: #f5f5f5 !important;
}
[data-theme="light"] .carousel-btn svg {
    color: #fff !important;
}

@media (max-width: 768px) {
    .hero-subtext {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.glow-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: hsla(292, 84%, 61%, 0.2);
    animation: pulseGlow 4s ease-in-out infinite;
}

.glow-2 {
    top: 30%;
    right: 25%;
    width: 400px;
    height: 400px;
    background: hsla(270, 95%, 75%, 0.1);
    animation: floatGlow 8s ease-in-out infinite;
}

.glow-3 {
    bottom: 30%;
    left: 25%;
    width: 300px;
    height: 300px;
    background: hsla(32, 95%, 54%, 0.1);
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes floatGlow {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(222, 47%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 25%, 0.5);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    color: var(--primary);
}

.hero-title {
    font-size: clamp(3rem, 7.5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.92; /* tighter between the two headline lines */
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 16px;
    color: var(--muted-foreground);
    max-width: 540px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 25px;
}

/* Store badge styles for App Store / Play Store images */
.store-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.store-link {
    display: inline-block;
}

.store-badge {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-glow-sm);
}

@media (max-width: 640px) {
    .store-badge {
        height: 48px;
        max-width: 260px;
    }
    .store-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--foreground);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--muted);
    border: 1px solid var(--border);
    color: var(--foreground);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: hsl(222, 30%, 20%);
    border-color: hsla(292, 84%, 61%, 0.5);
    box-shadow: 0 0 30px hsla(292, 84%, 61%, 0.2);
}

/* Ensure secondary button text/icons are white on hover in light theme */
[data-theme="light"] .btn-secondary:hover {
    color: #ffffff !important;
}

[data-theme="light"] .btn-secondary:hover svg,
[data-theme="light"] .btn-secondary:hover .btn-store svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qr-code {
    padding: 0.75rem;
    background: hsla(222, 47%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 25%, 0.5);
    border-radius: 1rem;
    animation: qrGlow 3s ease-in-out infinite;
}

.qr-inner {
    width: 96px;
    height: 96px;
    background: var(--foreground);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-inner svg {
    color: var(--background);
}

@keyframes qrGlow {
    0%, 100% { box-shadow: 0 0 20px hsla(292, 84%, 61%, 0.3); }
    50% { box-shadow: 0 0 40px hsla(292, 84%, 61%, 0.5); }
}

.qr-text {
    text-align: left;
}

.qr-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.qr-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Hero Visual - Moon */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 560px; /* keep visual from growing too large on very wide screens */
    align-items: center;
}

.moon-container {
    position: relative;
    width: clamp(280px, 35vw, 700px);
    height: clamp(280px, 35vw, 700px);
    max-width: 700px;
}

.moon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid hsla(292, 84%, 61%, 0.1);
    animation: ringPulse 4s ease-in-out infinite;
}

.ring-1 { margin: -50px; animation-delay: 0s; }
.ring-2 { margin: -80px; animation-delay: 0.5s; border-color: hsla(292, 84%, 61%, 0.05); }
.ring-3 { margin: -110px; animation-delay: 1s; border-color: hsla(292, 84%, 61%, 0.03); }

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.moon-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    animation: moonFloat 6s ease-in-out infinite;
    border-radius: 50%;
    overflow: hidden;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.moon-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, hsla(292, 84%, 61%, 0.4), transparent 70%);
    filter: blur(30px);
    animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.moon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px hsla(292, 84%, 61%, 0.3));
    animation: moonBreathe 4s ease-in-out infinite;
}

@keyframes moonBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.orbit {
    position: absolute;
    inset: 0;
}

.orbit-1 { animation: orbitRotate 30s linear infinite; }
.orbit-2 { animation: orbitRotate 25s linear infinite reverse; }
.orbit-3 { animation: orbitRotate 40s linear infinite; }

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--foreground);
}

.dot-2 {
    bottom: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    animation-delay: 1s;
}

.dot-3 {
    top: 25%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    animation-delay: 0.5s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Stat Cards */
.stat-card {
    position: absolute;
    background: hsla(222, 47%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 25%, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    animation: statFloat 5s ease-in-out infinite;
}

.stat-1 {
    left: -32px;
    top: 25%;
    animation-delay: 0s;
}

.stat-2 {
    right: -16px;
    top: 66%;
    animation-delay: 1s;
}

.stat-3 {
    bottom: -16px;
    left: 25%;
    animation-delay: 0.5s;
}

@keyframes statFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid hsla(215, 20%, 65%, 0.3);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 12px;
    background: var(--primary);
    border-radius: 9999px;
    animation: scrollDot 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .qr-section {
        justify-content: center;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .moon-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .qr-section {
        flex-direction: column;
    }
    
    .qr-text {
        text-align: center;
    }
    
    .moon-container {
        width: 240px;
        height: 240px;
    }
    
    .stat-card {
        display: none;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 8rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(180deg, hsl(222, 40%, 12%) 0%, hsl(222, 47%, 10%) 100%);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.5s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: hsla(292, 84%, 61%, 0.3);
    box-shadow: 0 20px 60px hsla(0, 0%, 0%, 0.3), 0 0 40px hsla(292, 84%, 61%, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-pink {
    background: linear-gradient(135deg, hsla(292, 84%, 61%, 0.2), hsla(292, 84%, 61%, 0.1));
    color: var(--primary);
}

.icon-magenta {
    background: linear-gradient(135deg, hsla(322, 80%, 60%, 0.2), hsla(322, 80%, 60%, 0.1));
    color: var(--magenta);
}

.icon-orange {
    background: linear-gradient(135deg, hsla(32, 95%, 54%, 0.2), hsla(32, 95%, 54%, 0.1));
    color: var(--secondary);
}

.icon-purple {
    background: linear-gradient(135deg, hsla(270, 95%, 75%, 0.2), hsla(270, 95%, 75%, 0.1));
    color: var(--accent);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */

.how-it-works {
    padding: 0rem 0;
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 3rem;
}

.step-card-v2 {
    position: relative;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    transition: all 0.5s ease;
}

.step-card-v2:hover {
    transform: translateY(-5px);
    border-color: hsla(292, 84%, 61%, 0.3);
    box-shadow: 0 0 30px hsla(292, 84%, 61%, 0.1);
}

.step-number-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    box-shadow: 0 0 20px hsla(292, 84%, 61%, 0.3);
    transition: transform 0.3s ease;
}

.step-card-v2:hover .step-number-badge {
    transform: scale(1.1) rotate(5deg);
}

.step-icon-glass {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: hsla(292, 84%, 61%, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(292, 84%, 61%, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(292, 84%, 61%);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.step-card-v2:hover .step-icon-glass {
    transform: scale(1.1);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.step-arrow {
    display: none;
    position: absolute;
    top: 50%;
    right: -2.5rem;
    transform: translateY(-50%);
    color: hsla(292, 84%, 61%, 0.3);
    animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(5px); }
}

@media (min-width: 1025px) {
    .step-arrow {
        display: block;
    }
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

[data-theme="light"] .step-icon-glass {
    background: hsla(292, 84%, 61%, 0.08);
    border-color: hsla(292, 84%, 61%, 0.12);
}

[data-theme="light"] .step-number-badge {
    box-shadow: 0 4px 15px hsla(292, 84%, 61%, 0.25);
}

/* ============================================
   SCREENSHOTS CAROUSEL - ENHANCED
   ============================================ */

.screenshots {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Background glow for carousel section */
.screenshots::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, hsla(292, 84%, 61%, 0.15), transparent 70%);
    pointer-events: none;
    animation: carouselGlow 6s ease-in-out infinite;
}

@keyframes carouselGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0; /* tightened vertical spacing */
}

.carousel {
    display: flex;
    align-items: center;
    gap: 1rem; /* tighter gap so 3 fit neatly */
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: hsla(222, 47%, 10%, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid hsla(292, 84%, 61%, 0.3);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.carousel-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px hsla(292, 84%, 61%, 0.5), 0 0 60px hsla(292, 84%, 61%, 0.2);
    transform: scale(1.1);
}

.carousel-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.carousel-btn:hover svg {
    transform: scale(1.1);
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 40px; /* allow arrows and left spacing */
}

/* Gradient fade edges */
.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
    pointer-events: none;
}

.carousel-track-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--background) 0%, transparent 100%);
}

.carousel-track-wrapper::after {
    right: 0;
    background: transparent;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem; /* reduced padding to tighten vertical spacing */
    opacity: 1;
    transition: all 0.35s ease;
}

.phone-mockup {
    perspective: 1200px;
    position: relative;
}

/* Reflection effect */
.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%) rotateX(80deg);
    width: 180px;
    height: 100px;
    background: linear-gradient(180deg, hsla(292, 84%, 61%, 0.2), transparent);
    filter: blur(20px);
    opacity: 0.6;
    pointer-events: none;
}

.phone-frame {
    width: 320px;
    height: 550px;
    background: linear-gradient(180deg, hsl(222, 40%, 18%) 0%, hsl(222, 47%, 8%) 100%);
    border-radius: 3rem;
    padding: 0.75rem;
    position: relative;
    border: 3px solid hsl(222, 30%, 25%);
    box-shadow: 
        0 30px 60px hsla(0, 0%, 0%, 0.5),
        0 0 40px hsla(292, 84%, 61%, 0.15),
        inset 0 1px 0 hsla(255, 255%, 255%, 0.1),
        inset 0 -1px 0 hsla(0, 0%, 0%, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Animated gradient border */
.phone-frame::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-full);
    border-radius: 3.2rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: phoneBorderRotate 4s linear infinite;
}

@keyframes phoneBorderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.phone-mockup:hover .phone-frame::before {
    opacity: 0.8;
}

.phone-mockup:hover .phone-frame {
    transform: rotateY(-8deg) rotateX(5deg) translateY(-10px) scale(1.02);
    box-shadow: 
        0 40px 80px hsla(0, 0%, 0%, 0.6),
        0 0 60px hsla(292, 84%, 61%, 0.3),
        inset 0 1px 0 hsla(255, 255%, 255%, 0.15);
}

/* Glare effect */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, hsla(255, 255%, 255%, 0.08) 0%, transparent 100%);
    border-radius: 3rem 3rem 0 0;
    pointer-events: none;
}

.phone-notch {
    width: 90px;
    height: 28px;
    background: hsl(222, 47%, 5%);
    border-radius: 0 0 1.25rem 1.25rem;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: inset 0 -1px 0 hsla(255, 255%, 255%, 0.05);
}

/* Camera dot in notch */
.phone-notch::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: hsl(222, 30%, 20%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px hsla(0, 0%, 0%, 0.5);
}

.phone-screen {
    width: 100%;
    height: calc(100% - 44px);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Screen glow effect */
.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, hsla(255, 255%, 255%, 0.1), transparent 50%);
    pointer-events: none;
}

.screen-1 { background: linear-gradient(180deg, hsl(270, 60%, 22%) 0%, hsl(280, 50%, 12%) 100%); }
.screen-2 { background: linear-gradient(180deg, hsl(220, 60%, 18%) 0%, hsl(230, 50%, 10%) 100%); }
.screen-3 { background: linear-gradient(180deg, hsl(200, 60%, 18%) 0%, hsl(210, 50%, 10%) 100%); }
.screen-4 { background: linear-gradient(180deg, hsl(280, 60%, 20%) 0%, hsl(290, 50%, 12%) 100%); }
.screen-5 { background: linear-gradient(180deg, hsl(320, 60%, 20%) 0%, hsl(330, 50%, 12%) 100%); }
.screen-6 { background: linear-gradient(180deg, hsl(260, 60%, 20%) 0%, hsl(270, 50%, 12%) 100%); }

.screen-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.screen-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    text-shadow: 0 2px 10px hsla(0, 0%, 0%, 0.3);
}

.screen-content p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
}

.sleep-ring {
    width: 110px;
    height: 110px;
    border: 8px solid transparent;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    background: 
        linear-gradient(var(--background), var(--background)) padding-box,
        var(--gradient-primary) border-box;
    animation: ringPulse 3s ease-in-out infinite;
    box-shadow: 0 0 30px hsla(292, 84%, 61%, 0.4);
}

.sleep-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(10px);
    opacity: 0.5;
    animation: ringGlow 2s ease-in-out infinite;
}

@keyframes ringGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    height: 90px;
    margin-bottom: 1rem;
}

.bar {
    width: 22px;
    background: var(--gradient-primary);
    border-radius: 6px;
    animation: barGrow 1s ease-out forwards;
    box-shadow: 0 0 15px hsla(292, 84%, 61%, 0.4);
    position: relative;
}

.bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, hsla(255, 255%, 255%, 0.2), transparent);
    border-radius: 6px;
}

@keyframes barGrow {
    from { height: 0; opacity: 0; }
    to { opacity: 1; }
}

.alarm-time {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px hsla(292, 84%, 61%, 0.5));
}

.sound-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 70px;
    margin-bottom: 1rem;
}

.sound-waves span {
    width: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px hsla(292, 84%, 61%, 0.5);
}

.sound-waves span:nth-child(1) { height: 24px; animation-delay: 0s; }
.sound-waves span:nth-child(2) { height: 48px; animation-delay: 0.15s; }
.sound-waves span:nth-child(3) { height: 70px; animation-delay: 0.3s; }
.sound-waves span:nth-child(4) { height: 48px; animation-delay: 0.45s; }
.sound-waves span:nth-child(5) { height: 24px; animation-delay: 0.6s; }


@keyframes wave {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.4); opacity: 0.7; }
}

.progress-circle {
    width: 110px;
    height: 110px;
    border: 8px solid hsla(222, 30%, 20%, 0.5);
    border-top-color: hsl(292, 84%, 61%);
    border-right-color: hsl(322, 80%, 60%);
    border-bottom-color: hsl(32, 95%, 54%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: progressSpin 3s linear infinite;
    box-shadow: 0 0 30px hsla(292, 84%, 61%, 0.3);
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(hsl(292, 84%, 61%), hsl(322, 80%, 60%), hsl(32, 95%, 54%), hsl(292, 84%, 61%));
    filter: blur(15px);
    opacity: 0.4;
    animation: progressSpin 3s linear infinite reverse;
}

.progress-circle span {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    animation: progressSpinReverse 3s linear infinite;
}

@keyframes progressSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes progressSpinReverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.ai-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px hsla(292, 84%, 61%, 0.5));
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.05) rotate(-5deg); }
    75% { transform: scale(1.15) rotate(3deg); }
}

.slide-caption {
    margin-top: 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    position: relative;
    padding-bottom: 0.5rem;
}

.slide-caption::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Enhanced dots with progress animation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsla(222, 30%, 25%, 0.6);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-dot:hover {
    background: hsla(292, 84%, 61%, 0.3);
    transform: scale(1.2);
}

.carousel-dot.active {
    width: 36px;
    border-radius: 6px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px hsla(292, 84%, 61%, 0.6);
}

.carousel-dot.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: hsla(255, 255%, 255%, 0.3);
    border-radius: 6px;
    animation: dotProgress 4s linear forwards;
}

@keyframes dotProgress {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .carousel-track-wrapper::before,
    .carousel-track-wrapper::after {
        width: 40px;
    }
    
    .phone-frame {
        width: 320px;
        height: 550px;
    }
}

@media (max-width: 640px) {
    .phone-frame {
        width: 180px;
        height: 380px;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel {
        gap: 0.5rem;
    }
    
    .carousel-slide {
        padding: 0.5rem;
    }
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
    padding-top: 8rem;
    position: relative;
}

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

.video-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: hsl(222, 47%, 10%);
    border: 1px solid var(--border);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, hsl(222, 40%, 12%) 0%, hsl(222, 47%, 8%) 100%);
    position: relative;
    overflow: hidden;
}

.video-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center, hsla(292, 84%, 61%, 0.3), transparent 70%);
    animation: videoGlow 4s ease-in-out infinite;
}

@keyframes videoGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: playPulse 2s ease-in-out infinite;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-lg);
}

@keyframes playPulse {
    0%, 100% { box-shadow: 0 0 0 0 hsla(292, 84%, 61%, 0.4); }
    50% { box-shadow: 0 0 0 20px hsla(292, 84%, 61%, 0); }
}

.video-text {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    position: relative;
    z-index: 1;
}

/* Ensure the play button icon and video caption remain white when over dark visuals */
[data-theme="light"] .video-placeholder .play-button,
[data-theme="light"] .video-placeholder .play-button svg {
    color: #ffffff !important;
}

[data-theme="light"] .video-placeholder .video-text {
    color: #ffffff !important;
}

/* ============================================
   APP SHOWCASE SECTION
   ============================================ */

.app-showcase {
    padding: 4rem 0;
    position: relative;
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 6rem; /* increased gap between phones and text */
}

.showcase-phones {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 580px;
}

.showcase-phone {
    position: absolute;
    transition: all 0.5s ease;
}

.showcase-phone .phone-frame {
    width: 224px;
    height: 460px;
    border-radius: 2.5rem;
    border-width: 4px;
}

.phone-left {
    left: 50%;
    transform: translateX(calc(-90% - 80px)) rotate(-8deg) scale(0.9);
    opacity: 1;
    z-index: 1;
}

/* Left phone: show plain image without mockup border/frame like reference */
.showcase-phone.phone-left img {
    width: 280px;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: none;
    border: none;
    transform-origin: center;
    opacity: 0.95;
}

.phone-center {
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.phone-center .phone-frame {
    width: 320px;
    height: 600px;
    border-radius: 3rem;
    border-width: 4px;
    box-shadow: 0 30px 60px hsla(0, 0%, 0%, 0.5), var(--shadow-glow-md);
}

.phone-right {
    left: 50%;
    transform: translateX(calc(-18% + 80px)) rotate(8deg) scale(0.9);
    opacity: 1;
    z-index: 1;
}

/* Right phone: slightly dim/backdrop to match reference */
.showcase-phone.phone-right img {
    width: 260px;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    opacity: 0.9;
}

.screen-showcase-1,
.screen-showcase-2,
.screen-showcase-3 {
    background: linear-gradient(180deg, hsl(270, 60%, 20%) 0%, hsl(280, 50%, 15%) 100%);
}

.mini-chart {
    width: 80%;
    height: 100px;
    background: linear-gradient(180deg, hsla(292, 84%, 61%, 0.3), transparent);
    border-radius: 0.5rem;
    margin: auto;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    margin: auto;
}

.stat-item {
    height: 20px;
    background: hsla(292, 84%, 61%, 0.3);
    border-radius: 0.5rem;
}

/* Phone center glow */
.phone-center-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, hsla(292, 84%, 61%, 0.2), transparent 70%);
    filter: blur(40px);
    transform: scale(1.5);
}

/* Showcase main screen content */
.showcase-main-screen {
    display: flex;
    flex-direction: column;
    padding: 0.75rem !important;
    text-align: center;
}

.showcase-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.showcase-status-icons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.status-bar-dot {
    width: 12px;
    height: 6px;
    border-radius: 2px;
    background: hsla(0, 0%, 100%, 0.3);
}

.status-bar-battery {
    width: 18px;
    height: 9px;
    border-radius: 2px;
    background: hsl(292, 84%, 61%);
}

.showcase-sleep-time {
    margin-bottom: 0.75rem;
}

.showcase-sleep-label {
    font-size: 0.65rem;
    color: var(--muted-foreground);
    margin: 0;
}

.showcase-sleep-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.15rem 0;
    animation: sleepValuePulse 2s ease-in-out infinite;
}

@keyframes sleepValuePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.showcase-score-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 0.75rem;
}

.score-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-progress {
    animation: ringDraw 1.5s ease-out forwards;
}

@keyframes ringDraw {
    from { stroke-dashoffset: 352; }
    to { stroke-dashoffset: 52; }
}

.score-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.score-label {
    font-size: 0.55rem;
    color: var(--muted-foreground);
}

.showcase-stages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.stage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stage-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

.stage-dot-primary { background: hsl(292, 84%, 61%); }
.stage-dot-accent { background: hsl(32, 95%, 54%); }
.stage-dot-secondary { background: hsl(220, 70%, 55%); }

.stage-info span {
    font-size: 0.6rem;
    color: var(--muted-foreground);
}

.stage-value {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--foreground);
}

.showcase-text {
    flex: 1;
}

.showcase-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.showcase-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--muted-foreground);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--foreground);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .showcase-content {
        flex-direction: column;
    }
    
    .showcase-phones {
        order: 1;
    }
    
    .showcase-text {
        order: 2;
        text-align: center;
    }
    
    .showcase-features {
        align-items: center;
    }
}

@media (max-width: 640px) {
    .phone-left, .phone-right {
        display: none;
    }
    
    .phone-center {
        position: relative;
        left: auto;
        transform: none;
    }
}

/* ============================================
   DOWNLOAD CTA SECTION - MATCHING REACT PREVIEW
   ============================================ */

.download-cta {
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, hsla(292, 84%, 61%, 0.1), transparent 70%);
    pointer-events: none;
    animation: ctaGlowPulse 10s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.cta-card {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 2.5rem;
    overflow: hidden;
}

/* Decorative CTA gradient border removed per request. */

.cta-card-inner {
    position: relative;
    background: var(--card);
    border-radius: calc(2.5rem - 2px);
    margin: 2px;
    padding: 3rem;
}

.cta-main-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cta-left {
    flex: 1;
}

.cta-app-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cta-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 6px 24px hsla(292, 84%, 61%, 0.22);
    transition: transform 0.25s ease;
}

.cta-app-icon:hover {
    transform: scale(1.06) rotate(3deg);
}

.cta-app-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cta-app-name {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.25rem;
}

.cta-rating .star {
    color: var(--secondary);
    font-size: 1.3rem;
    line-height: 1;
}

.rating-text {
    font-size: 1.4rem;
    color: var(--muted-foreground);
    margin-left: 0.5rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* App Store / Google Play badge style (black with white border like reference) */
.btn-store {
    background: #0b0b0b;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.95);
    padding: 8px 14px;
    border-radius: 10px;
    min-height: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
}

.btn-store svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #ffffff;
    fill: currentColor;
    stroke: currentColor;
}

/* PNG/SVG icon inside store buttons */
.btn-store-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1;
}

.btn-store-small {
    font-size: 11px;
    opacity: 0.9;
    color: #ffffff;
}

.btn-store-large {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store-small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-store-large {
    font-size: 1rem;
    font-weight: 600;
}

.cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-qr-container {
    position: relative;
    padding: 1.5rem;
    background: hsla(222, 47%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsla(222, 30%, 25%, 0.5);
    border-radius: 1.5rem;
    animation: qrGlow 3s ease-in-out infinite;
}

.cta-qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    animation: cornerPulse 2s ease-in-out infinite;
}

.corner-tl {
    top: 8px;
    left: 8px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-radius: 4px 0 0 0;
}

.corner-tr {
    top: 8px;
    right: 8px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    border-radius: 0 4px 0 0;
    animation-delay: 0.5s;
}

.corner-bl {
    bottom: 8px;
    left: 8px;
    border-bottom: 2px solid var(--secondary);
    border-left: 2px solid var(--secondary);
    border-radius: 0 0 0 4px;
    animation-delay: 1s;
}

.corner-br {
    bottom: 8px;
    right: 8px;
    border-bottom: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
    border-radius: 0 0 4px 0;
    animation-delay: 1.5s;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.cta-qr-inner {
    width: 160px;
    height: 160px;
    background: var(--foreground);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-qr-inner svg {
    color: var(--background);
}

/* In light theme the QR "scanner" interior should be white for readability */
[data-theme="light"] .cta-qr-inner {
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
    border: 1px solid var(--border-light);
}

[data-theme="light"] .cta-qr-inner svg {
    color: var(--foreground) !important;
}

/* Make any QR SVG rect elements white in light theme (scanner fill/stroke) */
[data-theme="light"] .qr-code svg rect,
[data-theme="light"] .cta-qr-inner svg rect {
    fill: #fff !important;
    stroke: #fff !important;
    color: #fff !important;
}

.cta-qr-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
    text-align: center;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.cta-stat {
    text-align: center;
}

.cta-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.cta-stat-value:hover {
    transform: scale(1.1);
}

.cta-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .cta-main-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-app-info {
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .cta-card-inner {
        padding: 2rem;
    }
    
    .cta-stats {
        gap: 1rem;
    }
    
    .cta-stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-store {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 4rem 0 2rem;
    background: hsl(222, 50%, 5%);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
}

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

.footer-logo {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 70px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-tagline {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: var(--foreground);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}

/* Light-mode: make social icons visible on pale backgrounds
   Dark circular background with white icons for contrast. */
[data-theme="light"] .social-link {
    background: var(--foreground);
    color: var(--card);
    box-shadow: 0 8px 28px rgba(16,24,40,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="light"] .social-link svg {
    stroke: var(--card) !important;
    fill: var(--card) !important;
}

[data-theme="light"] .social-link:hover {
    background: var(--primary);
    color: var(--foreground);
    box-shadow: var(--shadow-glow-sm);
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    gap: 4rem;
    margin-left: auto; /* push links to the right */
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.footer-column a {
    display: block;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--foreground);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

    /* Ensure footer content visibility in both themes */
    .footer,
    .footer * {
        color: var(--muted-foreground) !important;
    }

    .footer-column h4,
    .footer-tagline,
    .footer-bottom p {
        color: var(--foreground) !important;
    }

    .footer-column a {
        color: var(--muted-foreground) !important;
    }

    .footer-column a:hover {
        color: var(--foreground) !important;
    }

    /* Light mode adjustments */
    [data-theme="light"] .footer {
        background: hsl(220, 14%, 96%);
        border-top-color: rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .footer,
    [data-theme="light"] .footer * {
        color: hsl(220, 8%, 22%) !important;
    }

    [data-theme="light"] .footer-column h4,
    [data-theme="light"] .footer-tagline,
    [data-theme="light"] .footer-bottom p {
        color: hsl(220, 8%, 22%) !important;
    }

    [data-theme="light"] .footer-column a:hover {
        color: var(--primary) !important;
    }

@media (max-width: 640px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-main {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        align-items: flex-start;
    }

    .footer-brand {
        max-width: 100%;
        text-align: left;
        margin-bottom: 0;
        flex: 0 0 100%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
        margin-left: 0;
        width: 100%;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column h4 {
        margin-bottom: 1rem;
        text-align: left;
    }

    .footer-column a {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
        width: 100%;
    }

    .social-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element[data-delay="1"] { transition-delay: 0.1s; }
.reveal-element[data-delay="2"] { transition-delay: 0.2s; }
.reveal-element[data-delay="3"] { transition-delay: 0.3s; }
.reveal-element[data-delay="4"] { transition-delay: 0.4s; }
.reveal-element[data-delay="5"] { transition-delay: 0.5s; }
.reveal-element[data-delay="6"] { transition-delay: 0.6s; }

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: hsl(222, 30%, 25%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsla(292, 84%, 61%, 0.5);
}

.animated-logo {
    width: 48px; /* match header logo size */
    height: auto;
    object-fit: contain;
}
.btn-wrapper {
    position: relative;
    display: inline-block;
    line-height: 0;
}

/* Tooltip Design */
.coming-soon {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0f0f2b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #b14cff;
    box-shadow: 0 10px 30px rgba(177, 76, 255, 0.25);
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Small Arrow */
.coming-soon::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #0f0f2b transparent transparent transparent;
}

/* Show on hover */
.btn-wrapper:hover .coming-soon {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(18px);
}

video.moon-image {
    border-radius: 1000px;
}
.carousel-slide img {
    width: 300px;
    max-width: 100%;
    height: auto;
    max-height: 580px; /* constrain height to avoid overly tall phones */
    display: block;
    border-radius: 26px;
    box-shadow: 0 26px 50px rgba(0,0,0,0.55), 0 0 36px rgba(177,76,255,0.08);
    transition: transform 0.35s cubic-bezier(0.2,0,0.2,1), box-shadow 0.3s ease;
}
[data-theme="light"] .content-page h1, [data-theme="light"] .content-page h2 {
    color: #111 !important;
}
[data-theme="light"] .content-page p, [data-theme="light"] .content-page li, [data-theme="light"] .content-page address {
    color: rgba(20, 25, 40, 0.95) ! IMPORTANT;
}

@media (max-width: 1200px) {
    .carousel-slide img { width: 280px; max-height: 540px; }
}

@media (max-width: 1024px) {
    .carousel-slide img { width: 240px; max-height: 520px; }
}

@media (max-width: 768px) {
    .carousel-slide img { width: 200px; max-height: 460px; }
}

@media (max-width: 480px) {
    .carousel-slide img { width: 170px; max-height: 400px; }
}
.showcase-phone.phone-center img {
    border-radius: 10px;
}
.video-placeholder {
    background-image: url('video_bg.png'); /* Change path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.cta-rating img {
    width: 100px;
}


/* Container */
.subscribe-section {
    text-align: left;
    width: 90%;
}

/* Title */
.subscribe-title {
    color: #94a3b8;
    font-size: 16px;
}

/* Form */
.subscribe-form {
    display: flex;
    gap: 15px;
}

/* Input */
.subscribe-form input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: #1c2438;
    color: #fff;
    font-size: 15px;
}

/* Button */
.subscribe-form button {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: white;
    transition: 0.3s;
}

.subscribe-form button:hover {
    opacity: 0.85;
}

/* Success message */
.success-message {
    color: #4caf50;
    margin-top: 15px;
	margin-bottom: 15px;
}
.hidden {
    display: none;
}

.footer-bottom
{
    margin-top: 4rem;
}
div#mobileMenu {
    margin-top: 30px;
}
.subscribe-section
{
    margin-bottom: 50px;
}


@media (max-width: 767px) {
.hero-title {
    font-size: clamp(2.5rem, 7.5vw, 4.8rem);
}
span.text {
    font-size: 21px;
}
span.line {
    display: none;
}
.tagline {
    display: inline-block;
}
.tagline {
    margin-top: 0;
}
.btn-wrapper {
    display: inline-block !important;
}
.section-title {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
}
img.store-badge.app-store {
    margin-bottom: 15px;
}
.tagline-content {
    display: inline-block;
}
p.subscribe-title {
    margin-bottom: 15px;
}
.cta-card-inner {
	padding: 1rem;
}
.cta-title {
    font-size: 1.7rem;
    line-height: 40px;
}
.download-cta {
	padding: 1rem 0;
}
.qr-section {
    margin-top: 20px;
}
.store-badges {
	flex-direction: row;
}
.btn-wrapper {
    display: flex;
}
.social-links {
    margin-top: 20px;
}
.subscribe-section input {
    width: 100% !important;
}   
.hero-subtext {
    border-left: none;
}
.hero-buttons {
    width: 90%;
    margin: 0 auto;
}
.subscribe-section {
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
}
p.subscribe-title {
    text-align: left;
}
.btn-primary, .btn-secondary {
	width: auto;
}
.subscribe-section {
    width: 100%;
}
    .logo-img {
    	width: 40px;
}
.showcase-features li {
    text-align: left;
}
.footer-links {
	margin-left: 0;
}
.subscribe-section {
    width: 100%;
}
.header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Only show white hamburger icon when NOT in light theme */
body:not([data-theme="light"]) i.fas.fa-bars {
    color: #000;
    font-size: 22px;
}

body:not([data-theme="dark"]) i.fas.fa-bars {
    color: #d948ef;
}

form.subscribe-form {
    width: 100% !important;
}
.download-cta {
    padding: 3rem 0;
}
.app-showcase {
    padding: 3rem 0;
    position: relative;
}
.showcase-features {
	align-items: baseline;
}
.screenshots {
    padding: 3rem 0;
}
.features {
    padding: 4rem 0;
}
.video-section {
    padding-top: 3rem;
}
.phone-center-glow {
    position: relative;
}
.hero {
	padding-top: 3rem;
}

}


@media screen and (min-width: 1850px) and (max-width: 2750px) {
    .showcase-phone.phone-left img {
        width: 400px;
    }
    .showcase-phone.phone-right img {
        width: 400px ! IMPORTANT;
    }
    .phone-left {
        left: 40%;
    }
    .phone-right {
        left: 64%;
	}  
	.animated-logo {
		width: 100px;
	}
	.hero-container {
	   max-width: 1980px;
	}
	.section-container {
		max-width: 1980px;
	}
	.footer-container {
		max-width: 1980px;
	}
	.feature-description {
		font-size: 24px;
	}
	.feature-title {
		font-size: 28px;
	}
	.feature-icon {
        width: 80px;
		height: 80px;
	}
	section#features svg {
		width: 50px;
		height: 50px;
	}
	.section-description {
		font-size: 24px;
	}
	.section-badge {
		font-size: 22px;
		padding: 0.5rem 3rem;
	}
	.step-description {
		font-size: 24px;
	}
	.step-title {
		font-size: 28px;
	}
	.step-icon-glass {
		width: 5rem;
		height: 5rem;
	}
	.step-number-badge {
		width: 4.5rem;
		height: 4.5rem;
		font-size: 28px;
	}
	.showcase-description {
		font-size: 24px;
	}
	.showcase-features li {
		font-size: 24px;
	}
	.check-icon {
		width: 40px;
		height: 40px;
		font-size: 22px;
	}
	.cta-card {
		max-width: 1380px;
	}
	.cta-description {
		font-size: 24px;
	}
	.rating-text {
		font-size: 22px;
	}
	.btn-store-small {
		font-size: 24px;
	}
	.btn-store-large {
		font-size: 24px;
	}
	.btn-primary {
       padding: 1rem 4rem;
	}
	.btn-secondary {
       padding: 1rem 4rem;
	}
	.cta-stat-label {
		font-size: 24px;
	}
	.cta-stat-value {
		font-size: 3rem;
	}
	.footer-tagline {
		font-size: 24px;
	}
	.footer-bottom {
		font-size: 24px;
	}
	.footer-column a {
		font-size: 24px;
	}
	.footer-column h4 {
		font-size: 28px;
	}
	.nav-link {
		font-size: 24px;
	}
	.download-btn {
		padding: 0.75rem 2.5rem;
		font-size: 24px;
	}
	.header-container {
		max-width: 1980px;
	}
	.hero-badge {
		font-size: 22px;
	}
	.hero-description {
		font-size: 24px;
	}
	.btn-primary {
		font-size: 24px;
	}
	.btn-secondary {
		font-size: 24px;
	}
	.qr-subtitle {
		font-size: 24px;
	}
	.qr-title {
		font-size: 24px;
	}
	.moon-container {
        width: 650px;
        height: 650px;
    }

    /* Ensure hero visuals can overflow and grow on very large screens so
       phone mockups and rings are not clipped at the container edge. */
    .hero-visual {
        max-width: none;
        overflow: visible;
    }

    .hero-container {
        overflow: visible;
    }
	.stat-label {
		font-size: 24px;
	}
	.stat-value {
		font-size: 24px;
	}
	.hero-buttons svg {
		width: 50px;
		height: 50px;
	}
	span.hero-badge svg {
		width: 50px;
		height: 50px;
	}
	button#themeToggle svg {
		width: 40px;
		height: 40px;
	}
	.theme-toggle {
		width: 60px;
		height: 60px;
	}
	button.download-btn.header-download svg {
		width: 40px;
		height: 40px;
	}
	.download-cta {
		padding-top: 15rem;
	}


}