/* ============================================================
   LocksBit — locksbit.com
   Static site stylesheet. No framework, no build step.
   ============================================================ */

:root {
  --bg: #0a0d13;
  --bg-2: #0d111a;
  --panel: #11151e;
  --panel-2: #151a25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf4;
  --muted: #98a2b3;
  --accent: #f7931a;
  --accent-soft: rgba(247, 147, 26, 0.12);
  --green: #3ecf8e;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

::selection { background: var(--accent); color: #0a0d13; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.accent { color: var(--accent); }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.brand-mark { width: 30px; height: 30px; flex: none; }

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-menu a:not(.nav-cta) {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:not(.nav-cta):hover { color: var(--text); }

.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #0a0d13;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 999px;
  transition: filter 0.2s;
}

.nav-cta:hover { filter: brightness(1.1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 380px at 18% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 320px at 85% 20%, rgba(247, 147, 26, 0.07), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 480px at 30% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 30% 20%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.7rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Terminal card */

.term {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.term-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.term pre {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  overflow-x: auto;
}

.term pre .d { color: #626d80; }
.term pre .o { color: var(--accent); }
.term pre .g { color: var(--green); }
.term pre .b { color: #8fa1bd; }

.term .meter {
  display: inline-block;
  width: 10ch;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p, 100%), rgba(247, 147, 26, 0.14) var(--p, 100%));
}

.term-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* Stats strip */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-bottom: 0;
}

.stat {
  background: var(--bg);
  padding: 28px 8px;
  text-align: center;
}

.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-l {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.about { padding-bottom: 32px; }

.section-head { max-width: 720px; margin-bottom: 56px; }

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 20px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.card h3 { font-size: 1.22rem; margin-bottom: 12px; }

.card p { color: var(--muted); font-size: 0.95rem; }

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}

.card-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 16px;
}

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.taglist li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* Regions */

.region h3 { margin-bottom: 8px; }

.region p { margin-bottom: 18px; min-height: 3.2em; }

.region-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.region-more { border-style: dashed; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0 0 72px;
  padding: 0 0 0 34px;
  max-width: 720px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li { position: relative; padding: 0 0 34px; }

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

/* Company milestones get a filled dot */
.timeline li.co::before { background: var(--accent); }

.t-when {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.timeline p { color: var(--muted); max-width: 62ch; }

.timeline strong { color: var(--text); }

/* Principles */

.principles { margin-top: 0; }

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 72px 32px;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: auto -30% -80%;
  height: 160%;
  background: radial-gradient(480px 300px at 50% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.contact-panel > * { position: relative; }

.contact-panel h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

.contact-panel .section-sub { max-width: 46ch; margin: 0 auto 30px; }

.contact-panel .eyebrow { margin-bottom: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  transition: filter 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0a0d13;
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-brand p { color: var(--muted); font-size: 14px; max-width: 38ch; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}

.footer-nav a:hover { color: var(--text); }

.footer-small {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-small p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
  .hero-visual { max-width: 560px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 64px; }
  .cards-3 { grid-template-columns: 1fr; }
  .region p { min-height: 0; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-menu.open { display: flex; }

  .nav-menu a:not(.nav-cta) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-menu .nav-cta { margin-top: 16px; text-align: center; }

  .footer-small { flex-direction: column; }
}
