/* ---------------------------------------------------------------------
   LockIt promo site — design tokens
   Palette: indigo-tinted near-black (not neutral black) + warm copper
   accent (the "physical cable" color) against the brand indigo.
   Display type: monospace (this is a tool for people who read `adb devices`
   output for fun). Body type: system sans, for long-form readability.
--------------------------------------------------------------------- */
:root {
  --bg: #0b0e1a;
  --bg-soft: #0f1220;
  --surface: #141829;
  --surface-2: #1b2036;
  --border: #262b45;
  --text: #edeff7;
  --text-muted: #8991ac;
  --text-faint: #5b6280;
  --indigo: #4b63ff;
  --indigo-soft: rgba(75, 99, 255, 0.14);
  --copper: #e2984d;
  --copper-soft: rgba(226, 152, 77, 0.14);
  --danger: #e2694d;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

::selection {
  background: var(--indigo);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- background texture ---------- */
body {
  background-image:
    radial-gradient(600px 400px at 85% -5%, rgba(75, 99, 255, 0.16), transparent 60%),
    radial-gradient(500px 360px at 10% 15%, rgba(226, 152, 77, 0.08), transparent 65%);
  background-repeat: no-repeat;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 14, 26, 0.78);
  border-bottom: 1px solid var(--border);
}

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

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

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

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

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links-inline {
  display: flex;
  gap: 28px;
}

@media (max-width: 720px) {
  .nav-links-inline {
    display: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(75, 99, 255, 0.6);
}

.btn-primary:hover {
  background: #5c72ff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 40px;
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 24px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(closest-side, var(--indigo-soft), transparent 72%);
  z-index: -1;
}

.hero-phone {
  transform: rotate(-3deg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: 2;
    margin-top: 48px;
  }
  .hero-phone {
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--copper);
  background: var(--copper-soft);
  border: 1px solid rgba(226, 152, 77, 0.3);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.hero h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 16ch;
}

.hero h1 .accent {
  color: var(--indigo);
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hero-meta {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.hero-fineprint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
  max-width: 50ch;
}


/* ---------- section shell ---------- */
section {
  padding: 96px 0;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
  section {
    padding: 64px 0;
  }
}

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

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin: 0 0 14px;
  line-height: 1.2;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  background: var(--surface);
  padding: 32px 26px;
}

.step-num {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.02rem;
  margin: 0 0 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.step .terminal-line {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--copper);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- screens showcase ---------- */
.screen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}

.screen-row:last-child {
  margin-bottom: 0;
}

.screen-row.reverse .screen-copy {
  order: 2;
}

.screen-copy .section-label {
  margin-bottom: 10px;
}

.screen-copy h3 {
  font-family: var(--mono);
  font-size: 1.5rem;
  margin: 0 0 14px;
}

.screen-copy p {
  color: var(--text-muted);
  margin: 0;
}

.screen-copy code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

@media (max-width: 860px) {
  .screen-row, .screen-row.reverse .screen-copy {
    grid-template-columns: 1fr;
    order: initial;
  }
  .screen-row {
    display: block;
  }
  .screen-copy {
    margin-bottom: 32px;
  }
}

/* ---------- phone mockup ---------- */
.phone {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  background: #05060c;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

.phone-screen {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  font-family: var(--sans);
}

.app-bar {
  background: var(--indigo);
  color: #fff;
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
}

.app-bar .icons {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.entry-row .label {
  color: var(--text);
  font-weight: 500;
}

.entry-row .icons {
  display: flex;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.fab {
  position: relative;
  margin: -28px 16px 16px auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--copper);
  color: #1a1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 10px 20px -6px rgba(226, 152, 77, 0.6);
}

.switch-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.switch-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.switch-row .title {
  font-size: 0.9rem;
  font-weight: 500;
}

.switch-row .subtitle {
  font-size: 0.74rem;
  color: var(--text-faint);
  line-height: 1.4;
}

.switch {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-faint);
}

.switch.on {
  background: var(--indigo-soft);
  border: 1px solid var(--indigo);
}

.switch.on::after {
  background: var(--indigo);
  left: 20px;
}

.settings-item {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.settings-item .title {
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.lan-address-card {
  margin: 0 16px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.lan-address-label {
  font-size: 0.68rem;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.lan-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lan-url {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--copper);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lan-copy {
  color: var(--text-faint);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- browser mockup ---------- */
.browser {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.browser-url {
  flex: 1;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.browser-body {
  padding: 20px;
  overflow-x: auto;
}

.web-table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.web-table th {
  text-align: left;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 10px 10px;
}

.web-table td {
  padding: 10px;
  border-top: 1px solid var(--border);
}

.web-table .masked {
  font-family: var(--mono);
  color: var(--text-faint);
}

.web-table .reveal {
  color: var(--copper);
  font-size: 0.76rem;
  margin-left: 8px;
}

/* ---------- security spec sheet ---------- */
.spec-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-family: var(--mono);
  color: var(--copper);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  color: var(--text-muted);
}

.spec-val strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.faq-item h3 {
  font-size: 1rem;
  margin: 0 0 8px;
  font-family: var(--mono);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 20px;
}

.final-cta p {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 32px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .brand {
  font-size: 0.9rem;
}

footer .foot-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

footer .foot-links a {
  text-decoration: none;
  color: var(--text-faint);
}

footer .foot-links a:hover {
  color: var(--text-muted);
}

/* ---------- reveal-on-scroll ----------
   Progressive enhancement: content is fully visible by default. JS adds
   .js-reveal to <html> only once it can guarantee it will reveal things,
   so a JS failure never leaves content permanently hidden. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}
