/* style.css */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 45, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);

    --glow-blue: rgba(59, 130, 246, 0.2);
    --glow-purple: rgba(139, 92, 246, 0.2);

    --telegram-msg-in: #1f232d;
    --telegram-msg-out: #2b5278;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--glow-blue);
}

.glow-2 {
    bottom: 10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--glow-purple);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    z-index: -2;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-accent {
    color: var(--accent-blue);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 16px;
}

.btn-full {
    width: 100%;
    padding: 14px 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-hint {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Phone Mockup */
.app-preview {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 340px;
    height: 680px;
    background: #0f111a;
    border-radius: 40px;
    border: 8px solid #2a2a35;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #444;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-mockup:hover {
    transform: rotateX(0deg) scale(1);
}

.phone-header {
    background: #17212b;
    color: white;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.phone-icons {
    display: flex;
    gap: 6px;
}

.phone-app-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px 14px;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bot-info {
    display: flex;
    flex-direction: column;
}

.bot-info strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.bot-info span {
    font-size: 0.75rem;
    color: #7fa9c6;
}

.phone-body {
    flex: 1;
    background: #0e1621;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.message {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.msg-in {
    background: var(--telegram-msg-in);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-out {
    background: var(--telegram-msg-out);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message a {
    color: #4da6e1;
    text-decoration: none;
    font-weight: 600;
}

.phone-footer {
    background: #17212b;
    padding: 10px 14px 24px;
}

.input-bar {
    background: #242f3d;
    border-radius: 20px;
    padding: 10px 16px;
    color: #7a8b9a;
    font-size: 0.9rem;
}

.delay-anim {
    opacity: 0;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1.5s;
    transform-origin: bottom left;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.icon-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    padding: 100px 0;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    top: 8px;
    position: relative;
    margin-right: 4px;
}

.amount {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cents {
    font-size: 2rem;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
    margin-left: 8px;
    margin-bottom: 14px;
}

.pricing-desc {
    color: #a78bfa;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.pricing-features li svg {
    width: 24px;
    height: 24px;
    color: #34d399;
    /* emerald green */
    flex-shrink: 0;
}

.small-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Bottom CTA */
.bottom-cta {
    padding: 80px 0 120px;
}

.cta-box {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(to right, rgba(20, 20, 30, 0.6), rgba(30, 20, 40, 0.6));
    border-color: rgba(139, 92, 246, 0.3);
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 60px 0 20px;
    background: rgba(10, 10, 15, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-desc {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations & Utilities */
.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-mockup {
        transform: scale(0.9);
        margin-bottom: -40px;
    }

    .phone-mockup:hover {
        transform: scale(0.92);
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}