/* Landing Page Shared Styles
 * Common styles for all landing pages
 * Includes: animations, utility classes, card effects, responsive helpers
 */

:root {
    --brand-orange: #fd7726;
    --brand-orange-light: #ff9a56;
    --brand-dark: #1a1a1a;
    --bg-pattern-color: rgba(253, 119, 38, 0.08);
}

/* Background pattern */
.bg-pattern {
    background-image: radial-gradient(var(--bg-pattern-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Orange gradient text */
.orange-gradient-text {
    background: linear-gradient(135deg, var(--brand-orange), #e65100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card styles with hover effects */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(253, 119, 38, 0.2);
}

.hover-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px rgba(253, 119, 38, 0.15);
}

/* Problem card (interactive) */
.problem-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(253, 119, 38, 0.2);
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-orange);
    box-shadow: 0 20px 40px rgba(253, 119, 38, 0.15);
}

.active-problem {
    background: var(--brand-orange) !important;
    color: white !important;
    border-color: var(--brand-orange) !important;
}

.active-problem p, .active-problem h3 {
    color: white !important;
}

/* Primary button */
.btn-primary {
    background-color: var(--brand-orange);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(253, 119, 38, 0.3);
}

/* Shape blob (decorative) */
.shape-blob {
    position: absolute;
    background: radial-gradient(circle, rgba(253,119,38,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Fade animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-animate {
    opacity: 0;
}

.scroll-animate.animate-in {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: forwards;
}

.scroll-animate.fade-up.animate-in {
    animation-name: fadeInUp;
}

.scroll-animate.fade-left.animate-in {
    animation-name: fadeInLeft;
}

.scroll-animate.fade-right.animate-in {
    animation-name: fadeInRight;
}

.scroll-animate.scale-in.animate-in {
    animation-name: scaleIn;
}

.scroll-animate.delay-1 { animation-delay: 0.1s; }
.scroll-animate.delay-2 { animation-delay: 0.2s; }
.scroll-animate.delay-3 { animation-delay: 0.3s; }
.scroll-animate.delay-4 { animation-delay: 0.4s; }

/* Details/Summary styling */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* Layout helpers */
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Flexbox & Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Spacing */
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem;}
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-24 { padding-bottom: 6rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.line-through { text-decoration: line-through; }
.italic { font-style: italic; }

/* Colors */
.text-white { color: white; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-green-600 { color: #16a34a; }
.text-brand { color: var(--brand-orange); }
.bg-white { background-color: white; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-green-100 { background-color: #dcfce7; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-brand { background-color: var(--brand-orange); }
.border-brand { border-color: var(--brand-orange); }

/* Borders & Shadows */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-slate-100 { border-color: #f1f5f9; }
.border-orange-100 { border-color: #ffedd5; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Sizing */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.h-1 { height: 0.25rem; }
.h-10 { height: 2.5rem; }
.shrink-0 { flex-shrink: 0; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Misc */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.cursor-pointer { cursor: pointer; }
.transition { transition-property: all; transition-duration: 150ms; }
.transform { transform: translateX(0); }
.rotate-180 { transform: rotate(180deg); }
.grayscale { filter: grayscale(100%); }
.grayscale:hover { filter: grayscale(0%); }
.object-cover { object-fit: cover; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-7xl { font-size: 4.5rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:p-14 { padding: 3.5rem; }
}

/* Solution box - light background */
.solution-box {
    background: linear-gradient(135deg, #fff9f5 0%, #fff5ed 100%);
    border: 2px solid rgba(253, 119, 38, 0.2);
    border-left: 4px solid var(--brand-orange);
    color: var(--brand-dark);
}

/* FAQ styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    list-style: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    background: #f1f5f9;
}

.faq-icon {
    color: var(--brand-orange);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: #475569;
    line-height: 1.7;
}

.faq-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
}

.faq-content p {
    margin: 0.5rem 0;
}

.faq-highlight {
    background: rgba(253, 119, 38, 0.1);
    padding: 1rem;
    border-left: 4px solid var(--brand-orange);
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Mobile readability - backgrounds */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
        background: linear-gradient(135deg, rgba(255, 245, 237, 0.95) 0%, rgba(255, 232, 214, 0.95) 100%);
    }

    .landing-footer {
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    }

    main.pt-24 {
        padding-top: 0 !important;
    }
}
