/* ThreadPOS Landing Page Styles */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0ea5e9;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    padding: 0;
}

.navbar-logo {
    height: 60px;
    width: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--darker) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Hero Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.mockup-window {
    background: var(--darker);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.mockup-header {
    background: #2d3748;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.mockup-content {
    padding: 1.5rem;
}

.pos-preview {
    display: flex;
    gap: 1rem;
}

.preview-sidebar {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-item {
    background: var(--primary);
    height: 60px;
    border-radius: 8px;
    opacity: 0.8;
}

.preview-main {
    flex: 1;
}

.preview-cart {
    background: #374151;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-line {
    height: 12px;
    background: #4b5563;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.cart-line.short {
    width: 60%;
}

.preview-total {
    background: var(--primary);
    border-radius: 8px;
    padding: 1rem;
}

.total-line {
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 50%;
    margin-left: auto;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.125rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    margin: 0;
}

/* Module Sections */
.module-section {
    padding: 2rem 0;
}

.module-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.module-icon-large.inventory {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.module-icon-large.loyalty {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
}

.module-icon-large.employee {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.module-icon-large.reports {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.module-icon-large i {
    font-size: 2rem;
    color: white;
}

.module-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module-features li i {
    color: var(--success);
    font-size: 0.875rem;
}

/* Module Visuals */
.module-visual {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.visual-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    overflow: hidden;
}

.visual-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.inventory-visual .visual-header {
    background: #059669;
}

.loyalty-visual .visual-header {
    background: #dc2626;
}

.employee-visual .visual-header {
    background: #7c3aed;
}

.reports-visual .visual-header {
    background: #ea580c;
}

.visual-body {
    padding: 1.5rem;
}

/* POS Visual */
.mini-cart {
    margin-bottom: 1rem;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.mini-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.125rem;
    padding-top: 0.5rem;
}

/* Inventory Visual */
.inventory-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inv-bar span {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

.bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #059669;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-fill.warning {
    background: var(--warning);
}

/* Purchase Order Visual */
.po-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.po-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.po-vendor {
    font-weight: 600;
    color: var(--dark);
}

.po-number {
    font-size: 0.75rem;
    color: var(--gray);
    font-family: monospace;
}

.po-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.po-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.po-qty {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.po-status {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.received {
    background: #dcfce7;
    color: #166534;
}

/* Loyalty Visual */
.loyalty-card-preview {
    text-align: center;
}

.member-tier {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.member-tier.gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.points-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.points-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.points-multiplier {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Employee Visual */
.time-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.time-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.time-status {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.time-status.clocked-in {
    background: #dcfce7;
    color: #166534;
}

.time-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.time-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.time-stat span:last-child {
    font-weight: 600;
}

/* Consignment Visual */
.consignment-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consignor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.consignor-name {
    font-weight: 600;
    color: var(--dark);
}

.consignor-split {
    font-size: 0.75rem;
    background: #f3e8ff;
    color: #7c3aed;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.consignment-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consign-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.consign-stat span:last-child {
    font-weight: 600;
}

.payout-status {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

/* Reports Visual */
.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding-top: 1rem;
}

.chart-bar {
    width: 12%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.25rem;
    transition: height 0.5s ease;
}

.chart-bar.highlight {
    background: linear-gradient(180deg, #059669 0%, #34d399 100%);
}

.chart-bar span {
    font-size: 0.625rem;
    color: white;
    font-weight: 600;
}

/* Mini Features */
.mini-feature {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.mini-feature:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

.mini-feature i {
    color: var(--primary);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.mini-feature span {
    font-size: 0.875rem;
    font-weight: 500;
}

.mini-feature-highlight {
    background: #e2e8f0;
    border-color: #cbd5e1;
    padding: 1rem;
    width: 100%;
}

.mini-feature-highlight:hover {
    background: #cbd5e1;
    border-color: #94a3b8;
}

/* Benefits Section */
.benefit-card {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Signup Section */
.signup-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-logo {
    height: 48px;
    width: auto;
}

/* Alert Styles */
.alert-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .hero-stats {
        justify-content: space-between;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .signup-card {
        padding: 1.5rem;
    }

    .module-visual {
        margin-top: 2rem;
    }
}

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

.feature-card, .benefit-card, .mini-feature {
    animation: fadeInUp 0.5s ease forwards;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
