:root {
    /* Converse Brand Color System */
    --primary-black: #0A0A0A;
    --pure-white: #FFFFFF;
    --charcoal: #1A1A1A;
    --ash-gray: #525252;
    --electric-purple: #8B5CF6;
    --hot-pink: #EC4899;
    --cyber-lime: #84CC16;
    --smoke: #F5F5F5;
    --steel: #71717A;
    --midnight: #18181B;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-color: var(--pure-white);
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(10,10,10,0.15);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-black);
}

/* Desktop centering - ensure content stays centered on larger screens */
@media (min-width: 768px) {
    body {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mobile-first responsive font sizes */
h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    line-height: 1.4;
}

/* Improved text readability */
p, .text-sm {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

.text-xs {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
}

.text-lg {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.text-xl {
    font-size: clamp(1.125rem, 3vw, 1.25rem);
}

/* Mobile-optimized buttons and touch targets */
button, .btn, a[class*="bg-"] {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced CTA buttons */
a[class*="bg-green"] {
    min-height: 52px;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Form elements optimization */
select, input[type="radio"] {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
}

/* FAQ buttons */
.faq-question {
    min-height: 48px;
    font-size: clamp(0.925rem, 2.2vw, 1rem);
    padding: 16px 18px;
    border-radius: 10px;
}

/* Task card buttons */
.bg-white .bg-green-600 {
    min-height: 44px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    padding: 12px 16px;
    border-radius: 8px;
}

/* Mobile-optimized spacing */
.container {
    padding-left: 16px;
    padding-right: 16px;
}

/* Section spacing optimization */
section {
    padding-top: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
}

/* Card spacing improvements */
.bg-white, .bg-gray-100, .bg-gray-700, .bg-blue-50 {
    padding: clamp(16px, 4vw, 24px);
    margin-bottom: clamp(12px, 3vw, 16px);
    border-radius: clamp(8px, 2vw, 12px);
}

/* Calculator spacing */
#calculator {
    padding: clamp(16px, 4vw, 20px);
    border-radius: clamp(10px, 2.5vw, 12px);
}

#calculator .space-y-3 > * + * {
    margin-top: clamp(12px, 3vw, 16px);
}

/* Trust indicators grid */
.grid-cols-2 {
    gap: clamp(12px, 3vw, 16px);
}

/* Form spacing */
.space-y-6 > * + *, .space-y-4 > * + *, .space-y-3 > * + * {
    margin-top: clamp(12px, 3vw, 20px);
}

/* Testimonial spacing */
.testimonial-card {
    margin-bottom: clamp(16px, 4vw, 24px);
}

/* Header and hero improvements */
.hero-content {
    padding: clamp(24px, 6vw, 32px);
}

/* Notification bar */
#notification-bar {
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.animate-pulse-purple {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    background: linear-gradient(90deg, var(--electric-purple), var(--hot-pink));
}

@keyframes pulse-purple {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
}

.animate-pulse-purple-cta {
    animation: pulse-purple 2s infinite;
    background: linear-gradient(135deg, var(--electric-purple), var(--hot-pink));
    transition: all 0.3s ease;
}

.animate-pulse-purple-cta:hover {
    background: linear-gradient(135deg, var(--hot-pink), var(--electric-purple));
    transform: translateY(-2px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.logo-carousel {
    display: flex;
    animation: scroll 40s linear infinite;
}

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

.logo-carousel:hover {
    animation-play-state: paused;
}

.electric-border {
    border: 2px solid var(--electric-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, var(--charcoal), var(--midnight));
    color: var(--pure-white);
}

.creative-highlight {
    background: linear-gradient(90deg, var(--electric-purple), var(--hot-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Additional mobile enhancements */
/* Improve touch interaction */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, select {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* Scrollbar optimization for mobile */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* Logo carousel mobile optimization */
.logo-carousel img {
    height: clamp(32px, 8vw, 40px);
    width: auto;
    object-fit: contain;
}

/* Stats counter mobile optimization */
.counter {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
}

/* Final CTA stats grid mobile optimization */
.grid-cols-3 > div {
    min-width: 0; /* Allows flexbox children to shrink below their minimum content size */
    overflow: hidden;
}

.grid-cols-3 .leading-tight {
    line-height: 1.2;
}

/* Prevent stats text from breaking on mobile */
@media (max-width: 375px) {
    .grid-cols-3 {
        gap: 0.5rem;
    }
    
    .grid-cols-3 p {
        font-size: clamp(0.7rem, 3vw, 0.875rem);
    }
}

/* Badge and pill spacing */
.inline-block {
    margin: clamp(4px, 1vw, 8px);
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

.h-12 {
    height: clamp(40px, 10vw, 48px);
}

/* Improved focus states for accessibility */
button:focus, a:focus, select:focus, input:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* Converse brand theme optimizations */
.converse-section-dark {
    background: linear-gradient(135deg, var(--charcoal), var(--midnight));
    color: var(--pure-white);
}

.converse-card {
    background: var(--pure-white);
    border: 1px solid var(--smoke);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(10,10,10,0.1);
}

.converse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
    border-color: var(--electric-purple);
}

.converse-button-primary {
    background: linear-gradient(135deg, var(--electric-purple), var(--hot-pink));
    color: var(--pure-white);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.converse-button-primary:hover {
    background: linear-gradient(135deg, var(--hot-pink), var(--electric-purple));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

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

.converse-text-secondary {
    color: var(--ash-gray);
}

.converse-text-muted {
    color: var(--steel);
}