/* ==========================================================================
   meyy.info — custom styles layered on top of Tailwind utilities
   ========================================================================== */

/* Smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* Base typography */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Selection */
::selection { background: rgba(99,102,241,0.18); color: #1B2347; }

/* Animated gradient background utility */
.bg-animated-gradient {
    background: linear-gradient(120deg, #0B1020, #1B2347, #312E81, #1B2347, #0B1020);
    background-size: 300% 300%;
    animation: gradient 12s ease infinite;
}
.bg-mesh {
    background-color: #0B1020;
    background-image:
        radial-gradient(at 12% 18%, rgba(99,102,241,0.35) 0px, transparent 50%),
        radial-gradient(at 85% 12%, rgba(245,158,11,0.18) 0px, transparent 50%),
        radial-gradient(at 75% 85%, rgba(79,70,229,0.28) 0px, transparent 50%),
        radial-gradient(at 18% 80%, rgba(167,139,250,0.18) 0px, transparent 50%);
}
.bg-mesh-light {
    background-color: #FAFAFE;
    background-image:
        radial-gradient(at 12% 18%, rgba(99,102,241,0.12) 0px, transparent 50%),
        radial-gradient(at 85% 12%, rgba(245,158,11,0.08) 0px, transparent 50%),
        radial-gradient(at 75% 85%, rgba(79,70,229,0.10) 0px, transparent 50%);
}

/* Glass card */
.glass {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.14);
}
.glass-light {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(15,23,42,0.06);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Hover lift card */
.hover-lift { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(15,23,42,0.18); }

/* Calculator input styling */
.calc-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 0.65rem;
    background: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #0B1020;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.calc-input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
    background: #FAFAFE;
}
.calc-input::placeholder { color: #94A3B8; }
.calc-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1B2347;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
}
.calc-help {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Result panel — animated highlight */
.result-panel {
    position: relative;
    background: linear-gradient(135deg, #0B1020 0%, #1B2347 60%, #312E81 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    overflow: hidden;
}
.result-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent, rgba(245,158,11,0.4), transparent 70%);
    animation: shimmer 4s linear infinite;
    pointer-events: none;
}

/* Big result number */
.big-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #FBBF24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Number ticker animation */
.ticker { display: inline-block; }

/* Pill */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Prose tuning */
.prose-meyy {
    color: #1B2347;
    font-size: 1.025rem;
    line-height: 1.78;
}
.prose-meyy h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: #0B1020;
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    scroll-margin-top: 5rem;
}
.prose-meyy h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #11172E;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    scroll-margin-top: 5rem;
}
.prose-meyy p { margin: 1rem 0; }
.prose-meyy ul { margin: 1rem 0; padding-left: 1.25rem; list-style: none; }
.prose-meyy ul li { position: relative; padding-left: 1.25rem; margin: 0.4rem 0; }
.prose-meyy ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #4338CA);
}
.prose-meyy ol { margin: 1rem 0; padding-left: 1.4rem; }
.prose-meyy ol li { margin: 0.4rem 0; }
.prose-meyy strong { color: #0B1020; font-weight: 700; }
.prose-meyy a { color: #4F46E5; text-decoration: underline; text-decoration-color: rgba(79,70,229,0.25); text-underline-offset: 2px; transition: text-decoration-color 0.2s; }
.prose-meyy a:hover { text-decoration-color: rgba(79,70,229,0.7); }
.prose-meyy blockquote {
    border-left: 3px solid #6366F1;
    background: #F5F3FF;
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: normal;
    color: #1B2347;
    margin: 1.5rem 0;
}
.prose-meyy code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: #EEF2FF;
    color: #3730A3;
    padding: 0.15rem 0.35rem;
    border-radius: 0.3rem;
}
.prose-meyy table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.92rem;
}
.prose-meyy th, .prose-meyy td {
    border: 1px solid #E2E8F0;
    padding: 0.6rem 0.8rem;
    text-align: left;
}
.prose-meyy th { background: #F8FAFC; font-weight: 700; color: #0B1020; }
.prose-meyy tr:nth-child(even) td { background: #FAFBFD; }

/* Disclaimer callout */
.callout {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #F59E0B;
    border-radius: 0.5rem;
    padding: 1rem 1.15rem;
    font-size: 0.9rem;
    color: #78350F;
    margin: 1.25rem 0;
}

/* Section divider — gradient line */
.gradient-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), transparent);
    margin: 3rem 0;
}

/* Loading shimmer for empty states */
.shimmer {
    background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
    background-size: 1000px 100%;
    animation: shimmer 2.5s linear infinite;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Marquee for testimonials / logos */
.marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Tooltip */
.tooltip-trigger { position: relative; cursor: help; }
.tooltip-trigger .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #0B1020;
    color: white;
    padding: 0.4rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 30;
}
.tooltip-trigger:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* Print friendliness for results */
@media print {
    header, footer, #backToTop, #cookieBanner, .no-print { display: none !important; }
    body { color: black; background: white; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
