/* ========================================
   CatchPDF — Corporate Website
   ======================================== */

/* --- Reset & Variables --- */
:root {
  --white: #ffffff;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --gray-950: #0B0F1A;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --fuchsia-500: #D946EF;
  --cyan-400: #22D3EE;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  overflow-x: hidden;
}

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

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; transition: all .35s ease;
}
.nav:not(.scrolled) .nav-logo { color: rgba(255,255,255,.92); }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.68); }
.nav:not(.scrolled) .nav-links a:hover { color: rgba(255,255,255,.92); }
.nav:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.92) !important;
}
.nav:not(.scrolled) .nav-cta:hover {
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.26) !important;
}
.nav:not(.scrolled) .nav-toggle span { background: rgba(255,255,255,.88); }
.nav.scrolled {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 var(--gray-200);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; color: var(--gray-900);
  text-decoration: none;
}
.nav-logo-img {
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.nav-logo-img--sm {
  border-radius: 6px;
}
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600));
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon--sm { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--gray-500); font-weight: 500; font-size: 14px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gray-900); }
.nav-cta {
  background: var(--gray-900) !important; color: var(--white) !important;
  padding: 9px 22px !important; border-radius: var(--radius-full) !important;
  font-weight: 600 !important; font-size: 13px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--violet-600) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: all .3s; }
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}
.mobile-menu {
  display: none; flex-direction: column; padding: 12px 24px 24px; gap: 12px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
}
.mobile-menu a { text-decoration: none; color: var(--gray-800); font-weight: 500; font-size: 15px; padding: 8px 0; }
.mobile-menu.open { display: flex; }
@media(max-width:768px){
  .nav-links{display:none}
  .nav-toggle{display:flex}
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 15px; padding: 0 8px; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn--lg { width: 100%; max-width: 260px; justify-content: center; }
  .hero-metrics { flex-wrap: wrap; gap: 16px; margin-top: 40px; }
  .metric strong { font-size: 20px; }
  .metric span { font-size: 11px; }
  .metric-sep { display: none; }
  .pill { font-size: 12px; padding: 6px 14px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }
  .cta-box { padding: 48px 20px; }
  .cta-box h2 { font-size: 22px; }
  .cta-box p { font-size: 14px; }
  .subscription-card { padding: 24px 16px; }
  .subscription-left h3 { font-size: 20px; }
  .subscription-price { font-size: 36px; }
  .price-amount { font-size: 38px; }
  .price-tag { font-size: 20px; }
  .usage-table { padding: 20px 12px; }
  .usage-grid { grid-template-columns: 1fr; }
  .chips { gap: 8px; }
  .chip { padding: 10px 16px; font-size: 13px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  font-family: inherit; transition: all .25s;
}
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--primary {
  background: var(--gray-900); color: var(--white);
}
.btn--primary:hover { background: var(--violet-600); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,237,.25); }
.btn--outline {
  background: transparent; color: var(--gray-900);
  border: 1.5px solid var(--gray-300);
}
.btn--outline:hover { border-color: var(--gray-900); }
.btn--white { background: var(--white); color: var(--gray-900); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,.25); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
  background: var(--gray-950);
  padding: 120px 0 80px;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5;
  pointer-events: none;
}
.hero-glow--1 {
  width: 600px; height: 600px; top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(139,92,246,.4), transparent 70%);
  max-width: 100vw;
}
.hero-glow--2 {
  width: 500px; height: 500px; bottom: -10%; left: -5%;
  background: radial-gradient(circle, rgba(6,182,212,.25), transparent 70%);
  max-width: 100vw;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black, transparent);
}
.hero-content { position: relative; z-index: 1; }
.pill {
  display: inline-block; padding: 7px 18px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.04); backdrop-filter: blur(10px);
  margin-bottom: 28px; letter-spacing: .2px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 20px; letter-spacing: -.03em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--violet-400), var(--fuchsia-500), var(--cyan-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,.55); max-width: 520px;
  margin: 0 auto 36px; line-height: 1.7; word-wrap: break-word;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn--primary { background: var(--white); color: var(--gray-900); }
.hero-buttons .btn--primary:hover { background: var(--violet-400); color: var(--white); }
.hero-buttons .btn--outline { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.2); }
.hero-buttons .btn--outline:hover { border-color: rgba(255,255,255,.5); color: var(--white); }

.hero-metrics {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-top: 56px;
}
.metric { display: flex; flex-direction: column; align-items: center; }
.metric strong { font-size: 26px; font-weight: 800; color: var(--white); }
.metric span { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }
.metric-sep { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

/* --- Sections --- */
.section { padding: 100px 0; }
.section--light { background: var(--white); }
.section--dark { background: var(--gray-950); }
.section--accent {
  background: linear-gradient(160deg, var(--gray-950) 0%, #1a1040 100%);
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 12px; color: var(--gray-900);
}
.section-head p { font-size: 16px; color: var(--gray-500); max-width: 460px; margin: 0 auto; }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: rgba(255,255,255,.5); }
.label {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--violet-600); background: rgba(167,139,250,.08);
  margin-bottom: 16px;
}
.label--dark { color: var(--violet-400); background: rgba(167,139,250,.12); }

/* --- Cards (Features) --- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media(max-width:1024px){ .cards--3{grid-template-columns:repeat(2,1fr)} }
@media(max-width:640px){ .cards--3{grid-template-columns:1fr} }

.card {
  padding: 32px; border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200); background: var(--white);
  transition: all .3s;
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--c); background: var(--cbg);
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.card p { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* --- Tools (light section) --- */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media(max-width:640px){ .tools-grid{grid-template-columns:1fr} }
.tool {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: var(--gray-50);
  transition: all .3s;
}
.tool:hover { background: var(--gray-100); border-color: var(--gray-300); }
.tool-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--c); box-shadow: 0 0 12px var(--c);
}
.tool strong { font-size: 15px; font-weight: 600; color: var(--gray-900); display: block; }
.tool span { font-size: 13px; color: var(--gray-500); margin-top: 2px; display: block; }

/* --- Chips (Extras) --- */
.chips {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-full);
  border: 1px solid var(--gray-200); background: var(--gray-50);
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  transition: all .2s;
}
.chip:hover { border-color: var(--violet-400); background: rgba(167,139,250,.06); }
.chip span { font-size: 18px; }

/* --- Pricing --- */
.pricing-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 48px;
}
@media(max-width:768px){ .pricing-row{grid-template-columns:1fr; max-width:340px; margin:0 auto 48px} }
.price-card {
  text-align: center; padding: 40px 28px; border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  transition: all .3s;
}
.price-card:hover { border-color: rgba(255,255,255,.15); transform: translateY(-3px); }
.price-card--pop {
  border-color: var(--violet-500); position: relative;
  background: rgba(139,92,246,.08);
  box-shadow: 0 0 60px rgba(139,92,246,.15);
}
.pop-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--violet-500), var(--fuchsia-500));
  color: var(--white); padding: 5px 18px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.price-amount { font-size: 52px; font-weight: 900; color: var(--white); line-height: 1; }
.price-unit { font-size: 14px; color: rgba(255,255,255,.4); font-weight: 500; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .5px; }
.price-tag { font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.price-per { font-size: 13px; color: rgba(255,255,255,.35); }

.usage-table {
  max-width: 560px; margin: 0 auto;
  padding: 28px; border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
}
.usage-table h3 {
  font-size: 15px; font-weight: 700; color: var(--white);
  text-align: center; margin-bottom: 16px;
}
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.usage-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px; color: rgba(255,255,255,.5);
}
.usage-row:last-child { border-bottom: none; }
.usage-row strong {
  color: var(--violet-400); font-weight: 700; font-size: 14px;
}
.usage-row--highlight {
  grid-column: unset;
  color: rgba(255,255,255,.5);
}
.usage-row--highlight strong { color: var(--violet-400); }
.usage-note {
  text-align: center; margin-top: 18px;
  font-size: 13px; color: rgba(255,255,255,.5);
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 14px;
}
.usage-note strong { color: rgba(255,255,255,.5); }

/* --- Subscription Card --- */
.subscription-card {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(139,92,246,.08));
  border: 2px solid rgba(99,102,241,.3);
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.subscription-badge {
  position: absolute;
  top: 0; right: 32px;
  background: var(--violet-500);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
}
.subscription-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.subscription-left h3 {
  font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px;
}
.subscription-left p {
  font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 16px;
}
.subscription-features {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.subscription-features li {
  font-size: 13px; color: rgba(255,255,255,.7); font-weight: 500;
  padding-left: 20px;
  position: relative;
}
.subscription-features li::before {
  content: '✓'; position: absolute; left: 0; color: #10B981; font-weight: 700;
}
.subscription-right { text-align: center; flex-shrink: 0; }
.subscription-price {
  font-size: 48px; font-weight: 900; color: var(--white);
  line-height: 1;
}
.subscription-period {
  font-size: 14px; color: rgba(255,255,255,.5); font-weight: 500;
}
.pricing-divider {
  text-align: center; margin: 32px 0; position: relative;
}
.pricing-divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,.12);
}
.pricing-divider span {
  position: relative; background: var(--gray-950);
  padding: 0 20px; font-size: 13px; color: rgba(255,255,255,.4);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* --- Glass Card for AI --- */
.card--glass {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(12px);
}
.card--glass h3 { color: var(--white) !important; }
.card--glass p { color: rgba(255,255,255,.55) !important; }

@media(max-width:640px){
  .subscription-inner { flex-direction: column; text-align: center; }
  .subscription-features { grid-template-columns: 1fr; }
  .subscription-right { margin-top: 16px; }
}

/* --- CTA Box --- */
.cta-box {
  text-align: center; padding: 72px 40px; border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--gray-950), #1a1040);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%; opacity: .3;
  background: radial-gradient(circle, var(--violet-500), transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--white);
  margin-bottom: 12px; position: relative;
}
.cta-box p {
  font-size: 16px; color: rgba(255,255,255,.55); margin-bottom: 32px; position: relative;
}
.cta-box .hero-buttons { position: relative; }

/* --- What's New --- */
.changelog { list-style: none; padding: 0; margin: 0; max-width: 700px; margin: 0 auto; }
.changelog-item {
  position: relative; padding: 0 0 40px 36px;
  border-left: 2px solid var(--gray-200);
}
.changelog-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.changelog-item::before {
  content: ''; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-500), var(--fuchsia-500));
  box-shadow: 0 0 12px rgba(139,92,246,.35);
}
.changelog-version {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.changelog-version .version-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; color: var(--violet-600);
  background: rgba(167,139,250,.1); letter-spacing: .3px;
}
.changelog-version .version-date {
  font-size: 12px; color: var(--gray-400); font-weight: 500;
}
.changelog-item h4 {
  font-size: 16px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 10px;
}
.changelog-changes {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.changelog-changes li {
  font-size: 14px; color: var(--gray-600); line-height: 1.6;
  padding-left: 22px; position: relative;
}
.changelog-changes li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300);
}
.changelog-changes li.change--new::before { background: #10B981; }
.changelog-changes li.change--fix::before { background: #3B82F6; }
.changelog-changes li.change--improve::before { background: #F59E0B; }
.changelog-tag {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-right: 6px;
}
.changelog-tag--new { color: #10B981; background: rgba(16,185,129,.1); }
.changelog-tag--fix { color: #3B82F6; background: rgba(59,130,246,.1); }
.changelog-tag--improve { color: #F59E0B; background: rgba(245,158,11,.1); }

/* --- Footer --- */
.footer {
  padding: 36px 0; border-top: 1px solid var(--gray-200);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.footer-left .nav-logo { font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  text-decoration: none; color: var(--gray-500); font-size: 13px;
  font-weight: 500; transition: color .2s;
}
.footer-links a:hover { color: var(--gray-900); }
.footer-right { font-size: 13px; color: var(--gray-400); }

@media(max-width:768px){
  .footer-inner { flex-direction: column; text-align: center; }
}
