/* Modern & Premium CSS stylesheet for MeraHRMS Marketing Site */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --background: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container limits */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

/* Button UI Components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary:hover {
    background-color: #475569;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
}

.logo span span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--text);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 5rem;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.badge-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-highlights {
    display: flex;
    gap: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--success);
}

/* Dashboard Mockup Preview */
.dashboard-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    background: #0b0f19;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.preview-dot.red { background-color: #ef4444; }
.preview-dot.yellow { background-color: #f59e0b; }
.preview-dot.green { background-color: #10b981; }

.preview-title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.preview-body {
    height: 300px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    height: 100%;
}

.preview-sidebar {
    background: #131b2e;
    border-right: 1px solid var(--border);
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary);
}

.preview-main {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.stat-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.text-warning { color: var(--warning); }
.text-success { color: var(--success); }

.chart-placeholder {
    height: 140px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 10px 20px;
}

.chart-bar {
    width: 25px;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    animation: growBar 1.5s ease-out;
}

@keyframes growBar {
    from { height: 0; }
}

/* Features List Section */
.features-section {
    background-color: #0b0f19;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Split Section Styling */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.split-view.reversed {
    direction: rtl;
}

.split-view.reversed > * {
    direction: ltr;
}

/* Kiosk Section */
.kiosk-section {
    background-color: var(--background);
}

.kiosk-features {
    list-style: none;
    margin-top: 2rem;
}

.kiosk-features li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kiosk-features li i {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.kiosk-features h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.kiosk-features p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tablet Mockup Camera Sim */
.tablet-mockup {
    background: #090d16;
    border: 12px solid #2d3748;
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.camera-lens {
    width: 8px;
    height: 8px;
    background: #1a202c;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.tablet-screen {
    background: #121824;
    border-radius: 18px;
    overflow: hidden;
    padding: 1.25rem;
}

.kiosk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kiosk-logo {
    font-size: 0.9rem;
    font-weight: 700;
}

.kiosk-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.camera-feed {
    height: 200px;
    background: #1e293b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M30,35 C30,20 40,20 50,20 C60,20 70,20 70,35 C70,50 65,65 50,65 C35,65 30,50 30,35 Z M20,85 C20,70 30,70 50,70 C70,70 80,70 80,85 L80,95 L20,95 Z' fill='%23475569'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.face-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-box {
    width: 110px;
    height: 130px;
    border: 2px solid var(--success);
    border-radius: 8px;
    position: relative;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--success);
    left: 0;
    top: 0;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 8px var(--success);
}

.face-marker {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--success);
    border-radius: 50%;
}

.face-marker.eye-left { top: 40%; left: 42%; }
.face-marker.eye-right { top: 40%; right: 42%; }

.kiosk-control {
    margin-top: 1rem;
    text-align: center;
}

.kiosk-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.kiosk-result {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 0.25rem;
}

@keyframes scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Terminal Mockup */
.terminal-mockup {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    font-family: 'JetBrains Mono', monospace;
    overflow: hidden;
}

.terminal-header {
    background: #0b0f19;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.terminal-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    background-color: #475569;
}

.terminal-title {
    margin-left: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem;
    font-size: 0.85rem;
    min-height: 220px;
    line-height: 1.6;
}

.term-line {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.term-line.green { color: var(--success); }
.term-line.yellow { color: var(--warning); }

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Calculator Section */
.calculator-section {
    background-color: #0b0f19;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.input-range-group {
    margin-bottom: 2rem;
}

.input-range-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.input-range-group label span {
    color: var(--primary);
}

.input-range-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    background: var(--surface-light);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

.calculator-results {
    background: #131a26;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.savings-large {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.savings-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.calculator-results hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.metric-row {
    display: flex;
    gap: 2rem;
}

.metric-col {
    flex: 1;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Pricing Grid */
.pricing-section {
    background-color: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 48px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pricing-features li i {
    width: 18px;
    height: 18px;
    color: var(--success);
}

.pricing-features li.disabled {
    color: #475569;
}

.pricing-features li.disabled i {
    color: #475569;
}

/* Contact Section */
.contact-section {
    background-color: #0b0f19;
}

.contact-wrapper {
    max-width: 650px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text);
    font-size: 0.95rem;
}

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

/* Footer */
.footer {
    background-color: #080b12;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 380px;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-group h4 {
    color: var(--text);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.link-group a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: #475569;
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-highlights {
        justify-content: center;
    }
    .split-view {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .split-view.reversed {
        direction: ltr;
    }
    .calculator-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        padding: 2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .savings-large {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    .savings-large {
        font-size: 2.25rem;
    }
    .metric-row {
        flex-direction: column;
        gap: 1.25rem;
    }
}
