/* TL;DL Bot Minimalist White Theme Stylesheet */

/* Variables */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --accent-purple: #7c3aed;
    --accent-purple-light: #f5f3ff;
    --accent-cyan: #0891b2;
    --accent-magenta: #db2777;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-size: 15px;
    border: 1px solid transparent;
}

.btn-black {
    background-color: var(--text-primary);
    color: #ffffff;
}

.btn-black:hover {
    background-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-purple);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

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

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

.w-full {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: 16px 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.btn-header {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-waveform-img {
    width: 100%;
    max-width: 480px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.03));
    animation: pulseWaveform 6s ease-in-out infinite;
}

@keyframes pulseWaveform {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Section Common */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    background-color: var(--accent-purple-light);
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
}

/* Interactive Demo Section */
.demo-section {
    padding: 100px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Chat Mockup */
.chat-mockup {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    font-size: 12px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #fcfcfc;
}

.message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

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

.message-user {
    align-self: flex-end;
    background-color: #e8f5e9; /* Light green Telegram-like bubble */
    color: #1b5e20;
    border-bottom-right-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.message-bot {
    align-self: flex-start;
    background-color: #ffffff;
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Voice Player Inside Bubble */
.voice-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2e7d32;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.play-btn:hover {
    background-color: #1b5e20;
}

.play-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 32px;
}

.wave-bar {
    width: 3px;
    background-color: #a5d6a7;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.voice-wave-container.playing .wave-bar {
    background-color: #2e7d32;
    animation: waveAnimation 1.2s ease-in-out infinite alternate;
}

/* Wave Bouncing Animation */
@keyframes waveAnimation {
    0% { transform: scaleY(0.4); }
    100% { transform: scaleY(1.2); }
}

/* Set specific delays for staggered wave motion */
.voice-wave-container.playing .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.voice-wave-container.playing .wave-bar:nth-child(2) { animation-delay: 0.4s; }
.voice-wave-container.playing .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-wave-container.playing .wave-bar:nth-child(4) { animation-delay: 0.6s; }
.voice-wave-container.playing .wave-bar:nth-child(5) { animation-delay: 0.3s; }
.voice-wave-container.playing .wave-bar:nth-child(6) { animation-delay: 0.8s; }
.voice-wave-container.playing .wave-bar:nth-child(7) { animation-delay: 0.2s; }
.voice-wave-container.playing .wave-bar:nth-child(8) { animation-delay: 0.5s; }
.voice-wave-container.playing .wave-bar:nth-child(9) { animation-delay: 0.1s; }
.voice-wave-container.playing .wave-bar:nth-child(10) { animation-delay: 0.7s; }
.voice-wave-container.playing .wave-bar:nth-child(11) { animation-delay: 0.3s; }
.voice-wave-container.playing .wave-bar:nth-child(12) { animation-delay: 0.5s; }
.voice-wave-container.playing .wave-bar:nth-child(13) { animation-delay: 0.2s; }
.voice-wave-container.playing .wave-bar:nth-child(14) { animation-delay: 0.4s; }
.voice-wave-container.playing .wave-bar:nth-child(15) { animation-delay: 0.1s; }

.voice-time {
    font-size: 13px;
    font-weight: 500;
    color: #4caf50;
    min-width: 32px;
}

/* Bot Typing Status */
.bot-status {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 12px;
}

.typing-dots span {
    animation: blinkDots 1.4s infinite both;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blinkDots {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

/* Bot Message Content Styling */
.transcription-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.bot-mini-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.transcription-text {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--text-primary);
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-section {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-sec-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-sec-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.tasks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tasks-list li {
    font-size: 14px;
    padding-left: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-primary);
}

/* Explanation */
.demo-explanation {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.demo-explanation h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
}

.steps-list div strong {
    display: block;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.steps-list div p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--text-primary);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.feature-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.feature-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Setup Section */
.setup-section {
    padding: 100px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.setup-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.setup-step {
    display: flex;
    flex-direction: column;
}

.setup-step-header {
    margin-bottom: 24px;
}

.setup-step-num {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.15;
    line-height: 1;
}

.setup-step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.setup-step-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

.accent-link {
    color: var(--accent-purple);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.accent-link:hover {
    border-color: var(--accent-purple);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-card-featured {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-purple);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

.pricing-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.pricing-plan-img {
    max-height: 100px;
    object-fit: contain;
}

.pricing-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.plan-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.plan-price small {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    min-height: 66px;
}

/* Payment Deco */
.payment-deco {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 40px;
    align-items: center;
}

.payment-card-wrapper {
    display: flex;
    justify-content: center;
}

.payment-card-img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.payment-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.payment-text p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Referral Section */
.referral-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-light);
}

.referral-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.referral-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.referral-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 24px 0 32px;
}

.referral-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.ref-feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.ref-icon {
    font-size: 18px;
}

.referral-image-wrapper {
    display: flex;
    justify-content: center;
}

.referral-graphic-img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 360px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-links-col a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Responsive Styling */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .setup-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .payment-deco {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .referral-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .referral-content {
        align-items: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 40px;
    }
    
    .nav {
        display: none; /* Hide header nav on small mobile */
    }
    
    .hero-ctas {
        width: 100%;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .chat-mockup {
        height: 400px;
    }
}
