/* ===================================
   HIGH-CONVERSION LANDING PAGE STYLES
   Orange & Black Theme with Advanced Effects
   =================================== */

/* CSS Variables */
:root {
    --primary-orange: #FF6B00;
    --secondary-orange: #FFA500;
    --dark-orange: #E55B00;
    --black: #000000;
    --dark-gray: #0a0a0a;
    --medium-gray: #1a1a1a;
    --light-gray: #333333;
    --white: #ffffff;
    --text-gray: #999999;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    --gradient-dark: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 107, 0, 0.3) 0%, transparent 70%);
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(255, 107, 0, 0.5);
    
    /* Mockup showcase - Tablet breakpoint (≤768px) customization */
    --tablet-showcase-height: 350px;
    
    --tablet-desktop-width: 280px;
    --tablet-desktop-height: 175px;
    --tablet-desktop-left: 21%;
    --tablet-desktop-top: 45%;
    
    --tablet-tablet-width: 140px;
    --tablet-tablet-height: 220px;
    --tablet-tablet-right: 1%;
    --tablet-tablet-top: 25%;
    
    --tablet-mobile-width: 90px;
    --tablet-mobile-height: 180px;
    --tablet-mobile-left: 1%;
    --tablet-mobile-bottom: 12%;
    
    /* Mockup device-frame mobile customization */
    --mobile-desktop-border: 4px;
    --mobile-desktop-padding: 18px 10px 10px 10px;
    --mobile-desktop-radius: 12px;
    
    --mobile-tablet-border: 5px;
    --mobile-tablet-padding: 25px 10px;
    --mobile-tablet-radius: 18px;
    
    --mobile-mobile-border: 5px;
    --mobile-mobile-padding: 20px 8px;
    --mobile-mobile-radius: 25px;

    /* Safe viewport height updated dynamically (JS) for mobile keyboard avoidance */
    --safe-vh: 100vh;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    /* Prevent horizontal scrolling on mobile */
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    position: relative;
    /* Prevent content jumping during load */
    min-height: 100vh;
}

/* Prevent content hiding with CSS - ensure visibility */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Improve touch targets for mobile (minimum 44x44px) */
button,
.btn,
a[role="button"],
input[type="submit"],
input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent layout shifts by reserving space for images */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Enhanced mobile viewport handling */
@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at top, #1a1a1a 0%, #000000 100%);
    /* Prevent content flickering */
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
    /* GPU acceleration for smoother animations */
    transform: translateZ(0);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
    top: -300px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-orange) 0%, transparent 70%);
    bottom: -200px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #FF8C00 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 80px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 16px 60px;
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--gradient-glow);
    filter: blur(100px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.8s ease-out;
    max-width: 100%;
    word-break: break-word;
}

@media (max-width: 768px) {
    .hero-badge {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

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

.hero-title {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 26px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 20px;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle-line {
    color: var(--white);
    display: block;
}

.hero-description {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s backwards;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0;
    }
}

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

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
        padding: 0 10px;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

@media (max-width: 768px) {
    .btn {
        padding: 14px 24px;
        font-size: 1rem;
        white-space: normal;
        text-align: center;
        width: 100%;
    }
    
    .btn span {
        overflow-wrap: break-word;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 0, 0.5), 0 0 40px rgba(255, 107, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 0, 0.7), 0 0 60px rgba(255, 107, 0, 0.5); }
}

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

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

.btn svg {
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(5px);
}

/* Social Proof */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-social-proof {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        overflow: hidden;
        max-width: 100%;
    }
}

.proof-avatars {
    display: flex;
    margin-right: 10px;
    flex-shrink: 0;
    overflow: hidden;
    max-width: 100%;
}

.avatar, .avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--black);
    margin-left: -12px;
    flex-shrink: 0;
}

.avatar {
    background: var(--gradient-primary);
    color: var(--white);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-img {
    background: var(--white);
    padding: 0;
    overflow: hidden;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-more {
    background: var(--dark-gray);
    color: var(--primary-orange);
    font-size: 0.75rem;
}

.hero-social-proof p {
    color: var(--text-gray);
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-social-proof p {
        font-size: 0.9rem;
    }
}

.hero-social-proof strong {
    color: var(--white);
    font-size: 1.1rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 0;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
        max-width: 100%;
    }
}

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

.stat-item h3 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

.stat-symbol {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-left: 5px;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }
    
    .hero-scroll-indicator span {
        display: none;
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-orange);
    border-bottom: 2px solid var(--primary-orange);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Trust Badges */
.trust-badges {
    padding: 60px 20px;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
}

.trust-title {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badges-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.badge-item:hover {
    background: rgba(255, 107, 0, 0.2);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 100px 20px;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 60px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.text-orange {
    color: var(--primary-orange);
}

/* Problem Section */
.problem-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 0, 0.03) 50%, transparent 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.problem-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 107, 0, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.problem-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
}

.problem-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.problem-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Solution Section */
.solution-section {
    background: var(--dark-gray);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-benefits {
    list-style: none;
    margin: 40px 0;
}

.solution-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--primary-orange);
    stroke-width: 2;
}

.mockup-showcase {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-device {
    position: absolute;
    transition: var(--transition-smooth);
}

/* Desktop Device */
.mockup-device.desktop {
    width: 450px;
    height: 280px;
    top: 5%;
    left: 0%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.mockup-device.desktop .device-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px;
    border: 6px solid #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 107, 0, 0.2);
    padding: 25px 15px 15px 15px;
    position: relative;
}

.mockup-device.desktop .device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

/* Tablet Device */
.mockup-device.tablet {
    width: 180px;
    height: 300px;
    top: 25%;
    right: 0%;
    transform: rotate(5deg);
    z-index: 3;
}

.mockup-device.tablet .device-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    border: 8px solid #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.15);
    padding: 30px 12px;
    position: relative;
}

.mockup-device.tablet .device-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #444;
    border-radius: 50%;
}

/* Mobile Device */
.mockup-device.mobile {
    width: 130px;
    height: 260px;
    bottom: 15%;
    left: 0%;
    transform: rotate(-3deg);
    z-index: 4;
}

.mockup-device.mobile .device-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 25px;
    border: 6px solid #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 107, 0, 0.25);
    padding: 20px 8px 25px 8px;
    position: relative;
}

.mockup-device.mobile .device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
}

.mockup-device.mobile .device-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border: 2px solid #444;
    border-radius: 50%;
}

/* Device Screen */
.device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    /* Prevent layout shift */
    contain: layout style paint;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: transform;
}

/* Hover Effects */
.mockup-device.desktop:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.mockup-device.tablet:hover {
    transform: rotate(5deg) scale(1.05);
}

.mockup-device.mobile:hover {
    transform: rotate(-3deg) scale(1.05);
}

/* Animations */
.mockup-device.desktop {
    animation: deviceFloat 6s ease-in-out infinite;
}

.mockup-device.tablet {
    animation: deviceFloat 5s ease-in-out infinite 0.5s;
}

.mockup-device.mobile {
    animation: deviceFloat 4s ease-in-out infinite 1s;
}

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

@keyframes shimmer {
    0% { background-position: -100% -100%; }
    100% { background-position: 100% 100%; }
}

/* Process Section */
.process-section {
    background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 50%, var(--black) 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 60px auto 0;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 40px 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About Section */
.about-section {
    background: var(--dark-gray);
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-highlights {
    list-style: none;
    margin: 30px 0;
}

.about-highlights li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.6;
}

.about-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.about-badges .badge {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
}

.about-card {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(255, 107, 0, 0.2);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 20px 60px rgba(255, 107, 0, 0.3);
    transform: translateY(-10px);
}

.about-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    /* Allow the photo to pop outside the circular frame */
    overflow: visible;
    border: 4px solid var(--primary-orange);
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
    position: relative;
}

.about-photo {
    /* Keep width equal to the circle to avoid side overflow; slightly increase height and shift up so only the top pops out while the bottom stays inside */
    width: 100%;
    height: 108%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* Lift the head above the circle */
    transform: translateY(-14%);
    transform-origin: center top;
    position: relative;
    z-index: 1;
}

.about-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-meta span {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.about-cta {
    margin-top: 40px;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-highlights li {
        text-align: left;
    }
    
    .about-badges {
        justify-content: center;
    }
}

/* Showcase Section (Marquee) */
.showcase-section {
    background: var(--black);
    padding: 120px 0 140px;
    position: relative;
}

.showcase-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    padding: 30px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    gap: 50px;
    padding-left: 50px;
}

.showcase-item {
    flex: 0 0 auto;
    width: 380px;
    position: relative;
    transition: var(--transition-smooth);
}

.showcase-frame {
    background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
    border: 2px solid rgba(255,107,0,0.15);
    border-radius: 26px;
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,107,0,0.15);
    position: relative;
    overflow: hidden;
}

.showcase-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,107,0,0.25), transparent 60%);
    opacity: 0.4;
    pointer-events: none;
}

.showcase-frame img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 16px;
    filter: brightness(0.92) contrast(1.05) saturate(1.1);
    transition: var(--transition-smooth);
    transform: translateZ(0);
    will-change: transform;
    background: rgba(0, 0, 0, 0.3);
    /* Prevent layout shift */
    aspect-ratio: 380 / 220;
}

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

.showcase-item:hover .showcase-frame {
    border-color: var(--primary-orange);
    box-shadow: 0 15px 60px rgba(255,107,0,0.35);
}

.marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 160px;
    z-index: 2;
    pointer-events: none;
}
.marquee-fade.left { left: 0; background: linear-gradient(to right, var(--black) 0%, rgba(0,0,0,0) 100%); }
.marquee-fade.right { right: 0; background: linear-gradient(to left, var(--black) 0%, rgba(0,0,0,0) 100%); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Marquee Pause on Hover (desktop) */
.showcase-marquee:hover .marquee-track { animation-play-state: paused; }

/* Mobile adjustments */
@media (max-width: 900px) {
    .marquee-track { animation-duration: 55s; gap: 34px; }
    /* Keep marquee animation enabled on mobile with a slower speed */
    .marquee-track { animation: marquee 65s linear infinite; gap: 24px; padding-left: 20px; }
    .showcase-item { width: 260px; }
}
@media (max-width: 640px) {
    /* No horizontal scrollbar/drag; auto marquee handles motion */
    .marquee-track { animation: none; gap: 20px; padding: 0 20px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
    .showcase-item { width: 78%; scroll-snap-align: center; }
    .showcase-frame { padding: 10px; }
    .showcase-frame img { height: 160px; }
    .showcase-track::-webkit-scrollbar { height: 8px; }
    
    /* Additional mobile hero optimizations */
    .hero {
        min-height: auto;
        padding: 70px 12px 50px;
    }
    
    .hero-badge {
        padding: 8px 14px;
        font-size: 0.75rem;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .hero-cta {
        padding: 0;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        gap: 20px;
        padding: 20px 10px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-symbol {
        font-size: 1.5rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    .proof-avatars {
        margin-right: 0;
        justify-content: center;
        flex-wrap: nowrap;
        max-width: 100%;
        width: fit-content;
        margin: 0 auto;
    }
    
    .avatar, .avatar-more {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 0.7rem;
        margin-left: -6px;
        border-width: 2px;
        flex-shrink: 0;
    }
    
    .avatar-img {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
    }
    
    .avatar-img img {
        width: 28px !important;
        height: 28px !important;
        object-fit: cover;
        object-position: center;
    }
    
    .avatar:first-child {
        margin-left: 0;
    }
    
    .hero-social-proof strong {
        font-size: 1rem;
    }
    
    /* Optimize images for mobile - reduce quality slightly for performance */
    img {
        image-rendering: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Testimonials */
.testimonials-section {
    background: var(--dark-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 60px auto 0;
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 107, 0, 0.1);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
}

.stars {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
    filter: blur(100px);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    /* Enable precise centering of child elements including urgency-badge */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.cta-urgency {
    margin: 30px 0;
    /* Simple centering: parent centers inline content */
    text-align: center;
}

/* urgency-badge removed */

.cta-note {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Form Section (Previously Modal, now inline) */
.form-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
    filter: blur(100px);
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-header {
    margin-bottom: 60px;
}

.form-container {
    background: linear-gradient(180deg, #0b0b0b 0%, #111 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    box-shadow: 0 30px 120px rgba(0,0,0,0.6), 0 0 80px rgba(255,107,0,0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.form-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,107,0,0.05) 0%, rgba(255,107,0,0) 100%);
}

.form-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.form-score .score-label { 
    color: var(--text-gray); 
    font-weight: 600; 
}

.form-score #modalScore { 
    color: #fff; 
    font-size: 1.1rem; 
}

.form-score .score-unit { 
    color: var(--primary-orange); 
    font-weight: 800; 
}

.form-progress { 
    flex: 1; 
    height: 10px; 
    background: rgba(255,255,255,0.06); 
    border-radius: 999px; 
    overflow: hidden; 
}

.form-progress-bar { 
    height: 100%; 
    background: var(--gradient-primary); 
    width: 0%; 
    box-shadow: 0 0 20px rgba(255,107,0,0.4) inset;
    transition: width 0.3s ease;
}

.form-body { 
    padding: 26px 22px; 
}

.form-body h3 { 
    font-size: 1.8rem; 
    margin-bottom: 6px;
    color: #fff;
}

.form-subtitle { 
    color: var(--text-gray); 
    margin-bottom: 22px; 
}

.modal-step { 
    display: grid; 
    gap: 14px; 
    animation: fadeInUp 0.35s ease; 
}

.modal-step label { 
    color: #fff; 
    font-weight: 600; 
}

.modal-step input, 
.modal-step select, 
.modal-step textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(255,107,0,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.modal-step input:focus, 
.modal-step select:focus, 
.modal-step textarea:focus { 
    outline: none; 
    border-color: var(--primary-orange); 
    box-shadow: 0 0 20px rgba(255,107,0,0.2); 
}

.form-actions { 
    display: flex; 
    justify-content: space-between; 
    gap: 12px; 
    padding: 0 22px 22px; 
}

.form-actions .btn { 
    flex: 1; 
}

.form-actions .form-prev { 
    max-width: 160px; 
}

.form-actions .form-next { 
    max-width: 220px; 
}

.form-feedback { 
    min-height: 22px; 
    margin-top: 6px; 
    color: #7CFF8D; 
    font-weight: 600; 
}

.form-feedback.error { 
    color: #ff6b6b; 
}

.form-note {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Form CTA Badge - Blinking */
.form-cta-badge {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    scroll-margin-top: 100px; /* Offset for smooth scroll */
}

.blink-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 50%, #FFA500 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.8), 
                0 0 80px rgba(255, 107, 0, 0.5),
                0 10px 30px rgba(0, 0, 0, 0.5);
    animation: blinkPulseStrong 1.5s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.blink-text::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes blinkPulseStrong {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.8), 
                    0 0 80px rgba(255, 107, 0, 0.5),
                    0 10px 30px rgba(0, 0, 0, 0.5);
    }
    25% {
        opacity: 0.85;
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 0 60px rgba(255, 107, 0, 1), 
                    0 0 120px rgba(255, 107, 0, 0.7),
                    0 15px 40px rgba(0, 0, 0, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
        box-shadow: 0 0 50px rgba(255, 107, 0, 0.9), 
                    0 0 100px rgba(255, 107, 0, 0.6),
                    0 12px 35px rgba(0, 0, 0, 0.55);
    }
    75% {
        opacity: 0.9;
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 0 60px rgba(255, 107, 0, 1), 
                    0 0 120px rgba(255, 107, 0, 0.7),
                    0 15px 40px rgba(0, 0, 0, 0.6);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Arrows pointing down */
.arrow-down-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--primary-orange);
    animation: arrowBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.8));
}

.arrow-down:nth-child(1) {
    animation-delay: 0s;
}

.arrow-down:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow-down:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .form-cta-badge {
        margin-bottom: 20px;
    }
    
    .blink-text {
        padding: 16px 28px;
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
    
    .arrow-down {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 16px solid var(--primary-orange);
    }
    
    .arrow-down-container {
        gap: 6px;
        margin-top: 12px;
    }
}

.modal-success {
    text-align: center;
    padding: 30px 10px 10px;
}

.modal-success h3 { 
    font-size: 2rem; 
    margin-bottom: 12px; 
}

.modal-success p { 
    color: var(--text-gray); 
}

@media (max-width: 768px) {
    .form-section {
        padding: 80px 16px;
    }
    
    .form-header {
        margin-bottom: 40px;
    }
    
    .form-progress-wrapper {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .form-score {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .form-score #modalScore { 
        font-size: 0.95rem; 
    }
    
    .form-progress { 
        height: 8px; 
    }
    
    .form-body { 
        padding: 18px 16px;
    }
    
    .form-body h3 { 
        font-size: 1.4rem; 
        margin-bottom: 4px;
    }
    
    .form-subtitle { 
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .modal-step { 
        gap: 10px; 
    }
    
    .modal-step label { 
        font-size: 0.9rem; 
    }
    
    .modal-step input, 
    .modal-step select, 
    .modal-step textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .form-actions { 
        flex-direction: column;
        padding: 0 16px 16px;
        gap: 10px;
    }
    
    .form-actions .btn { 
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 120px 20px;
    background: var(--black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    stroke: var(--primary-orange);
    fill: none;
    stroke-width: 2;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.benefit-item p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(255, 107, 0, 0.1);
    padding: 50px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 107, 0, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group select {
    cursor: pointer;
}

.form-privacy {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Footer */
.footer {
    padding: 60px 20px 30px;
    background: var(--black);
    border-top: 1px solid rgba(255, 107, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Signature handwriting effect */
.signature-name {
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Apple Chancery', cursive;
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    font-style: italic;
    letter-spacing: 0.5px;
    transform: rotate(-2deg);
    display: inline-block;
}

.footer-brand p {
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

/* AOS Animations */
[data-aos] {
    /* Changed from opacity: 0 to visibility for better rendering */
    opacity: 1;
    visibility: visible;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
    opacity: 0;
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
    opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .solution-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mockup-showcase {
        height: var(--tablet-showcase-height);
        /* Optimize for mobile performance */
        will-change: auto;
    }
    
    .mockup-device.desktop {
        width: var(--tablet-desktop-width);
        height: var(--tablet-desktop-height);
        left: var(--tablet-desktop-left);
        top: var(--tablet-desktop-top);
    }
    
    /* Tablet ajustado para telas médias (768px) */
    .mockup-device.tablet {
        width: var(--tablet-tablet-width);
        height: var(--tablet-tablet-height);
        right: var(--tablet-tablet-right);
        top: var(--tablet-tablet-top);
    }
    
    .mockup-device.tablet .device-frame {
        border: 6px solid #333;
        padding: 28px 10px;
        border-radius: 18px;
    }
    
    .mockup-device.mobile {
        width: var(--tablet-mobile-width);
        height: var(--tablet-mobile-height);
        left: var(--tablet-mobile-left);
        bottom: var(--tablet-mobile-bottom);
    }
    
    .proof-avatars {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .pricing-featured {
        transform: scale(1);
    }
    
    .pricing-featured:hover {
        transform: scale(1.03) translateY(-10px);
    }
    
    /* Additional hero fixes */
    .hero-subtitle-line {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 16px 28px;
        font-size: 1.05rem;
    }
    
    /* Reduce animations on mobile for better performance */
    .gradient-orb {
        animation: none;
        opacity: 0.2;
    }
    
    /* Optimize scroll performance */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .mockup-showcase {
        /* Increased container height to fit larger devices on small screens */
        height: 420px;
    }
    
    .mockup-device.desktop {
        /* Further increase for better visibility */
        width: 320px;
        height: 200px;
        left: 10%;
        top: 30%;
    }
    
    .mockup-device.tablet {
        /* Tablet sized between desktop and mobile for balanced look */
        width: 130px;
        height: 200px;
        right: 1%;
        top: 37%;
    }
    
    .mockup-device.mobile {
        width: 100px;
        height: 200px;
        left: 1%;
        bottom: 10%;
    }
    
    .mockup-device.desktop .device-frame {
        border: var(--mobile-desktop-border) solid #333;
        padding: var(--mobile-desktop-padding);
        border-radius: var(--mobile-desktop-radius);
    }
    
    /* Tablet específico no mobile */
    .mockup-device.tablet .device-frame {
        border: var(--mobile-tablet-border) solid #333;
        padding: var(--mobile-tablet-padding);
        border-radius: var(--mobile-tablet-radius);
    }
    
    .mockup-device.mobile .device-frame {
        border: var(--mobile-mobile-border) solid #333;
        padding: var(--mobile-mobile-padding);
        border-radius: var(--mobile-mobile-radius);
    }
    
    .mockup-device.mobile .device-frame::after {
        width: 30px;
        height: 30px;
    }
    
    /* Further optimize for very small screens */
    .hero {
        padding: 60px 12px 40px;
    }
    
    /* Disable expensive animations on small screens */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Modal (Gamified Multi-step Form) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    /* Changed from display: none to visibility for better performance */
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Use dynamic safe viewport height to avoid clipping behind mobile keyboards */
    height: var(--safe-vh);
}

.modal-overlay[aria-hidden="false"] { 
    visibility: visible;
    opacity: 1;
}

.modal {
    width: min(720px, 92vw);
    background: linear-gradient(180deg, #0b0b0b 0%, #111 100%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 20px;
    box-shadow: 0 30px 120px rgba(0,0,0,0.6), 0 0 80px rgba(255,107,0,0.2);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    animation: modalIn 0.35s ease forwards;
    max-height: calc(var(--safe-vh) - 40px);
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(180deg, rgba(255,107,0,0.05) 0%, rgba(255,107,0,0) 100%);
}

.modal-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,107,0,0.1);
    border: 1px solid rgba(255,107,0,0.25);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}
.modal-score .score-label { color: var(--text-gray); font-weight: 600; }
.modal-score #modalScore { color: #fff; font-size: 1.1rem; }
.modal-score .score-unit { color: var(--primary-orange); font-weight: 800; }

.modal-progress { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.modal-progress-bar { height: 100%; background: var(--gradient-primary); width: 0%; box-shadow: 0 0 20px rgba(255,107,0,0.4) inset; }

.modal-body { padding: 26px 22px; }
.modal-body h3 { font-size: 1.8rem; margin-bottom: 6px; }
.modal-subtitle { color: var(--text-gray); margin-bottom: 22px; }

.modal-step { display: grid; gap: 14px; animation: fadeInUp 0.35s ease; }
.modal-step label { color: #fff; font-weight: 600; }
.modal-step input, .modal-step select, .modal-step textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(255,107,0,0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-smooth);
}
.modal-step input:focus, .modal-step select:focus, .modal-step textarea:focus { outline: none; border-color: var(--primary-orange); box-shadow: 0 0 20px rgba(255,107,0,0.2); }

.modal-actions { display: flex; justify-content: space-between; gap: 12px; padding: 0 22px 22px; }
.modal-actions .btn { flex: 1; }
.modal-actions .modal-prev { max-width: 160px; }
.modal-actions .modal-next { max-width: 220px; }

.modal-feedback { min-height: 22px; margin-top: 6px; color: #7CFF8D; font-weight: 600; }
.modal-feedback.error { color: #ff6b6b; }

.modal-success {
    text-align: center;
    padding: 30px 10px 10px;
}
.modal-success h3 { font-size: 2rem; margin-bottom: 12px; }
.modal-success p { color: var(--text-gray); }

/* Confetti (simple) */
.confetti {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}
.confetti i {
    position: absolute;
    width: 10px; 
    height: 14px;
    background: var(--primary-orange);
    transform: rotate(15deg);
    animation: confettiFall 2.2s linear forwards;
}
@keyframes confettiFall {
    from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    to { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
    .modal { 
        width: 94vw;
        max-height: calc(var(--safe-vh) - 20px);
    }
    
    .modal-header {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .modal-score {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .modal-score #modalScore { font-size: 0.95rem; }
    
    .modal-progress { height: 8px; }
    
    .modal-body { 
        padding: 18px 16px;
    }
    .modal-body h3 { 
        font-size: 1.4rem; 
        margin-bottom: 4px;
    }
    .modal-subtitle { 
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .modal-step { gap: 10px; }
    .modal-step label { font-size: 0.9rem; }
    .modal-step input, 
    .modal-step select, 
    .modal-step textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .modal-actions { 
        flex-direction: column;
        padding: 0 16px 16px;
        gap: 10px;
    }
    .modal-actions .btn { 
        max-width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }
}

/* Keyboard open adjustments - only when input is focused */
body.keyboard-open .modal-overlay { 
    align-items: center;
}
body.keyboard-open .modal { 
    max-height: 85vh;
}
body.keyboard-open .modal-body { 
    overflow-y: auto;
    max-height: 60vh;
}

/* Prevent unwanted zoom on iOS when focusing inputs */
@media (max-width: 768px) {
    .modal-step input,
    .modal-step select,
    .modal-step textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}
