:root {
    --primary-color: #2481cc; /* Telegram Blue */
    --primary-hover: #1c6ca1;
    --bg-color: #ffffff;
    --text-color: #1c1c1e;
    --text-secondary: #8e8e93;
    --light-gray: #f2f2f7;
    --border-radius: 12px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html, body {
    overflow-x: hidden; /* Fix mobile horizontal scroll */
    width: 100%;
}

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

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Ensure container doesn't overflow */
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-hover);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%; 
    max-width: 320px; /* Prevent button from being too wide on desktop */
}

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

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

.logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--text-color);
    white-space: nowrap; /* Prevent logo break */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 28px; /* Slightly smaller for mobile safety */
    line-height: 1.2;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(36, 129, 204, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(36, 129, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(36, 129, 204, 0); }
}

/* How It Works */
.how-it-works {
    padding: 40px 0;
    background-color: var(--light-gray);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.3;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .steps {
        flex-direction: row;
        text-align: center;
    }
}

.step {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .step-icon {
        margin: 0 auto 15px;
    }
}

/* Phone Frame for Image */
.phone-frame {
    max-width: 280px; /* Typical phone width */
    margin: 0 auto;
    border: 12px solid #2c2c2e;
    border-radius: 36px;
    overflow: hidden; /* Clips the image to rounded corners */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: #000;
    line-height: 0; /* Removes bottom gap under image */
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Formats */
.formats {
    padding: 40px 0;
    text-align: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--light-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.formats-sub {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    padding: 20px 0 40px;
    text-align: center;
}

/* FAQ */
.faq {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.faq-item {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column; /* Stack links on mobile */
    gap: 10px;
}

@media (min-width: 480px) {
    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
}
