/* ============================================
   FrozenPro - Landing Page Styles
   ============================================ */
:root {
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --darker: #020617;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', 'Tahoma', 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon { font-size: 1.8rem; }
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.5);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--text);
    color: white;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-xl { padding: 20px 40px; font-size: 1.15rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-login {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-login:hover { background: var(--primary-dark); }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f0f9ff 0%, var(--bg) 100%);
    overflow: hidden;
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.badge {
    display: inline-block;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--darker);
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Mock */
.dashboard-mock {
    background: var(--darker);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-1deg);
    transition: transform 0.3s;
}
.dashboard-mock:hover { transform: rotate(0deg); }
.mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #475569;
}
.mock-dot:nth-child(1) { background: #ef4444; }
.mock-dot:nth-child(2) { background: #f59e0b; }
.mock-dot:nth-child(3) { background: #10b981; }
.mock-title {
    margin-right: auto;
    margin-left: 16px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}
.mock-body { padding: 16px 0; }
.kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 10px;
    color: white;
    border: 1px solid rgba(8, 145, 178, 0.3);
}
.kpi-card.green { border-color: rgba(16, 185, 129, 0.3); }
.kpi-card.blue { border-color: rgba(59, 130, 246, 0.3); }
.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}
.kpi-value small { font-size: 0.8rem; opacity: 0.7; }
.kpi-label {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 4px;
}
.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}
.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0;
    animation: grow 1s ease-out;
}
@keyframes grow {
    from { height: 0 !important; }
}

/* Features */
.features {
    padding: 100px 0;
    background: white;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-badge {
    display: inline-block;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--darker);
}
.section-header p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg);
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--darker);
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Workflow */
.workflow {
    padding: 100px 0;
    background: var(--bg);
}
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    position: relative;
}
.step {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}
.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 16px;
}
.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--darker);
}
.step-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Demo CTA */
.demo {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.demo-box {
    text-align: center;
}
.demo-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.demo-box p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.9;
}
.demo-box .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.demo-box .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--darker);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.footer p { margin: 4px 0; }
.footer-sub { color: #94a3b8; font-size: 0.9rem; }

/* Login Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(8px);
}
.modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.modal-close:hover { color: var(--danger); }

.login-modal { padding: 32px; }
.login-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-header .logo { justify-content: center; }
.login-header p { color: var(--text-light); margin-top: 8px; }

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.demo-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.demo-account:hover {
    border-color: var(--primary);
    transform: translateX(-4px);
}
.da-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}
.da-info { flex: 1; }
.da-role { font-weight: 700; color: var(--darker); }
.da-creds { color: var(--text-light); font-size: 0.85rem; font-family: monospace; }

.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
}
.divider::before, .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}
.divider::before { right: 0; }
.divider::after { left: 0; }
.divider span {
    background: white;
    padding: 0 12px;
    position: relative;
}

.login-form .form-group {
    margin-bottom: 16px;
    text-align: right;
}
.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.login-form input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.login-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Mobile */
@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.8rem; }
    .demo-box h2 { font-size: 1.8rem; }
    .nav-links a { display: none; }
}
