/*=============== VARIABLES CSS ===============*/
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --dark-color: #1e293b;
    --dark-light: #334155;
    --text-color: #64748b;
    --text-dark: #334155;
    --white-color: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Typography */
    --body-font: 'Inter', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --normal-size: 1rem;
    --small-size: 0.875rem;
    --smaller-size: 0.75rem;

    /* Font Weight */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 6rem 0;
    --container-width: 1200px;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
        --section-padding: 4rem 0;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-size);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
}

/*=============== REUSABLE CLASSES ===============*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section--dark {
    background-color: var(--dark-color);
}

.section--dark * {
    color: var(--white-color);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__subtitle {
    display: inline-block;
    font-size: var(--small-size);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section__title {
    font-size: var(--h2-size);
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
}

/*=============== BUTTONS ===============*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    font-size: var(--normal-size);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--dark-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--dark-color);
}

.brand-icon {
    color: var(--primary-color);
    font-size: 1.75rem;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: var(--font-medium);
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link.active-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav__cta {
    padding: 0.75rem 1.75rem;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/*=============== HERO SECTION ===============*/
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__subtitle {
    display: inline-block;
    font-size: var(--small-size);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: var(--h1-size);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--dark-color);
}

.stat-label {
    font-size: var(--small-size);
    color: var(--text-color);
}

.hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    box-shadow: var(--shadow-xl);
}

.visual-placeholder {
    font-size: 8rem;
    color: var(--white-color);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--primary-color);
    font-size: 2rem;
}

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

/*=============== SERVICES SECTION ===============*/
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card--featured {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white-color);
}

.service-card--featured * {
    color: var(--white-color);
}

.service-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: var(--smaller-size);
    font-weight: var(--font-semibold);
}

.service-card__icon {
    width: 70px;
    height: 70px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card--featured .service-card__icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
}

.service-card__title {
    font-size: var(--h3-size);
    margin-bottom: 1rem;
}

.service-card__description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card__features {
    margin-bottom: 1.5rem;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-card__features i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.service-card--featured .service-card__features i {
    color: var(--white-color);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    transition: var(--transition);
}

.service-card--featured .service-card__link {
    color: var(--white-color);
}

.service-card__link:hover {
    gap: 0.75rem;
}

/*=============== WHY US / FEATURES SECTION ===============*/
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-item__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white-color);
    margin: 0 auto 1.5rem;
}

.feature-item__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.feature-item__description {
    color: var(--text-color);
    line-height: 1.8;
}

.section--dark .feature-item__description {
    color: rgba(255, 255, 255, 0.8);
}

/*=============== PROCESS SECTION ===============*/
.process__timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, var(--primary-color) 0%, transparent 100%);
}

.process-step__number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--white-color);
    flex-shrink: 0;
}

.process-step__content {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.process-step__icon {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.process-step__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.process-step__description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.process-step__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.process-step__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.process-step__list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

/*=============== TESTIMONIALS SECTION ===============*/
.demo-badge {
    display: inline-block;
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--small-size);
    font-weight: var(--font-medium);
    margin-top: 1rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.testimonial-card__rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-card__rating i {
    color: #fbbf24;
    font-size: 1.125rem;
}

.testimonial-card__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.5rem;
}

.testimonial-card__name {
    font-size: 1.125rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial-card__role {
    font-size: var(--small-size);
    color: var(--text-color);
}

/*=============== CONTACT SECTION ===============*/
.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.contact__info {
    padding: 3rem;
    background: var(--gradient-primary);
    color: var(--white-color);
}

.contact__info .section__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact__info .section__title {
    color: var(--white-color);
}

.contact__description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
}

.contact__item-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white-color);
    flex-shrink: 0;
}

.contact__item-info h4 {
    color: var(--white-color);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact__item-info p {
    color: rgba(255, 255, 255, 0.9);
}

.contact__form-wrapper {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--normal-size);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.form-privacy {
    text-align: center;
    font-size: var(--small-size);
    color: var(--text-color);
    margin-top: 1rem;
}

.form-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-success {
    text-align: center;
    padding: 3rem;
}

.form-success i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/*=============== FOOTER ===============*/
.footer {
    background-color: var(--dark-color);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__title {
    color: var(--white-color);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--small-size);
}

.demo-note {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/*=============== SCROLL TO TOP ===============*/
.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/*=============== RESPONSIVE DESIGN ===============*/

/* Tablet */
@media screen and (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__image {
        order: -1;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__stats {
        justify-content: space-around;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }

    .process-step {
        gap: 1.5rem;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        padding: 3rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        align-items: flex-start;
        gap: 2rem;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav__link {
        font-size: 1.125rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero__buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .features__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-step__number {
        margin: 0 auto;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .contact__info {
        padding: 2rem;
    }

    .contact__form-wrapper {
        padding: 2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .visual-placeholder {
        font-size: 5rem;
    }

    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 45px;
        height: 45px;
    }
}
