/* PDFLab Modern Cloudflare Pages Stylesheet */
:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-card-hover: #27354f;
  --border: #334155;
  --border-focus: #3b82f6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #38bdf8;
  --accent-green: #34d399;
  --accent-amber: #fbbf24;
  --accent-rose: #f87171;
  --accent-purple: #c084fc;
  --accent-cyan: #22d3ee;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --support-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding: 16px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand img {
  height: 38px;
  width: 38px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.nav-support {
  color: #f472b6;
  font-weight: 600;
}

.nav-links a.nav-support:hover {
  color: #fbcfe8;
}

.nav-btn {
  background: var(--primary-gradient);
  color: white !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, rgba(37, 99, 235, 0.1) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-gradient);
  color: white;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.hero-pills {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-pills span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App Showcase Mockup */
.mockup-container {
  margin: 40px auto 70px;
  max-width: 1100px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window-header {
  background: #1e293b;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 12px;
  font-weight: 500;
}

.window-body {
  padding: 14px;
  background: #0d121f;
  text-align: center;
}

.window-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Feature Categories Grid */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.icon-green { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
.icon-amber { background: rgba(251, 191, 36, 0.15); color: var(--accent-amber); }
.icon-rose { background: rgba(248, 113, 113, 0.15); color: var(--accent-rose); }
.icon-purple { background: rgba(192, 132, 252, 0.15); color: var(--accent-purple); }

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-card ul {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  padding-top: 16px;
}

.feature-card ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card ul li::before {
  content: "✔";
  color: var(--accent-green);
  font-weight: bold;
}

/* Privacy Banner */
.privacy-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 50px 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.privacy-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.privacy-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 10px;
}

.privacy-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Support Development Card (Option 1) */
.support-section {
  padding: 90px 0 70px;
  text-align: center;
}

.support-card {
  max-width: 880px;
  margin: 0 auto;
  background: radial-gradient(ellipse at top, #241b35 0%, #171d2b 100%);
  border: 2px solid #a855f7;
  border-radius: var(--radius-lg);
  padding: 50px 36px;
  box-shadow: 0 20px 50px -10px rgba(168, 85, 247, 0.25);
  position: relative;
  overflow: hidden;
}

.support-heart {
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: pulse 2.2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.support-card h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.support-card .support-lead {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.support-highlight {
  display: inline-block;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.45);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f472b6;
  margin-bottom: 34px;
}

.support-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-coffee {
  background: #ffdd00;
  color: #000000;
}

.btn-coffee:hover {
  background: #facc15;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.4);
}

.btn-kofi {
  background: #13c3ff;
  color: #ffffff;
}

.btn-kofi:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 195, 255, 0.4);
}

.btn-paypal {
  background: #0070ba;
  color: #ffffff;
}

.btn-paypal:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 112, 186, 0.4);
}

.btn-github {
  background: #24292f;
  color: #ffffff;
  border: 1px solid #4b5563;
}

.btn-github:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(55, 65, 81, 0.4);
}

.support-footnote {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  text-align: left;
}

.faq-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #080b12;
  padding: 50px 0 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .nav-links { display: none; }
  .privacy-banner { flex-direction: column; text-align: center; }
  .support-card { padding: 36px 20px; }
  .footer-top, .footer-bottom { flex-direction: column; text-align: center; }
}
