/* =============================================
   DEVICE FRAMES - iPhone Mockup CSS
   Premium phone frame for app screenshots
   ============================================= */

/* iPhone Frame Container */
.device-frame {
    position: relative;
    display: inline-block;
}

.device-iphone {
    position: relative;
    width: 280px;
    height: 570px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.4),
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

/* Side buttons */
.device-iphone::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 30px;
    background: #2d2d2d;
    border-radius: 2px 0 0 2px;
    box-shadow:
        0 50px 0 #2d2d2d,
        0 90px 0 #2d2d2d;
}

.device-iphone::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 130px;
    width: 3px;
    height: 60px;
    background: #2d2d2d;
    border-radius: 0 2px 2px 0;
}

/* Screen area */
.device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
}

/* Dynamic Island / Notch */
.device-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Screenshot image */
.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Smaller variant */
.device-iphone-sm {
    width: 200px;
    height: 410px;
    border-radius: 32px;
    padding: 8px;
}

.device-iphone-sm .device-screen {
    border-radius: 25px;
}

.device-iphone-sm .device-screen::before {
    width: 65px;
    height: 20px;
    top: 8px;
}

/* Large variant for hero */
.device-iphone-lg {
    width: 320px;
    height: 652px;
    border-radius: 50px;
    padding: 14px;
}

.device-iphone-lg .device-screen {
    border-radius: 40px;
}

.device-iphone-lg .device-screen::before {
    width: 100px;
    height: 32px;
    top: 12px;
}

/* Extra large for hero emphasis */
.device-iphone-xl {
    width: 380px;
    height: 775px;
    border-radius: 55px;
    padding: 16px;
}

.device-iphone-xl .device-screen {
    border-radius: 45px;
}

.device-iphone-xl .device-screen::before {
    width: 120px;
    height: 36px;
    top: 14px;
}

/* Floating animation for hero phones */
.device-float {
    animation: device-float 6s ease-in-out infinite;
}

@keyframes device-float {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

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

.device-float-delayed {
    animation: device-float 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Glow effect behind device */
.device-glow {
    position: relative;
}

.device-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(200, 164, 100, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
}

/* Screen reflection effect */
.device-reflection .device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 40%,
            transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* =============================================
   Feature Carousel Styles
   ============================================= */

.features-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-out;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 300px;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(200, 164, 100, 0.2);
    border: 1px solid rgba(200, 164, 100, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(200, 164, 100, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: 1rem;
}

.carousel-nav-next {
    right: 1rem;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold-accent);
    fill: none;
    stroke-width: 2;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(200, 164, 100, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--gold-accent);
    transform: scale(1.2);
}

/* =============================================
   Feature Card Component
   ============================================= */

.feature-showcase-card {
    background: rgba(60, 50, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 164, 100, 0.15);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-showcase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 164, 100, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(200, 164, 100, 0.1);
}

.feature-showcase-card .device-iphone-sm {
    margin: 0 auto 1.5rem;
    display: block;
}

.feature-showcase-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: #F5EFE6;
    margin-bottom: 0.5rem;
    text-align: center;
}

.feature-showcase-card p {
    color: rgba(245, 239, 230, 0.7);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

/* =============================================
   Stats Counter
   ============================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C8A464 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(245, 239, 230, 0.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   Hero Split Layout
   ============================================= */

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.hero-content-left {
    max-width: 550px;
}

.hero-content-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Multiple phones layout */
.hero-phones {
    position: relative;
    height: 700px;
    width: 100%;
}

.hero-phone-main {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.hero-phone-back-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg) scale(0.85);
    opacity: 0.7;
    z-index: 1;
}

.hero-phone-back-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(8deg) scale(0.85);
    opacity: 0.7;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-phones {
        height: 500px;
    }

    .hero-phone-back-left,
    .hero-phone-back-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .device-iphone-lg {
        width: 260px;
        height: 530px;
    }

    .hero-phones {
        height: 450px;
    }

    .carousel-slide {
        width: 260px;
    }
}

/* =============================================
   Section Headers
   ============================================= */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(200, 164, 100, 0.15);
    border: 1px solid rgba(200, 164, 100, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #F5EFE6 0%, #C8A464 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    color: rgba(245, 239, 230, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* =============================================
   Horizontal Features Scroll
   ============================================= */

.features-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.features-scroll::-webkit-scrollbar {
    display: none;
}

.features-scroll .feature-showcase-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
}

/* =============================================
   App Flow Timeline
   ============================================= */

.app-flow {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.app-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200, 164, 100, 0.3), transparent);
}

.flow-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.flow-step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2F2622;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.flow-step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.flow-step h4 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #F5EFE6;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: rgba(245, 239, 230, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .app-flow {
        flex-direction: column;
        gap: 1.5rem;
    }

    .app-flow::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: 100%;
    }
}