/* Prolock Security Solutions — design tokens & shared styles */

:root {
  --navy: #1e4a7a;
  --navy-deep: #143557;
  --navy-soft: #3a6da0;
  --navy-tint: #d6e2ef;
  --navy-wash: #eef4fa;

  --ink: #0d0d1f;
  --ink-2: #2a2a3a;
  --muted: #6b6b7a;
  --line: #e5e5ed;

  --paper: #faf9f6;
  --paper-2: #f4f2ec;
  --white: #ffffff;

  --accent: oklch(0.78 0.12 75); /* warm amber accent */

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 4px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 9vw, 128px) 0; }

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: transparent;
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name { font-weight: 500; }
.brand-name em { font-style: normal; color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--navy);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--paper-2); }

.arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
}
.btn-primary .arrow { background: rgba(255,255,255,0.18); }
.btn-ghost .arrow { background: var(--navy-tint); color: var(--navy); }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Stats */
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* Image placeholder (striped) */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,139,0.04) 0,
      rgba(0,0,139,0.04) 1px,
      transparent 1px,
      transparent 10px),
    var(--navy-wash);
  border: 1px solid var(--navy-tint);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph-dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0,
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 10px),
    var(--navy);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
}
.ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 4px;
}
.ph-dark .ph-label { background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.8); }

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 {
  color: white;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: white; }
.footer .brand { color: white; margin-bottom: 16px; }
.footer .brand-name em { color: white; }
.footer .brand-mark { background: white; border-radius: 8px; padding: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
}

/* Newsletter */
.newsletter {
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter-form {
  display: flex;
  background: white;
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.newsletter-form button {
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-7px) rotate(-45deg); }

/* Responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 50;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    padding: 14px 4px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .newsletter { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 64px; }
  .nav-links { inset: 64px 0 auto 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 56px 0 32px; }
  .display, h1.display { font-size: clamp(36px, 9vw, 52px) !important; line-height: 1.05; }
  h2.display { font-size: clamp(32px, 8vw, 44px) !important; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta-row .btn { width: 100%; text-align: center; justify-content: center; }
}

/* Subtle reveal for content */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .7s ease both; }
.rise-2 { animation: rise .7s ease .1s both; }
.rise-3 { animation: rise .7s ease .2s both; }
.rise-4 { animation: rise .7s ease .3s both; }
