/* LockIt Security — shared design tokens & base styles */
/* Font loading: linked via <link> tags in each page's <head>, not @import, so the
   browser can fetch fonts in parallel with this stylesheet instead of serially after it. */

:root {
  --bg: #080B12;
  --surface: #0F1420;
  --surface-2: #161C2D;
  --accent: #00C2A8;
  --accent-glow: rgba(0, 194, 168, 0.15);
  --text: #F0F4FF;
  --text-2: #7A8BA8;
  --danger: #FF4D6D;
  --border: rgba(255, 255, 255, 0.06);
  --shadow-float: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { line-height: 1.7; color: var(--text-2); margin: 0; }

code, .mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; text-decoration: none; }

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.surface-float {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
}

.glass {
  backdrop-filter: blur(12px);
  background: rgba(15, 20, 32, 0.6);
  border: 1px solid var(--border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), opacity 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-primary:active { transform: scale(0.97); transition-duration: 0.12s; transition-delay: 0s; }
.btn-primary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}
.btn-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.btn-secondary:active { transform: scale(0.97); transition-duration: 0.12s; transition-delay: 0s; }
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(8, 11, 18, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo svg { color: var(--accent); flex-shrink: 0; }
.logo:hover { opacity: 0.85; transition: opacity 0.2s ease; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); align-items: center; }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-open { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-inner { position: relative; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-2);
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.section { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-float);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,194,168,0.3); }

.icon-chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-chip::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--accent-glow);
  filter: blur(14px);
  z-index: -1;
  border-radius: inherit;
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { flex: 1; min-width: 140px; padding: 24px 16px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
.stat .num { font-family: 'Space Grotesk', sans-serif; color: var(--accent); font-size: 28px; font-weight: 600; }
.stat .stat-label { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

@media (max-width: 480px) {
  .stat-strip { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

/* 4-stat strips (e.g. product pages) need a wider stacking breakpoint than 3-stat
   ones: at 4 x 140px min-width, they orphan the 4th stat onto its own row well
   before 480px. :has() scopes this to strips with a 4th child only. */
@media (max-width: 640px) {
  .stat-strip:has(.stat:nth-child(4)) { flex-direction: column; }
  .stat-strip:has(.stat:nth-child(4)) .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-strip:has(.stat:nth-child(4)) .stat:last-child { border-bottom: none; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 13px; color: var(--text-2); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-2); opacity: 1; }
.form-status { font-size: 13px; margin-top: 12px; min-height: 1.2em; }
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--danger); }

.mockup-term {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mockup-term .ok { color: var(--accent); }
.mockup-term .danger { color: var(--danger); }
.mockup-term .line { margin-bottom: 8px; word-break: break-word; }

/* Page-load entrance animation for hero/mini-hero content. CSS-only via
   @starting-style — degrades perfectly: browsers without support just show
   the final state immediately, never an invisible or stuck element. */
.entrance {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.entrance-1 { transition-delay: 0ms; }
.entrance-2 { transition-delay: 60ms; }
.entrance-3 { transition-delay: 120ms; }
.entrance-4 { transition-delay: 180ms; }

@starting-style {
  .entrance { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .entrance { transition: opacity 400ms ease; }
}
