/* CSS Variables & Theme Setup */
:root {
    --bg-primary: #0a0b10;
    --bg-secondary: #121420;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --color-primary: #8b5cf6; /* Neon Purple */
    --color-primary-glow: rgba(139, 92, 246, 0.4);
    --color-secondary: #06b6d4; /* Cyan */
    --color-secondary-glow: rgba(6, 182, 212, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;
    
    --color-green: #10b981;
    --color-red: #ef4444;
    --color-blue: #3b82f6;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Background Glow Effects */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.18;
}

.orb-1 {
    top: -100px;
    right: 5%;
    width: 500px;
    height: 500px;
    background: var(--color-primary);
}

.orb-2 {
    top: 30%;
    left: -200px;
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
}

.orb-3 {
    bottom: 5%;
    right: -100px;
    width: 550px;
    height: 550px;
    background: var(--color-primary);
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-outfit);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-outfit);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Pulse Glow Animation */
.pulse-glow {
    position: relative;
    z-index: 1;
}

.pulse-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: var(--color-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(139, 92, 246, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.pulse-glow {
    animation: pulse 2.5s infinite;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

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

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-outfit);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-icon {
    font-size: 26px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-main);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-outfit);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 48px;
}

.hero-metrics {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-num {
    font-family: var(--font-outfit);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Mock Telegram Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.mock-telegram-card {
    width: 100%;
    max-width: 440px;
    height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.mock-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(18, 20, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-outfit);
}

.mock-chat-name {
    font-size: 15px;
    font-weight: 600;
}

.mock-chat-subs {
    font-size: 11px;
    color: var(--text-muted);
}

.mock-chat-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(10, 11, 16, 0.4);
    overflow-y: auto;
}

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13.5px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.spam-message {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    align-self: flex-start;
    border-top-left-radius: 4px;
    text-decoration: line-through;
    opacity: 0.6;
}

.clean-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.bubble-sender {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.red-text {
    color: var(--color-red) !important;
}

.bubble-time {
    font-size: 10px;
    color: var(--text-dark);
    text-align: right;
    margin-top: 4px;
}

.bot-action-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 12.5px;
    width: 100%;
}

.alert-icon-wrapper {
    color: var(--color-green);
    font-size: 18px;
}

.badge-red {
    background: var(--color-red);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 40px;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card-text {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* Settings Showcase */
.settings-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.settings-visual-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.settings-bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.settings-bot-name {
    font-size: 16px;
    font-weight: 600;
}

.settings-bot-status {
    font-size: 12px;
    color: var(--text-muted);
}

.settings-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-chat-title {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.settings-status-line {
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.settings-status-line .lbl {
    color: var(--text-muted);
}

.settings-status-line .val {
    font-weight: 600;
}

.highlight-green { color: var(--color-green); }
.highlight-red { color: var(--color-red); }
.highlight-blue { color: var(--color-blue); }
.highlight-purple { color: #c084fc; }

.emulator-btn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.emulator-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.emulator-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.emulator-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--color-primary);
    color: #c084fc;
}

.emulator-btn.info-btn {
    grid-column: span 1;
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

.emulator-btn.info-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--color-secondary);
}

.emulator-btn-grid button:nth-child(1) { grid-column: span 1; }
.emulator-btn-grid button:nth-child(2) { grid-column: span 2; }
.emulator-btn-grid button:nth-child(9) { grid-column: span 1.5; }
.emulator-btn-grid button:nth-child(10) { grid-column: span 1.5; }

/* Settings Info Card */
.settings-info-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card-title {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.info-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
}

.info-card-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.info-card-tip {
    display: flex;
    gap: 16px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 16px;
    border-radius: 16px;
    font-size: 13.5px;
    color: #22d3ee;
}

.info-card-tip i {
    font-size: 20px;
    margin-top: 2px;
}

/* How it Works / Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

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

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-outfit);
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 10px 20px var(--color-primary-glow);
}

.step-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-text {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-arrow {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 14.5px;
    display: none;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-left {
    max-width: 320px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-group h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 12px;
}

.footer-link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-dark);
}

.social-link {
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-main);
}

/* Responsive / Mobile Design */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-metrics {
        justify-content: center;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-showcase-container {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav.open {
        display: flex;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .btn-header {
        display: none;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-metrics {
        flex-wrap: wrap;
        gap: 24px;
    }
}
