/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c10;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #eef2ff;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Tech Grid Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 188, 248, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 188, 248, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Accent Line */
.accent-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0af8fc, #b721ff, #0af8fc);
    z-index: 100;
    box-shadow: 0 0 12px rgba(10, 248, 252, 0.6);
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(16, 185, 229, 0.25);
    padding-bottom: 2rem;
}

.badge {
    display: inline-block;
    background: rgba(10, 248, 252, 0.08);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.9rem;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 0.5px solid rgba(10, 248, 252, 0.4);
    width: fit-content;
    color: #0af8fc;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #94a3ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 0.5rem;
}

.sub {
    font-size: 1.1rem;
    color: #a0afc3;
    max-width: 700px;
    border-left: 3px solid #0af8fc;
    padding-left: 1.2rem;
    margin-top: 0.25rem;
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin: 3rem 0 2.5rem;
}

/* Cards */
.card {
    background: rgba(12, 18, 28, 0.75);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(16, 185, 229, 0.2);
    transition: transform 0.2s ease, border-color 0.2s;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: rgba(10, 248, 252, 0.6);
    transform: translateY(-3px);
}

.card-header {
    padding: 1.5rem 1.8rem 0.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2rem;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 600;
}

.card-content {
    padding: 1.2rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    color: #b0c4ff;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Features */
.feature-section {
    margin: 1rem 0;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0af8fc;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #ccd6f0;
    line-height: 1.4;
}

.feature-list li::before {
    content: "▹";
    color: #0af8fc;
    font-weight: 500;
    flex-shrink: 0;
}

/* Специальный стиль для важных сообщений */
.feature-list li strong {
    color: #0af8fc;
    font-weight: 600;
}

/* Platform Icons */
.platform-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.5rem 0;
}

.platform-item {
    background: #0f172a;
    border-radius: 32px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #1e2a4a;
}

/* Key Box & URL Box */
.key-box, .url-box {
    background: #010409;
    border-radius: 18px;
    padding: 1rem;
    border: 1px solid #2d3a5e;
    margin: 1rem 0;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.key-label {
    font-size: 0.8rem;
    color: #8a9fd1;
    margin-bottom: 0.5rem;
}

.key-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.key-text {
    color: #b4f0ff;
    font-family: 'Menlo', 'Fira Code', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    flex: 1;
}

.btn-copy {
    background: rgba(10, 248, 252, 0.1);
    border: 1px solid rgba(10, 248, 252, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #0af8fc;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(10, 248, 252, 0.2);
    border-color: #0af8fc;
    transform: scale(0.98);
}

/* Download Links */
.download-section {
    margin: 1rem 0;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.5rem;
}

.download-link {
    background: #0f172a;
    border: 1px solid #2d3a5e;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: #b9e2ff;
    text-decoration: none;
    transition: all 0.2s;
}

.download-link:hover {
    background: #0af8fc10;
    border-color: #0af8fc;
    color: #0af8fc;
}

/* Instructions */
.instruction-section {
    margin: 1rem 0;
}

.instruction-list {
    padding-left: 1.2rem;
    color: #ccd6f0;
    font-size: 0.9rem;
}

.instruction-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Telegram Proxy Block Styles */
.proxy-block {
    background: rgba(10, 248, 252, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(10, 248, 252, 0.3);
    margin-top: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.proxy-header {
    background: rgba(10, 248, 252, 0.1);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(10, 248, 252, 0.2);
}

.proxy-icon {
    font-size: 1.2rem;
}

.proxy-title {
    font-weight: 600;
    color: #ffb347;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.proxy-content {
    padding: 1rem 1.2rem 1.2rem;
}

.proxy-text {
    color: #ccd6f0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.proxy-instructions {
    padding-left: 1.2rem;
    color: #b0c4ff;
    font-size: 0.85rem;
    margin: 0.75rem 0;
}

.proxy-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.proxy-instructions li strong {
    color: #0af8fc;
    font-weight: 600;
}

.proxy-credentials {
    background: #010409;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #2d3a5e;
}

.credential-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.cred-label {
    color: #8a9fd1;
    font-weight: 500;
    min-width: 140px;
}

.cred-value {
    color: #b4f0ff;
    font-family: 'Menlo', 'Fira Code', monospace;
    font-size: 0.8rem;
    background: rgba(10, 248, 252, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    word-break: break-all;
}

.proxy-note {
    color: #0af8fc;
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(10, 248, 252, 0.2);
    font-weight: 500;
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(105deg, #0e2a3a, #0b1b28);
    border: 1px solid rgba(10, 248, 252, 0.6);
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
    margin: 1rem 0;
    font-size: 0.9rem;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(105deg, #0f3f50, #0b1f30);
    border-color: #0af8fc;
    box-shadow: 0 0 12px rgba(10, 248, 252, 0.3);
    transform: translateY(-1px);
}

/* Warning Box */
.warning-box {
    background: rgba(255, 80, 40, 0.08);
    border-left: 3px solid #ff5c3a;
    padding: 1rem;
    border-radius: 1rem;
    margin: 1rem 0;
    display: flex;
    gap: 12px;
}

.warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.85rem;
    color: #ffb7a0;
    line-height: 1.4;
}

/* Comparison Block */
.comparison-block {
    background: rgba(0, 20, 35, 0.4);
    border-radius: 2rem;
    border: 1px solid rgba(10, 248, 252, 0.2);
    padding: 1.8rem;
    margin: 1.5rem 0 0;
}

.comparison-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.comparison-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.comparison-text {
    color: #bdd3ff;
    font-size: 0.9rem;
    line-height: 1.6;
}

.comparison-text strong {
    color: #0af8fc;
    font-weight: 600;
}

.glow-text {
    color: #0af8fc;
    font-weight: 500;
}

.tech-badge {
    background: #01080f;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-family: monospace;
    white-space: nowrap;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 4rem;
    opacity: 0.6;
    border-top: 1px solid #1f2a3a;
    padding-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }

.proxy-block {
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1rem 3rem;
    }
    
    .card-header {
        padding: 1rem 1.2rem 0;
    }
    
    .card-content {
        padding: 1rem 1.2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .key-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-copy {
        justify-content: center;
        white-space: normal;
    }
    
    .comparison-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-badge {
        white-space: normal;
        text-align: center;
        width: 100%;
    }
    
    .key-box, .url-box {
        min-height: auto;
    }
    
    .feature-list li {
        margin-bottom: 0.75rem;
        gap: 8px;
    }
    
    /* Proxy block responsive */
    .proxy-header {
        padding: 0.75rem 1rem;
    }
    
    .proxy-content {
        padding: 0.75rem 1rem 1rem;
    }
    
    .credential-item {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 1rem;
    }
    
    .cred-label {
        min-width: auto;
    }
    
    .proxy-instructions {
        padding-left: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    background: #0a0c10;
}

::-webkit-scrollbar-thumb {
    background: rgba(10, 248, 252, 0.5);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 248, 252, 0.8);
}

/* Selection */
::selection {
    background: rgba(10, 248, 252, 0.3);
    color: white;
}

/* Унификация отступов для лаконичности */
.card-content > *:first-child {
    margin-top: 0;
}

.card-content > *:last-child {
    margin-bottom: 0;
}

.feature-section:first-of-type {
    margin-top: 0;
}

.download-section + .instruction-section,
.key-box + .download-section,
.url-box + .btn-primary {
    margin-top: 1rem;
}

/* Дополнительные улучшения для читаемости */
.comparison-text br {
    margin-bottom: 0.5rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

/* Hover effects for credentials */
.cred-value:hover {
    background: rgba(10, 248, 252, 0.1);
    cursor: pointer;
}

/* Additional styles for better mobile experience */
@media (max-width: 480px) {
    .proxy-credentials {
        padding: 0.75rem;
    }
    
    .credential-item {
        font-size: 0.75rem;
    }
    
    .cred-value {
        font-size: 0.7rem;
    }
    
    .proxy-instructions {
        font-size: 0.8rem;
    }
    
    .proxy-text {
        font-size: 0.8rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .proxy-block {
        background: rgba(10, 248, 252, 0.03);
    }
    
    .proxy-credentials {
        background: #010101;
    }
}

/* Print styles */
@media print {
    .proxy-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .btn-copy {
        display: none;
    }
}