/* ========================================
   Bright Pixel Solutions - Modern Website
   Modern, Bold, Vibrant Design with Smooth Animations
   ======================================== */

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

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-color: #6C5CE7;
    --secondary-color: #764ba2;
    --success-color: #00B894;
    --warning-color: #FDCB6E;
    --danger-color: #E17055;
    --light-bg: #F8F9FA;
    --dark-text: #2D3436;
    --light-text: #636E72;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 0.6s forwards;
}

.preloader-inner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========== HEADER ========== */
.header {
    background: var(--white);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.sticky-top {
    position: sticky;
    top: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
}

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(108, 92, 231, 0.32));
}

.brand-mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.navbar-brand:hover .brand-mark {
    transform: translateY(-1px) scale(1.04);
}

.brand-text {
    display: block;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.05;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

.brand-text small {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 0.18rem;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========== SECTION STYLING ========== */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 500;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(118, 75, 162, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1), transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1), transparent);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite 1s;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.stat {
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--light-text);
    font-size: 0.9rem;
    margin: 0;
}

.hero-visual {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    z-index: 2;
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.floating-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-card p {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 { top: 20px; right: 50px; }
.card-2 { top: 150px; left: -30px; }
.card-3 { bottom: 50px; right: 30px; }

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== APPS SECTION ========== */
.apps-section {
    background: var(--white);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.app-card {
    background: var(--white);
    border-radius: 20px;
    padding: 0 2rem 2rem;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.app-downloads {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.app-description {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.app-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: var(--warning-color);
    font-size: 1rem;
}

.rating-text {
    color: var(--light-text);
    font-size: 0.85rem;
}

.app-stores {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-play,
.btn-web {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover,
.btn-web:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    background: var(--white);
}

.service-card {
    background: linear-gradient(135deg, #F8F9FA, var(--white));
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    /* 250px min keeps all four client quotes on one row at desktop widths. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--dark-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.testimonial-author p {
    color: var(--light-text);
    font-size: 0.8rem;
    margin: 0;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: var(--white);
    color: var(--primary-color);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
    background: var(--light-bg);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-visual {
        height: 300px;
    }

    .card-1 { top: 10px; right: 10px; }
    .card-2 { top: 100px; left: 0; }
    .card-3 { bottom: 20px; right: 10px; }

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

    .apps-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .navbar-collapse {
        background: var(--light-bg);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .stat {
        padding: 1rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .hero-title {
        font-size: 1.5rem;
    }

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

    .section-padding {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .floating-card {
        width: 80px;
        padding: 1rem;
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ========== UTILITY CLASSES ========== */
.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.ms-3 {
    margin-left: 1rem;
}

.w-100 {
    width: 100% !important;
}

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

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HERO PHONE MOCKUP ========== */
/* ========== AOS ANIMATIONS ========== */
/* Each section clips its own overflow: AOS parks fade-left/right elements outside
   their column before animating, which would otherwise make the document wider
   than the viewport ("content wider than screen"). */
section {
    overflow: hidden;
}

.aos-ready [data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: ease-in-out;
    transition-duration: 0.8s;
}

.aos-ready [data-aos="fade-up"] {
    transform: translate3d(0, 30px, 0);
}

.aos-ready [data-aos="fade-right"] {
    transform: translate3d(-40px, 0, 0);
}

.aos-ready [data-aos="fade-left"] {
    transform: translate3d(40px, 0, 0);
}

.aos-ready [data-aos].aos-animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .aos-ready [data-aos] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-phone,
    .floating-card {
        animation: none !important;
    }
}

/* ==========================================================================
   DEVICE MOCKUPS
   Product shots are built in markup rather than shipped as bitmaps: they stay
   crisp at any density, weigh nothing, and can be edited like any other UI.
   Everything inside a mockup is sized in `em`, so changing the font-size on
   .device / .browser scales the whole screen proportionally.
   ========================================================================== */

.device {
    position: relative;
    font-size: 11px;
    width: 15em;
    height: 32.5em;
    flex: 0 0 auto;
    padding: 0.42em;
    border-radius: 2.6em;
    background: #171A22;
    border: 0.07em solid #333A47;
    box-shadow:
        0 2em 3.4em -1em rgba(20, 23, 35, 0.45),
        0 0.6em 1.2em rgba(20, 23, 35, 0.16);
}

/* Screen glare - sells the "photographed device" look. */
.device::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0.20) 0 16%, rgba(255, 255, 255, 0.04) 34%, transparent 52%);
    pointer-events: none;
}

.device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2.2em;
    overflow: hidden;
    background: var(--white);
}

.device-island {
    position: absolute;
    top: 0.95em;
    left: 50%;
    transform: translateX(-50%);
    width: 4.2em;
    height: 1.15em;
    border-radius: 99px;
    background: #0B0D13;
    z-index: 3;
}

/* Perspective tilt. `transform` carries the perspective, so float animations
   below use the standalone `translate` property and never fight it. */
.tilt-left {
    transform: perspective(1500px) rotateY(-15deg) rotateX(5deg) rotateZ(-5deg);
}

.tilt-right {
    transform: perspective(1500px) rotateY(15deg) rotateX(5deg) rotateZ(5deg);
}

@keyframes deviceFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

.device-hero {
    font-size: 15px;
    z-index: 1;
    animation: deviceFloat 7s ease-in-out infinite;
}

.device-card {
    font-size: 11px;
}

/* ---------- Shared screen chrome ---------- */
.ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: 'Inter', 'Sora', sans-serif;
    color: var(--dark-text);
}

.ui b,
.ui i,
.ui em {
    font-style: normal;
}

.ui-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05em 1.5em 0.4em;
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ui-status-icons {
    display: flex;
    gap: 0.4em;
    font-size: 0.8em;
    opacity: 0.75;
}

.ui-status.is-dark {
    color: var(--white);
}

.ui-ava {
    width: 2.1em;
    height: 2.1em;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.ui-ava-plain {
    background: #DCE9FB;
}

.ui-ava-ring {
    background: #37507C;
    border: 0.16em solid rgba(255, 255, 255, 0.85);
    color: #C6D4EC;
}

.ui-tabbar {
    margin-top: auto;
    display: flex;
    padding: 0.7em 0.4em 1.1em;
    background: var(--white);
    border-top: 1px solid #EDEFF4;
}

.ui-tabbar span {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    font-size: 0.52em;
    font-weight: 600;
    color: #9AA3B2;
}

.ui-tabbar span i {
    font-size: 1.5em;
}

.ui-tabbar .is-on {
    color: #3B7DE9;
}

/* ---------- Hero screen: AI speaking practice ---------- */
.ui-tutor {
    background: var(--white);
    padding-bottom: 1.2em;
}

.ui-tutor-head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 1.2em 0.9em;
    border-bottom: 1px solid #EEF0F5;
}

.ui-tutor-id {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.ui-tutor-id b {
    font-size: 0.8em;
    font-weight: 700;
}

.ui-tutor-id i {
    font-size: 0.6em;
    color: #8A93A0;
}

.ui-live {
    font-size: 0.52em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #00947A;
    background: rgba(0, 184, 148, 0.14);
    padding: 0.35em 0.65em;
    border-radius: 99px;
}

.ui-msg {
    max-width: 80%;
    margin: 0.9em 1.15em 0;
    padding: 0.7em 0.9em;
    font-size: 0.66em;
    line-height: 1.45;
    border-radius: 1.15em;
}

.ui-msg-in {
    background: #F1F2F7;
    color: #3C4450;
    border-bottom-left-radius: 0.35em;
}

.ui-msg-out {
    margin-left: auto;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom-right-radius: 0.35em;
}

.ui-meter {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin: 1.5em 1.15em 0;
}

.ui-meter b {
    font-size: 0.58em;
    font-weight: 600;
    color: #8A93A0;
}

.ui-meter span {
    flex: 1;
    height: 0.34em;
    border-radius: 99px;
    background: #EDEFF4;
    overflow: hidden;
}

.ui-meter i {
    display: block;
    width: 82%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.ui-wave {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.24em;
    height: 3.4em;
}

.ui-wave i {
    width: 0.26em;
    border-radius: 99px;
    background: linear-gradient(180deg, #9A8BF3, var(--primary-color));
}

.ui-wave i:nth-child(1)  { height: 28%; }
.ui-wave i:nth-child(2)  { height: 54%; }
.ui-wave i:nth-child(3)  { height: 80%; }
.ui-wave i:nth-child(4)  { height: 42%; }
.ui-wave i:nth-child(5)  { height: 100%; }
.ui-wave i:nth-child(6)  { height: 66%; }
.ui-wave i:nth-child(7)  { height: 34%; }
.ui-wave i:nth-child(8)  { height: 88%; }
.ui-wave i:nth-child(9)  { height: 48%; }
.ui-wave i:nth-child(10) { height: 72%; }
.ui-wave i:nth-child(11) { height: 38%; }
.ui-wave i:nth-child(12) { height: 58%; }

.ui-mic {
    margin: 0.9em auto 0;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0.55em 1.3em rgba(108, 92, 231, 0.45);
}

/* ---------- Speak English Online ---------- */
.ui-seo {
    background: #F1F3F7;
}

.ui-seo-head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.35em 1.15em 1em;
}

.ui-seo-head b {
    flex: 1;
    font-size: 0.8em;
}

.ui-crown {
    color: #F4B740;
    font-size: 0.9em;
}

.ui-panel {
    margin: 0 0.8em;
    padding: 0.85em 0.85em 1.7em;
    background: var(--white);
    border-radius: 1.1em;
    box-shadow: 0 0.4em 1.2em rgba(45, 52, 54, 0.06);
}

.ui-label {
    display: block;
    margin: 0.55em 0 0.5em;
    font-size: 0.6em;
    font-weight: 600;
    color: #5A6472;
}

.ui-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4em;
}

.ui-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
    padding: 0.55em 0.4em;
    border: 1px solid #E4E8EF;
    border-radius: 0.7em;
    font-size: 0.52em;
    font-weight: 600;
    line-height: 1.1;
    color: #5A6472;
    overflow: hidden;
}

.ui-chip i {
    font-size: 1.35em;
    color: #9AA3B2;
}

.ui-chip.is-on {
    background: #6F9BEE;
    border-color: #6F9BEE;
    color: var(--white);
}

.ui-chip.is-on i {
    color: var(--white);
}

.ui-select {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.7em;
    border-radius: 0.7em;
    background: #F4F6FA;
    font-size: 0.6em;
    color: #7B8595;
}

.ui-select em {
    margin-left: auto;
    font-size: 1.4em;
    color: #9AA3B2;
}

.ui-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: -1.15em 1.7em 0;
    padding: 0.85em;
    border-radius: 99px;
    font-size: 0.72em;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(90deg, #6F9BEE, #3B7DE9);
    box-shadow: 0 0.5em 1.2em rgba(59, 125, 233, 0.35);
}

/* ---------- SpeakOnline.ai ---------- */
.ui-soa {
    background: #F4F5F8;
}

.ui-soa-top {
    padding-bottom: 1em;
    background: #173056;
    border-radius: 0 0 1.5em 1.5em;
}

.ui-soa-user {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 1.15em 0;
}

.ui-soa .ui-tutor-id b {
    color: var(--white);
    font-size: 0.78em;
}

.ui-soa .ui-tutor-id i {
    color: #B7C6E0;
    font-size: 0.58em;
}

.ui-free {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin: 0.85em 0.8em 0;
    padding: 0.9em;
    border-radius: 1em;
    background: #DCEAF9;
}

.ui-free-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.35em;
    min-width: 0;
}

.ui-free-copy b {
    font-size: 0.85em;
    color: #1B2A44;
}

.ui-free-copy i {
    font-size: 0.56em;
    line-height: 1.4;
    color: #42536E;
}

.ui-go {
    align-self: flex-start;
    display: inline-flex;
    gap: 0.4em;
    margin-top: 0.2em;
    padding: 0.5em 0.85em;
    border-radius: 99px;
    font-size: 0.52em;
    font-weight: 700;
    color: var(--white);
    background: #1E2C42;
}

.ui-free-mic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 0.68em;
    color: var(--white);
    background: #F0663F;
    box-shadow: 0 0.3em 0.8em rgba(240, 102, 63, 0.4);
}

.ui-rowhead {
    display: flex;
    align-items: baseline;
    padding: 1.1em 0.9em 0.55em;
}

.ui-rowhead b {
    flex: 1;
    font-size: 0.72em;
}

.ui-rowhead em {
    font-size: 0.54em;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
}

.ui-tiles {
    display: flex;
    gap: 0.45em;
    padding: 0 0.9em;
}

.ui-tile {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.25em;
    min-width: 0;
    padding: 0.6em 0.55em;
    border-radius: 0.8em;
    overflow: hidden;
}

.ui-tile i {
    font-size: 0.95em;
    color: #4B5563;
    opacity: 0.75;
}

.ui-tile b {
    font-size: 0.54em;
    line-height: 1.25;
    color: #1F2937;
}

.ui-tile em {
    font-size: 0.46em;
    line-height: 1.35;
    color: #4B5563;
    opacity: 0.85;
}

.ui-tile-wide {
    min-height: 4.4em;
}

.t-violet { background: #E3E0F8; }
.t-mint   { background: #D9EDE6; }
.t-rose   { background: #F6DFE2; }
.t-peach  { background: #F7E1D8; }

/* ---------- Browser window (web products) ---------- */
.browser {
    font-size: 14px;
    width: 22em;
    max-width: 100%;
    border-radius: 0.9em;
    overflow: hidden;
    background: var(--white);
    box-shadow:
        0 1.8em 3em -1em rgba(20, 23, 35, 0.35),
        0 0.5em 1em rgba(20, 23, 35, 0.12);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.7em 0.8em;
    background: #EEF0F4;
}

.browser-dots {
    display: flex;
    gap: 0.32em;
}

.browser-dots i {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #CBD2DC;
}

.browser-url {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex: 1;
    padding: 0.35em 0.7em;
    border-radius: 99px;
    background: var(--white);
    font-size: 0.6em;
    font-weight: 500;
    color: #5A6472;
}

.browser-body {
    display: flex;
    height: 13.5em;
}

.browser-side {
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    width: 27%;
    padding: 0.8em 0.6em;
    background: #F6F7FA;
    border-right: 1px solid #ECEEF3;
}

.bs-brand {
    display: flex;
    align-items: center;
    gap: 0.35em;
    margin-bottom: 0.3em;
}

.bs-brand i {
    width: 0.85em;
    height: 0.85em;
    border-radius: 0.25em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bs-brand em {
    flex: 1;
    height: 0.4em;
    border-radius: 99px;
    background: #C9CFDA;
}

.bs-item {
    height: 0.85em;
    border-radius: 0.35em;
    background: #E6EAF1;
}

.bs-item.is-on {
    background: rgba(108, 92, 231, 0.18);
}

.bs-people {
    display: flex;
    margin-top: auto;
}

.bs-people i {
    width: 0.9em;
    height: 0.9em;
    border-radius: 50%;
    border: 0.12em solid #F6F7FA;
    background: #D3D9E4;
    margin-left: -0.28em;
}

.bs-people i:first-child {
    margin-left: 0;
    background: #B9AEF4;
}

.browser-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.6em;
    padding: 0.8em;
}

.bm-top {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding-bottom: 0.65em;
    border-bottom: 1px solid #F0F2F6;
}

.bm-avatars {
    display: flex;
    margin-left: auto;
}

.bm-avatars i {
    width: 0.95em;
    height: 0.95em;
    border-radius: 50%;
    border: 0.12em solid var(--white);
    background: #D3D9E4;
    margin-left: -0.3em;
}

.bm-avatars i:first-child {
    background: #9FCBB9;
}

.bm-row {
    display: flex;
    align-items: flex-end;
    gap: 0.45em;
}

.bm-row.is-me {
    justify-content: flex-end;
}

.bm-ava {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #DDE2EB;
}

.bm-ava-accent {
    background: #B9AEF4;
}

.bm-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    max-width: 62%;
    padding: 0.5em 0.6em;
    border-radius: 0.6em 0.6em 0.6em 0.2em;
    background: #F4F6FA;
}

.bm-bubble .bl {
    width: 4.2em;
    height: 0.4em;
    background: #DCE1EA;
}

.bm-bubble .bl-sm {
    width: 2.6em;
}

.bm-bubble-accent {
    border-radius: 0.6em 0.6em 0.2em 0.6em;
    background: rgba(108, 92, 231, 0.14);
}

.bm-bubble-accent .bl {
    background: rgba(108, 92, 231, 0.4);
}

.bm-compose {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-top: auto;
}

.bm-compose span {
    flex: 1;
    height: 1.3em;
    border-radius: 99px;
    background: #F1F3F8;
    border: 1px solid #E7EAF1;
}

.bm-compose em {
    width: 1.3em;
    height: 1.3em;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bl {
    height: 0.62em;
    border-radius: 99px;
    background: #EDEFF4;
}

.bl-lg {
    width: 62%;
    height: 1.5em;
    background: #E4E7EE;
}

.bl-sm {
    width: 46%;
}

.bl-accent {
    width: 78%;
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.35), rgba(118, 75, 162, 0.18));
}

/* ---------- Product-card mockup stage ---------- */
.app-shot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    margin: 0 -2rem 1.75rem;
    overflow: hidden;
    background: linear-gradient(160deg, #F4F2FE 0%, #EFF4FB 55%, #FBF3F6 100%);
}

.app-shot::before {
    content: '';
    position: absolute;
    width: 15em;
    height: 15em;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.16), transparent 68%);
}

.app-shot-b::before {
    background: radial-gradient(circle, rgba(0, 184, 148, 0.16), transparent 68%);
}

.app-shot-c::before {
    background: radial-gradient(circle, rgba(240, 102, 63, 0.14), transparent 68%);
}

.app-card .device,
.app-card .browser {
    position: relative;
}

/* ---------- Mockup responsiveness ---------- */
@media (max-width: 991.98px) {
    .device-hero {
        font-size: 13px;
    }

    .hero-visual {
        height: 470px;
    }
}

@media (max-width: 768px) {
    .device-hero {
        font-size: 12px;
    }

    .hero-visual {
        height: 420px;
    }

    .app-shot {
        height: 330px;
        margin: 0 -2rem 1.5rem;
    }

    .device-card {
        font-size: 10px;
    }

    .browser {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .device-hero {
        font-size: 10.5px;
    }

    .hero-visual {
        height: 370px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .device-hero {
        animation: none;
    }
}
