/* ============================================================
   KavinoRa POS — Marketing Site — Dark Premium Theme
   ============================================================ */

:root {
    --bg-primary: #0B0F1A;
    --bg-secondary: #111827;
    --bg-card: #1A2035;
    --bg-card-hover: #1F2A42;
    --accent: #10B981;
    --accent-light: #34D399;
    --accent-dark: #059669;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #1E293B;
    --border-light: #334155;
    --error: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --gradient: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    --glass: rgba(26, 32, 53, 0.8);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}
.nav-logo small { font-weight: 400; opacity: 0.7; }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3); }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn .material-icons { font-size: 1.1em; }

/* ===================== HERO ===================== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-bg-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: -100px; right: -200px;
    pointer-events: none;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}
.hero-badge .material-icons { font-size: 1rem; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.hero-stats {
    display: flex;
    gap: 40px;
}
.hero-stats .stat { text-align: left; }
.hero-stats .stat strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
}
.hero-stats .stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Mockup */
.hero-visual { position: relative; }
.hero-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}
.mockup-dots span:first-child { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }
.mockup-title { font-size: 0.8rem; color: var(--text-muted); }
.mockup-body {
    display: flex;
    min-height: 300px;
}
.mockup-sidebar {
    width: 56px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mockup-nav-item {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.mockup-nav-item.active { background: rgba(16, 185, 129, 0.15); color: var(--accent); }
.mockup-nav-item .material-icons { font-size: 1.1rem; }
.mockup-content {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}
.mockup-card {
    height: 60px;
    background: var(--border);
    border-radius: var(--radius-sm);
    animation: shimmer 2s ease-in-out infinite;
}
.mockup-card.sm { height: 45px; }
.mockup-card.lg { grid-column: span 2; height: 80px; }
@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ===================== SECTIONS ===================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===================== FEATURES ===================== */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: rgba(16, 185, 129, 0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon .material-icons { color: var(--accent); font-size: 1.4rem; }
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================== PRICING ===================== */
.pricing {
    padding: 100px 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all var(--transition);
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.price-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}
.popular-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}
.price-header { margin-bottom: 24px; }
.price-header h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price {
    font-size: 2.5rem;
    font-weight: 800;
}
.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.price-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}
.price-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.price-features .material-icons {
    font-size: 1.1rem;
    color: var(--accent);
}

/* ===================== ABOUT ===================== */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h2 {
    font-size: 2.2rem;
    margin: 12px 0 20px;
}
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.about-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}
.about-stat-card:hover { border-color: var(--accent); }
.about-stat-card .material-icons {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.about-stat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.about-stat-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ===================== FOOTER ===================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-brand strong { display: block; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ===================== AUTH MODAL ===================== */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
.auth-overlay.active { display: flex; }
.auth-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}
.auth-close:hover { color: var(--text-primary); }
.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}
.auth-tab.active {
    background: var(--accent);
    color: #fff;
}
.auth-header { margin-bottom: 24px; }
.auth-header h2 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-header p { color: var(--text-secondary); font-size: 0.95rem; }

.form-alert {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.form-alert.error { display: block; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #FCA5A5; }
.form-alert.success { display: block; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6EE7B7; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: border-color var(--transition);
}
.input-wrapper:focus-within { border-color: var(--accent); }
.input-wrapper .material-icons { color: var(--text-muted); font-size: 1.1rem; margin-right: 8px; }
.input-wrapper input,
.form-group > input {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group > input {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: border-color var(--transition);
}
.form-group > input:focus { border-color: var(--accent); outline: none; }
.input-wrapper input { padding: 12px 0; }
.toggle-password {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}
.toggle-password:hover { color: var(--text-primary); }

.spinner-sm {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .footer-container { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .auth-modal { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.6rem; }
    .about-stats { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
