/* ------------------- */
/* --- THEME & BASE --- */
/* ------------------- */
:root {
    --bg-color: #F8F9FC;
    --text-color: #333D4B;
    --heading-color: #1A202C;
    --primary-color: #6A45FF;
    --secondary-color: #2ED573;
    --light-gray: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Helvetica Neue", Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------- */
/* --- LAYOUT & HELPERS --- */
/* ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px;
}

h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 80px;
}

h2 .highlight {
    position: relative;
    display: inline-block;
}

h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
    transform: skew(-15deg);
}

.btn {
    display: inline-block;
    padding: 16px 38px;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #9075ff 100%);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -10px var(--primary-color);
}

/* Animation on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* --- HEADER --- */
/* ------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
}
.logo span { color: var(--primary-color); }

/* ------------------- */
/* --- HERO SECTION --- */
/* ------------------- */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 100vh;
}

#hero .hero-text {
    padding-right: 20px;
}

#hero p {
    font-size: 1.25rem;
    margin: 30px 0;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS-only Visual Mockup */
.mockup-phone {
    background-image: url(/index/img/hero-moc-2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
    width: 735px;
    height: 695px;
    /*background: var(--white);*/
    /*border-radius: 40px;*/
    /*box-shadow: var(--shadow-lg);*/
    /*border: 12px solid #2c3e50;*/
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

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

.mockup-card {
    position: absolute;
    width: 200px;
    padding: 15px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

.mockup-card-1 {
    top: 10%;
    left: -30%;
    transform: rotate(-15deg);
    z-index: 1;
    animation: float 7s ease-in-out infinite reverse;
}
.mockup-card-2 {
    bottom: 15%;
    right: -40%;
    transform: rotate(10deg);
    z-index: 3;
    animation: float 8s ease-in-out infinite;
}
.mockup-line { height: 8px; border-radius: 4px; background: var(--light-gray); margin-top: 10px; }


/* ------------------- */
/* --- HOW IT WORKS (TIMELINE) --- */
/* ------------------- */
#how-it-works .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

#how-it-works .timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--light-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: -1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}
.timeline-content h3 { font-size: 1.5rem; }
.timeline-content h3 span { color: var(--primary-color); margin-right: 10px; }


/* ------------------- */
/* --- FOR WHOM SECTION --- */
/* ------------------- */
#for-whom {
    background-color: var(--white);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.audience-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audience-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--shadow-lg);
}

.audience-icon { font-size: 3rem; margin-bottom: 20px; }
.audience-card h3 { font-size: 1.4rem; }
.audience-card a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

/* ------------------- */
/* --- FEATURES (INTERACTIVE) --- */
/* ------------------- */
#features .features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.feature-triggers button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-triggers button:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.feature-triggers button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px -5px var(--primary-color);
    transform: translateX(10px);
}
.feature-triggers .feature-icon { margin-right: 15px; }

.feature-display {
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.feature-content { display: none; }
.feature-content.active { display: block; animation: fadeIn 0.5s ease; }

.feature-content h3 { font-size: 2rem; margin-bottom: 15px; }
.feature-content p { font-size: 1.1rem; }

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

/* ------------------- */
/* --- SOCIAL PROOF --- */
/* ------------------- */
#social-proof { background-color: var(--white); }
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.testimonial-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    position: relative;
}
.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.testimonial-author-info strong {
    display: block;
    color: var(--heading-color);
}

/* ------------------- */
/* --- FINAL CTA --- */
/* ------------------- */
#final-cta {
    text-align: center;
}
#final-cta .cta-box {
    background-image: linear-gradient(45deg, #1A202C 0%, #333D4B 100%);
    padding: 80px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
#final-cta h2 {
    color: var(--white);
    margin-bottom: 20px;
}
#final-cta p {
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* ------------------- */
/* --- FOOTER --- */
/* ------------------- */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #999;
}

/* ------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------- */
@media (max-width: 992px) {
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #hero .hero-text {
        padding-right: 0;
        order: 2;
    }
    #hero p { margin-left: auto; margin-right: auto; }
    .hero-visual { order: 1; min-height: 400px; }
    .mockup-phone { width: 220px; height: 450px; }
    .mockup-card-1 { left: 10%; }
    .mockup-card-2 { right: 15%; }

    #features .features-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 { margin-bottom: 60px; }
    .container { padding: 80px 20px; }

    #how-it-works .timeline::after { left: 12px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; }
    .timeline-item.right { left: 0; }
    .timeline-item::after { left: 0; }

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