@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Karla:wght@400;500;700&display=swap');

:root {
    --qtq-primary: #4f46e5;
    --qtq-secondary: #4338ca;
    --qtq-accent: #10b981;
    --qtq-background: #eef2ff;
    --qtq-text: #1e1b4b;
    --qtq-muted: #818cf8;
    --qtq-light-gray: #f8fafc;
    --qtq-dark-gray: #334155;
    --qtq-border-color: #e2e8f0;
    --ct-spacing-xl: 96px;
    --ct-spacing-lg: 80px;
    --ct-spacing-md: 48px;
    --ct-spacing-sm: 24px;
    --ct-header-height: 80px;
}

/* Base Styles & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Karla', sans-serif;
    color: var(--qtq-text);
    line-height: 1.6;
    background-color: var(--qtq-background);
}

::selection {
    background-color: var(--qtq-accent);
    color: var(--qtq-text);
}

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

a:hover {
    color: var(--qtq-secondary);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    color: var(--qtq-text);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

h4 {
    font-size: 1.8rem;
    font-weight: 600;
}

h5 {
    font-size: 1.4rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

strong {
    font-weight: 700;
}

/* Utility Classes */
.ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ct-spacing-sm);
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--ct-spacing-md);
}

.ct-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ct-spacing-sm);
}

.ct-text-center {
    text-align: center;
}

.ct-section-heading {
    margin-bottom: var(--ct-spacing-md);
}

.ct-section-heading h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}

.ct-section-heading p {
    font-size: 1.15rem;
    color: var(--qtq-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Spacing */
.ct-section {
    padding: var(--ct-spacing-lg) 0;
    position: relative;
}

.ct-section:nth-of-type(even) {
    background-color: var(--qtq-light-gray);
}

/* Buttons */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.ct-btn-primary {
    background-color: var(--qtq-primary);
    color: #ffffff;
    border-color: var(--qtq-primary);
}

.ct-btn-primary:hover {
    background-color: var(--qtq-secondary);
    border-color: var(--qtq-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ct-btn-secondary {
    background-color: var(--qtq-accent);
    color: var(--qtq-text);
    border-color: var(--qtq-accent);
}

.ct-btn-secondary:hover {
    background-color: #0e9f6e;
    border-color: #0e9f6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ct-btn-outline {
    background-color: transparent;
    color: var(--qtq-primary);
    border-color: var(--qtq-primary);
}

.ct-btn-outline:hover {
    background-color: var(--qtq-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
.ct-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: var(--ct-header-height);
    display: flex;
    align-items: center;
}

.ct-header .ct-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ct-logo {
    font-family: 'Manrope', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--qtq-primary);
}

.ct-logo span {
    color: var(--qtq-accent);
}

.ct-nav-desktop {
    display: flex;
    gap: var(--ct-spacing-sm);
    align-items: center;
}

.ct-nav-desktop a {
    color: var(--qtq-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.ct-nav-desktop a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 2px;
    background-color: var(--qtq-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.ct-nav-desktop a:hover::after, .ct-nav-desktop a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.ct-hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--qtq-primary);
}

.ct-nav-mobile {
    display: none;
    position: fixed;
    top: var(--ct-header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--ct-header-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ct-spacing-md);
    padding: var(--ct-spacing-md);
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

.ct-nav-mobile.active {
    transform: translateX(0);
}

.ct-nav-mobile a {
    color: var(--qtq-text);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.ct-nav-mobile a:hover {
    color: var(--qtq-primary);
}

/* Hero Section */
.ct-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: var(--ct-spacing-lg) 0;
}

.ct-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8) 0%, rgba(67, 56, 202, 0.7) 100%);
    z-index: 1;
}

.ct-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.ct-hero-content h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 0.5em;
}

.ct-hero-content p {
    font-size: 1.5rem;
    color: #f0f2ff;
    margin-bottom: var(--ct-spacing-md);
}

.ct-hero .ct-btn {
    margin: 0 10px;
}

/* Card Components */
.ct-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: var(--ct-spacing-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ct-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.ct-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--ct-spacing-sm);
}

.ct-card-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

.ct-card-body {
    flex-grow: 1;
    font-size: 1.05rem;
    color: var(--qtq-dark-gray);
}

.ct-card-footer {
    margin-top: var(--ct-spacing-sm);
}

/* Testimonials */
.ct-testimonial-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: var(--ct-spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ct-testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--qtq-dark-gray);
    margin-bottom: var(--ct-spacing-sm);
    flex-grow: 1;
}

.ct-testimonial-author {
    font-weight: 700;
    color: var(--qtq-primary);
    font-size: 1.1rem;
}

.ct-testimonial-title {
    font-size: 0.9rem;
    color: var(--qtq-muted);
}

/* How It Works Section */
.ct-how-it-works-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--ct-spacing-sm);
}

.ct-how-it-works-icon {
    font-size: 3rem;
    color: var(--qtq-primary);
    margin-bottom: var(--ct-spacing-sm);
}

.ct-how-it-works-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5em;
}

/* CTA Section */
.ct-cta-section {
    background: linear-gradient(45deg, var(--qtq-primary), var(--qtq-secondary));
    color: #ffffff;
    padding: var(--ct-spacing-lg) 0;
    text-align: center;
}

.ct-cta-section h2 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 0.6em;
}

.ct-cta-section p {
    font-size: 1.25rem;
    color: #f0f2ff;
    max-width: 800px;
    margin: 0 auto var(--ct-spacing-md) auto;
}

/* Form Styling */
.ct-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.ct-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--qtq-text);
}

.ct-form-group input:not([type="submit"]), .ct-form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--qtq-border-color);
    border-radius: 8px;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    color: var(--qtq-text);
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ct-form-group input:focus, .ct-form-group textarea:focus {
    outline: none;
    border-color: var(--qtq-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.ct-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.ct-form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.ct-form-status.ct-success {
    background-color: #d1fae5;
    color: #065f46;
}

.ct-form-status.ct-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* FAQ Section (Accordion) */
.ct-faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ct-faq-q {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--qtq-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fdfefe;
    border-bottom: 1px solid var(--qtq-border-color);
    transition: background-color 0.3s ease;
}

.ct-faq-q:hover {
    background-color: var(--qtq-light-gray);
}

.ct-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--qtq-primary);
    transition: transform 0.3s ease;
}

.ct-faq-item.active .ct-faq-q::after {
    content: '-';
    transform: rotate(180deg);
}

.ct-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 1.5rem;
    color: var(--qtq-dark-gray);
    background-color: #ffffff;
}

.ct-faq-item.active .ct-faq-a {
    max-height: 500px; /* Sufficiently large value */
    padding: 1rem 1.5rem 1.5rem;
}

/* Trust Badges/Elements */
.ct-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--qtq-dark-gray);
    background-color: #e0e7ff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin: 0.5rem;
}

.ct-trust-item svg {
    color: var(--qtq-primary);
    font-size: 1.5rem;
}

/* Footer */
.ct-footer {
    background-color: var(--qtq-text);
    color: #e0e0e0;
    padding: var(--ct-spacing-lg) 0 var(--ct-spacing-sm) 0;
}

.ct-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--ct-spacing-md);
    margin-bottom: var(--ct-spacing-md);
}

.ct-footer-col h5 {
    color: #ffffff;
    margin-bottom: 1.5em;
    font-size: 1.2rem;
}

.ct-footer-col p, .ct-footer-col address {
    font-size: 0.95rem;
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.ct-footer-col ul {
    list-style: none;
}

.ct-footer-col ul li {
    margin-bottom: 0.8em;
}

.ct-footer-col a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.ct-footer-col a:hover {
    color: var(--qtq-accent);
    text-decoration: underline;
}

.ct-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--ct-spacing-sm);
    text-align: center;
    font-size: 0.9rem;
    color: #a0a0a0;
}

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

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

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

.ct-animate {
    opacity: 0;
}

.ct-animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.ct-animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.ct-animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* Visual Separators */
.ct-section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--qtq-border-color), transparent);
    margin: var(--ct-spacing-lg) 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    .ct-hero-content h1 {
        font-size: 3.5rem;
    }
    .ct-hero-content p {
        font-size: 1.3rem;
    }
    .ct-nav-desktop {
        gap: 15px;
    }
    .ct-nav-desktop a {
        padding: 0.5rem 0.8rem;
    }
    .ct-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--ct-spacing-md);
    }
    .ct-section {
        padding: var(--ct-spacing-md) 0;
    }
    .ct-cta-section h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .ct-nav-desktop {
        display: none;
    }
    .ct-hamburger-menu {
        display: block;
    }
    .ct-hero-content h1 {
        font-size: 2.8rem;
    }
    .ct-hero-content p {
        font-size: 1.1rem;
    }
    .ct-hero .ct-btn {
        width: 80%;
        margin-bottom: 1rem;
    }
    .ct-grid {
        grid-template-columns: 1fr;
    }
    .ct-section-heading h2 {
        font-size: 2.2rem;
    }
    .ct-testimonial-quote {
        font-size: 1.1rem;
    }
    .ct-footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .ct-footer-col {
        text-align: center;
    }
    .ct-footer-col ul {
        padding-left: 0;
    }
    .ct-trust-item {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .ct-hero-content h1 {
        font-size: 2.2rem;
    }
    .ct-hero-content p {
        font-size: 1rem;
    }
    .ct-section-heading h2 {
        font-size: 1.8rem;
    }
    .ct-faq-q {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
    .ct-faq-item.active .ct-faq-a {
        padding: 0.8rem 1.2rem 1.2rem;
    }
    .ct-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .ct-trust-item {
        display: block;
        margin: 0.5rem auto;
        width: fit-content;
    }
    .ct-footer-grid {
        grid-template-columns: 1fr;
    }
}


/* === Quality polish === */
button, [class*="btn"], [class*="cta"] { transition: all 0.3s ease; cursor: pointer; }
button:hover, [class*="btn"]:hover, [class*="cta"]:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); filter: brightness(1.05); }

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