/* ═══════════════════════════════════════════════════════════
   WorkHub Landing Page — CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --brand-dark: #0f172a;
    --brand-primary: #2563eb;
    --brand-primary-light: #3b82f6;
    --brand-accent: #60a5fa;
    --brand-glow: rgba(37, 99, 235, 0.15);
    --surface: #ffffff;
    --surface-dark: #0f172a;
    --surface-darker: #020617;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #e2e8f0;
    --border: #e2e8f0;
    --border-dark: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: var(--surface-dark); color: var(--text-light); }

/* ── Navigation ── */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: var(--transition); }
#nav.scrolled { background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,0.05); padding: 10px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--brand-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 18px; }
.logo-text { font-size: 20px; font-weight: 700; color: white; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: white; }
.nav-cta { background: var(--brand-primary) !important; color: white !important; padding: 8px 20px !important; border-radius: 8px; font-size: 14px !important; }
.nav-cta:hover { background: var(--brand-primary-light) !important; }
.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-menu span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ── Hero ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.75) 50%, rgba(15,23,42,0.85) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; }
.coming-soon-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(37, 99, 235, 0.15); border: 1px solid rgba(37, 99, 235, 0.3); padding: 8px 20px; border-radius: 100px; color: var(--brand-accent); font-size: 14px; font-weight: 600; margin-bottom: 32px; letter-spacing: 0.5px; }
.pulse { width: 8px; height: 8px; background: var(--brand-accent); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
.hero-content h1 { font-size: clamp(36px, 5.5vw, 72px); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em; }
.gradient-text { background: linear-gradient(135deg, var(--brand-accent), #a78bfa, var(--brand-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-family: inherit; }
.btn-primary { background: var(--brand-primary); color: white; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { background: var(--brand-primary-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }
.btn-ghost { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: white; }
.btn-full { width: 100%; }
.hero-stats { display: flex; align-items: center; gap: 40px; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: white; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.12); }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.header-light p { color: rgba(255,255,255,0.6); }
.section-tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--brand-primary); margin-bottom: 16px; }
.tag-light { color: var(--brand-accent); }

/* ── Problem Section ── */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.problem-card:hover { border-color: var(--brand-accent); box-shadow: var(--shadow); }
.problem-icon { font-size: 28px; margin-bottom: 12px; }
.problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.problem-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.problem-cost { font-size: 14px; font-weight: 700; color: var(--danger); }
.problem-cost.total { font-size: 18px; color: var(--danger); }
.problem-card-total { background: #fef2f2; border-color: #fecaca; }

/* ── Solution Section ── */
.solution-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.solution-text h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 20px; color: white; letter-spacing: -0.02em; }
.solution-text p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; }
.solution-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price-from { font-size: 16px; color: rgba(255,255,255,0.5); font-weight: 500; }
.price-amount { font-size: 56px; font-weight: 800; color: white; letter-spacing: -0.03em; }
.price-period { font-size: 18px; color: rgba(255,255,255,0.5); }
.price-note { font-size: 14px; color: rgba(255,255,255,0.4); }
.solution-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.solution-image img { width: 100%; }

/* ── Features Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; transition: var(--transition); }
.feature-card:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; stroke: white; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.feature-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 100px; background: var(--brand-glow); color: var(--brand-primary); }

/* ── Mobile Section ── */
.mobile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mobile-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 32px; text-align: center; transition: var(--transition); }
.mobile-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.mobile-icon { font-size: 36px; margin-bottom: 16px; }
.mobile-card h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.mobile-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── Comparison Table ── */
.comparison-table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th { background: var(--surface-dark); color: white; padding: 16px 20px; text-align: left; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.comparison-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: #f8fafc; }
.highlight-col { background: rgba(37, 99, 235, 0.06) !important; }
.comparison-table th.highlight-col { background: var(--brand-primary) !important; }
.scope-row td { font-weight: 700; background: #f1f5f9 !important; }
.scope-row .highlight-col { background: rgba(37, 99, 235, 0.12) !important; color: var(--brand-primary); font-size: 16px; }
.yes { color: var(--success); font-weight: 600; }
.no { color: var(--danger); }
.warn { color: var(--warning); font-weight: 500; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: var(--transition); position: relative; }
.pricing-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); }
.pricing-featured { background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.3); transform: scale(1.03); }
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: white; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 20px; border-radius: 100px; }
.pricing-tier { font-size: 18px; font-weight: 700; color: white; margin-bottom: 16px; }
.pricing-price { margin-bottom: 4px; }
.pricing-price .currency { font-size: 24px; font-weight: 700; color: rgba(255,255,255,0.6); vertical-align: top; }
.pricing-price .amount { font-size: 56px; font-weight: 800; color: white; letter-spacing: -0.03em; }
.pricing-price .period { font-size: 16px; color: rgba(255,255,255,0.4); }
.pricing-annual { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.05); position: relative; padding-left: 24px; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ── Contact / CTA ── */
.cta-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cta-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.cta-image img { width: 100%; }
.cta-content h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-content p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.cta-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--surface); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 4px var(--brand-glow); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.form-success { text-align: center; padding: 40px 20px; }
.success-icon { width: 64px; height: 64px; background: var(--success); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; margin: 0 auto 20px; }
.form-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ── Footer ── */
#footer { background: var(--surface-darker); color: rgba(255,255,255,0.5); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 8px; }
.footer-links-group h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links-group a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); padding: 4px 0; transition: var(--transition); }
.footer-links-group a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .hero-content { padding: 100px 24px 60px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 48px; height: 1px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .problem-grid { grid-template-columns: 1fr; }
    .solution-layout { grid-template-columns: 1fr; gap: 40px; }
    .solution-image { order: -1; }
    .features-grid { grid-template-columns: 1fr; }
    .mobile-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-featured { transform: none; }
    .pricing-featured:hover { transform: translateY(-4px); }
    .cta-layout { grid-template-columns: 1fr; gap: 40px; }
    .cta-image { display: none; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .comparison-table { font-size: 12px; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }
}
