@import "tailwindcss";
/* --- Core Styles --- */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #4c1d95;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Gradient Text Helper */
.text-gradient {
    background: linear-gradient(135deg, #a78bfa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Animated Mesh Background */
.mesh-bg {
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

/* --- Custom Animations (Moved from JS Config to CSS) --- */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes wave {

    0%,
    100% {
        height: 10%;
    }

    50% {
        height: 100%;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

/* Audio Visualizer Bars */
.bar {
    width: 6px;
    background: linear-gradient(to top, #8b5cf6, #3b82f6);
    border-radius: 999px;
    animation: wave 1s ease-in-out infinite;
}

.bar:nth-child(1) {
    animation-duration: 0.8s;
}

.bar:nth-child(2) {
    animation-duration: 1.1s;
}

.bar:nth-child(3) {
    animation-duration: 1.3s;
}

.bar:nth-child(4) {
    animation-duration: 0.9s;
}

.bar:nth-child(5) {
    animation-duration: 1.2s;
}

/* Hero Reader Card */
.reader-text {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #64748b;
}

.reader-word {
    border-radius: 0.3em;
    padding: 0.05em 0.15em;
    margin: 0 -0.15em;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.reader-word.is-read {
    color: #e2e8f0;
}

.reader-word.is-current {
    color: #ffffff;
    background-color: rgba(139, 92, 246, 0.35);
}

/* Pricing Card Hover Effect */
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(124, 58, 237, 0.3);
}

/* Loader */
.loader {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left-color: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Transitions */
.modal-content {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* FAQ Accordion Styles */
details {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

details[open] {
    padding-bottom: 1.5rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: white;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

summary:hover {
    color: #a78bfa;
}

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

summary::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #64748b;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(180deg);
}

details p,
details div {
    margin-top: 0.75rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.625;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Markdown Styles for Privacy/Terms */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: white;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.markdown-body h1 {
    font-size: 1.5rem;
}

.markdown-body h2 {
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.markdown-body h3 {
    font-size: 1.1rem;
}

.markdown-body p {
    margin-bottom: 1em;
    color: #cbd5e1;
}

.markdown-body ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1em;
    color: #cbd5e1;
}

.markdown-body strong {
    color: white;
}

.markdown-body a {
    color: #8b5cf6;
    text-decoration: underline;
}