/* --- VARIABLES (MATCHING YOUR LOGO) --- */
:root {
    /* The Brand Gradient Colors */
    --brand-purple: #8b25f5;
    --brand-pink: #f52595;
    --brand-orange: #ff7b00;
    
    /* Backgrounds */
    --dark-bg: #0a0a0a;       /* Almost Black */
    --card-bg: #141414;       /* Dark Grey */
    --nav-bg: rgba(10, 10, 10, 0.9);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    /* Global Settings */
    --font-main: 'Inter', sans-serif;
    --radius: 12px;
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY & GRADIENTS --- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; }

/* This class creates the Purple->Orange gradient text like your logo */
.brand-gradient-text {
    background: linear-gradient(90deg, var(--brand-purple) 0%, var(--brand-pink) 50%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 37, 245, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 37, 245, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-orange);
    color: var(--brand-orange);
}
.btn-outline:hover {
    background: var(--brand-orange);
    color: white;
}


/* --- BEFORE/AFTER SLIDER --- */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.ba-slider {
    height: 500px; /* Adjust height based on your example images */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ba-slider .img-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.ba-slider .img-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.ba-slider .img-wrapper.before { z-index: 0; }
.ba-slider .img-wrapper.after { 
    z-index: 1; 
    width: 50%; /* Starting position */
    border-right: 3px solid #fff;
}
.ba-slider .drag-line {
    width: 2px;
    height: 100%;
    position: absolute;
    left: 50%;
    z-index: 2;
    pointer-events: none;
}
.ba-slider .drag-line::before {
    content: "↔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.ba-slider input {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: ew-resize;
}

.badge-no-sub {
    background: rgba(255, 123, 0, 0.2);
    color: #ff7b00;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.label-cloud {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 1px;
}

.price-card.featured {
    border: 2px solid #ff7b00;
    transform: scale(1.05);
    background: #161616;
}

.pricing-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 40px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: #ff7b00;
    margin-right: 10px;
}


/* --- IPAD SCREENSHOT STYLING --- */
.ipad-frame {
    border-radius: 16px;
    border: 8px solid #333; /* Dark bezel look */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.ipad-frame img {
    display: block;
    width: 100%;
    height: auto;
}
.ipad-frame:hover {
    transform: translateY(-10px);
    border-color: var(--brand-orange);
}

/* --- KIOSK FADING SLIDESHOW --- */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    /* 4/3 Aspect Ratio mimics an iPad screen */
    aspect-ratio: 4/3; 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #000;
}

.slideshow-wrapper img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Total cycle is 16s (4 images x 4 seconds each) */
    animation: fadeLoop 16s infinite;
}

/* Stagger the animations so they play one after another */
.slideshow-wrapper img.slide:nth-child(1) { animation-delay: 0s; }
.slideshow-wrapper img.slide:nth-child(2) { animation-delay: 4s; }
.slideshow-wrapper img.slide:nth-child(3) { animation-delay: 8s; }
.slideshow-wrapper img.slide:nth-child(4) { animation-delay: 12s; }

/* The Fade Keyframes */
@keyframes fadeLoop {
    0% { opacity: 0; }
    6% { opacity: 1; }   /* Fade in quickly */
    25% { opacity: 1; }  /* Stay visible */
    31% { opacity: 0; }  /* Fade out */
    100% { opacity: 0; } /* Stay hidden */
}


/* --- NAVIGATION (CONSISTENT) --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 20px;
    position: relative;
}
.nav-logo img { height: 50px; width: auto; } /* Adjust height based on your logo file */
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-pink); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    margin: 6px 0;
}

/* --- SECTIONS --- */
section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Grid Systems */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* Cards */
.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--brand-purple); }
.icon-box {
    font-size: 2rem; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(139,37,245,0.2), rgba(245,37,149,0.2));
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; color: var(--brand-pink);
}

/* --- SHOP: DOWNLOAD ACCESS SECTION --- */
.download-guide-card,
.download-actions-card {
    min-height: 100%;
}

.download-guide-intro {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.download-steps {
    margin: 0 0 0 20px;
    color: var(--text-muted);
    display: grid;
    gap: 12px;
}

.download-steps strong {
    color: #fff;
}

.purchase-context {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.purchase-context-line {
    margin-bottom: 8px;
    color: var(--text-muted);
    word-break: break-all;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
}

.download-actions {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.download-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.download-actions .btn i {
    font-size: 1rem;
}

.download-message {
    margin-top: 14px;
    min-height: 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- HOMEPAGE NEW ROWS --- */
.business-model-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.business-model-card {
    text-align: center;
}

.business-model-card i {
    font-size: 2rem;
    color: var(--brand-orange);
    margin-bottom: 14px;
}

.business-model-card p {
    color: var(--text-muted);
}

.hybrid-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    color: #fff;
}

.hybrid-feature-list i {
    color: var(--brand-purple);
    margin-right: 10px;
}

.feature-image-frame {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
}

.sketch-style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.sketch-style-card {
    margin: 0;
    background: #151515;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.sketch-style-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-pink);
}

.sketch-style-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.sketch-style-card figcaption {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- SUPPORT SYSTEM --- */
.support-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.support-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.support-card .support-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.support-card .support-title i {
    color: var(--brand-orange);
}

.support-card .support-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.support-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.support-kpi {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
}

.support-kpi strong {
    display: block;
    margin-bottom: 2px;
}

.support-kpi span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-form {
    display: grid;
    gap: 14px;
}

.support-form .support-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.support-form label {
    display: grid;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    background: #0f0f0f;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    padding: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.support-form textarea {
    min-height: 140px;
    resize: vertical;
}

.support-note {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.terms-legal-list {
    margin-left: 20px;
    color: var(--text-muted);
    display: grid;
    gap: 10px;
}

.guide-steps {
    margin-left: 20px;
    color: var(--text-muted);
    display: grid;
    gap: 10px;
}

.guide-steps code {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px 6px;
}

.guide-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.02);
    margin-top: 14px;
}

/* --- 4-COLUMN GRID --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* --- FLIP CARD EFFECT --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px; /* Adjust height based on your photo aspect ratio */
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

.flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Back side styling */
.flip-card-back {
    transform: rotateY(180deg);
    position: relative;
}

/* Label badges */
.flip-badge {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.badge-orig { background: rgba(0,0,0,0.7); color: white; border: 1px solid rgba(255,255,255,0.3); }
.badge-ai { background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink)); color: white; }

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: 1fr 1fr; } /* Tablet: 2x2 */
}
@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; } /* Mobile: 1x4 */
}

/* --- MASONRY GALLERY --- */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    margin-bottom: 60px;
}

.gallery-item {
    break-inside: avoid; /* Prevents images from being cut between columns */
    margin-bottom: 20px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom & Overlay */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 37, 245, 0.4); /* Purple glow */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-orange);
}

/* --- RESPONSIVE MASONRY --- */
@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo img { height: 40px; margin-bottom: 20px; }
.footer-col h4 { margin-bottom: 20px; color: white; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: var(--brand-orange); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; color: #555; font-size: 0.9rem; }

/* --- IOS DOWNLOAD BAR --- */
.ios-download-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, calc(100vw - 24px));
    background: rgba(15, 15, 18, 0.96);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 12px 14px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ios-download-bar p {
    margin: 0;
    color: #d5d5da;
    font-size: 0.9rem;
    flex: 1;
}
.ios-download-bar a {
    text-decoration: none;
    color: white;
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink));
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
}
.ios-download-bar button {
    border: 0;
    background: transparent;
    color: #aaa;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav-toggle { display: block; }
    .nav-cta { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 20px;
        width: min(280px, calc(100vw - 40px));
        padding: 16px;
        background: rgba(16, 16, 18, 0.98);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        flex-direction: column;
        gap: 14px;
        z-index: 1200;
    }
    .nav-links.is-open { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .ios-download-bar {
        bottom: 10px;
        padding: 10px 12px;
        align-items: flex-start;
        flex-direction: column;
    }
    .ios-download-bar a {
        width: 100%;
        text-align: center;
    }
    .ios-download-bar button {
        position: absolute;
        top: 8px;
        right: 10px;
    }
    .download-actions .btn {
        padding: 13px 14px;
        font-size: 0.95rem;
    }
    .support-card-grid,
    .support-kpi-grid,
    .support-form .support-row-2 {
        grid-template-columns: 1fr;
    }
    .business-model-grid {
        grid-template-columns: 1fr;
    }
    .sketch-style-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .sketch-style-grid {
        grid-template-columns: 1fr;
    }
}
