* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --dark-1: #070b14;
  --dark-2: #0f172a;
  --dark-3: #172554;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Top Live Notice Ticker */
.top-ticker {
  background: linear-gradient(90deg, #070b14 0%, #172554 50%, #070b14 100%);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  padding: 8px 0;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: tickerScroll 26s linear infinite;
}

.ticker-track span {
  margin-right: 44px;
  color: #f8fafc;
}

.ticker-track strong {
  color: #38bdf8;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Sticky Pro Navbar */
header {
  background: rgba(11, 18, 33, 0.96);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.28);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  flex-shrink: 0;
}

a.brand-title {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  display: block;
}

.brand-sub {
  font-size: 0.73rem;
  color: #94a3b8;
  display: block;
}

.badge-pro {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.45);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 18px;
}

/* SaaS Hero Banner */
.hero-saas {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.24), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(37, 99, 235, 0.32), transparent 48%),
    linear-gradient(135deg, var(--dark-1) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 34px 28px;
  margin-bottom: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.22);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-saas h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  max-width: 780px;
}

.hero-saas h1 span {
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-saas p {
  color: #cbd5e1;
  font-size: 0.96rem;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 18px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
}

.stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.stat-lbl {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Section Heading + Search Bar */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.section-head p {
  font-size: 0.86rem;
  color: var(--muted);
}

.search-wrap {
  min-width: 260px;
  flex: 0 1 320px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Colorful Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.tool-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

/* Distinct Vibrant Theme per Card */
.tool-card.theme-blue {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}
.tool-card.theme-blue::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.tool-card.theme-blue .tag-pill { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tool-card.theme-blue .card-cta { color: #1d4ed8; }

.tool-card.theme-violet {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  border-color: #ddd6fe;
}
.tool-card.theme-violet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}
.tool-card.theme-violet .tag-pill { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
.tool-card.theme-violet .card-cta { color: #6d28d9; }

.tool-card.theme-rose {
  background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
  border-color: #fecdd3;
}
.tool-card.theme-rose::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #e11d48, #f97316);
}
.tool-card.theme-rose .tag-pill { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
.tool-card.theme-rose .card-cta { color: #be123c; }

.tool-card.theme-emerald {
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
  border-color: #a7f3d0;
}
.tool-card.theme-emerald::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #059669, #0ea5e9);
}
.tool-card.theme-emerald .tag-pill { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.tool-card.theme-emerald .card-cta { color: #047857; }

/* Compact Visual Preview Thumbnail inside Card */
.tool-thumb {
  height: 82px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

.mini-id-card {
  width: 78px;
  height: 50px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini-id-top {
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f97316, #e2e8f0, #16a34a);
}
.mini-id-body {
  display: flex;
  gap: 5px;
  align-items: center;
}
.mini-id-avatar {
  width: 16px;
  height: 20px;
  border-radius: 2px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.mini-id-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mini-id-lines span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #94a3b8;
}
.mini-id-lines span:last-child {
  width: 70%;
  background: #1d4ed8;
}

.mini-resize-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-photo-chip {
  width: 38px;
  height: 46px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ede9fe, #c4b5fd);
  border: 1px solid #8b5cf6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mini-photo-head {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5b21b6;
  position: relative;
  bottom: 16px;
}
.mini-kb-tag {
  background: #4c1d95;
  color: #fde047;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 6px;
}

.mini-pdf-stack {
  position: relative;
  width: 56px;
  height: 54px;
}
.mini-pdf-sheet {
  position: absolute;
  width: 44px;
  height: 50px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #fda4af;
}
.mini-pdf-sheet.back {
  top: 0; left: 10px;
  background: #fff1f2;
}
.mini-pdf-sheet.front {
  top: 4px; left: 2px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini-pdf-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  align-self: flex-start;
}
.mini-pdf-line {
  height: 2.5px;
  background: #cbd5e1;
  border-radius: 2px;
}

.mini-passport-grid {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 4px;
}
.mini-pass-cell {
  width: 22px;
  height: 27px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d1fae5 0%, #6ee7b7 100%);
  border: 1px solid #059669;
  position: relative;
}
.mini-pass-cell::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #065f46;
  top: 5px;
  left: 6px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.tag-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.tool-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.tool-card p {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.87rem;
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #ffffff;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.36);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.btn-rose {
  background: linear-gradient(135deg, #e11d48, #be123c);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Trust Strip */
.trust-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.trust-item h4 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.83rem;
  color: var(--muted);
}

/* Tool Pages Shared Styles */
.tool-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.tool-banner h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.tool-banner p {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.tool-box {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #1e293b;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--surface-2);
  color: var(--ink);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

footer {
  background: #0b1221;
  color: #94a3b8;
  text-align: center;
  padding: 24px 16px;
  margin-top: 32px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

footer strong {
  color: #f8fafc;
}

@media print {
  .top-ticker,
  header,
  .tool-banner,
  footer {
    display: none !important;
  }
}