/* --- Global Styles & Variables --- */
:root {
    --primary-color-start: #6a11cb; /* Purple */
    --primary-color-end: #2575fc;   /* Blue */
    --secondary-color: #30e3ca;    /* Teal/Mint Green */
    --accent-color: #f4d03f;       /* Yellow accent for pricing */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-light: #f9faff;
    --bg-soft: #eef2f7;
    --card-bg: #ffffff;
    --footer-bg: #1e202a;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

/* Underline effect for section titles */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color-end);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-start);
}

ul {
    list-style: none;
}

/* --- Call to Action Button --- */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color-light);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), lighten(var(--secondary-color), 15%));
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--text-color-dark); /* Change text color on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}


/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color-light);
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .container {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subheadline {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both; /* Keep state after animation */
}

.hero-widget-container {
    margin-top: 40px;
}
.hero-widget-container #ra-player {
    margin: 0 auto;
}

.hero-cta-container {
    margin-top: 60px;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 16px 40px;
    animation: pulse 2s infinite ease-in-out 1s;
}


/* Animated Shapes */
.animated-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    background: var(--text-color-light);
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 5%;
    animation-duration: 7s;
}

.shape2 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(48, 227, 202, 0.3); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
}

/* --- Features Section --- */
#features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 35px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color-end);
    display: inline-block;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color-start);
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
}

/* --- How It Works Section --- */
#how-it-works {
    background-color: var(--card-bg);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-top: 4rem;
    gap: 30px; /* Add gap for spacing */
}

.step-item {
    text-align: center;
    flex: 1;
    max-width: 300px; /* Limit width */
    position: relative;
    padding: 20px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color-end);
    margin-bottom: 1rem;
    margin-top: 30px; /* Space below number */
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.9rem;
    color: #666;
}

/* Dashed Connector Lines - Optional */
.step-connector {
    flex-grow: 1; /* Allow connector to take space */
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary-color-end),
        var(--primary-color-end) 6px,
        transparent 6px,
        transparent 12px
    );
    margin-top: 55px; /* Align vertically with icons */
    opacity: 0.5;
    max-width: 150px; /* Limit connector width */
}


/* --- Testimonial Section --- */
#testimonials {
    background-color: var(--bg-soft);
    padding: 80px 0;
}

#testimonials h2::after {
     background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end)); /* Keep gradient */
}


.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 4rem;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    border-left: 5px solid var(--primary-color-end);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
     transform: translateY(-5px);
}


.testimonial-card::before {
    content: "\f10d"; /* Font Awesome quote-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: -15px; /* Position over the border */
    font-size: 2.5rem;
    color: var(--primary-color-end);
    opacity: 0.15;
}

.testimonial-card .quote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-card .author {
    font-weight: 700;
    font-family: var(--heading-font);
    color: var(--primary-color-start);
    margin-bottom: 0.2rem;
}

.testimonial-card .title {
    font-size: 0.9rem;
    color: #777;
}

/* --- Pricing Section --- */
#pricing {
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 4rem;
    align-items: stretch; /* Make cards same height */
}

.pricing-tier {
    background-color: var(--card-bg);
    padding: 40px 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Align content vertically */
    border: 2px solid transparent; /* Base border */
    position: relative; /* For badge */
}

.pricing-tier:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-tier.popular {
    border-color: var(--accent-color);
    transform: scale(1.05); /* Make popular slightly bigger */
    box-shadow: 0 15px 40px rgba(244, 208, 63, 0.2);
    z-index: 2; /* Bring to front */
}

.pricing-tier.popular:hover {
     transform: scale(1.07) translateY(-10px); /* Enhance hover */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.pricing-tier h3 {
    font-size: 1.6rem;
    color: var(--primary-color-start);
    margin-bottom: 1rem;
}

.pricing-tier .price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color-end);
    margin-bottom: 1.5rem;
}

.pricing-tier .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
    margin-left: 5px;
}

.pricing-tier ul {
    margin-bottom: 2rem;
    flex-grow: 1; /* Allow list to push button down */
}

.pricing-tier ul li {
    margin-bottom: 0.8rem;
    color: #666;
}

.pricing-tier ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.plan-cta {
    margin-top: auto; /* Push button to bottom */
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    border: 2px solid transparent;
}

.plan-cta:hover {
    background: transparent;
    border-color: var(--primary-color-end);
    color: var(--primary-color-end);
}

.plan-cta-popular {
     background: linear-gradient(90deg, var(--accent-color), darken(var(--accent-color), 10%));
     color: var(--text-color-dark);
}

.plan-cta-popular:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}


/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    gap: 25px;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-color-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.copyright {
    font-size: 0.9rem;
    margin-top: 1rem;
}


/* --- Responsive Design --- */

@media (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .hero-headline { font-size: 3rem; }
    .hero-subheadline { font-size: 1.2rem; }
    .steps-container { flex-direction: column; align-items: center; }
    .step-item { max-width: 400px; margin-bottom: 30px; }
    .step-connector { display: none; } /* Hide connectors on smaller screens */
}


@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2 { font-size: 2rem; margin-bottom: 2rem; }
    .hero-headline { font-size: 2.5rem; }
    .hero-subheadline { font-size: 1.1rem; }
    #hero { padding: 120px 0 80px; min-height: 70vh;}

    .features-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
    .feature-item { padding: 30px 25px; }

    .testimonials-container { grid-template-columns: 1fr; gap: 25px; }
    .testimonial-card { padding: 30px; }

    .pricing-grid { grid-template-columns: 1fr; gap: 25px; }
    .pricing-tier.popular { transform: scale(1); /* Reset scale */ }
    .pricing-tier:hover { transform: translateY(-5px); }
    .pricing-tier.popular:hover { transform: scale(1.02) translateY(-5px); }

    .footer-nav ul { flex-direction: column; gap: 10px; }
    .tagline { font-size: 1rem; }
}

@media (max-width: 480px) {
     h2 { font-size: 1.8rem; }
    .hero-headline { font-size: 2rem; }
    .hero-subheadline { font-size: 1rem; max-width: 90%; }
    #hero { padding: 100px 0 60px; min-height: 60vh;}
    .cta-button { padding: 12px 30px; font-size: 0.9rem;}
    .hero-cta { font-size: 1rem; padding: 14px 35px;}
    .mockup-body { font-size: 0.9rem; }
    .mockup-body i { font-size: 1.5rem; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-item { padding: 25px 20px; }
    .feature-icon { width: 70px; height: 70px; line-height: 70px; font-size: 2rem; }

    .step-item h3 { font-size: 1.2rem; }
    .step-icon { font-size: 2.5rem; }

    .testimonial-card { padding: 25px 20px; }
    .testimonial-card .quote { font-size: 1rem; }

    .pricing-tier { padding: 30px 20px; }
    .pricing-tier .price { font-size: 2.2rem; }

    .animated-shape { display: none; } /* Hide shapes on small mobile */
}