/* ========================================
   ONE-PING LANDING PAGE STYLES
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #1e1e2e;
    --background: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a24;
    --border: #2a2a3a;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

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

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.lang-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--text-secondary);
    background: var(--surface);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 24px 80px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Code Demo */
.hero-code {
    max-width: 800px;
    margin: 80px auto 0;
}

.code-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-tabs {
    display: flex;
    gap: 8px;
}

.code-tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.code-tab:hover {
    color: var(--text-secondary);
}

.code-tab.active {
    background: var(--border);
    color: var(--text);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-content {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-content.hidden {
    display: none;
}

.token-comment { color: #6b7280; }
.token-keyword { color: #c084fc; }
.token-string { color: #86efac; }
.token-function { color: #60a5fa; }

.code-footer {
    padding: 12px 20px;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.code-response {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.response-status {
    color: var(--success);
}

.response-time {
    color: var(--text-muted);
}

/* Problem Section */
.problem {
    padding: 120px 24px;
    background: var(--surface);
}

.problem-header {
    text-align: center;
    margin-bottom: 60px;
}

.problem-header h2 {
    max-width: 600px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.problem-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.problem-card.bad {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
}

.problem-card.good {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem-card h3 {
    margin-bottom: 20px;
}

.problem-card ul {
    list-style: none;
}

.problem-card li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.x { color: var(--error); }
.check { color: var(--success); }

/* Channels Section */
.channels {
    padding: 120px 24px;
}

.channels-header {
    text-align: center;
    margin-bottom: 60px;
}

.channels-header p {
    color: var(--text-secondary);
    margin-top: 16px;
}

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

.channel-card {
    padding: 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.channel-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.channel-icon svg {
    width: 28px;
    height: 28px;
}

.channel-icon.telegram { background: rgba(0, 136, 204, 0.15); color: #0088cc; }
.channel-icon.email { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.channel-icon.slack { background: rgba(224, 30, 90, 0.15); color: #e01e5a; }
.channel-icon.discord { background: rgba(88, 101, 242, 0.15); color: #5865f2; }
.channel-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.channel-icon.sms { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.channel-card h3 {
    margin-bottom: 8px;
}

.channel-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 100px;
}

.channel-status.available {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.channel-status.coming {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Features Section */
.features {
    padding: 120px 24px;
    background: var(--surface);
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Use Cases */
.use-cases {
    padding: 120px 24px;
}

.use-cases-header {
    text-align: center;
    margin-bottom: 60px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.use-case-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.use-case-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.use-case-card h3 {
    margin-bottom: 12px;
}

.use-case-card p {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing {
    padding: 120px 24px;
    background: var(--surface);
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-header p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 40px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-card-header h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
}

.price-period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li.disabled {
    color: var(--text-muted);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

.pricing-note a {
    color: var(--primary);
    text-decoration: none;
}

.pricing-note a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    padding: 120px 24px;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.faq-item h3 {
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
}

/* CTA Final */
.cta-final {
    padding: 120px 24px;
    text-align: center;
    background: var(--gradient);
}

.cta-final h2 {
    margin-bottom: 16px;
}

.cta-final p {
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-final .btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-final .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    padding: 80px 24px 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .lang-selector {
        margin-left: 8px;
        padding-left: 8px;
    }

    .lang-btn {
        padding: 4px 8px;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

    .code-tabs {
        gap: 4px;
    }

    .code-tab {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-container > * {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-ctas { animation-delay: 0.3s; }
.hero-stats { animation-delay: 0.4s; }
.hero-code { animation: fadeInUp 0.6s ease-out 0.5s forwards; opacity: 0; }
