/* ===================================
   Telegram VPN — Light Telegram-style
   Mode C Service
   =================================== */

:root {
    --primary: #0088CC;
    --primary-dark: #006DAA;
    --primary-light: #2AABEE;
    --primary-bg: #E8F4FD;
    --bg: #ffffff;
    --bg-alt: #f5f7f9;
    --bg-hero: linear-gradient(135deg, #E8F4FD 0%, #f0f8ff 50%, #ffffff 100%);
    --text: #222222;
    --text-secondary: #707579;
    --text-light: #999999;
    --border: #e6e8eb;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 24px rgba(0, 136, 204, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
    --success: #31B545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.logo-icon { flex-shrink: 0; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

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

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

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(255,255,255,.3);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-block { width: 100%; }

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

.btn-nav { padding: 8px 18px; font-size: 13px; }

/* ===================================
   Hero
   =================================== */

.hero {
    padding: 140px 0 80px;
    background: var(--bg-hero);
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===================================
   Section Common
   =================================== */

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 500px;
    margin: 0 auto 48px;
}

/* ===================================
   Features
   =================================== */

.features, .security-section {
    padding: 80px 0;
}

.security-section {
    background: var(--bg-alt);
}

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

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   Pricing
   =================================== */

.pricing {
    padding: 80px 0;
    background: var(--bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

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

.pricing-popular {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.15);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-per-month {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
}

.pricing-card .btn { margin-top: 12px; }

.pricing-trial {
    text-align: center;
    margin-top: 32px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
}

/* ===================================
   Servers
   =================================== */

.servers {
    padding: 80px 0;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.server-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow);
}

.server-flag { font-size: 28px; flex-shrink: 0; }

.server-info { flex: 1; }

.server-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.server-stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-light);
}

.server-stats i { margin-right: 3px; }

.server-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.server-status.online {
    background: #e8f5e9;
    color: var(--success);
}

/* ===================================
   Referral
   =================================== */

.referral {
    padding: 80px 0;
    background: var(--bg-alt);
}

.referral-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.referral-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--primary);
}

.referral-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.referral-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 28px;
}

/* ===================================
   How It Works
   =================================== */

.how-it-works {
    padding: 80px 0;
}

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

.step-card {
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   FAQ
   =================================== */

.quick-faq {
    padding: 80px 0;
    background: var(--bg-alt);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow);
}

.faq-question h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

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

/* ===================================
   Download Section
   =================================== */

.download-section {
    padding: 80px 0;
}

.download-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.dl-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.dl-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

.dl-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-icon svg { width: 40px; height: 40px; }

.dl-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dl-ver {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* ===================================
   CTA Section
   =================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.cta-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    padding: 60px 0 0;
    background: #1c2024;
    color: #ccc;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-section ul a:hover { color: var(--primary-light); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ===================================
   SEO Block
   =================================== */

.seo-block {
    padding: 24px 0;
    border-top: 1px solid #333;
}

.seo-block-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-block-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.seo-block-text {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}

.seo-block-text a {
    color: #79a8c8;
    text-decoration: none;
}

.seo-block-text a:hover {
    text-decoration: underline;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .download-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 20px; }
    .hero-stats { gap: 28px; }

    .section-title { font-size: 26px; }

    .features-grid,
    .pricing-grid,
    .steps-grid { grid-template-columns: 1fr; }

    .security-grid { grid-template-columns: 1fr; }

    .faq-grid { grid-template-columns: 1fr; }

    .download-cards-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .nav-content > .btn-nav { display: none; }
    .hero-title { font-size: 28px; }
    .download-cards-grid { grid-template-columns: 1fr 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .stat-number { font-size: 26px; }
}
