/* ==========================================================================
   CATALO LANDING PAGE STYLESHEET
   Matching the Material Design 3 / Bento Grid aesthetic of Catalo Android App
   ========================================================================== */

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --dark: #0F172A;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    
    /* Pastel Badges */
    --badge-green-bg: #E6F4EA;
    --badge-green-txt: #137333;
    --badge-blue-bg: #E8F0FE;
    --badge-blue-txt: #1A73E8;
    --badge-yellow-bg: #FEF7E0;
    --badge-yellow-txt: #B06000;
    --badge-red-bg: #FCE8E6;
    --badge-red-txt: #C5221F;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(37, 99, 235, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    background: var(--dark);
    color: #FFFFFF;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

.announcement-bar p {
    margin: 0;
}

.spots-left {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   BADGES & PILLS
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-txt);
}

.badge-blue {
    background-color: var(--badge-blue-bg);
    color: var(--badge-blue-txt);
}

.badge-yellow {
    background-color: var(--badge-yellow-bg);
    color: var(--badge-yellow-txt);
}

.badge-red {
    background-color: var(--badge-red-bg);
    color: var(--badge-red-txt);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 60px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--dark);
    margin: 20px 0 16px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack img, .avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    margin-left: -10px;
    object-fit: cover;
}

.avatar-stack img:first-child, .avatar-placeholder:first-child {
    margin-left: 0;
}

.avatar-placeholder {
    background: #E2E8F0;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.avatar-placeholder.bg-blue { background: #DBEAFE; color: #1E40AF; }
.avatar-placeholder.bg-green { background: #D1FAE5; color: #065F46; }

.proof-text p {
    font-size: 13px;
    color: var(--text-secondary);
}

.stars {
    color: #F59E0B;
    font-weight: 700;
    font-size: 13px;
}

.stars span {
    color: var(--text-secondary);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: var(--shadow-lg);
}

.main-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    border: 1px solid var(--border);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.float-top-right {
    top: -15px;
    right: -15px;
}

.float-bottom-left {
    bottom: -15px;
    left: -15px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-green { background: var(--badge-green-bg); color: var(--badge-green-txt); }
.icon-blue { background: var(--badge-blue-bg); color: var(--badge-blue-txt); }

.float-title {
    display: block;
    font-weight: 700;
    font-size: 12px;
    color: var(--dark);
}

.float-sub {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
    background: var(--surface);
    border-y: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 24px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ==========================================================================
   BENTO GRID FEATURES
   ========================================================================== */
.features-section, .simulator-section, .comparison-section, .faq-section, .bottom-cta-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.bento-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.bento-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 12px 0;
}

.bento-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.feature-bullets {
    list-style: none;
}

.feature-bullets li {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-bullets i {
    color: #10B981;
    width: 16px;
}

.bento-image img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
}

.bento-image.top-img {
    margin-bottom: 16px;
    max-height: 220px;
    overflow: hidden;
}

.stat-pills {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.pill-box {
    background: var(--background);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.pill-val {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.pill-lbl {
    font-size: 11px;
    color: var(--text-secondary);
}

.mini-order-card {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
}

.moc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* ==========================================================================
   SIMULATOR SECTION
   ========================================================================== */
.simulator-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.sim-header {
    text-align: center;
    margin-bottom: 32px;
}

.sim-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.control-group {
    margin-bottom: 24px;
}

.control-group label {
    display: block;
    font-size: 15px;
    color: var(--dark);
    margin-bottom: 8px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    accent-color: var(--primary);
    cursor: pointer;
}

.sim-results {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-box {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.result-box.highlight {
    border-color: var(--primary);
    background: var(--primary-light);
}

.res-title {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.res-amount {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.comparison-table th {
    background: var(--background);
    color: var(--dark);
    font-weight: 700;
}

.comparison-table td.highlight-col, .comparison-table th.highlight-col {
    background: var(--primary-light);
    color: var(--primary);
}

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

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
}

.faq-answer {
    padding: 0 24px 18px;
    display: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active i {
    transform: rotate(180deg);
}

/* ==========================================================================
   BOTTOM CTA & FOOTER
   ========================================================================== */
.bottom-cta-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bottom-cta-card h2 {
    font-size: 32px;
    font-weight: 800;
}

.footer {
    background: var(--dark);
    color: #94A3B8;
    padding: 60px 24px 24px;
    border-top: 1px solid #334155;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .brand-name {
    color: #FFFFFF;
}

.footer-links h4 {
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #94A3B8;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1E293B;
    font-size: 13px;
}

/* ==========================================================================
   REGISTRATION MODAL & VIP PASS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 8px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.role-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-option {
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.role-option input {
    width: auto;
}

.vip-pass-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #334155;
}

.vip-pass-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.vip-pass-body h4 {
    font-size: 18px;
    font-weight: 800;
}

.ref-input-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--dark);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
    z-index: 300;
    box-shadow: var(--shadow-md);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .sim-body {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }
}
