/* === DESIGN SYSTEM === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);

    --bolt-yellow: #f9ca24;
    --bolt-orange: #f0932b;
    --success: #00d2d3;
    --danger: #ff6b6b;

    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--bolt-yellow); }

img { max-width: 100%; display: block; }

/* === CANVAS BACKGROUND === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* === LAYOUT === */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* === HEADER === */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 24px;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

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

.logo-accent {
    color: var(--accent-light);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.currency-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 3px;
}

.currency-btn, .currency-btn-footer {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.currency-btn.active, .currency-btn-footer.active {
    background: var(--accent);
    color: white;
}

.currency-btn:hover:not(.active), .currency-btn-footer:hover:not(.active) {
    color: var(--text-primary);
}

/* === HERO === */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    animation: badgeFade 1s ease-out;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 210, 211, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 210, 211, 0); }
}

@keyframes badgeFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: heroFade 0.8s ease-out 0.2s both;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rotating-word {
    display: inline-block;
    min-width: 250px;
    text-align: left;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.rotating-word::after {
    content: '|';
    -webkit-text-fill-color: var(--accent-light);
    animation: blink 0.8s infinite;
    font-weight: 300;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: heroFade 0.8s ease-out 0.4s both;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

/* === SIGNUP FORM === */
.hero-cta-group {
    animation: heroFade 0.8s ease-out 0.6s both;
}

.signup-form { max-width: 520px; margin: 0 auto; }

.form-row {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-row:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.form-row input {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
}

.form-row input::placeholder { color: var(--text-muted); }

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.cta-primary:active { transform: translateY(0); }

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.06);
}

.form-trust {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.form-trust strong { color: var(--bolt-yellow); }

/* === HERO PROOF === */
.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    animation: heroFade 0.8s ease-out 0.8s both;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.proof-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--success);
    font-family: var(--font-mono);
}

.proof-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* === DEMO CARD (TELEGRAM MOCKUP) === */
.demo-card {
    max-width: 480px;
    margin: 0 auto;
}

.demo-phone {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(108, 92, 231, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-avatar {
    font-size: 1.4rem;
}

.phone-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.phone-status {
    font-size: 0.7rem;
    color: var(--success);
    margin-left: auto;
}

.phone-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    position: relative;
    animation: msgFade 0.5s ease-out both;
}

.message.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border-bottom-left-radius: 4px;
}

.message.outgoing {
    align-self: flex-end;
    background: rgba(108, 92, 231, 0.25);
    border-bottom-right-radius: 4px;
}

.msg-time {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.message:nth-child(1) { animation-delay: 0.2s; }
.message:nth-child(2) { animation-delay: 0.6s; }
.message:nth-child(3) { animation-delay: 1.0s; }
.message:nth-child(4) { animation-delay: 1.4s; }

@keyframes msgFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === COMPARISON TABLE === */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.compare-col {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.compare-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-col li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 8px;
}

.compare-bad { border-color: rgba(255, 107, 107, 0.2); }
.compare-bad li { color: var(--text-muted); }

.compare-good {
    border-color: rgba(0, 210, 211, 0.25);
    background: rgba(0, 210, 211, 0.03);
}

.compare-good li { color: var(--text-primary); }

.compare-time {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    font-weight: 600;
}

.compare-bad .compare-time { color: var(--danger); }
.compare-good .compare-time { color: var(--success); }

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

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

.pricing-featured {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.06);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}

.pricing-featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 18px;
    border-radius: var(--radius-full);
}

.pricing-tier {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 1rem;
    margin-bottom: 24px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    vertical-align: super;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

.pricing-card .cta-primary,
.pricing-card .cta-secondary {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

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

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(108, 92, 231, 0.2); }

.faq-item summary {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-light);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* === FINAL CTA === */
.final-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.final-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.final-cta-content strong { color: var(--bolt-yellow); }

/* === FOOTER === */
#site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 24px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-currency {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    padding: 3px;
}

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

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

/* === KIT.COM FORM OVERRIDES === */
.kit-form-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.kit-form-wrapper .formkit-form { max-width: 100% !important; }
.kit-form-wrapper .formkit-form [data-style="clean"] { padding: 0 !important; }

.kit-form-wrapper .formkit-fields {
    display: flex !important;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.kit-form-wrapper .formkit-fields:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.kit-form-wrapper .formkit-input {
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-size: 1rem !important;
    padding: 14px 16px !important;
    border-radius: 0 !important;
}

.kit-form-wrapper .formkit-input::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

.kit-form-wrapper .formkit-submit {
    background: var(--accent-gradient) !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: var(--font-sans) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.kit-form-wrapper .formkit-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px var(--accent-glow) !important;
}

.kit-form-wrapper .formkit-submit > span { padding: 14px 24px !important; }

.kit-form-wrapper .formkit-alert-success {
    background: rgba(0, 210, 211, 0.1) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
    border-radius: var(--radius) !important;
}

.kit-form-wrapper .formkit-alert-error {
    background: rgba(255, 107, 107, 0.1) !important;
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    border-radius: var(--radius) !important;
}

.kit-form-wrapper .formkit-powered-by-convertkit-container { display: none !important; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-nav { display: none; }

    .hero-title { font-size: 2.2rem; }

    .rotating-word { min-width: 160px; }

    .form-row {
        flex-direction: column;
        gap: 0;
        background: transparent;
        border: none;
        padding: 0;
    }

    .form-row:focus-within { box-shadow: none; border-color: transparent; }

    .form-row input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        margin-bottom: 8px;
    }

    .cta-primary { width: 100%; justify-content: center; }

    .hero-proof { flex-direction: column; gap: 12px; }
    .proof-divider { display: none; }

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

    .comparison-table { grid-template-columns: 1fr; }

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

    .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }

    .section-header h2 { font-size: 1.8rem; }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-right { flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .currency-switcher { display: none; }
}
