/* Custom styles for Forza+ Landing Page */

/* ==========================================
   GLOBAL CONTAINER STYLES
   ========================================== */

/* Consistent max-width for all containers on desktop */
/* Override Tailwind's default container widths */
.container {
    max-width: 1200px !important;
}

@media (min-width: 640px) {
    .container {
        max-width: 1200px !important;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px !important;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px !important;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px !important;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1200px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Prevent horizontal scroll from full-width elements */
body {
    overflow-x: hidden;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Scroll-triggered animation classes */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================
   HEADER / NAVBAR STYLES
   ========================================== */

/* Header blur background */
.header-blur {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Only animate colors and effects, not layout/width */
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; 
}

.header-blur.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Desktop nav links */
.nav-link {
    color: #a1a1aa;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Download CTA button */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #222;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    background: linear-gradient(135deg, #b27704 0%, #9c6903 100%);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px #b27704;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px #b27704;
}

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

/* Mobile menu button icons toggle */
#mobile-menu-btn .close-icon {
    display: none;
}

#mobile-menu-btn.active .hamburger-icon {
    display: none;
}

#mobile-menu-btn.active .close-icon {
    display: block;
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 6rem 1.5rem 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.2s ease;
    transform: translateX(-20px);
    opacity: 0;
}

.mobile-menu.active .mobile-menu-link {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger animation for menu links */
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu-link:hover {
    color: #ef4444;
}

.mobile-menu-link:hover svg {
    transform: translateX(4px);
    color: #ef4444;
}

.mobile-menu-link svg {
    transition: all 0.2s ease;
}

/* Mobile CTA */
.mobile-menu-cta {
    margin-top: auto;
    padding-top: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
}

.mobile-menu.active .mobile-menu-cta {
    transform: translateY(0);
    opacity: 1;
}

.mobile-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #b27704 0%, #9c6903 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    text-decoration: none;
    box-shadow: 0 4px 20px #b27704;
    transition: all 0.2s ease;
}

.mobile-download-btn:hover {
    box-shadow: 0 6px 30px #b27704;
    transform: translateY(-2px);
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility improvements */
:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

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

.hero-section {
    position: relative;
    overflow: visible; /* Allow phones to span full width */
    width: 100%;
}

/* Animated gradient background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(178, 119, 4, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(178, 119, 4, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 50%, rgba(178, 119, 4, 0.2) 0%, transparent 50%);
    animation: hero-glow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs animation */
.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(178, 119, 4, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: hero-orb-1 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes hero-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes hero-orb-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-30px, 20px) scale(0.9);
        opacity: 0.4;
    }
}

/* Ensure hero content is above the background */
.hero-section > .container,
.hero-section > .phones-wrapper {
    position: relative;
    z-index: 1;
}

/* Phones wrapper takes full viewport width */
.hero-section > .phones-wrapper {
    width: 100%;
    max-width: none !important;
}

/* ==========================================
   PHONE MOCKUPS SECTION
   ========================================== */

/* Phone wrapper - full width, no constraints */
.phones-wrapper {
    position: relative;
    padding-bottom: 80px; /* Space for curved phones */
    width: 100%;
    max-width: none !important;
}

/* Desktop: show all phones, allow overflow for larger screens */
@media (min-width: 1025px) {
    .phones-wrapper {
        overflow: visible;
    }
}

/* Mobile/Tablet: clip sides to show only visible phones */
@media (max-width: 1024px) {
    .phones-wrapper {
        overflow-x: clip;
        overflow-y: visible;
    }
}

/* Phones container - flexbox row, no max-width */
.phones-container {
    position: relative;
    padding: 0;
    max-width: none !important;
    width: 100%;
}

/* Phone mockup base styles */
.phone-mockup {
    transition: transform 0.15s ease-out;
    will-change: transform;
    flex-shrink: 0;
}

.phone-mockup:hover {
    transform: translateY(-10px) !important;
}

/* Phone sizing - responsive (mobile-first) */
/* Base: very small screens - 3 phones fill viewport */
.phone-mockup > div {
    width: calc((100vw - 1rem) / 3);
    min-width: 90px;
}

/* Small phones and up */
@media (min-width: 400px) {
    .phone-mockup > div {
        width: calc((100vw - 1.5rem) / 3);
    }
}

/* Larger phones/small tablets */
@media (min-width: 480px) {
    .phone-mockup > div {
        width: 160px;
    }
}

/* Tablets */
@media (min-width: 641px) {
    .phone-mockup > div {
        width: 180px;
    }
}

/* Tablets landscape */
@media (min-width: 769px) {
    .phone-mockup > div {
        width: 200px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .phone-mockup > div {
        width: 260px;
    }
}

/* Large desktop */
@media (min-width: 1280px) {
    .phone-mockup > div {
        width: 290px;
    }
}

/* Extra large desktop */
@media (min-width: 1536px) {
    .phone-mockup > div {
        width: 320px;
    }
}

/* Mobile: phones extend to edges - no container padding */
@media (max-width: 768px) {
    .hero-section > .phones-wrapper {
        width: 100vw;
        padding: 0;
    }
    
    .phones-container {
        gap: 0.5rem;
        padding: 0;
        width: 100%;
    }
}

/* Initial curved positioning - center highest, sides lower */
/* Phone 1 - far left */
.phones-container .phone-mockup:nth-child(1) {
    --base-offset: 60px;
}

/* Phone 2 - left */
.phones-container .phone-mockup:nth-child(2) {
    --base-offset: 30px;
}

/* Phone 3 - center (highest) */
.phones-container .phone-mockup:nth-child(3) {
    --base-offset: 0px;
}

/* Phone 4 - right */
.phones-container .phone-mockup:nth-child(4) {
    --base-offset: 30px;
}

/* Phone 5 - far right */
.phones-container .phone-mockup:nth-child(5) {
    --base-offset: 60px;
}

/* Mobile: Hide far phones (1 and 5), show 3 middle ones */
@media (max-width: 768px) {
    .phones-container .phone-mockup:nth-child(1),
    .phones-container .phone-mockup:nth-child(5) {
        display: none;
    }
    
    /* Adjust offsets for 3-phone layout */
    .phones-container .phone-mockup:nth-child(2) {
        --base-offset: 40px;
    }
    
    .phones-container .phone-mockup:nth-child(3) {
        --base-offset: 0px;
    }
    
    .phones-container .phone-mockup:nth-child(4) {
        --base-offset: 40px;
    }
}

/* Tablet: Show all 5 but smaller */
@media (min-width: 769px) and (max-width: 1024px) {
    .phones-container .phone-mockup:nth-child(1),
    .phones-container .phone-mockup:nth-child(5) {
        --base-offset: 50px;
    }
    
    .phones-container .phone-mockup:nth-child(2),
    .phones-container .phone-mockup:nth-child(4) {
        --base-offset: 25px;
    }
}

/* Staggered animation for phone mockups */
.phone-mockup:nth-child(1) { animation-delay: 0.6s; }
.phone-mockup:nth-child(2) { animation-delay: 0.5s; }
.phone-mockup:nth-child(3) { animation-delay: 0.4s; }
.phone-mockup:nth-child(4) { animation-delay: 0.5s; }
.phone-mockup:nth-child(5) { animation-delay: 0.6s; }

/* Ensure hero section has enough space */
#hero {
    padding-bottom: 2rem;
}

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

#how-it-works {
    position: relative;
    overflow: visible;
    background: #111827; /* gray-900 base */
}

/* Animated background for how-it-works section */
#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(220, 38, 38, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 70%, rgba(220, 38, 38, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(220, 38, 38, 0.06) 0%, transparent 50%);
    animation: how-it-works-glow 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs animation */
#how-it-works::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: how-it-works-orb-1 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Additional floating orb */
#how-it-works .how-it-works-container::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    animation: how-it-works-orb-2 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animated gradient mesh */
#how-it-works .how-it-works-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: 
        linear-gradient(45deg, transparent 30%, rgba(220, 38, 38, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(220, 38, 38, 0.02) 50%, transparent 70%);
    background-size: 200% 200%; */
    animation: how-it-works-mesh 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes how-it-works-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.05) rotate(2deg);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.98) rotate(-1deg);
    }
}

@keyframes how-it-works-orb-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(-40px, 30px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(30px, -20px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(-20px, -40px) scale(1.05);
        opacity: 0.7;
    }
}

@keyframes how-it-works-orb-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translate(50px, -30px) scale(1.15);
        opacity: 0.6;
    }
    66% {
        transform: translate(-30px, 40px) scale(0.85);
        opacity: 0.3;
    }
}

@keyframes how-it-works-mesh {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Ensure content is above animated background */
#how-it-works > .container,
#how-it-works .how-it-works-container {
    position: relative;
    z-index: 1;
}

/* Container for scroll-triggered content */
.how-it-works-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 1;
}

/* Phone wrapper - contains the phone on desktop */
@media (min-width: 1024px) {
    .how-it-works-phone-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        pointer-events: none;
        z-index: 2;
    }
}

/* The phone element */
.how-it-works-phone-sticky {
    pointer-events: auto;
}

/* Desktop: JS will control position */
@media (min-width: 1024px) {
    .how-it-works-phone-sticky {
        position: absolute;
        z-index: 20;
    }
}

/* Phone display container */
.phone-display {
    position: relative;
    width: 280px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tilt animation for step 2 */
.phone-display.tilt-right {
    transform: rotate(8deg);
}

/* Receipt that appears on step 2 */
.scan-receipt {
    position: absolute;
    left: -120px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
    z-index: 10;
}

.scan-receipt.visible {
    opacity: 1;
    transform: translateY(-50%) rotate(-12deg);
}

.receipt-paper {
    background: linear-gradient(to bottom, #fefefe 0%, #f5f5f5 100%);
    padding: 12px 10px;
    width: 120px;
    border-radius: 2px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Receipt torn edge effect */
.receipt-paper::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #f5f5f5 25%, transparent 25%),
                linear-gradient(225deg, #f5f5f5 25%, transparent 25%);
    background-size: 8px 8px;
}

/* QR code glow when scanning */
.scan-receipt.visible .qr-code {
    animation: qr-glow 1.5s ease-in-out infinite;
}

@keyframes qr-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.4);
    }
}

/* Scanning line animation */
.scan-line {
    animation: scan-move 2s ease-in-out infinite;
}

@keyframes scan-move {
    0%, 100% {
        top: 0;
    }
    50% {
        top: calc(100% - 2px);
    }
}

/* Hide receipt on mobile */
@media (max-width: 1023px) {
    .scan-receipt {
        display: none;
    }
}

@media (min-width: 1280px) {
    .phone-display {
        width: 320px;
    }
}

/* Phone screen states */
.phone-screen {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

.phone-screen.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Steps container - on the right on desktop */
@media (min-width: 1024px) {
    .how-it-works-steps {
        position: relative;
        margin-left: 50%;
        width: 50%;
        padding-left: 2rem;
        padding-right: 1rem;
        z-index: 2;
    }
}

/* Step content styling */
.how-it-works-step {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.step-content {
    opacity: 0.3;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    padding: 2rem 0;
    max-width: 500px;
}

.how-it-works-step.active .step-content {
    opacity: 1;
    transform: translateY(0);
}

/* First step should be visible by default */
.how-it-works-step:first-child .step-content {
    opacity: 1;
    transform: translateY(0);
}

/* Step number pulse animation when active */
.how-it-works-step.active .step-content > div:first-child > div:first-child {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 #b27704;
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(220, 38, 38, 0.2);
    }
}

/* Mobile/Tablet: Each step has its own phone */
@media (max-width: 1023px) {
    /* Hide the main floating phone on mobile */
    .how-it-works-phone-wrapper {
        display: none;
    }
    
    .how-it-works-steps {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .how-it-works-step {
        min-height: auto;
        flex-direction: column;
        padding: 3rem 0;
    }
    
    .step-content {
        opacity: 1;
        transform: none;
    }
    
    /* Show individual step phones on mobile */
    .step-phone-mobile {
        display: block;
        margin-top: 2rem;
    }
    
    .step-phone-mobile .phone-display {
        width: 220px;
        margin: 0 auto;
    }
    
    /* Step 2 phone tilt on mobile too */
    .how-it-works-step[data-step="2"] .step-phone-mobile .phone-display {
        transform: rotate(5deg);
    }
}

/* Hide mobile phones on desktop */
@media (min-width: 1024px) {
    .step-phone-mobile {
        display: none;
    }
}

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

/* Features container - half the normal width */
.features-container {
    max-width: 600px !important;
    padding: 0 1rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Feature card base styles - dark theme */
.feature-card {
    background: #010B13;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-content {
    margin-bottom: 1.5rem;
}

.feature-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: #999;
    line-height: 1.5;
}

/* Phone mockups in feature cards */
.feature-phone {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 2rem;
    padding: 0.5rem;
    width: 200px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.phone-frame-small {
    width: 160px;
    border-radius: 1.5rem;
}

.phone-notch {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
}

.phone-frame-small .phone-notch {
    width: 60px;
    height: 16px;
}

.phone-status-bar {
    background: #2a2a2a;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 0.75rem 1rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-frame-small .phone-status-bar {
    padding: 0.5rem 0.75rem 0.25rem;
    border-radius: 1rem 1rem 0 0;
}

.phone-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.phone-icons {
    display: flex;
    gap: 0.25rem;
    color: #fff;
}

.phone-screen-content {
    background: #2a2a2a;
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 0.5rem 1rem 1rem;
    min-height: 280px;
}

.phone-frame-small .phone-screen-content {
    min-height: 200px;
    padding: 0.5rem 0.75rem 0.75rem;
    border-radius: 0 0 1rem 1rem;
}

/* Calendar UI Elements */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-week {
    margin-bottom: 0.75rem;
}

.calendar-day-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.calendar-day-labels span {
    font-size: 0.625rem;
    color: #777;
    width: 20px;
    text-align: center;
}

.calendar-days {
    display: flex;
    justify-content: space-between;
}

.calendar-days span {
    font-size: 0.875rem;
    color: #ddd;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day-active {
    background: #ef4444;
    color: #fff !important;
    border-radius: 50%;
}

.calendar-date-display {
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #444;
    margin-bottom: 0.5rem;
}

.calendar-timeline {
    margin-top: 1rem;
}

.timeline-hour {
    font-size: 0.625rem;
    color: #777;
    padding: 0.5rem 0;
    border-top: 1px solid #444;
}

/* Mini calendar for smaller cards */
.mini-calendar {
    padding: 0.5rem;
}

.mini-calendar-header {
    margin-bottom: 0.5rem;
}

.mini-calendar-grid {
    font-size: 0.5rem;
}

.mini-calendar-grid .calendar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.mini-calendar-grid .calendar-row span {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
}

.mini-calendar-grid .day-selected {
    background: #ef4444;
    color: #fff !important;
    border-radius: 50%;
}

/* What's New card styling */
.whats-new-card {
    padding: 0.75rem;
}

.whats-new-card h4 {
    color: #fff;
}

.feature-list {
    margin-top: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text span:first-child {
    color: #fff;
}

.feature-text span:last-child {
    color: #777;
}

/* Two-column row for middle cards */
.feature-row-two {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Full-width cards always stack vertically (text above, phone below) */
.feature-card-full {
    flex-direction: column;
    align-items: stretch;
}

.feature-card-full .feature-phone {
    padding-top: 1rem;
}

/* Desktop Layout: 1-2-1 (only middle row side-by-side) */
@media (min-width: 768px) {
    .feature-row-two {
        flex-direction: row;
        gap: 1rem;
    }
    
    .feature-card-half {
        flex: 1;
    }
    
    .phone-frame-small {
        width: 180px;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        gap: 1rem;
    }
    
    .feature-row-two {
        gap: 1rem;
    }

    
    .phone-frame-small {
        width: 200px;
    }
    
    .phone-screen-content {
        min-height: 320px;
    }
}

/* ==========================================
   PARTNER'S SHOP CAROUSEL SECTION
   ========================================== */

#partners-shop {
    position: relative;
}

/* Carousel wrapper - allows overflow to show partial items */
.partners-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-text-container {
    padding: 15px 10px;
    text-align: center;
}

.carousel-item-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff; /* Or your brand color */
}

.carousel-item-desc {
    font-size: 0.9rem;
    max-width: 220px;
    color: #666;
    line-height: 1.4;
}

/* Carousel container */
.partners-carousel {
    display: flex;
    gap: 1.5rem;
    /* padding: 1rem 1rem 2rem; */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    cursor: grab;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.partners-carousel::-webkit-scrollbar {
    display: none;
}

.partners-carousel.grabbing {
    cursor: grabbing;
}

.partners-carousel.grabbing .carousel-item {
    pointer-events: none;
}

/* Carousel item */
.carousel-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
}

/* Mobile: Show 1 item + 1/4 of next */
.carousel-item {
    width: calc(75% - 1rem);
}

/* Tablet: Show 2 items + partial */
@media (min-width: 640px) {
    .carousel-item {
        width: calc(45% - 1rem);
    }
    
    .partners-carousel {
        gap: 2rem;
    }
}

/* Desktop: Show items side-by-side with 20px gap - maximize width */
@media (min-width: 1024px) {
    .partners-carousel {
        gap: 20px;
        padding: 1rem 4rem 2rem;
        justify-content: flex-start;
    }
    
    /* Calculate width: (available width - gaps) / number of items */
    /* For 4 visible items: (100% - 3 gaps of 20px) / 4 */
    .carousel-item {
        width: calc((100% - 60px) / 4);
        min-width: 0;
        flex-shrink: 0;
    }
}

@media (min-width: 1280px) {
    .partners-carousel {
        gap: 20px;
        padding: 1rem 5rem 2rem;
    }
    
    /* Still 4 items with 20px gap */
    .carousel-item {
        width: calc((100% - 60px) / 4);
    }
}

@media (min-width: 1536px) {
    .partners-carousel {
        gap: 20px;
    }
    
    .carousel-item {
        width: calc((100% - 60px) / 4);
    }
}

/* Phone mockup in carousel */
.carousel-phone {
    width: 100%;
    max-width: 320px;
    position: relative;
}

/* Desktop: Clip phone to show only top 30% */
@media (min-width: 1024px) {
    /* Clip the entire phone to show only top portion */
    .carousel-item {
        position: relative;
        overflow: hidden;
    }
    
    .carousel-phone {
        overflow: hidden;
        position: relative;
        /* Clip to approximately 30% of phone height */
        /* Phone aspect ratio is 9:19.5, so for width W, height is W*2.167 */
        /* 30% of that is approximately W*0.65, but we'll use a fixed max-height */
        max-height: 200px;
    }
    
    /* Ensure the phone frame respects the clipping */
    .carousel-phone-frame {
        position: relative;
        margin-bottom: 0;
    }
    
    /* Add blurry fadeout overlay at the bottom */
    .carousel-phone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, 
        rgba(1, 11, 19, 0) 0%, 
        rgba(1, 11, 19, 0.4) 40%, 
        rgba(1, 11, 19, 0.9) 80%,
        rgba(1, 11, 19, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
    z-index: 25;
}
    
    /* Adjust for larger screens */
    @media (min-width: 1280px) {
        .carousel-phone {
            max-height: 220px;
        }
    }
    
    @media (min-width: 1536px) {
        .carousel-phone {
            max-height: 240px;
        }
    }
}

.carousel-phone-frame {
    background: #1a1a1a;
    border-radius: 2.5rem;
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.carousel-phone-notch {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
}

.carousel-phone-screen {
    background: #2a2a2a;
    border-radius: 2rem;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Placeholder text in screen */
.screen-placeholder-text {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

/* Carousel item text */
.carousel-item-text {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    max-width: 320px;
    line-height: 1.5;
}

@media (min-width: 640px) {
    .carousel-item-text {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .carousel-item-text {
        font-size: 1.375rem;
    }
}

/* Carousel navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #333;
    background: transparent;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.carousel-arrow:hover:not(:disabled) {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.05);
}

.carousel-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: #222;
}

.carousel-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

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

#powerful-features {
    background: #111827; /* gray-900 */
}

.powerful-feature-card {
    padding: 1rem;
}

.powerful-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.powerful-feature-card p {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Staggered animation for feature cards */
.powerful-feature-card:nth-child(1) { transition-delay: 0.1s; }
.powerful-feature-card:nth-child(2) { transition-delay: 0.2s; }
.powerful-feature-card:nth-child(3) { transition-delay: 0.3s; }
.powerful-feature-card:nth-child(4) { transition-delay: 0.4s; }
.powerful-feature-card:nth-child(5) { transition-delay: 0.5s; }
.powerful-feature-card:nth-child(6) { transition-delay: 0.6s; }

/* Hover effect for feature icons */
.powerful-feature-card:hover > div:first-child {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.powerful-feature-card > div:first-child {
    transition: transform 0.3s ease;
}

/* Print styles */
@media print {
    header,
    footer,
    #download {
        display: none;
    }
}
.carousel-image-container {
    position: relative;
    width: 100%;
    max-height: 500px; /* Cropped height for desktop */
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* The blurry fadeout overlay */
.carousel-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, 
        rgba(1, 11, 19, 0) 0%, 
        rgba(1, 11, 19, 1) 100%);
    pointer-events: none;
    z-index: 2;
}

/* --- MOBILE STYLES (Whole Phone, No Blur) --- */
@media (max-width: 768px) {
    .carousel-image-container {
        max-height: none; /* Show the full height */
        overflow: visible;
        padding: 20px; /* Optional: gives the phone some breathing room */
    }

    .carousel-img {
        object-fit: contain; /* Ensure the whole phone fits without clipping */
        max-height: 500px;  /* Adjust based on your phone image height */
    }

    /* Remove the blur and fade effect on mobile */
    .carousel-image-container::after {
        display: none;
    }
    
    .carousel-text-container {
        background-color: transparent; /* Adjust if needed for your mobile layout */
    }
}