/* ===================================
   PayBot - Dark Professional Theme
   =================================== */

/* CSS Variables */
:root {
    --primary: #2d3748;
    --primary-dark: #1a202c;
    --secondary: #4a5568;
    --accent: #718096;
    --dark: #0f1419;
    --light: #1a202c;
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --text-light: #e2e8f0;
    --text-gray: #a0aec0;
    --white: #ffffff;
    --border: #30363d;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* ===================================
   HEADER & NAVBAR
   =================================== */

.navbar {
    background: var(--light);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: translateX(5px);
}

.nav-brand svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
    transition: all 0.3s ease;
}

.nav-brand:hover svg {
    stroke: var(--accent);
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--white);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary,
.btn-secondary,
.btn-large {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="rgba(255,255,255,0.02)" d="M0,96L48,90.7C96,85,192,75,288,74.7C384,75,480,85,576,90.7C672,96,768,96,864,85.3C960,75,1056,53,1152,53.3C1248,53,1344,75,1392,85.3L1440,96L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z"></path></svg>') repeat-x;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
}

.phone-screen {
    background: #0d1117;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
}

.telegram-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.bubble {
    background: #2f81f7;
    color: white;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.sent .bubble {
    background: #34c759;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-light);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-arrow {
    font-size: 2rem;
    opacity: 0.5;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.price-card.featured {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.3) 0%, rgba(74, 85, 104, 0.3) 100%);
    border-color: var(--primary);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    margin: 2rem 0;
}

.price .currency {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
}

.price .period {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--text-gray);
}

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-gray);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    color: var(--text-gray);
}

.cta-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cta-step a {
    color: var(--white);
    text-decoration: underline;
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-gray);
}

/* ===================================
   FOOTER STYLING
   =================================== */

.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-section a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer-section a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 0.75rem;
}

.footer-section a:hover::before {
    opacity: 1;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===================================
   MOBILE OPTIMIZATION
   =================================== */

@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Buttons Mobile - Bigger Touch Targets */
    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        /* WCAG touch target */
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .btn-large {
        min-height: 56px;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
    }

    /* Hero Mobile */
    .hero {
        padding: 3rem 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .hero-note {
        font-size: 0.85rem;
    }

    /* Phone Mockup Mobile */
    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    /* Features Mobile */
    .features {
        padding: 3rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Steps Mobile */
    .how-it-works {
        padding: 3rem 0;
    }

    .steps {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step {
        max-width: 100%;
        min-width: unset;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    /* Pricing Mobile */
    .pricing {
        padding: 3rem 0;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

    /* CTA Mobile */
    .cta {
        padding: 3rem 0;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.1rem;
    }

    .cta-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-step {
        width: 100%;
        padding: 1.25rem 1.5rem;
    }

    /* FAQ Mobile */
    .faq {
        padding: 3rem 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .price .amount {
        font-size: 2.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }
}

/* Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}