/* =================================================================
   LANDING PAGE STYLES (index.html)
   ================================================================= */

:root {
    --primary-color: #5B5FEF;
    --primary-dark: #4a4dc5;
    --bg-color: #F8FAFC;
    --card-color: #FFFFFF;
    --border-color: #E9EDF5;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --radius: 20px;
    --shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
}

/* --- Header Override --- */
.header {
    background-color: rgba(248, 250, 252, 0.8); /* Match body bg */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .btn-primary { background-color: var(--primary-color); }
.navbar .btn-primary:hover { background-color: var(--primary-dark); }
.navbar .nav-links a:hover { color: var(--primary-color); }

.mobile-menu-btn { display: none; }
.nav-links.active { display: block; }

/* --- Reusable Components --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #F3F4FF 0%, var(--bg-color) 100%);
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-image {
    margin-top: 80px;
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* --- Advantages Section --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advantage-card {
    background-color: var(--card-color);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.advantage-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E8E8FD;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* --- Panel Sections (Manager, Cashier) --- */
.panel-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.panel-section.reverse {
    grid-template-areas: "image content";
}

.panel-section.reverse .panel-content { grid-area: content; }
.panel-section.reverse .panel-image { grid-area: image; }

.panel-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-list {
    list-style: none;
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-list li {
    font-weight: 500;
    color: var(--text-dark);
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* --- Analytics Section --- */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.analytics-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
}

.analytics-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.analytics-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.analytics-card p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.analytics-card img {
    width: 100%;
    border-radius: 10px;
    margin-top: auto;
}

.profit-counter {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

/* --- System Features Section --- */
.system-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.system-feature-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.system-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.system-feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.system-feature-card:hover h4 {
    color: var(--primary-color);
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    position: relative;
    box-shadow: var(--shadow);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header h3 { font-size: 24px; color: var(--text-dark); margin-bottom: 16px; }
.pricing-header .price { font-size: 48px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.pricing-header .price span { font-size: 18px; font-weight: 500; color: var(--text-light); }
.pricing-header .description { margin-bottom: 30px; }

.pricing-features { list-style: none; margin-bottom: 40px; }
.pricing-features li { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.pricing-features li:last-child { border-bottom: none; }

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 { font-size: 18px; font-weight: 600; color: var(--text-dark); }
.faq-icon { font-size: 24px; font-weight: 500; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 30px 20px;
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
    background-color: #1E293B;
    padding: 80px 0;
    border-radius: var(--radius);
    margin: 0 20px;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 { font-size: 42px; margin-bottom: 16px; }
.cta-content p { font-size: 18px; color: #cbd5e1; max-width: 600px; margin: 0 auto 40px; }

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-info p { margin-top: 16px; max-width: 300px; }
.footer-contacts h4 { font-size: 18px; color: var(--text-dark); margin-bottom: 16px; }
.footer-contacts ul { list-style: none; }
.footer-contacts li { margin-bottom: 10px; }
.footer-contacts a:hover { color: var(--primary-color); }

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

/* --- Animations --- */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .panel-section { gap: 40px; }
    .analytics-grid, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: scale(1); }
    .system-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .section { padding: 80px 0; }
    .hero-content h1 { font-size: 48px; }
    .section-title { font-size: 36px; }
    .panel-section { grid-template-columns: 1fr; }
    .panel-section.reverse { grid-template-areas: "content" "image"; }
    .panel-content { text-align: center; }
    .feature-list { grid-template-columns: 1fr; text-align: left; max-width: 350px; margin: 30px auto 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background-color: var(--card-color); padding: 20px; box-shadow: var(--shadow); }
    .nav-links ul { flex-direction: column; }
    .mobile-menu-btn { display: block; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 18px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-contacts ul { padding-left: 0; }
}

@media (max-width: 576px) {
    .section { padding: 60px 0; }
    .hero-content h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
    .hero-buttons { flex-direction: column; }
    .system-features-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 30px; }
    .faq-question { padding: 15px 20px; }
    .faq-question h4 { font-size: 16px; }
    .cta-section { margin: 0 10px; }
}

/* --- Hero Button Enhancement --- */
.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(91, 95, 239, 0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 95, 239, 0.4);
}

/* =================================================================
   NEW HERO SECTION STYLES
   ================================================================= */

.new-hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #F8FAFF 0%, #FFFFFF 50%, #F5F7FF 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-left-column {
    max-width: 580px;
    flex-shrink: 0;
}

.hero-right-column {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.new-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.new-hero h1 span {
    color: var(--primary-color);
}

.new-hero p {
    font-size: 18px;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.new-hero .hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.new-hero .hero-buttons .btn-primary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(91, 95, 239, 0.3);
    transition: all 0.3s ease;
}

.new-hero .hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 95, 239, 0.4);
}

.new-hero .hero-buttons .btn-secondary {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background-color: var(--card-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.new-hero .hero-buttons .btn-secondary:hover {
    background-color: #F3F4FF;
    transform: translateY(-3px);
}

.hero-checklist {
    list-style: none;
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    font-size: 14px;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
    transition: transform 0.3s ease;
}
.stat-item:hover {
    transform: scale(1.05);
}
.stat-item strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}
.stat-item span {
    font-size: 14px;
    color: var(--text-light);
}

.hero-image-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.02);
}

.blur-circle-1, .blur-circle-2, .blur-circle-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
}
.blur-circle-1 { width: 300px; height: 300px; background-color: rgba(91, 95, 239, 0.2); top: -50px; left: -50px; }
.blur-circle-2 { width: 250px; height: 250px; background-color: rgba(59, 130, 246, 0.15); bottom: -50px; right: -50px; }
.blur-circle-3 { width: 200px; height: 200px; background-color: rgba(45, 212, 191, 0.1); bottom: 100px; left: -100px; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Responsive for New Hero --- */
@media (max-width: 1200px) {
    .new-hero h1 { font-size: 48px; }
    .hero-stats { gap: 24px; }
    .stat-item strong { font-size: 24px; }
}

@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; gap: 60px; }
    .hero-left-column { max-width: 100%; order: 2; }
    .hero-right-column { order: 1; }
    .new-hero p { margin-left: auto; margin-right: auto; }
    .hero-buttons, .hero-checklist { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 576px) {
    .new-hero { padding: 80px 0; }
    .new-hero h1 { font-size: 36px; }
    .hero-checklist { flex-direction: column; gap: 12px; align-items: center; }
    .hero-stats { gap: 20px; }
}