/**
 * PDFEditor.pk Critical CSS
 * Minimal above-the-fold styles for fast first paint.
 * Covers: header/navbar, hero section, basic typography.
 * Keep this file under 5KB.
 */

/* Base typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  color: #111827;
}

a {
  color: #2563EB;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header / Navbar */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 997;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.header .logo img {
  max-height: 40px;
  margin-right: 5px;
}

/* Hero section */
.hero {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 30%, #BFDBFE 60%, #EDE9FE 100%);
  padding: 120px 0 60px 0;
  overflow: hidden;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: #4b5563;
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Badge */
.badge-popular {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  color: #fff;
}

/* Container (minimal bootstrap-like) */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Dark mode critical overrides */
[data-theme="dark"] body {
  background-color: #0f172a;
  color: #f1f5f9;
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 30%, #1e293b 60%, #0f172a 100%);
}

[data-theme="dark"] .hero h1 {
  color: #f1f5f9;
}

/* Prevent layout shift for text content */
.text-center {
  text-align: center;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }
  .hero {
    padding: 100px 0 40px 0;
  }
}
