:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-surface: #16161f;
    --text-white: #fff;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #d946ef);
    --accent-glow: rgba(99, 102, 241, 0.4);
    --success: #22c55e;
    --error: #ef4444;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark)
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

h1,
h2,
h3 {
    color: var(--text-white);
    font-weight: 700
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem)
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem)
}

p {
    color: var(--text-secondary)
}

a {
    color: var(--accent-primary);
    text-decoration: none
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all .3s
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow)
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow)
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, .2)
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .1)
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary)
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px
}

.btn-block {
    width: 100%
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, .8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-white)
}

.logo-icon {
    font-size: 24px
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px
}

.hero {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    opacity: .3
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, .15);
    border: 1px solid rgba(99, 102, 241, .3);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 24px
}

.hero h1 {
    margin-bottom: 24px
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 500px
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px
}

.hero-stats {
    display: flex;
    gap: 48px
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white)
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted)
}

.features,
.pricing,
.faq {
    padding: 120px 0
}

.features {
    background: var(--bg-dark)
}

.section-header {
    text-align: center;
    margin-bottom: 64px
}

.section-header h2 {
    margin-bottom: 16px
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: all .3s
}

.feature-card:hover {
    background: #1a1a25;
    transform: translateY(-4px)
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem
}

.data-section {
    padding: 120px 0;
    background: var(--bg-surface)
}

.data-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center
}

.data-list {
    list-style: none
}

.data-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.data-list svg {
    color: var(--success);
    flex-shrink: 0
}

.excel-preview {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1)
}

.excel-header {
    padding: 12px 16px;
    background: #1d6f42;
    color: #fff;
    font-size: 13px;
    font-weight: 600
}

.excel-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr .5fr;
    gap: 8px;
    padding: 10px 12px;
    font-size: 12px
}

.excel-header-row {
    background: rgba(29, 111, 66, .2);
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-white)
}

.pricing {
    background: var(--bg-dark)
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto
}

.pricing-card {
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, .05);
    position: relative
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .1));
    border-color: var(--accent-primary)
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #fff
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-bottom: 24px
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white)
}

.price-period {
    color: var(--text-muted)
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px
}

.pricing-features li.disabled {
    color: var(--text-muted)
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0
}

.pricing-features li.disabled svg {
    color: var(--text-muted)
}

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px
}

.faq {
    background: var(--bg-surface)
}

.faq-list {
    max-width: 700px;
    margin: 0 auto
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--text-muted)
}

.faq-item[open] summary::after {
    transform: rotate(45deg)
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 14px
}

.cta {
    padding: 120px 0;
    background: var(--bg-dark)
}

.cta-content {
    text-align: center;
    padding: 80px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(139, 92, 246, .1));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(99, 102, 241, .2)
}

.cta-content h2 {
    margin-bottom: 16px
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px
}

.footer {
    padding: 60px 0 40px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, .05)
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center
}

.footer-links {
    display: flex;
    gap: 32px
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted)
}

.footer-legal p {
    font-size: 12px;
    color: var(--text-muted)
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center
}

.modal.active {
    display: flex
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(4px)
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, .1);
    margin: 24px
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer
}

.form-group {
    margin-bottom: 24px
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 14px
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary)
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted)
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, .1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.success-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 16px
}

.modal-loading,
.modal-success,
.modal-error {
    text-align: center;
    padding: 20px
}

.modal-error .error-text {
    color: var(--error);
    margin-bottom: 16px
}

.browser-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .1);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5)
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.browser-dots {
    display: flex;
    gap: 6px
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.browser-dots span:nth-child(1) {
    background: #ef4444
}

.browser-dots span:nth-child(2) {
    background: #f59e0b
}

.browser-dots span:nth-child(3) {
    background: #22c55e
}

.browser-url {
    flex: 1;
    padding: 6px 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted)
}

.browser-content {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 300px
}

.mockup-sidebar {
    padding: 16px;
    background: var(--bg-surface);
    border-right: 1px solid rgba(255, 255, 255, .05)
}

.mockup-logo {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 6px;
    margin-bottom: 24px
}

.mockup-item {
    width: 50px;
    height: 8px;
    background: rgba(255, 255, 255, .1);
    border-radius: 4px;
    margin-bottom: 12px
}

.mockup-item.active {
    background: var(--accent-primary)
}

.mockup-main {
    padding: 24px;
    position: relative
}

.mockup-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.mockup-product {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, .05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .05)
}

.mockup-product.scanning {
    animation: scan-pulse 1.5s ease-in-out infinite;
    border-color: var(--accent-primary)
}

@keyframes scan-pulse {

    0%,
    100% {
        background: rgba(99, 102, 241, .1)
    }

    50% {
        background: rgba(99, 102, 241, .2);
        box-shadow: 0 0 20px rgba(99, 102, 241, .3)
    }
}

.mockup-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 160px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5)
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px
}

.popup-progress {
    height: 4px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px
}

.popup-progress-fill {
    width: 65%;
    height: 100%;
    background: var(--accent-gradient);
    animation: progress-fill 2s ease-in-out infinite
}

@keyframes progress-fill {
    0% {
        width: 0
    }

    100% {
        width: 100%
    }
}

.popup-count {
    font-size: 11px;
    color: var(--text-muted)
}

@media(max-width:992px) {

    .hero .container,
    .data-content {
        grid-template-columns: 1fr
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-visual {
        display: none
    }

    .nav-links {
        display: none
    }
}

@media(max-width:768px) {
    .pricing-cards {
        grid-template-columns: 1fr
    }
}

@media(max-width:576px) {
    .features-grid {
        grid-template-columns: 1fr
    }
}