/* ════════════════════════════════════════════════════════════════════
   Shadow Locker — site stylesheet for https://crnet.net/shadowlocker/
   ────────────────────────────────────────────────────────────────────
   Part 1 is a verbatim mirror of crnet.net/css/styles.css so the page
   renders identically in local preview and on the server. If the main
   site stylesheet changes, re-sync Part 1 (diff against
   https://crnet.net/css/styles.css).
   Part 2 adds the Shadow Locker page components (screenshot rail,
   lightbox, plan cards, claims table, flow steps, FAQ).
   ════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ═══ Part 1 — mirrored from crnet.net/css/styles.css ═══ */

/* ── Variables ── */
:root {
  --bg:      #0a0e1a;
  --surface: #111827;
  --border:  #1e2d3d;
  --accent:  #00d4ff;
  --accent2: #6366f1;
  --text:    #cbd5e1;
  --muted:   #475569;
  --font:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;
  --radius:  8px;
  --nav-h:   64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }

/* ── Nav ── */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: var(--surface);
  border-color: var(--border);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.5px;
}
.nav-logo:hover { opacity: 1; color: #fff; }
.nav-logo .logo-dot { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-github { display: flex; align-items: center; gap: .4rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--nav-h) 1.5rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
}
.dot-grid {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, #1e2d3d 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--accent); }
.hero p.tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: var(--mono);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 4px 20px rgba(0,212,255,.35); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-github {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .85rem;
}
.btn-github:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Sections ── */
.section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.divider {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem 0 2.5rem;
}

/* ── About (2-col) ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text p { color: var(--text); margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-graphic { display: flex; justify-content: center; }

/* ── Card grid (homepage) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; }
.card-title { font-size: 1.1rem; font-weight: 600; color: #fff; }
.card-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; }
.card-link { font-size: .85rem; font-weight: 600; color: var(--accent); font-family: var(--mono); }

/* ── Badges ── */
.badge {
  font-family: var(--mono);
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(99,102,241,.15);
  color: var(--accent2);
  border: 1px solid rgba(99,102,241,.3);
}
.badge.ts  { background: rgba(49,120,198,.15); color: #3178c6; border-color: rgba(49,120,198,.3); }
.badge.js  { background: rgba(234,179,8,.1);  color: #eab308; border-color: rgba(234,179,8,.25); }
.badge.mobile { background: rgba(0,212,255,.1); color: var(--accent); border-color: rgba(0,212,255,.25); }

/* ── Development landing ── */
.dev-hero {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.dev-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.dev-hero .subtitle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .9rem;
}
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}
.dev-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.dev-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.dev-card-illustration {
  background: linear-gradient(135deg, #0d1526 0%, #111827 100%);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.dev-card-illustration svg { width: 100px; height: 100px; }
.dev-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.dev-card-title { font-size: 1.1rem; font-weight: 600; color: #fff; }
.dev-card-desc { color: var(--muted); font-size: .9rem; flex: 1; }
.dev-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .5rem;
}
.dev-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--mono);
}

/* ── Project pages ── */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.back-link {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent); opacity: 1; }
.page-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  line-height: 1.1;
}
.page-hero-text .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.project-illustration { width: 220px; height: 220px; flex-shrink: 0; }
.project-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.project-section { margin-bottom: 3rem; }
.project-section h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.project-section p { color: var(--text); margin-bottom: .75rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--text);
  font-size: .95rem;
}
.feature-list li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}
.tech-stack { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  font-family: var(--mono);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); opacity: 1; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: .75rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-grid   { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-graphic { display: none; }
}
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .dev-grid   { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .project-illustration { display: none; }
}

/* ═══ Part 2 — Shadow Locker page components ═══ */

/* Anchor targets clear the fixed nav when linked from the hero buttons. */
html { scroll-padding-top: calc(var(--nav-h) + 1.5rem); }

/* Inline code chips inside body copy (claims table, flow steps). */
.project-section code, .legal code {
  font-family: var(--mono);
  font-size: .82em;
  color: var(--accent);
  background: rgba(0,212,255,.07);
  border: 1px solid rgba(0,212,255,.15);
  border-radius: 4px;
  padding: .05em .35em;
}

/* ── Stat band ── */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 3rem;
}
.stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.stat .num {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
}
.stat .label {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
}
@media (max-width: 768px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ── Premium badge on cards ── */
.badge.premium {
  background: rgba(0,212,255,.08);
  color: var(--accent);
  border-color: rgba(0,212,255,.25);
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

/* ── Screenshot rail ── */
.shot-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: .5rem .25rem 1.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.shot-rail::-webkit-scrollbar { height: 8px; }
.shot-rail::-webkit-scrollbar-track { background: var(--surface); border-radius: 4px; }
.shot-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.shot-rail::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.shot-frame {
  flex: 0 0 auto;
  width: 216px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .5rem .5rem 0;
  cursor: zoom-in;
  transition: border-color .2s, transform .2s;
}
.shot-frame:hover { border-color: var(--accent); transform: translateY(-3px); }
.shot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  background: #000;
  border-radius: 10px;
}
.shot-frame figcaption {
  padding: .6rem .35rem .75rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.shot-frame figcaption .n { color: var(--accent); }
.shot-hint {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,14,26,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  max-height: 100%;
}
.lightbox img {
  max-height: calc(100vh - 8rem);
  width: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000;
}
.lightbox-caption {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text);
}
.lightbox-caption .n { color: var(--accent); }
.lb-btn {
  position: absolute;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
}

/* ── Flow steps ("how it works") ── */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .2s;
}
.flow-step:hover { border-color: var(--accent); }
.flow-step .step-n {
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--accent);
  min-width: 2ch;
  line-height: 1.4;
}
.flow-step h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .25rem;
}
.flow-step h3 code {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  color: var(--accent2);
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  border-radius: 999px;
  padding: .12rem .55rem;
  margin-left: .5rem;
  vertical-align: .12rem;
  white-space: nowrap;
}
.flow-step p { color: var(--muted); font-size: .9rem; margin: 0; }
.flow-step p b, .flow-step p strong { color: var(--text); font-weight: 600; }
.flow-step code:not([class]) {
  font-family: var(--mono);
  font-size: .8em;
  color: var(--accent);
}

.how-diagram {
  display: flex;
  justify-content: center;
  margin: 2rem 0 .5rem;
}
.how-diagram svg { width: 100%; max-width: 760px; height: auto; }

/* ── Claims table ── */
.claims-wrap { overflow-x: auto; }
.claims-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  min-width: 640px;
}
.claims-table caption { display: none; }
.claims-table th,
.claims-table td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.claims-table th {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: #0d1526;
}
.claims-table td:first-child { color: #fff; font-weight: 500; white-space: nowrap; }
.claims-table td:last-child { color: var(--muted); }
.claims-table tr:last-child td { border-bottom: none; }
.claims-note {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-top: 1rem;
}
.claims-note b { color: var(--accent); font-weight: 500; }

/* ── Plan cards ── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s, transform .2s;
}
.plan-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.plan-card.featured { border-color: var(--accent); }
.plan-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.plan-card.featured .plan-eyebrow { color: var(--accent); }
.plan-tag {
  position: absolute;
  top: -.7rem;
  left: 1.5rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  padding: .15rem .65rem;
  font-weight: 500;
}
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.plan-price small {
  font-size: .85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: var(--text);
  font-size: .88rem;
}
.plan-list li::before {
  content: '▸';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .1rem;
}
.plan-list li.off { color: var(--muted); }
.plan-list li.off::before { content: '—'; color: var(--muted); }
.plan-fineprint {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1.25rem;
}
@media (max-width: 1024px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .plan-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: .95rem;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 400;
}
.faq details[open] summary::before { content: '–'; }
.faq details p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .6rem;
}
.faq details p b { color: var(--text); }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, #0d1526 0%, #111827 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.cta-band p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.cta-band .btn-row { justify-content: center; }

/* ── Long-form pages (privacy / terms) ── */
.legal { max-width: 760px; }
.legal h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 .5rem;
}
.legal p, .legal li { color: var(--text); font-size: .95rem; }
.legal ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.legal .updated {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
