/* ============================================
   OOV Landing Pages - Conversion-Optimized CSS
   Mobile-First, CRO-Focused Stylesheet
   ============================================ */

/* -------------------- CSS VARIABLES -------------------- */
:root {
    --bg-deep: #0f0c29;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text-main: #e0e0e0;
    --text-highlight: #ffffff;
    --accent-gold: #FFD700;
    --accent-glow: rgba(255, 215, 0, 0.4);
    --accent-purple: #9d4edd;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Mobile-optimized spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Typography scale */
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --line-height-tight: 1.3;
}


/* ==================== BASE & RESET ==================== */

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-deep);
    background: var(--bg-gradient);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==================== TYPOGRAPHY (MOBILE-FIRST) ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px var(--accent-glow);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: var(--line-height-tight);
}

/* Mobile: Comfortable reading sizes */
h1 {
    font-size: 1.75rem; /* 28px */
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.125rem; /* 18px */
    margin-bottom: var(--spacing-sm);
}

p {
    margin: 0 0 var(--spacing-sm) 0;
    line-height: var(--line-height-base);
}

/* Better link visibility */
a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover,
a:focus {
    color: var(--text-highlight);
    text-shadow: 0 0 8px var(--accent-glow);
}

a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}


/* ==================== HEADER & LOGO ==================== */

.main-header {
    padding: var(--spacing-sm);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.logo-container {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-container:hover,
.logo-container:focus {
    transform: scale(1.05);
}


/* ==================== LAYOUT (MOBILE-FIRST) ==================== */

main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
    flex-direction: column;
    width: 100%;
}

.landing-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ==================== HERO SECTION (MOBILE-OPTIMIZED) ==================== */

.hero-content {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.hero-content h1 {
    font-size: 1.75rem; /* 28px - readable on small screens */
    margin-bottom: var(--spacing-md);
    background: linear-gradient(to right, #FFD700, #FDB931);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    padding: 0 var(--spacing-xs);
}

.hero-content .subhead {
    font-size: 1.0625rem; /* 17px - sweet spot for mobile */
    color: var(--text-highlight);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    line-height: 1.5;
    padding: 0 var(--spacing-xs);
}

.hero-content .description {
    font-size: 1rem;
    color: #b0b0d0;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Trust badge - visible and reassuring */
.trust-tag {
    font-size: 0.875rem; /* 14px - legible */
    color: #c0c0c0;
    margin-top: var(--spacing-md);
    font-style: italic;
    line-height: 1.4;
}


/* ==================== CTA BUTTONS (CONVERSION-OPTIMIZED) ==================== */

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    width: 100%;
    padding: 0 var(--spacing-xs);
}

.btn {
    /* Mobile: Full-width, large tap targets */
    padding: 16px 16px; /* Reduced horizontal padding for longer text */
    min-height: 52px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem; /* 13px - smaller for longer text to fit */
    letter-spacing: 0.2px; /* Tighter spacing */
    line-height: 1.2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Better tap experience on mobile */
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap; /* Force single line */
    overflow: visible; /* Allow text to be seen */
}

.btn:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 3px;
}

/* PRIMARY CTA - Impossible to miss */
.btn-glow {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #1a1a2e;
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        0 0 0 0 rgba(255, 215, 0, 0.5);
    font-size: 0.8125rem; /* 13px - match base btn for consistency */
    animation: pulse-glow 2s infinite;
    white-space: nowrap; /* Force single line */
    padding: 17px 14px; /* Tighter padding for longer text */
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(255, 215, 0, 0.4),
            0 0 0 0 rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 
            0 4px 25px rgba(255, 215, 0, 0.5),
            0 0 0 4px rgba(255, 215, 0, 0.2);
    }
}

/* Mobile: Active state for better feedback */
.btn-glow:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.6);
}

.cta-icon {
    color: var(--accent-purple);
    margin-right: 4px; /* Reduced margin */
    font-weight: bold;
    font-size: 0.875rem; /* Smaller icon on mobile */
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* SECONDARY BUTTON */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(0.98);
}

/* PRIMARY BUTTON (forms) */
.btn-primary {
    background: var(--accent-purple);
    color: white;
    width: 100%;
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:active {
    background: #7b2cbf;
    transform: scale(0.98);
}


/* ==================== CONTENT BLOCKS (MOBILE-OPTIMIZED) ==================== */

.content-block, 
.features, 
.integrations, 
.lead-form-section, 
.pricing-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--spacing-lg) var(--spacing-md);
    margin: var(--spacing-md) 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.content-block h2, 
.features h2, 
.pricing-block h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.625rem; /* 26px */
}

.content-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Visual separation between sections */
.content-block + .content-block {
    margin-top: var(--spacing-xl);
}

/* STEP elements inside content blocks */
.step {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.15);
    border-left: 3px solid var(--accent-gold);
    border-radius: 8px;
}

.step h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.0625rem;
    line-height: 1.4;
}

.step:last-child {
    margin-bottom: 0;
}


/* ==================== LISTS (SCANNABLE & CLEAR) ==================== */

ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    position: relative;
    line-height: 1.6;
    font-size: 1rem;
}

li::before {
    content: "✦";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-size: 1.125rem;
    top: 0;
}

.pain-points li {
    font-size: 1.0625rem; /* 17px - emphasis on pain points */
    color: var(--text-highlight);
}

.solution, 
.wish {
    text-align: center;
    font-size: 1.125rem;
    margin-top: var(--spacing-lg);
    color: var(--text-highlight);
    line-height: 1.5;
}

.wish em {
    color: var(--accent-gold);
    font-style: normal;
    display: block;
    margin-top: var(--spacing-sm);
}


/* ==================== FEATURE GRID (MOBILE-FIRST) ==================== */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: stack vertically */
    gap: var(--spacing-md);
}

.feature-card {
    background: rgba(0, 0, 0, 0.25);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.9375rem; /* 15px */
    margin: 0;
    color: #d0d0d0;
    line-height: 1.5;
}


/* ==================== PRICING SECTION ==================== */

.pricing-block {
    text-align: center;
    border: 2px solid var(--accent-gold);
    background: rgba(255, 215, 0, 0.03);
}

.pricing-block .price {
    font-size: 2.25rem; /* 36px - prominent but not overwhelming */
    font-weight: bold;
    color: var(--text-highlight);
    margin: var(--spacing-md) 0;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px var(--accent-glow);
}

.pricing-block p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}


/* ==================== FORMS (MOBILE-OPTIMIZED) ==================== */

.vertical-form .form-group {
    margin-bottom: var(--spacing-md);
}

.inline-form .input-group {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    width: 100%;
}

input, 
select, 
textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 14px 18px; /* Comfortable tap target */
    min-height: 48px;
    border-radius: 8px; /* Less extreme rounding for better mobile UX */
    font-family: 'Lato', sans-serif;
    font-size: 1rem; /* 16px prevents zoom on iOS */
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

select {
    background-color: rgba(15, 12, 41, 0.8);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select option {
    background-color: var(--bg-deep);
    color: white;
}

textarea {
    border-radius: 12px;
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.4);
}


/* ==================== MODAL (WIZARD-STYLE, MOBILE-FIRST) ==================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Darker backdrop for focus */
    backdrop-filter: blur(8px);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--accent-gold);
    /* Mobile: better spacing from edges */
    margin: var(--spacing-md);
    margin-top: 10vh; /* Keep it visible even on scroll */
    padding: var(--spacing-lg);
    width: calc(100% - 2rem);
    max-width: 500px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 0 50px rgba(255, 215, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
    /* Center horizontally */
    margin-left: auto;
    margin-right: auto;
}

.modal-content h2 {
    font-size: 1.375rem; /* 22px */
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
}

/* Close button - large tap target */
.close, 
.close-lead, 
.close-survey, 
.close-thanks {
    color: var(--accent-gold);
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close:hover,
.close:focus,
.close-lead:hover,
.close-lead:focus,
.close-survey:hover,
.close-survey:focus,
.close-thanks:hover,
.close-thanks:focus {
    color: var(--text-highlight);
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--accent-glow);
}

.close:focus,
.close-lead:focus,
.close-survey:focus,
.close-thanks:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Modal form spacing */
#modal-step-1,
#modal-step-2 {
    padding-top: var(--spacing-sm);
}


/* ==================== FOOTER ==================== */

footer {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    line-height: 1.6;
}


/* ==================== OWL EMOJI ANIMATION ==================== */

.owl-emoji {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-left: 8px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    display: inline-block;
    animation: emojiGlow 3s infinite alternate;
}

@keyframes emojiGlow {
    from { 
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4)); 
    }
    to { 
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)); 
    }
}


/* ==================== UTILITY CLASSES ==================== */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }


/* ==================== SMALL MOBILE OPTIMIZATION (320-400px) ==================== */

@media (max-width: 400px) {
    .btn {
        font-size: 0.75rem; /* 12px for very small screens */
        padding: 16px 12px;
        letter-spacing: 0.1px;
    }
    
    .btn-glow {
        font-size: 0.75rem;
        padding: 17px 12px;
    }
    
    .cta-icon {
        font-size: 0.75rem;
        margin-right: 3px;
    }
    
    .hero-content h1 {
        font-size: 1.625rem; /* 26px */
        line-height: 1.2;
    }
    
    .hero-content .subhead {
        font-size: 1rem;
    }
}


/* ==================== TABLET BREAKPOINT (600px+) ==================== */

@media (min-width: 600px) {
    
    /* Increase base spacing */
    main {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    }
    
    .landing-container {
        padding: 0 var(--spacing-md);
    }
    
    /* Typography scales up */
    h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    h2 {
        font-size: 1.875rem; /* 30px */
    }
    
    h3 {
        font-size: 1.25rem; /* 20px */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subhead {
        font-size: 1.25rem;
    }
    
    /* CTAs can be smaller width */
    .cta-group {
        flex-direction: row;
    }
    
    .btn {
        width: auto;
        min-width: 260px;
        padding: 18px 28px;
        font-size: 0.9375rem; /* 15px on tablet */
        white-space: nowrap;
        letter-spacing: 0.3px;
    }
    
    .btn-glow {
        font-size: 0.9375rem;
        padding: 18px 26px;
    }
    
    .cta-icon {
        font-size: 1rem;
        margin-right: 6px;
    }
    
    /* Feature grid: 2 columns */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    /* Content blocks more padding */
    .content-block, 
    .features, 
    .integrations, 
    .lead-form-section, 
    .pricing-block {
        padding: var(--spacing-xl);
        margin: var(--spacing-lg) 0;
    }
    
    .content-block h2, 
    .features h2, 
    .pricing-block h2 {
        font-size: 2rem;
    }
    
    /* Modal: more breathing room */
    .modal-content {
        margin-top: 8vh;
        padding: 2.5rem;
    }
    
    /* Pricing emphasis */
    .pricing-block .price {
        font-size: 2.75rem;
    }
}


/* ==================== DESKTOP BREAKPOINT (900px+) ==================== */

@media (min-width: 900px) {
    
    .landing-container {
        max-width: 900px;
    }
    
    /* Desktop typography */
    h1 {
        font-size: 2.75rem; /* 44px */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px */
    }
    
    .hero-content h1 {
        font-size: 3.5rem; /* 56px - original desktop size */
        line-height: 1.2;
    }
    
    .hero-content .subhead {
        font-size: 1.5rem;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content .description {
        font-size: 1.125rem;
    }
    
    /* Hover states for desktop */
    .btn {
        font-size: 1rem; /* 16px on desktop */
        padding: 18px 32px;
        letter-spacing: 0.5px;
    }
    
    .btn-glow {
        font-size: 1.0625rem; /* 17px on desktop */
        padding: 18px 32px;
    }
    
    .cta-icon {
        font-size: 1.125rem;
        margin-right: 8px;
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .btn-glow:hover {
        box-shadow: 
            0 6px 30px rgba(255, 215, 0, 0.6),
            0 0 0 4px rgba(255, 215, 0, 0.2);
    }
    
    .btn-secondary:hover {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }
    
    .btn-primary:hover {
        background: #7b2cbf;
        transform: translateY(-2px);
    }
    
    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    /* Modal: centered and comfortable */
    .modal-content {
        margin: 5% auto;
        width: 90%;
    }
    
    .content-block h2, 
    .features h2, 
    .pricing-block h2 {
        font-size: 2.5rem;
    }
    
    .pricing-block .price {
        font-size: 3rem;
    }
    
    /* More generous spacing */
    main {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}


/* ==================== LARGE DESKTOP BREAKPOINT (1200px+) ==================== */

@media (min-width: 1200px) {
    
    .landing-container {
        max-width: 1000px;
    }
    
    /* Even more breathing room */
    .content-block, 
    .features, 
    .integrations, 
    .lead-form-section, 
    .pricing-block {
        padding: 3.5rem;
    }
    
    /* Feature grid: can optionally show 2 columns or stay at 2 */
    /* If you have 4-5 features, 2x2 grid works well */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}


/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
    :root {
        --text-main: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}


/* ==================== PRINT STYLES ==================== */

@media print {
    .modal,
    .btn,
    footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    h1, h2, h3 {
        color: black;
        text-shadow: none;
    }
}
