/* =============================================================
   PDF Blue Security — public website
   Brand palette: navy #0B1A40, royal blue #1E5FE0, light blue
   #3B82F6, cyan accent #22D3EE. Typography: Inter (Google Fonts).
   ============================================================= */

:root {
  --navy: #0B1A40;
  --royal: #1E5FE0;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-card: #FFFFFF;
  --line: #E2E8F0;
  --text: #0B1A40;
  --muted: #41617f;
  --soft: #64748B;
  --warn-bg: #FEF3C7;
  --warn-border: #F59E0B;
  --warn-text: #78350F;
  --success-bg: #DCFCE7;
  --success-border: #16A34A;
  --success-text: #14532D;
  --error-bg: #FEE2E2;
  --error-border: #DC2626;
  --error-text: #7F1D1D;
  --shadow-sm: 0 1px 2px rgba(11, 26, 64, 0.05);
  --shadow-md: 0 4px 14px rgba(11, 26, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 26, 64, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --container: 1180px;
  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  --gradient-light: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.brand img { height: 44px; width: auto; display: block; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--royal); text-decoration: none; }
.nav .btn { font-weight: 600; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--royal);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(30, 95, 224, 0.35);
}
.btn--primary:hover { background: #1A52C7; box-shadow: 0 8px 20px rgba(30, 95, 224, 0.45); }
.btn--dark {
  background: var(--navy);
  color: #FFFFFF;
}
.btn--dark:hover { background: #0E2358; }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(50% 70% at 10% 60%, rgba(30, 95, 224, 0.10), transparent 70%),
    var(--bg-soft);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(30, 95, 224, 0.08);
  color: var(--royal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--royal); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 56ch;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__art img { max-width: 100%; }

/* Decorative pixel motif */
.pixels {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
}
.pixels span {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--blue);
  margin: 4px;
  border-radius: 2px;
  opacity: 0.55;
}

/* ===== Sections ===== */
.section {
  padding: 88px 0;
}
.section--soft { background: var(--bg-soft); }
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section__eyebrow {
  display: inline-block;
  color: var(--royal);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__head p { font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 95, 224, 0.25);
}
.feature-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 95, 224, 0.10);
  color: var(--royal);
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 95, 224, 0.25);
}
.price-card--popular {
  border: 2px solid var(--royal);
  box-shadow: 0 14px 40px rgba(30, 95, 224, 0.18);
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--royal);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.price-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.price-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 18px;
}
.price-card .price__big {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.price-card .price__per {
  font-size: 0.85rem;
  color: var(--soft);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  flex-grow: 1;
}
.price-card li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-card li svg { flex: none; margin-top: 3px; color: var(--royal); }
.price-card li.lim {
  font-weight: 600;
  color: var(--navy);
}
.pricing__note {
  text-align: center;
  margin-top: 32px;
  color: var(--soft);
  font-size: 0.92rem;
}

/* ===== Forms ===== */
.form {
  max-width: 480px;
  margin: 0 auto;
}
.form .field {
  display: block;
  margin-bottom: 18px;
}
.form .field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(30, 95, 224, 0.18);
}
.form .field--hint {
  font-size: 0.82rem;
  color: var(--soft);
  margin-top: 6px;
}
.form .form__actions { margin-top: 26px; }

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 22px;
  display: none;
}
.alert--show { display: block; }
.alert--error { background: var(--error-bg); border: 1px solid var(--error-border); color: var(--error-text); }
.alert--success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); }
.alert--info { background: rgba(30, 95, 224, 0.08); border: 1px solid rgba(30, 95, 224, 0.25); color: var(--navy); }
.alert--warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); }

/* ===== Cards & Boxes ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card--center { text-align: center; }
.card__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  background: var(--gradient);
  color: #FFFFFF;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 36px; height: 36px; }

/* ===== Download cards ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.download-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  background: rgba(30, 95, 224, 0.10);
  color: var(--royal);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.download-card h3 { margin-bottom: 6px; font-size: 1.25rem; }
.download-card p { margin-bottom: 22px; font-size: 0.96rem; }

/* ===== Trust strip ===== */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__item {
  text-align: center;
}
.trust__item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--royal);
  margin-bottom: 4px;
}
.trust__item .lbl {
  font-size: 0.85rem;
  color: var(--soft);
  letter-spacing: 0.5px;
}

/* ===== Legal / long-text pages ===== */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 6px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #C7D2FE;
  padding: 60px 0 36px;
  margin-top: 80px;
}
.site-footer a { color: #DBEAFE; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand {
  display: inline-block;
  background: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  line-height: 0;
}
.footer-brand .brand img {
  height: 52px;
  display: block;
}
.footer-brand p { color: #94A3B8; margin-top: 14px; max-width: 32ch; }
.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #94A3B8;
  font-size: 0.88rem;
}

/* ===== Hero CTA blocks for sub-pages ===== */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(40% 60% at 50% 0%, rgba(30, 95, 224, 0.08), transparent 70%),
    var(--bg-soft);
}
.page-hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 16px auto 0;
}

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0;
         background: #FFFFFF; flex-direction: column; align-items: stretch;
         gap: 0; padding: 14px 24px; border-bottom: 1px solid var(--line);
         box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 50px; }
}
