/* =========================================================
   EdgeBaz WorkDesk — App-First CSS
   ========================================================= */

:root {
  --primary: #13294B;
  --primary-dark: #0E1E39;
  --accent: #FF7A1A;
  --accent-dark: #E5690E;
  --bg-light: #F8FAFC;
  --surface: #FFFFFF;
  --text-main: #0F1A2C;
  --text-muted: #64748B;
  --border: #E2E8F0;
  
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.08);
  
  --container: 1100px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--surface);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,122,26,.2);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-ghost { background: transparent; color: var(--primary); }
.btn-lg { padding: 16px 24px; font-size: 1rem; width: 100%; }
.btn-block { width: 100%; }

/* ---------- Brand & Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 36px; width: auto; border-radius: 6px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 800; color: var(--primary); }
.brand-text small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Header ---------- */
.landing-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.landing-header .container { height: 72px; }
.landing-nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; font-weight: 600; }
.landing-nav a:not(.btn) { color: var(--primary); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.bg-light { background: var(--bg-light); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 32px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,122,26,.1); color: var(--accent-dark); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.lead { font-size: 1.15rem; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; }
.hero-media { display: flex; flex-direction: column; align-items: center; }
.hero-note { background: #fff; border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.hero-screenshot { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Grids (Features & Steps) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-size: 0.9rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: 0.9rem; margin: 0; }

/* ---------- Split Sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 28px; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: rgba(34,197,94,.15); color: #15803D; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; }

/* Mock Cards */
.mock-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-row { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--bg-light); }
.mock-row:last-child { border-bottom: 0; }
.mock-row.head { background: #F8FAFC; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.badge { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-ready { background: rgba(255,122,26,.15); color: var(--accent-dark); }
.badge-processing { background: rgba(59,130,246,.15); color: #1D4ED8; }
.badge-completed { background: rgba(34,197,94,.15); color: #15803D; }
.badge-pending { background: rgba(100,116,139,.15); color: #475569; }

.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.stat strong { font-size: 1.5rem; color: var(--primary); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; position: relative; }
.pricing-card.pro { background: var(--primary); color: #fff; border-color: var(--primary); }
.pricing-card.pro h3, .pricing-card.pro .price { color: #fff; }
.pricing-card.pro p { color: rgba(255,255,255,0.7); }
.pricing-card.pro .checklist li { color: #fff; }
.pricing-card.pro .checklist li::before { background: rgba(255,255,255,0.2); color: #fff; }
.pricing-card.pro .pill { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; margin: 0; border: 2px solid #fff; }

.pricing-head h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-head .price { font-size: 2.5rem; font-weight: 800; line-height: 1; display: flex; align-items: baseline; letter-spacing: -0.03em; margin-bottom: 12px; }
.pricing-head .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; letter-spacing: normal; }
.pricing-card.pro .price span { color: rgba(255,255,255,0.6); }
.pricing-card p { font-size: 0.95rem; margin-bottom: 24px; }
.pricing-card .checklist { margin-bottom: 32px; flex-grow: 1; gap: 10px; }
.pricing-card .checklist li { font-size: 0.95rem; }
.mt-auto { margin-top: auto; }
.pricing-card.pro .btn-primary { background: #fff; color: var(--primary); }
.pricing-card.pro .btn-primary:hover { background: #f1f5f9; }

/* ---------- Footer ---------- */
.landing-footer { background: var(--primary); color: #fff; padding: 48px 0 32px; }
.landing-footer .brand-text strong { color: #fff; }
.landing-footer .brand-text small { color: rgba(255,255,255,0.6); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 32px; align-items: center; }
.footer-links { display: flex; gap: 24px; font-size: 0.9rem; font-weight: 500; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* =========================================================
   RESPONSIVE (Tight Mobile Fixes)
   ========================================================= */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-cta { justify-content: center; }
  .hero-media { margin-top: 0; }
  
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 768px) {
  .landing-nav { display: none; }
  .nav-toggle { display: flex; }
  .landing-header .container { height: 64px; }
  
  .split { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .split.reverse > :first-child { order: 0; }
  .split .checklist { align-items: center; display: inline-flex; text-align: left; }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 560px) {
  /* Hero spacing kill */
  .hero { padding: 32px 0; }
  .hero-copy h1 { font-size: 2.1rem; margin-bottom: 12px; }
  .lead { font-size: 1rem; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-note { font-size: 0.8rem; margin-bottom: 12px; }
  
  /* Section spacing kill */
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 1.6rem; }
  .section-head p { font-size: 0.95rem; }
  
  /* Make features look like app tiles */
  .feature-grid { gap: 10px; }
  .feature-card { padding: 16px 12px; border-radius: var(--radius-sm); border: none; background: #fff; box-shadow: var(--shadow-sm); }
  .feature-img { width: 36px; height: 36px; margin-bottom: 12px; }
  .feature-card h3 { font-size: 0.9rem; margin-bottom: 4px; }
  .feature-card p { font-size: 0.75rem; line-height: 1.3; }
  
  /* Steps */
  .steps { gap: 10px; }
  .step { padding: 16px 12px; border: none; box-shadow: var(--shadow-sm); }
  .step-num { width: 28px; height: 28px; font-size: 0.8rem; margin-bottom: 12px; }
  .step h3 { font-size: 0.9rem; }
  .step p { font-size: 0.75rem; line-height: 1.3; }
  
  /* Mock stats */
  .mock-stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat span { font-size: 0.75rem; }
  .stat strong { font-size: 1.2rem; }
  
  /* Pricing card tight mobile fix */
  .pricing-card { padding: 24px 20px; }
  .pricing-head .price { font-size: 2rem; }
  .pricing-card .checklist { gap: 8px; margin-bottom: 24px; }
  .pricing-card .checklist li { font-size: 0.85rem; padding-left: 24px; }
  .pricing-card .checklist li::before { width: 16px; height: 16px; }
  .pricing-card p { font-size: 0.85rem; margin-bottom: 16px; }
  
  .brand-text strong { font-size: 0.95rem; }
  .brand-logo { height: 30px; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-text small { display: none; }
  .feature-card p, .step p { display: none; } /* Hide paragraph on very small screens to keep grid clean */
}