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

:root {
    --primary: #6366f1;
    --primary-soft: #eef2ff;
    --secondary: #8b5cf6;
    --accent: #22d3ee;
    --accent-soft: #ecfeff;
    --bg: #fdfdff;
    --white: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.7);
    --container-width: 1400px;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-lg: 40px;
    --radius-md: 24px;
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 4rem;
}

/* Background Gradients */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 5% 5%, rgba(99, 102, 241, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 95% 95%, rgba(34, 211, 238, 0.03) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.text-gradient {
    color: var(--primary);
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: block;
}

.logo span {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--text-main);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.btn-ghost {
    color: var(--text-main);
    background: transparent;
}

/* Asymmetric Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .hero {
        min-height: auto;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

.hero-layout {
    display: flex;
    gap: 6rem;
    width: 100%;
    align-items: flex-start;
    height: 100%;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.hero-visual {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.hero-text .logo {
    margin-bottom: 2rem;
    text-align: left;
}

.hero-text .logo span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-visual {
    flex: 0 0 auto;
    position: relative;
    height: 100vh;
    max-height: 800px;
    min-height: 600px;
    display: flex;
    align-items: stretch;
    padding-bottom: 2rem;
    width: clamp(350px, 50vw, 650px);
    max-width: 100%;
    min-width: 350px;
}

.bento-visual {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
}

.bento-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
}

.bento-item-1 {
    grid-area: 1 / 1 / 7 / 7;
    /* Full width of bento grid */
    background: #fafbff;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.bento-item-2,
.bento-item-3,
.bento-item-4 {
    display: none;
}

/* SEO Snippet Styles */
.seo-preview {
    font-family: 'Arial', sans-serif;
    text-align: left;
    font-size: 0.75rem;
}

.seo-url {
    color: #202124;
    margin-bottom: 2px;
}

.seo-title {
    color: #1a0dab;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.seo-desc {
    color: #4d5156;
    line-height: 1.3;
}

/* Category Tag Animation */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.5rem;
}

.tag {
    padding: 4px 10px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: tag-pulse 2s infinite alternate;
}

@keyframes tag-pulse {
    from {
        opacity: 0.6;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mini Sales Pulse */
.sales-pulse {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #16a34a;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid #16a34a;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }

    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Scenario Switcher Styles */
.scenario-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.scenario-dots-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.scenario-dot {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.scenario-dot.active {
    background: var(--primary);
    width: 60px;
}

.scenario-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Floating UI Snippets */
.ui-snippet {
    font-size: 0.8rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Chat Animation Styles Refined */
.chat-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    padding-bottom: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 95%, transparent 100%);
    /* Ensure messages stack from top to bottom, new ones appear at bottom */
    justify-content: flex-start;
    align-items: stretch;
}

.chat-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.chat-bubble {
    padding: 0.9rem 1.4rem;
    border-radius: 24px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 90%;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    word-wrap: break-word;
}

.chat-bubble strong {
    font-weight: 700;
    color: inherit;
}

.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-user {
    align-self: flex-end;
    background: var(--white);
    color: var(--text-main);
    border-bottom-right-radius: 4px;
    border: 1px solid var(--border);
    margin-left: auto;
    animation: messageSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.chat-ai {
    align-self: flex-start;
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 6px 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

/* Visual Results in Chat */
.chat-bubble.result-bubble {
    background: #f8fafc;
    border: 1px dashed var(--primary);
    color: var(--text-main);
    padding: 1rem;
    width: 100%;
    max-width: 100%;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* More columns for smaller images */
    gap: 4px;
    margin-top: 0.5rem;
}

.img-item {
    width: 100%;
    aspect-ratio: 1;
    background: #eee;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
}

.img-item.selected {
    border-color: var(--primary);
}

.tg-preview {
    background: #eff6ff;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    border-left: 3px solid var(--primary);
}

.tg-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1e40af;
}

.tg-body {
    font-size: 0.8rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Discount List Visuals */
.discount-container {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 4px;
}

.discount-container::-webkit-scrollbar {
    display: none;
}

.discount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.7rem;
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.65rem;
    margin-right: 5px;
}

.new-price {
    color: #f43f5e;
    font-weight: 700;
}

/* Premium TG Post */
.tg-preview.premium {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tg-body.wow {
    font-size: 0.85rem;
    line-height: 1.5;
}

.mini-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mini-card-img {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 6px;
}

.mini-card-text h5 {
    font-size: 0.85rem;
    margin-bottom: 2px;
    font-weight: 800;
}

.mini-card-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.specs-list {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-item {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.spec-item b {
    color: var(--text-main);
    display: block;
    font-size: 0.75rem;
}

/* Chat Input Styles - Mobile-like */
.chat-disclaimer {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    line-height: 1.4;
    opacity: 0.7;
    font-weight: 400;
}

.chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.chat-input-container:hover {
    background: #fafbff;
    box-shadow: 0 -2px 15px rgba(99, 102, 241, 0.08);
}

.chat-input-container:hover .chat-input {
    border-color: rgba(99, 102, 241, 0.3);
}

.chat-input-container:hover .chat-send-btn {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-family: 'Manrope', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    resize: none;
    min-height: 40px;
    max-height: 100px;
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.chat-input:focus {
    background: #f8fafc;
    border-color: var(--border);
    box-shadow: none;
    transform: none;
}

.chat-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.chat-input:disabled {
    background: #f8fafc;
    cursor: default;
    opacity: 1;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    position: relative;
    pointer-events: none;
    user-select: none;
}

.chat-send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.chat-send-btn:hover {
    background: var(--primary);
    transform: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.chat-send-btn:hover::before {
    opacity: 0;
}

.chat-send-btn:active {
    transform: none;
}

.chat-send-btn:disabled {
    opacity: 1;
    cursor: default;
    transform: none;
    background: var(--primary);
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    stroke-width: 2.5;
}

/* Bento Innovation Section */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 2rem;
    height: 900px;
}

.bento-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.card-1 {
    grid-area: 1 / 1 / 7 / 8;
    background: #eff6ff;
}

.card-2 {
    grid-area: 1 / 8 / 8 / 13;
}

.card-3 {
    grid-area: 7 / 1 / 13 / 5;
}

.card-4 {
    grid-area: 8 / 5 / 13 / 13;
    background: #fdf2f8;
}

.bento-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.bento-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.bento-card .icon-large {
    font-size: 4rem;
    margin-bottom: 2rem;
}

/* Sticky Reveal Sections */
.reveal-container {
    position: relative;
    padding-bottom: 20rem;
}

/* Mockup Visuals */
.mock-graph {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 2rem;
}

.bar {
    flex: 1;
    background: var(--primary-soft);
    border-radius: 4px 4px 0 0;
    transition: all 1s ease;
    height: 0;
}

.active .bar:nth-child(1) {
    height: 40%;
}

.active .bar:nth-child(2) {
    height: 60%;
}

.active .bar:nth-child(3) {
    height: 30%;
}

.active .bar:nth-child(4) {
    height: 80%;
    background: var(--primary);
}

.active .bar:nth-child(5) {
    height: 50%;
}

.mock-ui-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid var(--border);
    animation: float-ui 4s infinite ease-in-out;
}

@keyframes float-ui {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Sticky Reveal Inner Content Fix */
.sticky-visual-mock {
    background: #f8fafc;
    border-radius: 20px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.inner-blob {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-soft);
    filter: blur(40px);
    border-radius: 50%;
    animation: blob-move 10s infinite linear;
}

@keyframes blob-move {
    0% {
        top: 0;
        left: 0;
    }

    50% {
        top: 50%;
        left: 50%;
    }

    100% {
        top: 0;
        left: 0;
    }
}

/* Fix Sticky Reveal Overlap */
.sticky-reveal {
    position: sticky;
    top: 6rem;
    min-height: 70vh;
    height: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 25rem;
    border: 1px solid var(--border);
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    box-shadow: 0 -30px 100px rgba(0, 0, 0, 0.03);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.sticky-reveal:nth-child(2) {
    transform: scale(0.95);
    z-index: 1;
}

.sticky-reveal:nth-child(3) {
    transform: scale(0.9);
    z-index: 2;
}

.sticky-reveal:nth-child(4) {
    transform: scale(0.85);
    z-index: 3;
}

/* AmoCRM Integration Section */
.amocrm-section {
    padding: 8rem 0;
}

.amocrm-integration-block {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #f5f3ff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.amocrm-integration-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.amocrm-content {
    position: relative;
    z-index: 1;
}

.partners-badges {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.partner-badge {
    display: block;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.partner-badge:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.partner-badge-features {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
    border-left: 3px solid var(--primary);
}

.partner-content {
    display: block;
}

.partner-logo-inline {
    display: inline-block;
    vertical-align: middle;
    height: 1.4em;
    width: auto;
    margin-left: 0.5rem;
    margin-right: 0;
    max-width: 120px;
}

.partner-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    letter-spacing: -0.1px;
}

.partner-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.partner-badge-features .partner-text {
    font-size: 0.8125rem;
    font-weight: 500;
}

.amocrm-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-main);
}

.amocrm-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.amocrm-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amocrm-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.amocrm-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amocrm-logo-placeholder {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 250px;
}

.amocrm-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.amocrm-connection-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.connection-line {
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: pulse-line 2s infinite;
}

.connection-line:nth-child(2) {
    animation-delay: 0.3s;
}

.connection-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

/* Interactive Pricing Section */
.pricing-interactive-section {
    padding: 8rem 0;
}

.pricing-interactive-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-interactive-left {
    padding: 2rem 0;
}

.pricing-interactive-left h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.pricing-interactive-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 2rem 0;
}

.price-amount {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pricing-features-styled {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
}

.feature-item:hover::before {
    left: 100%;
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.feature-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.pricing-cta-btn {
    width: 100%;
    text-align: center;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.pricing-tokens-info {
    margin-top: 1.5rem;
    padding: 1rem;
    /* background: #f8fafc; */
    border-radius: 12px;
    font-size: 0.875rem;
}

.tokens-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Pricing Chat */
.pricing-chat-container {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.pricing-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #f5f3ff 100%);
    border-bottom: 1px solid var(--border);
}

.pricing-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pricing-chat-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.pricing-chat-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.pricing-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.pricing-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.pricing-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.pricing-chat-bubble {
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 85%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    word-wrap: break-word;
}

.pricing-chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-chat-ai {
    align-self: flex-start;
    background: var(--primary-soft);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.pricing-chat-user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.pricing-chat-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1rem;
}

.quick-question-btn {
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Manrope', sans-serif;
}

.quick-question-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pricing-chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #fafbff;
    border-top: 1px solid var(--border);
}

.pricing-chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 0.7rem 1.2rem;
    font-size: 0.875rem;
    font-family: 'Manrope', sans-serif;
    background: var(--white);
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
}

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

.pricing-chat-input::placeholder {
    color: #94a3b8;
}

.pricing-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.pricing-chat-send:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.pricing-chat-send:active {
    transform: scale(0.95);
}

.pricing-chat-send svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Typing indicator for pricing chat */
.pricing-chat-bubble .typing-indicator {
    display: flex;
    gap: 6px;
    padding: 4px 0;
}

.pricing-chat-bubble .typing-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.pricing-chat-bubble .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pricing-chat-bubble .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Footer Modern */
footer {
    padding: 10rem 0 4rem;
    background: var(--text-main);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

/* Modal Chat Styles */
.modal-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px) {
    .modal-chat-overlay {
        padding: 0;
        align-items: flex-end;
        background: rgba(0, 0, 0, 0.8);
    }
}

.modal-chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-chat-container {
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    max-height: 95vh;
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    position: relative;
    padding-top: 0;
}

@media (min-width: 769px) {
    .modal-chat-container {
        max-height: 85vh;
        min-height: 650px;
    }
}

.modal-chat-overlay.active .modal-chat-container {
    transform: scale(1) translateY(0);
}

.modal-chat-header {
    display: none;
}

.modal-chat-header h3 {
    display: none;
}

.modal-chat-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-chat-close:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: rotate(90deg);
}

.modal-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

@media (min-width: 769px) {
    .modal-chat-messages {
        min-height: 500px;
        max-height: none;
    }
}

.modal-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.modal-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.modal-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal-chat-input-container {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.modal-chat-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s ease;
    min-height: 44px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-chat-input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.modal-chat-input::placeholder {
    color: #94a3b8;
}

.modal-chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.modal-chat-send-btn:hover {
    background: var(--secondary);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.modal-chat-send-btn:active {
    transform: scale(0.92);
}

.modal-chat-send-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        min-height: auto;
    }

    .hero-layout {
        flex-direction: column;
        gap: 2.5rem;
        align-items: stretch;
    }

    .hero-text {
        text-align: left;
        width: 100%;
        padding-bottom: 0;
    }

    .hero-visual {
        width: 100%;
        height: auto;
        min-height: 400px;
        padding-bottom: 0;
    }

    .hero-text .logo {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .hero-text .logo span {
        font-size: 1.75rem;
    }

    .hero h1 {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .hero p {
        text-align: left;
        margin: 0 0 2rem 0;
        max-width: 100%;
    }

    .chat-wrapper {
        height: 400px;
        max-height: 60vh;
        min-height: 300px;
    }

    .bento-visual {
        aspect-ratio: 1;
        max-height: 70vh;
        width: 100%;
    }

    .bento-item-1 {
        max-height: 100%;
        overflow: visible;
    }

    .bento-grid {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4 {
        grid-area: auto;
    }

    .sticky-reveal {
        grid-template-columns: 1fr;
        height: auto;
        position: static;
        margin-bottom: 2rem;
        transform: none !important;
    }

    .modal-chat-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-chat-container {
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .modal-chat-overlay.active .modal-chat-container {
        transform: translateY(0);
    }


    .modal-chat-close {
        width: 32px;
        height: 32px;
    }

    .modal-chat-messages {
        flex: 1;
        padding: 1rem 1.25rem;
        padding-bottom: 1rem;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-chat-input-container {
        position: sticky;
        bottom: 0;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 10;
    }

    .modal-chat-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .modal-chat-input {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 24px;
    }

    .modal-chat-send-btn {
        width: 48px;
        height: 48px;
    }

    .pricing-interactive-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-interactive-left {
        text-align: center;
    }

    .pricing-features-styled {
        grid-template-columns: 1fr;
    }

    .pricing-chat-container {
        height: 400px;
        max-height: 60vh;
    }

    .amocrm-section {
        padding: 4rem 0;
    }

    .amocrm-integration-block {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }

    .amocrm-content h3 {
        font-size: 2rem;
    }

    .amocrm-logo-placeholder {
        min-width: 100%;
    }

    .partners-badges {
        gap: 0.625rem;
        margin-top: 1.25rem;
    }

    .partner-badge {
        padding: 0.75rem 0.875rem;
    }

    .partner-title {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .partner-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}