/* ===== Telegram Bots Page ===== */
/* Telegram accent: #0088cc */

/* Hero */
.telegram-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.telegram-hero .hero-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.15), transparent 70%);
    pointer-events: none;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #0088cc;
    margin-bottom: 32px;
}

.hero-badge.pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }
}

.badge-logo-svg {
    width: 20px;
    height: 20px;
    fill: #0088cc;
}

/* Hero Title */
.telegram-hero .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.typing-effect {
    position: relative;
}

.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
    color: #0088cc;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.telegram-hero .hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.telegram-hero .hero-subtitle strong {
    color: #0088cc;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-check {
    color: #0088cc;
    font-weight: 600;
}

/* Hero CTA */
.telegram-hero .hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    max-width: 500px;
    z-index: 1;
}

.bot-showcase {
    position: relative;
    perspective: 1000px;
}

.bot-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

/* Telegram Chat Mockup */
.tg-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}

.tg-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0, 136, 204, 0.08);
    border-bottom: 1px solid var(--border-color);
}

.tg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-avatar svg {
    fill: white;
    width: 22px;
    height: 22px;
}

.tg-info {
    display: flex;
    flex-direction: column;
}

.tg-name {
    font-weight: 600;
    font-size: 15px;
}

.tg-status {
    font-size: 12px;
    color: #10b981;
}

.tg-messages {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 136, 204, 0.3) transparent;
}

.tg-messages::-webkit-scrollbar {
    width: 4px;
}

.tg-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 136, 204, 0.3);
    border-radius: 4px;
}

.tg-msg {
    display: flex;
}

.tg-msg-bot {
    justify-content: flex-start;
}

.tg-msg-user {
    justify-content: flex-end;
}

.tg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    max-width: 85%;
    line-height: 1.5;
}

.tg-msg-bot .tg-bubble {
    background: var(--bg-elevated);
    border-bottom-left-radius: 4px;
}

.tg-msg-user .tg-bubble {
    background: linear-gradient(135deg, #0088cc, #00aaff);
    color: white;
    border-bottom-right-radius: 4px;
}

.tg-inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tg-inline-btn {
    padding: 6px 12px;
    background: rgba(0, 136, 204, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    color: #0088cc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-inline-btn:hover {
    background: rgba(0, 136, 204, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.tg-inline-btn:active {
    transform: scale(0.95);
}

/* Active/clicked button style */
.tg-btn-active {
    background: rgba(0, 136, 204, 0.4) !important;
    border-color: #0088cc !important;
    color: #fff !important;
}

/* Slide-in animation for new messages */
.tg-slide-in {
    animation: tgSlideIn 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes tgSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.tg-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
    min-width: 60px;
}

.tg-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.6);
    animation: tgTypingBounce 1.2s infinite;
}

.tg-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.tg-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes tgTypingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ===== Section Shared Styles ===== */
.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: #0088cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* ===== Features Bento Grid ===== */
.features-showcase {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition-normal);
}

.bento-card:hover {
    border-color: rgba(0, 136, 204, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 136, 204, 0.03) 100%);
}

.bento-card.bento-large {
    grid-column: span 2;
}

.bento-card.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: #0088cc;
}

.bento-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(0, 136, 204, 0.3));
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-visual {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mod-action {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== Pricing ===== */
.pricing-section {
    position: relative;
    z-index: 1;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-explanation {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.pricing-card:hover .card-glow {
    opacity: 1;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

/* Featured Card */
.pricing-card.featured {
    border-color: #0088cc;
    background: linear-gradient(180deg, rgba(0, 136, 204, 0.08) 0%, var(--bg-card) 50%);
}

.featured-badge,
.ultimate-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.featured-glow {
    background: radial-gradient(circle, rgba(0, 136, 204, 0.08) 0%, transparent 50%);
    opacity: 1;
}

/* Ultimate Card */
.pricing-card.ultimate {
    border-color: #ffd700;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, var(--bg-card) 50%);
}

.ultimate-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #0B0F14;
}

.ultimate-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    opacity: 1;
}

/* Custom Card */
.pricing-card.custom {
    border-style: dashed;
}

.custom-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    color: #0088cc;
}

.pricing-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(0, 136, 204, 0.3));
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.price-block {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price-main .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.price-main .amount {
    font-size: 56px;
    font-weight: 800;
    color: #0088cc;
    line-height: 1;
}

.price-main .price-type {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 4px;
}

.price-sub {
    font-size: 14px;
    color: #0088cc;
    font-weight: 500;
}

.custom-price {
    flex-direction: column;
    gap: 0;
}

.custom-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: #0088cc;
    font-weight: 600;
}

.pricing-features strong {
    color: var(--text-primary);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ===== Use Cases ===== */
.usecases-section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all 0.3s ease;
}

.usecase-card:hover {
    border-color: rgba(0, 136, 204, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.1);
}

.usecase-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.usecase-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.usecase-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(0, 136, 204, 0.3);
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: #0088cc;
}

.faq-item summary:hover {
    color: #0088cc;
}

.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 120px 24px;
    text-align: center;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Telegram Accent Override for Buttons ===== */
.telegram-hero .btn-primary.btn-glow {
    background: linear-gradient(135deg, #0088cc, #00aaff);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.3);
}

.telegram-hero .btn-primary.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 136, 204, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .telegram-hero {
        grid-template-columns: 1fr;
        padding: 120px 24px 60px;
        text-align: center;
        gap: 40px;
    }

    .telegram-hero .hero-subtitle {
        max-width: none;
    }

    .hero-features {
        justify-content: center;
    }

    .telegram-hero .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-card.bento-large,
    .bento-card.bento-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .usecases-grid {
        grid-template-columns: 1fr;
    }
}