/* Landing Page Styles */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #48bb78;
    --danger: #f56565;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f7fafc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    /* Techno font */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.btn-primary,
.btn-hero,
.btn-plan,
.nav a {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 6rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-hero {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-block;
    width: fit-content;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
}

.period {
    font-size: 1.125rem;
    color: var(--text-light);
}

.plan-description {
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bg);
}

.btn-plan {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn-plan:hover {
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* POS Simulator Mockup */
.pos-mockup {
    background: #f4f6f9;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    text-align: left;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s;
    border: 1px solid #dee2e6;
}

.pos-mockup:hover {
    transform: perspective(1000px) rotateX(0deg);
}

/* POS Header */
.pos-top-bar {
    background: #0dcaf0;
    /* Celeste / Sky Blue */
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #0aa2c0;
}

.pos-branding {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pos-user-info {
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* POS Body */
.pos-body {
    display: flex;
    padding: 15px;
    gap: 15px;
    height: 350px;
}

/* Columns */
.pos-col-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pos-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Components */
.pos-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #dfdfdf;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pos-card-header {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-card-header.red {
    border-left: 4px solid #0dcaf0;
    /* Changed to Celeste */
}

.pos-card-header.blue {
    border-left: 4px solid #007bff;
}

/* Ticket Table */
.pos-ticket-area {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pos-table-header {
    display: flex;
    background: #f8f9fa;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    border-bottom: 1px solid #dee2e6;
}

.pos-col-qty {
    width: 15%;
    text-align: center;
}

.pos-col-desc {
    width: 55%;
}

.pos-col-price {
    width: 30%;
    text-align: right;
}

.pos-ticket-items {
    flex: 1;
    padding: 5px 0;
}

.pos-item-row {
    display: flex;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid #f1f1f1;
    animation: fadeInRow 0.3s ease-out forwards;
}

.pos-item-row.new-item {
    background-color: #e8f0fe;
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Totals Section */
.pos-total-section {
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.pos-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pos-total-label {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
}

.pos-total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #212529;
}

/* Actions */
.pos-actions {
    display: flex;
    gap: 5px;
    padding: 0 15px 15px 15px;
    background: #f8f9fa;
}

.pos-btn {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-pay {
    background: #198754;
    /* Success Green */
}

.btn-clean {
    background: #343a40;
}

/* Search Area */
.pos-search-area {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.pos-search-input-container {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    background: white;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 10px;
    color: #999;
}

.pos-search-fake-input {
    height: 20px;
    width: 100%;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    border-right: 2px solid transparent;
}

.pos-search-fake-input::after {
    content: '';
    animation: typeSearch 6s infinite;
}

.pos-search-fake-input {
    animation: blinkCursor 6s infinite;
}

/* Search Results */
.pos-search-results {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    display: none;
    /* Hidden initially */
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    animation: showResults 6s infinite;
}

.pos-search-item {
    padding: 10px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
}

.pos-search-item:hover {
    background: #f8f9fa;
}

.pos-item-code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 700;
}

.pos-item-name {
    flex: 1;
    margin-left: 10px;
    font-weight: 600;
}

.pos-item-price {
    color: #198754;
    font-weight: 700;
}

.pos-search-empty-state {
    text-align: center;
    color: #adb5bd;
    margin-top: 20px;
    animation: hideEmpty 6s infinite;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.empty-text {
    font-size: 0.9rem;
}

/* Active Item Selection Simulation */
.pos-search-item.item-1 {
    animation: selectItem 6s infinite;
}

/* Ghost Cursor Animation - Refined for Search Flow */
.ghost-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 2rem;
    pointer-events: none;
    z-index: 100;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    animation: ghostSearchFlow 6s infinite;
}

@keyframes ghostSearchFlow {
    0% {
        top: 80%;
        left: 50%;
        transform: scale(1);
    }

    /* Start low */
    10% {
        top: 20%;
        left: 75%;
        transform: scale(1);
    }

    /* Move to Search Input */
    15% {
        top: 20%;
        left: 75%;
        transform: scale(0.9);
    }

    /* Click Search */
    30% {
        top: 20%;
        left: 75%;
        transform: scale(1);
    }

    /* Stay while typing */
    40% {
        top: 45%;
        left: 75%;
        transform: scale(1);
    }

    /* Move to Result 1 */
    45% {
        top: 45%;
        left: 75%;
        transform: scale(0.8);
    }

    /* Click Result */
    50% {
        top: 45%;
        left: 75%;
        transform: scale(1);
    }

    70% {
        top: 85%;
        left: 25%;
        transform: scale(1);
    }

    /* Move to PAY button */
    80% {
        top: 85%;
        left: 25%;
        transform: scale(0.8);
    }

    /* Click Pay */
    100% {
        top: 85%;
        left: 25%;
        transform: scale(1);
    }
}

/* Animation Setup */
.pos-item-1 {
    animation: showItem 6s infinite;
}

.pos-item-2 {
    animation: showItemDelayed 6s infinite;
}

.dynamic-total {
    font-size: 0;
}

.dynamic-total::after {
    font-size: 1.8rem;
    content: '$ 0';
    animation: totalChanger 6s infinite;
}

@keyframes showItem {

    0%,
    14% {
        opacity: 0;
        display: none;
    }

    15%,
    100% {
        opacity: 1;
        display: flex;
    }
}

@keyframes showItemDelayed {

    0%,
    24% {
        opacity: 0;
        display: none;
    }

    25%,
    100% {
        opacity: 1;
        display: flex;
    }
}

@keyframes totalChanger {

    0%,
    14% {
        content: '$ 0';
    }

    15%,
    24% {
        content: '$ 4.500';
    }

    25%,
    100% {
        content: '$ 7.000';
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-top: 1px solid #eee;
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .nav .btn-primary {
        margin: 0.5rem auto;
        display: inline-block;
        width: auto;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.login-modal h3 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

.login-modal p {
    color: #666;
    margin-bottom: 1.5rem;
}

.login-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}

.login-input-group:focus-within {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13, 202, 240, 0.1);
}

.login-input-group input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    width: 100%;
    color: #333;
}

.input-suffix {
    color: #999;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-login-action {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 202, 240, 0.3);
}

.login-help {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.login-help a {
    color: #999;
    text-decoration: none;
}

.login-help a:hover {
    color: #0dcaf0;
}

/* Mobile Adjustments for POS Simulation */
@media (max-width: 768px) {
    .pos-body {
        flex-direction: column;
        height: auto !important;
        gap: 15px;
    }

    .pos-col-left,
    .pos-col-right {
        width: 100%;
        flex: none;
    }

    .pos-card {
        height: auto;
        min-height: auto;
    }

    .pos-ticket-area {
        min-height: 220px;
        max-height: 250px;
        overflow-y: auto;
    }

    .pos-search-area {
        height: auto;
        padding-bottom: 20px;
    }

    .pos-top-bar {
        padding: 8px 10px;
    }

    .pos-branding {
        font-size: 0.9rem;
    }

    .pos-user-info {
        font-size: 0.7rem;
        padding: 3px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }

    .pos-total-amount {
        font-size: 1.5rem;
    }
}