:root {
    --primary-color: #1d3557; /* Primary Blue */
    --primary-light: rgba(29, 53, 87, 0.1);
    --secondary-color: #1d3557; /* Primary Blue */
    --secondary-light: rgba(29, 53, 87, 0.1);
    --dark-color: #1d3557;     /* Dark Blue */
    --light-color: #f1faee;    /* Lightest Blue/Green */
    --gray-color: #a8dadc;     /* Light Blue/Grey */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --base-font-size: 16px; /* Base font size */
    --line-height-base: 1.7; /* Slightly increased line height */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition-base: all 0.3s ease;
    --accent-color: #007bff; /* Example accent color */
}

/* Global sizing + horizontal overflow guard */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Defensive clamp for any accidental horizontal overflow */
html, body { overflow-x: hidden; }

/* Basic Reset & Body Styles */
body, h1, h2, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size); /* Set base font size on html */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    /* Use a very light solid color or keep the subtle gradient */
    background-color: #fdfdfe; /* Very light off-white */
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(229, 241, 246, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(255, 237, 237, 0.4) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Ensure main content pushes footer down */
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: var(--secondary-color); /* Default link color to secondary blue */
    transition: var(--transition-base);
    position: relative;
}

a:not(.cta-button):not(.cta-button-secondary):not(.nav-cta):hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Section Spacing */
section {
    padding: 6rem 2rem;
    position: relative;
}

/* New Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(237, 242, 247, 0.8);

    /* Make header sticky */
    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    margin-bottom: 2rem;
    text-align: left;
}


header:hover {
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-button {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    white-space: nowrap;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid transparent;
}

.nav-button:not(.primary) {
    color: #4A4A4A;
    background-color: #F6FBF4;
    border-color: #E0E6E2;
}

.nav-button.primary {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-button.primary:hover {
    color: white;
    background-color: #152a45; /* Darker blue on hover */
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #e6edf5;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    line-height: 1;
}

@media (max-width: 768px) {
    header { padding-inline: max(0.75rem, env(safe-area-inset-left)) max(0.75rem, env(safe-area-inset-right)); }
    header nav { justify-content: space-between; gap: 0.5rem; }
    .nav-main {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        flex-direction: column;
        background-color: #fff;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
        border: 1px solid #edf2f7;
        border-radius: 14px;
        z-index: 200;
        max-width: calc(100vw - 1.5rem);
        margin-inline: auto;
    }

    .nav-main.open {
        display: flex;
    }

    .nav-links { flex-direction: column; gap: 0.25rem; }

    .nav-buttons { flex-direction: column; width: 100%; }
    .nav-buttons .nav-button { width: 100%; justify-content: center; }

    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
}

/* Standard text link style for navigation */
.nav-links a, .nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a:hover, .nav-link:hover {
    color: #e63946;
}

.nav-links a::after, .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e63946;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-link:hover::after {
    width: 100%;
}

header .logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

header .logo .highlight {
    color: #e63946;
    position: relative;
    display: inline-block;
}

header .logo .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: #e63946;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
    opacity: 0.2;
}

header .logo:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-cta {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    background-color: rgba(241, 250, 238, 0.7);
    box-shadow: var(--shadow-sm);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    transition: var(--transition-base);
    z-index: -1;
}

.nav-cta:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* Hero Section Styles */
.hero {
    text-align: center;
    padding: 10rem 2rem 9rem;
    background-color: transparent;
    overflow: hidden;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced animations for existing background elements */
.hero::before {
    content: '';
    position: absolute;
    width: 1200px;
    height: 1200px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(231, 57, 70, 0.03), rgba(69, 123, 157, 0.03));
    top: -400px;
    right: -400px;
    z-index: -1;
    animation: pulse 15s ease-in-out infinite alternate, move 30s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: linear-gradient(-45deg, rgba(231, 57, 70, 0.03), rgba(69, 123, 157, 0.03));
    bottom: -300px;
    left: -300px;
    z-index: -1;
    animation: pulse 18s ease-in-out infinite alternate-reverse, move 25s linear infinite reverse;
}

/* Additional bubble elements */
.bubble-1, .bubble-2, .bubble-3 {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.bubble-1 {
    width: 300px;
    height: 300px;
    left: 15%;
    top: 20%;
    background: linear-gradient(45deg, rgba(168, 218, 220, 0.12), rgba(69, 123, 157, 0.08));
    animation: float 12s ease-in-out infinite, move-horizontal 25s ease-in-out infinite;
}

.bubble-2 {
    width: 180px;
    height: 180px;
    right: 25%;
    bottom: 15%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.06), rgba(168, 218, 220, 0.08));
    animation: float 9s ease-in-out infinite 2s, move-vertical 20s ease-in-out infinite;
}

.bubble-3 {
    width: 120px;
    height: 120px;
    left: 25%;
    bottom: 28%;
    background: linear-gradient(225deg, rgba(241, 250, 238, 0.1), rgba(69, 123, 157, 0.06));
    animation: float 7s ease-in-out infinite 1s, move-diagonal 18s ease-in-out infinite;
}

.hero-shape {
    position: absolute;
    top: 50%;
    right: -5%;
    width: 550px;
    height: 550px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: linear-gradient(45deg, rgba(168, 218, 220, 0.15), rgba(69, 123, 157, 0.15));
    animation: morph 15s linear infinite alternate, float 8s ease-in-out infinite, rotate 40s linear infinite;
    z-index: 0;
}

/* New animation keyframes */
@keyframes move {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(20px);
    }
    50% {
        transform: translateY(0) translateX(40px);
    }
    75% {
        transform: translateY(30px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes rotate {
    from { transform: translate(0, -50%) rotate(0deg); }
    to { transform: translate(0, -50%) rotate(360deg); }
}

@keyframes move-horizontal {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(0); }
}

@keyframes move-vertical {
    0% { transform: translateY(0); }
    50% { transform: translateY(30px); }
    100% { transform: translateY(0); }
}

@keyframes move-diagonal {
    0% { transform: translate(0, 0); }
    33% { transform: translate(25px, -25px); }
    66% { transform: translate(-25px, 25px); }
    100% { transform: translate(0, 0); }
}

/* Existing animation keyframes... */
@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes morph {
    0% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
        transform: translate(0, -50%) rotate(0deg);
    }
    100% {
        border-radius: 45% 55% 49% 51% / 53% 39% 61% 47%;
        transform: translate(0, -50%) rotate(180deg);
    }
}

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

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e63946;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.15s backwards;
    position: relative;
    display: inline-block;
}

.hero .subtitle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: #e63946;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.hero .description {
    margin: 1.5rem auto 3rem auto;
    color: #4a5568;
    font-size: 1.3rem;
    max-width: 650px;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    line-height: 1.6;
}

.cta-container {
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.45s backwards;
}

/* CTA Button (Shared Styles) */
.cta-button, .cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-base);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after, .cta-button-secondary::after {
    content: '';
    position: absolute;
    width: 0;
    height: 400%;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.6s ease;
    z-index: -1;
}

.cta-button:hover, .cta-button-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::after, .cta-button-secondary:hover::after {
    width: 120%;
}

.cta-button:active, .cta-button-secondary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* CTA Button (Red/Primary) */
.cta-button {
    background-color: var(--primary-color);
    color: #fff;
}

.cta-button:hover {
    background-color: #c42a37;
}

/* Get Started Section Styles */
.get-started {
    text-align: center;
    padding: 6rem 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 750px;
    margin: 5rem auto;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.get-started:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.get-started::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, transparent 50%, rgba(231, 57, 70, 0.05) 50%);
    z-index: 0;
}

.get-started::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, transparent 50%, rgba(69, 123, 157, 0.05) 50%);
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 2;
}

.get-started h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.get-started h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.get-started p {
    margin: 1.5rem auto 3rem auto;
    color: #4a5568;
    font-size: 1.25rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
}

/* Secondary Button (Blue) */
.cta-button-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.cta-button-secondary:hover {
    background-color: #335f7d;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    background-image: linear-gradient(180deg, rgba(13, 33, 54, 1) 0%, rgba(10, 28, 47, 1) 100%);
    padding: 6rem 2rem 4.5rem;
    color: var(--light-color);
    font-size: 0.95rem;
    margin-top: 8rem;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto 3.5rem auto;
    gap: 6rem;
}

.footer-info {
    max-width: 300px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-color);
    position: relative;
    display: inline-block;
}

.footer-logo .highlight {
    color: #e63946;
}

.footer-tagline {
    color: var(--light-color);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    font-weight: 300;
    max-width: 420px;
    line-height: 1.7;
}

.footer-logo::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    bottom: -10px;
    left: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.footer-links h3 {
    margin-bottom: 1.4rem;
    color: var(--light-color);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--light-color);
    bottom: 0;
    left: 0;
    opacity: 0.6;
}

.footer-links ul li {
    margin-bottom: 0.9rem;
    transition: transform 0.2s ease;
}

.footer-links ul li:hover {
    transform: translateX(3px);
}

.footer-links a {
    color: var(--light-color);
    transition: var(--transition-base);
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1.9;
}

.footer-links a:hover {
    color: var(--gray-color);
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
    color: var(--light-color);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    margin-right: 1rem;
    color: var(--light-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #a0aec0;
    transition: var(--transition-base);
    background-color: rgba(237, 242, 247, 0.7);
    font-weight: 600;
    font-size: 0.85rem;
}

.social-icons a:hover {
    color: white;
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 2rem 7rem;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .description, .get-started p {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 3rem;
    }

    .hero-shape {
        width: 350px;
        height: 350px;
        right: -15%;
    }

    .get-started h2 {
        font-size: 2.6rem;
    }

    .bubble-1 {
        width: 200px;
        height: 200px;
    }

    .bubble-2 {
        width: 120px;
        height: 120px;
    }

    .bubble-3 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    header nav { padding: 0 0.75rem; }
    .nav-main { padding: 0.75rem 1rem; border-radius: 12px; }
    .nav-links a { font-size: 0.95rem; }
    section {
        padding: 4rem 1.5rem;
    }

    .hero {
        padding: 4rem 1rem 3.5rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .hero .description, .get-started p {
        font-size: 0.95rem;
    }

    .get-started {
        margin: 3rem 1rem;
    }

    .get-started h2 {
        font-size: 2.2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-shape {
        display: none;
    }

    .cta-container {
        margin-top: 1.5rem;
    }

    .cta-button, .cta-button-secondary {
        padding: 0.8rem 1.6rem;
        font-size: 0.85rem;
    }

    .bubble-1 {
        width: 150px;
        height: 150px;
    }

    .bubble-2, .bubble-3 {
        opacity: 0.4;
    }
}

/* Add styles for the accent span in the hero heading */
.hero h1 .accent {
    color: #e63946;
    position: relative;
    display: inline-block;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 5px;
    left: 0;
    background-color: #e63946;
    opacity: 0.1;
    border-radius: 2px;
}

/* Scroll indicator in hero section */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    opacity: 0.7;
    transition: var(--transition-base);
    animation: fadeInUp 1s ease-out 0.6s backwards, pulse-subtle 2s ease-in-out infinite 2s;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.scroll-indicator svg {
    animation: bounce 2s ease infinite;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(3px);
    }
}

@keyframes pulse-subtle {
    0% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

/* Features section */
.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #edf2f7;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature::before { display: none; }

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    background-color: #d7ecf7;
    border: 1px solid #cfe6f3;
    color: var(--secondary-color);
    transition: var(--transition-base);
}

.feature:hover .feature-icon {
    background-color: #cae6f2;
    color: var(--primary-color);
    transform: scale(1.1);
}

.feature h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.4rem;
}

.feature p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}
/* Rehearse section */
.rehearse-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    flex-wrap: wrap;
}

.rehearse-content {
    flex: 1 1 400px;
}

.rehearse-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2.6rem;
    line-height: 1.15;
    color: var(--dark-color);
}

.rehearse-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-size: 1.1rem;
}

.rehearse-list {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rehearse-list li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

.rehearse-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e63946;
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid rgba(230, 57, 70, 0.25);
    font-size: 0.85rem;
    line-height: 1;
}

.rehearse-image {
    flex: 1 1 400px;
    text-align: center;
}

.rehearse-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.06);
}

/* How it Works section */
.how-it-works {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.how-it-works h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.how-subtitle {
    color: #4a5568;
    max-width: 760px;
    margin: 0 auto 2rem auto;
}

.how-demo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.how-demo img {
    width: 100%;
    display: block;
}

.how-demo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.35) 100%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e63946;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.4);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 1;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 14px 28px rgba(230, 57, 70, 0.5);
}

.how-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
    z-index: 1;
}

/* decorative bubble similar to screenshot */
.how-it-works::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(168, 218, 220, 0.28);
    filter: blur(2px);
    z-index: -1;
}

/* Small-screen polish */
@media (max-width: 768px) {
    .rehearse-section {
        gap: 2rem;
        padding: 3rem 1rem;
    }
    .rehearse-image img {
        max-width: 380px;
    }
}


/* Trust badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(241, 250, 238, 0.7);
    border-radius: 50px;
    color: #2d3748;
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-badge svg {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* Footer additional styles */
.footer-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Media queries for new elements */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .feature {
        flex: 0 0 auto;
        width: 90%;
        max-width: 450px;
        margin: 0 auto;
    }

    .rehearse-section {
        flex-direction: column;
    }

    .rehearse-image {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        margin-top: 2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .rehearse-content h2 {
        font-size: 1.5rem;
    }
}

/* Testimonials Section */
.testimonials {
    text-align: center;
    padding: 5rem 2rem;
}

.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: #fbfbf8;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border: 1px solid #f0efe9;
    padding: 2rem;
    max-width: 360px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-stars { justify-content: flex-start; }

.testimonial-quote {
    font-style: italic;
    color: #2d3748;
    text-align: left;
}

.testimonial-person { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fff;
    color: #2d3a4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-meta { text-align: left; }
.person-name { font-weight: 700; }
.person-role { color: #64748b; font-size: 0.95rem; }

.testimonial-stars {
    margin-top: 0.25rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.25rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #e63946;
}

@media (max-width: 768px) {
    .testimonial-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* Auth section styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.or-divider {
    color: #666;
    margin: 0 1rem;
}

.login-form {
    display: flex;
    gap: 0.5rem;
}

.login-form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form button {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.register-link {
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

/* FAQ Section Styles */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.faq-answer {
    display: none;
    padding-top: 0.5rem;
    font-size: 1rem;
    color: var(--dark-color);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question {
    color: var(--accent-color);
}

/* FAQ enhanced styles (heading, chevrons, spacing) */
.faq h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
}

.faq-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-question .chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: #e63946;
    transition: transform 0.2s ease;
}

.faq-question .chevron::before {
    content: '▾';
    font-size: 1.1rem;
    line-height: 1;
}

.faq-item.open .faq-question .chevron::before {
    content: '▴';
}

.faq-answer {
    color: #2c3a4b;
    line-height: 1.6;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Open state for smooth transition */
.faq-item.open .faq-answer {
    opacity: 1;
}

/* Ensure question typography matches site */
.faq-question {
    font-family: var(--font-heading);
    font-weight: 600;
    transition: color 0.2s ease;
}

.faq-question:hover { color: #e63946; }
.faq-item.open .faq-question:hover { color: #e63946; }
