/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --green-950: #052e16;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

.text-gradient {
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-300);
}

.btn--outline:hover {
    background: var(--green-50);
    border-color: var(--green-500);
}

.btn--white {
    background: var(--white);
    color: var(--green-700);
    box-shadow: var(--shadow-lg);
}

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

.btn--lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn__icon {
    font-size: 1.25em;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--green-100);
    transition: box-shadow 0.3s;
}

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

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.logo__icon {
    font-size: 1.75rem;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav__link:hover {
    color: var(--green-600);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-500);
    transition: width 0.2s;
}

.nav__link:hover::after {
    width: 100%;
}

.header__cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: 32px 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu__link {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 1.25rem;
    font-weight: 600;
}

.mobile-menu__cta {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}

.hero__bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-300), transparent 70%);
    top: -200px;
    right: -100px;
}

.shape--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-400), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.shape--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--green-200), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--green-100);
    color: var(--green-700);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--green-200);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

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

.stat__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green-700);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* Phone mockup */
.hero__visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 320px;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1) inset;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-mockup__screen {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    padding: 20px 16px;
    min-height: 420px;
}

.chat-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    animation: fadeInUp 0.5s ease both;
}

.chat-msg:nth-child(2) { animation-delay: 0.3s; }
.chat-msg:nth-child(3) { animation-delay: 0.6s; }
.chat-msg:nth-child(4) { animation-delay: 0.9s; }

.chat-msg--user {
    justify-content: flex-end;
}

.chat-msg__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.chat-msg__bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    max-width: 220px;
    line-height: 1.4;
}

.chat-msg--bot .chat-msg__bubble {
    background: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--gray-800);
}

.chat-msg--user .chat-msg__bubble {
    background: var(--green-500);
    color: var(--white);
}

.chat-msg--other .chat-msg__bubble {
    background: var(--gray-100);
    color: var(--gray-800);
}

.chat-msg__bubble--success {
    background: var(--green-500) !important;
    color: var(--white) !important;
    border-color: var(--green-600) !important;
}

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

/* ===== Features ===== */
.features {
    padding: 100px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-card__text {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== How it works ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--green-50);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step__number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.step__title {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step__text {
    color: var(--gray-500);
    font-size: 0.9rem;
    max-width: 220px;
    line-height: 1.6;
}

.step__connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-300), var(--green-500));
    margin-bottom: 60px;
    flex-shrink: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
    padding: 80px 0;
}

.cta-banner__inner {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner__bg-icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 4rem;
    opacity: 0.08;
    pointer-events: none;
}

.cta-banner__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
}

.cta-banner__text {
    color: var(--green-200);
    font-size: 1.15rem;
    margin-bottom: 32px;
    position: relative;
}

/* ===== FAQ ===== */
.faq {
    padding: 100px 0;
}

.faq__list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--green-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq__item[open] {
    border-color: var(--green-300);
}

.faq__question {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    user-select: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--green-500);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    background: var(--green-50);
}

.faq__answer {
    padding: 0 24px 20px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== SEO Text ===== */
.seo-text {
    padding: 60px 0;
    border-top: 1px solid var(--green-100);
}

.seo-text__title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--gray-700);
}

.seo-text h3.seo-text__title {
    font-size: 1.1rem;
    margin-top: 28px;
}

.seo-text p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 12px;
    max-width: 800px;
}

.seo-text strong {
    color: var(--gray-500);
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-700);
}

.footer .logo__text {
    color: var(--white);
}

.footer__desc {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer__heading {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--green-400);
}

.footer__bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__legal {
    color: var(--gray-500);
}

.footer__copyright {
    color: var(--gray-500);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--white);
    border-top: 1px solid var(--green-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 24px;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    pointer-events: none;
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner__text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    flex: 1;
}

.cookie-banner__text a {
    color: var(--green-600);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__accept,
.cookie-banner__decline {
    padding: 10px 24px;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__accept,
    .cookie-banner__decline {
        flex: 1;
        justify-content: center;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    .nav, .header__cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .phone-mockup {
        width: 280px;
        transform: none;
    }

    .phone-mockup:hover {
        transform: none;
    }

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

    .steps {
        flex-direction: column;
        gap: 0;
    }

    .step__connector {
        width: 2px;
        height: 40px;
        margin-bottom: 0;
    }

    .cta-banner__inner {
        padding: 48px 24px;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

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